How to change value of selection parameter dynamically in SAP ABAP

Hi.

Today I was struggling with this.  Wanted to change value of a selection parameter dynamically upon selection of a radio button on the selection screen. Following is the code:

Supposing you have a parameter named SVAR for which you want to set value ‘YOURVALUE’ on selection of radio R1 then you’ll write this:


IF R1 = 'X' .
  DELETE SVAR WHERE SIGN NE ' '.
  SVAR-SIGN = 'I'.
  SVAR-OPTION = 'EQ'.
  SVAR-LOW  = 'YOURVALUE'.
  SVAR-HIGH = ''.
  APPEND SVAR.
ENDIF.

Easy isn’t it? Well, everything is easy once you know it..🙂

Happy coding!

Author: ashishtilak

I am happy go lucky kinda person. Always smiling and making people smile. Luv every thing life has to offer. And, I am a software engg. too, working at a manufacturing company. See more about myself in my blogs.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s