Application Development and Automation 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: 
Read only

Create a VARIANT for module pool program.

Former Member
0 Likes
1,249

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.

4 REPLIES 4
Read only

Former Member
0 Likes
848

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

Read only

Former Member
0 Likes
848

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

Read only

Former Member
0 Likes
848

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.

Read only

Former Member
0 Likes
848

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