‎2010 Aug 26 2:40 PM
Hi All,
I have created VARIANT Push Button(With ICON Variant) in Module Pool program in Screen 100. And i have created SAVE button on standard tool bar by using SET-PF STATUS '0100' in Screen 100.
I have one Input field like QALS-PRUEFLOS on the same screen 100. When ever i enter some value in it and click on SAVE button the variant has to be created.
And once the Variant has created, After i click on VARIANT push button it has to show us Variants which are already created and when we select that perticular variant it has to pass those variant value to input screen.
The variant functionality should work like our executable program.
I have seen below blog in SDN.
/people/alvaro.tejadagalindo/blog/2007/05/22/save-a-variant-from-a-dynpro-screen
But, I am getting the error Selection screen 100 contains no objects.
I hope the above blog will work for Executable program not Module pool.
Could some body please help me in this regard?
Thank you in advance!!
With Regards,
Vishnu.
‎2010 Aug 26 3:21 PM
Design a selection screen identical to your requirement and call it in module pool.
Ex:
report abc.
SELECTION-SCREEN BEGIN OF SCREEN 500 AS SUBSCREEN.
PARAMETERS : p_bukrs TYPE ekko-bukrs
SELECTION-SCREEN END OF SCREEN 500 .
call screen 100. "your module pool screen
Now in the screen painter create a subscreen area and name it ex:S1.
In your flow logic pbo.
just use this statement : call subscreen s1 including sy-repid '0500'.
Hope this helps.
‎2010 Aug 26 3:21 PM
Design a selection screen identical to your requirement and call it in module pool.
Ex:
report abc.
SELECTION-SCREEN BEGIN OF SCREEN 500 AS SUBSCREEN.
PARAMETERS : p_bukrs TYPE ekko-bukrs
SELECTION-SCREEN END OF SCREEN 500 .
call screen 100. "your module pool screen
Now in the screen painter create a subscreen area and name it ex:S1.
In your flow logic pbo.
just use this statement : call subscreen s1 including sy-repid '0500'.
Hope this helps.
‎2010 Aug 26 3:40 PM
Hi Keshav,
Thanks for your reply. Is it possible with out designing sub screen? I mean, i have completed total desin on the same screen 100 and did few functionalities.
How ever, If there is no option available then i will try with your option and let you know how it is working.
With Regards,
Vishnu.
‎2010 Aug 26 4:09 PM
In se37 just search for fm's using RSVARIANT
There are some fm's which does the functionalities of variant creation,listing etc.
may be you could build the logic using that.
‎2010 Aug 26 4:28 PM
Hi Keshav,
I tried as per your suggetion(Selection Screen as Sub Screen) , but still getting the below same error.
Selection Screen 0100 Contains no Objects.
Could some body help me in this regard?
Thank you!!
With Regards,
Vishnu.
‎2010 Aug 26 4:59 PM
Have you checked the replies given to your refered blog.
Check the reply given by Alex Dan .
‎2010 Aug 26 5:16 PM
Hi Keshav,
Yes, I have already checked that one. But, it was hard coded variant..
With Regards,
Vishnu.
‎2010 Aug 30 7:27 AM
Hi All,
I have done this requirement by using Standard Program of Tcode CJPU. I copied that standard program code into my Z Program and it is working perfectly.
Thank you!!
With Regards,
Vishnu.