Skip to Content
avatar image
Former Member

Dynamic population of a selection parameter in a Variant

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Mar 19, 2004 at 10:19 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 19, 2004 at 09:47 PM

    Hi Mart,

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

    Regards,

    Pramod

    Add comment
    10|10000 characters needed characters exceeded

    • 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.