07-27-2009 11:55 AM
Hey Friends,
Plz help me in how to create variant for Module Pool Programming as in normal reports.Thanx in advance.
07-27-2009 11:58 AM
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
07-27-2009 11:58 AM
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
07-27-2009 12:05 PM
Hi,
Like in report programs variants cannot be created in Module pool programming.
Thanks,
Sri.
07-27-2009 12:06 PM
In that case....
assign default values for the required fields....
07-27-2009 12:07 PM
In that case....
assign default values for the required fields....
07-27-2009 12:14 PM
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