‎2007 Apr 20 6:28 AM
Hi,
I want ot create a VARIANT for module pool program. I want to know which function module to use and what parameters to pass in the function module to capture the variants. Plz suggest.
Regards,
Dipankar Nayak.
‎2007 Apr 20 6:31 AM
Hi,
Use the Fun module
RS_CREATE_VARIANT
other related fun modules are
RS_CHANGE_CREATED_VARIANT
RS_RWSET_CREATE_VARIANT
reward if useful
regards,
Anji
‎2007 Apr 20 6:32 AM
Hi
I dont think you can create VARIANT for module pool program, as variant requires selection screen to be created, which is available in only reports.
Sandeep
‎2007 Apr 20 6:35 AM
Hi
Please check the link
http://help.sap.com/saphelp_nw04/helpdata/en/c0/980374e58611d194cc00a0c94260a5/frameset.htm
Procedure
On the initial screen of the ABAP Editor, enter the name of the program for which you want to create a variant, select Variants in the Sub-objects group box, and choose Change.
On the variant maintenance initial screen, enter the name of the variant you want to create.
Note the naming convention for variants (see below).
Choose Create.
If the program has more than one selection screen, a dialog box appears in which you can assign the variant to one or more screens. The dialog box does not appear if the program only has one selection screen. In this case, the selection screen of the program appears straight away.
If there is more than one selection screen, select the screens for which you want to create the variant.
‎2007 Apr 20 6:51 AM
Hi
Use below function module for variant operation
RS_CREATE_VARIANT Creating a variant (not using a selection screen)
RS_VARIANT_CATALOG Returns variant directory for a report in an internal table
RS_VARIANT_EXISTS Checks whether variant exists
RS_VARIANT_TEXT Returns text for a variant
regards
navjot
reward if helpfull