cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic population of a selection parameter in a Variant

Former Member
0 Kudos

Hi All,

Is there a way to dynamically populate the selection-screen parameter(not a date) in a variant...SAP provides option of doing this only for dates(FM RS_VARI*).

To explain my requirement,

I have 3 parameters on the selection screen. Eg: In the variant if param1 = A and param2 = B. Can I write a function to read the two parameters above and populate param3 dynamically.

TIA & Regards,

Pramod

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Mart,

My requirement is for a std SAP program...hence changing the program is not an option.

Regards,

Pramod

franois_henrotte
Active Contributor
0 Kudos

As far as I know, this is not possible.

But there is a solution: create your own program with selection-screen logic, then SUBMIT the standard program passing parameters.

This give you maximum possibilities even adding some parameters and submit with restricted values.

Former Member
0 Kudos

Why do you need to do it in the variant cant you just do it in the program code within the AT 'SELECTION-SCREEN OUTPUT' event.

ie.

AT SELECTION-SCREEN OUTPUT.

if param1 = 'A' and param2 = 'B'.

param2 = 'AB'. "or what ever

endif.

This will always populate param3 based on param1 and 2 irrespective of whether it is using a variant or not.

hope this helps