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: 

Unable to load saved variant in module pool fields

former_member219850
Participant
0 Kudos

Hi All,

I have followed all the steps mentioned in below link.

https://blogs.sap.com/2012/04/23/creation-of-selection-screen-variant-in-module-pool-programming/

I am successfully able to create variant but i am unable to load the values in respected module pool layout fields.

I have created three fields as shown above on screen.

After calling FM RS_SUPPORT_SELECTIONS data is not updated in above fields. which is my requirement.

I have gone though all posts which are posted in scn but still no luck.

Please help me in this issue.

thanks,

Darshan.

5 REPLIES 5

former_member219850
Participant
0 Kudos

Hi All,

Please suggest something on this.

Thanks,
Darshan

shadab_maldar
Active Participant
0 Kudos

Hi Darshan,

I think that's not the selection screen you have created.

Try to create a selection screen in top include of module pool and follow the same steps to create and retrieve the variant as given in the post.

Also there is another good option provided by raymond.giuseppi in the comment section of the same post.

Regards,

Shadab

0 Kudos

Hi Shadab,

Thank you for your reply!!!!..

You are correct it is not a selection screen, those are layout fields.

How can I load variant in this case??..

I have tried with FM RS_VARIANT_FETCH.

I am not getting values of screen fields using above FM. it gives variant details such as variant name & description.

Need urgent help in this.. At Least if i can find fm for fetching screen values then it will be great!!!

Thanks,
Darshan

0 Kudos

Hi Darshan,

The one simple way is writing the selection screen(Which you have shown in your screen shot) in top include of module pool.

Regards,

Shadab.


0 Kudos

Hi Shadab,

Sadly i cant do that.. because that screen is not a subscreen..

Also in that screen there is a table control at the middle.

At Least if i can find fm for fetching screen values of the saved variant then it will be helpful.

Thanks,
Darshan