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

save variant in module pool

Former Member
0 Likes
2,341

Hi All,

Please suggest some way of saving a variant in module pool program.

The requirement is to add a save button on the screen of module pool. When this button is clicked the contents of the screen are saved similar to the functionality of saving variants on selection-screen.

Thanks

Gaurav

9 REPLIES 9
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
1,442

Hi,

Create transaction[say.,zzz_test1] using SE93 [choose the option Program and screen] for your module pool program.

Then use SHDS transaction to create a variant[say zzz_v1] for the transaction you created above.

Then use SE93 [choose the option Transaction with Variant] to create another transaction zzz_test2 by mentioning the module pool program name and zzz_test1 transaction which you created and zzz_v1 variant which you created.

Then if you run the transaction ZZZ_test2,then you can see the variant values.

I created just now all these and it works.

Hope this is clear.If it is useful,kindly reward points and close the thread.

If not,get back.

Check your yesterday's thread also.

Read only

0 Likes
1,442

hi,

i am facing the same challenge. i have got a module pool, with a dynpro 100. now i want to save a variant, and call it later on.

i produced a var. via SHDS. and i can call it during pai with CALL FUNCTION 'RS_HDSYS_SET_SC_VARIANT' which immediatly loads the variant.

there are tons of function modules which have variant in their names.

Question:

1 - is there a function module, which allows to easily produce a variant, and which can be called from my dynpro, say during pai?

2 - does somebody know a function module, which provides an F4 helplist (in case more than 1 variants have been saved).

thanx in advance,

matthias

Read only

Former Member
0 Likes
1,442

Gaurav

Saving of VARIANT works for REPORT and not for MODULE POOL!!!!.

But there is a indirect way to have a variant for Module Pool. ie using <b>SUBMIT stmt</b>. I have not tried this but it worked....

Check the following SDN thread:

Thanks

Kam

Read only

abdul_hakim
Active Contributor
0 Likes
1,442

Hi

variant declaration is only possible in selection screen.

I suggest you can use selection-screen as the initial screen for your program.

Still if there is a need to use a dialog screen then add a button to the application tool bar.In the PAI of the screen pass the necessary value which you want to display in the corresponding screen field.Call the same screen again.

Regards,

Abdul

Read only

0 Likes
1,442

Hi Abdul,

I created a variant of my none-report transaction like Jayanthi Jayaraman described above. So I am fine on this side. I have a variant, which works - and we are talking dynpro here - not reports.

Do you suggest a batch-input strategy? Or what do you mean?

regards, matthias

Read only

0 Likes
1,442

Hi Matthias,

Can you tell me how can i create a variant for module pool screen...

Regards,

Abdul

Read only

0 Likes
1,442

Hi Abdul,

look at the first answer to this thread by Jayanthi Jayaraman ...

that's exactly what I did - and it works - you can save contents of dynpro fields.

regards,

matthias

Read only

0 Likes
1,442

Hi Mathhias,

Thanks a lot..

Regards,

Abdul

Read only

Former Member
0 Likes
1,442

hi guarav,

i too have a same type of requirement where in i have created a screen which includes selection fields and also displays the output in the same screen number.

so i am in search for a functionality of variant to my report for the custom screen ( say 100 ) .

if u have got the solution can u please guide me too??