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 variant in a module pool

Former Member
0 Likes
614

Hi,

Is it possible to create a variant in a module pool? i have screen created for it and my requirement is that it can save a variant. I have found FM's but it works on a report program. Anyone does this before? please help.

Thanks!

1 REPLY 1
Read only

Former Member
0 Likes
385

Hi Akira,

Variants can be created for programs with selection screens.

For a module pool you can use FM'S

RS_CREATE_VARIANT

RS_CHANGE_CREATED_VARIANT

RS_RWSET_CREATE_VARIANT

Steps:

1. ABAP editor -> Enter program name

2. GOTO -> Variants

3. Choose Create

4.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.

5.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.

You can also refer to link: http://help.sap.com/saphelp_nw04/helpdata/en/c0/980374e58611d194cc00a0c94260a5/frameset.htm

Regards,

Kishore