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: 

Reg : Variant saving for Module Pool Programming

Former Member
0 Kudos

Hey Friends,

Plz help me in how to create variant for Module Pool Programming as in normal reports.Thanx in advance.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

HI,

You can't create a variant in common module pool program . It is only valid for report with selection screen.

What you can do is write a report program with the SELECTION screen which will be identical to the screen of your module pool program.

Then by using CALL SCREEN you can call the screen to your module program .

this way you can use variant in module pool.

Regards,

Anirban

5 REPLIES 5

Former Member
0 Kudos

HI,

You can't create a variant in common module pool program . It is only valid for report with selection screen.

What you can do is write a report program with the SELECTION screen which will be identical to the screen of your module pool program.

Then by using CALL SCREEN you can call the screen to your module program .

this way you can use variant in module pool.

Regards,

Anirban

sridhar_meesala
Active Contributor
0 Kudos

Hi,

Like in report programs variants cannot be created in Module pool programming.

Thanks,

Sri.

Former Member
0 Kudos

In that case....

assign default values for the required fields....

Former Member
0 Kudos

In that case....

assign default values for the required fields....

Former Member
0 Kudos

Hi,

You can create variants for Module pool program using the transaction SHD0. You can create Screen variants for your screens using this Tcode.

Go to SHD0 -> Give the Transaction code(ZTRAN) for which you want to create a variant -> name of some variant (ZVAR) -> create -> takes you to your transaction -> Give the values that you want to be displayed as variants -> Click on Save -> Opens a pop up to confirm the screen entries -> Check the check boxes of those fields that you have entered the data with (the column with check boxes that says W.Content) -> Exit and Save -> Save the variant -> You can see a screen variant created (ZVAR_0100)

Now Goto -> Create variant transaction -> Give your transaction variant name (ZVAR) -> Select Transaction with variant -> Takes you to SE93 transaction -> Give the transaction variant name -> save. Run with the created transaction.

Edited by: Nitwick on Jul 27, 2009 4:49 PM