Skip to Content

Creation of new variant:

1. Go to the report screen using T Code or by executing report program in SE38.

Capture1.JPG

2. Enter the values for which you want this report to run regularly.

Capture 2.JPG

3. Press Save Button, this will take you to Variant attribute button.

You will find different selection field which can be use to protect, hide or making field mandatory to fill.

Capture 3.JPG

4. Naming Variants:

I will suggest to give name to Variant starting with Y or Z and then description. I find that keeping same naming convention for z changes makes easy to control process in long run.

Standard SAP suggests rules for Variant naming as below: ..

  • Variant name can comprise up to 14 alphanumeric characters.
  • character % is not allowed.
  • If user want the variant to be transported automatically with its program, then he must create a system variant. (Depend upon your requirement)
  • The name of a system variant must start with “CUS&” for customers, and “SAP&” for SAP system variants You can only use the “&” character within this prefix in the name of a system variant. ……..

Capture 4.JPG

5. Now Suppose you want creation data as dynamic.

Enter D (Select from drop down) in Selection variable

Capture 5.JPG

6. F4 in the last column (Name of variable)

Capture 6.JPG

7.  See the popup, it has many option, choose the one you want. If you choose Current date +/- ??? days, it will consider the whole week (7
days).  If you choose Current date +/- ??? Work days, it will consider only working days based on the calendar.

Indicator  “I” or “E” indicates.

  • “I” (Inclusive) means that the single value or range you specified is selected itself.
  • “E” (Exclusive) means that the single value or range you specified is excluded from the selection.

Suppose for example I am taking here Current date +/- ??? work days, and I need it to start from last  5 work days. So I will double click on Current date +/- ??? Work days field. 

Popup will come. I have entered 5, and given the calendar to check work day as well.

Capture 7.JPG

8. Now in the menu. Goto—–> variant——- > Get, and double click the variant you have created, it will bring the screen with all the values you have
selected.

    

Now you can create the batch program SM36, and this program and variant.

How to Transport Variant to other system:

1. Find out program of Tcode, In Menu  go to  SYSTEM  ————> Status

Capture 8.JPG

2. Execute T code SE38, and type Program name in field.

In Menu Go To ——–> Variants or press Ctrl + F1

Tcode: SE38

Capture 9.JPG

3. In Variant Screen Menu Go to Utilities ——> Transport Request

Capture 10.JPG

4. Now press Execute button in this screen

Capture 11.JPG

5. This will give selection screen to select varient which needs to be transport in other system like in quality or in production via development request.

Capture 12.JPG

6. Press continue button and it will give popup to select Development request to carry variant in other system.

Capture 13.JPG

Hope this blog will help to create Variant and its transport  to other systems.

If you find this blog helpful, Please do not forget to like it 🙂

Thanks & Regard

Neeraj

 
 
 
 
 
 
 
 
 
 
 
 

   
 
 
 
 
 
 
 
 
 
 
 

To report this post you need to login first.

3 Comments

You must be Logged on to comment or reply to a post.

  1. Jelena Perfiljeva

    Just a note that it’s not required to start the variant name with Y or Z. There are system variants that start with ‘CUS&’, but otherwise there are no naming restrictions, to my knowledge.

    Please note that there is already a Wiki page on how to transport the variants (as well as dozens of forum posts):

    http://wiki.sdn.sap.com/wiki/display/ABAP/Transporting+Select+Screen+Variant

    Thank you for sharing, but please make sure to search before posting, going forward.

    (0) 
    1. Former Member Post author

      Hi Jelena,

      Thanks for your input. Yes Y or Z not mandatory for variant… SAP suggests rules for Variant naming as below:

      ..

      • Variant name can comprise up to 14 alphanumeric characters.
      • character % is not allowed.
      • If user want the variant to be transported automatically with its program, then he must create a system variant.
      • The name of a system variant must start with “CUS&” for customers, and “SAP&” for SAP system variants You can only use the “&” character within this prefix in the name of a system variant. ……..

      I have suggested Y or Z as I find useful in my experience… As per my experience it gives clear visibility of Z change and better process control..

      Thanks for giving link of another wiki page have info in this area.

      Regards

      (0) 
      1. Jelena Perfiljeva

        Thanks for a response! I agree that certain prefix would make sense when a program comes with the variants pre-defined by SAP. We rarely see this in our system, so I was thinking more about the custom programs. Nice addition.

        (0) 

Leave a Reply