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

Variant Creation in Module Pool Program

former_member188829
Active Contributor
0 Likes
1,739

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.

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,555

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.

7 REPLIES 7
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,556

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.

Read only

0 Likes
1,555

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.

Read only

0 Likes
1,555

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.

Read only

0 Likes
1,555

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.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,555

Have you checked the replies given to your refered blog.

Check the reply given by Alex Dan .

Read only

0 Likes
1,555

Hi Keshav,

Yes, I have already checked that one. But, it was hard coded variant..

With Regards,

Vishnu.

Read only

0 Likes
1,555

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.