09-05-2018 10:38 PM
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.
09-06-2018 5:49 AM
09-06-2018 6:49 AM
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
09-06-2018 10:50 AM
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
09-06-2018 12:28 PM
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.
09-06-2018 1:06 PM
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