Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
SAP Community Downtime Scheduled for This Weekend

T-code

Former Member
0 Kudos
158

Hi Experts,

What is the T-code to create variants for programs?

Regards

1 ACCEPTED SOLUTION

Former Member
0 Kudos
134

Hi to create variant for the programs .

1. you can go to se38

2. run the program

3. press save button .

4 . give the variant name and save it .

10 REPLIES 10

Former Member
0 Kudos
134

u can create where ever u execute the programs.

GO through the menu bar.

Hope this will solve ur problem..

<b><u>Dont forget to reward all the useful replies</u></b>

Sudheer

Former Member
0 Kudos
134

Hi,

To create a new variant:

...

1. On the ABAP Editor initial screen, enter the name of the program for which you want to create a variant, select Variants, and choose Change.

2. On the variant maintenance initial screen, enter the name of the variant to be created.

Note the naming convention for variants (see below).

3. Choose Create.

If the program has more than one selection screen, a dialog box for screen assignment appears. The dialog box does not appear if the program only has one selection screen. The selection screen appears in this case.

4. If there is more than one selection screen, select the screens for which you want to create the variant.

http://help.sap.com/saphelp_webas620/helpdata/en/c0/980389e58611d194cc00a0c94260a5/content.htm

Regards

Sudheer

Former Member
0 Kudos
135

Hi to create variant for the programs .

1. you can go to se38

2. run the program

3. press save button .

4 . give the variant name and save it .

Former Member
0 Kudos
134

hi ravi,

please try the transaction shd0 to create transaction and screen variants...

reward helpful replies

Former Member
0 Kudos
134

Hi Ravi,

THere is no TCODE as such to create the variants for the program, o

nce u execute the program & after passing the inputs to the selection screen, fields , u have to press save button, then it will created as variant

Reward Points if it is USeful.

Thanks,

Manjunath MS

Former Member
0 Kudos
134

hi,

No Tcodes avaiblke to create variants for programs.once you enter the values in the selection screen press the save button avail in the application tool bar.

Reward points if it is helpful.

Regards,

Sangeetha.A

Former Member
0 Kudos
134

Hi Ravi,

There is no specific transaction for creating variant. However, you can create a variant by any of these following options:

1. Goto transaction SE38, enter program name and select radiobutton for Variants. Click on DISPLAY/CHANGE button. In the next screen, give variant name and select CREATE button. Enter values for screen parameters and click on 'Variant attributes' button. Give description and save.

2. While executing your program through SE38, enter values for screen parameters and click on SAVE button and enter variant name and description and save again.

3. While executing your program through SE38, enter values for screen parameters and select menu option GOTO -> VARIANT -> Save as Variant. Enter variant name and description and save again.

4. While executing your transaction, enter values for screen parameters and click on SAVE button and enter variant name and description and save again.

Regards,

Neeraj

Former Member
0 Kudos
134

hi

good

there is no such tcode to create the variant,variant is use to store the current selction screen data,which helps you to execute the program when you run the program next time.

if after entering all the data into a selection screen and press the Save button it ll ask you to save those data under a name and that name is called as the variant.

thanks

mrutyun^

Former Member
0 Kudos
134

hi,

at u r report selection-screen u can define the variants.

1)just pass the values at selction screen and click on save. there u can give the variant name.

2) like that u can give the mutliple values at selection and save those

3) u can create different variants with different values

madhukar

Former Member
0 Kudos
134

hi,

once we create report execute the report .on execution press save option.that will ask for creation of variant.

Reward with points if helpful.