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

at selection screen output

Former Member
0 Likes
650

Dear,

My question is related to at selection screen output. when i press any radio button the screen is not change accordingl to the code but after pressing radiobutton and then enter it will come. i m working in selection screen (1000). Kindly help.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
612

Hi,

Welcome to SCN.

Assign a Function Code to radio button using USER COMMAND addition.

Have a habit of searching the forum before posting a question.

Read the [Community Guidelines|https://www.sdn.sap.com/irj/scn/blogs-communityguidelines] before posting more.

Regards

Karthik D

5 REPLIES 5
Read only

Former Member
0 Likes
613

Hi,

Welcome to SCN.

Assign a Function Code to radio button using USER COMMAND addition.

Have a habit of searching the forum before posting a question.

Read the [Community Guidelines|https://www.sdn.sap.com/irj/scn/blogs-communityguidelines] before posting more.

Regards

Karthik D

Read only

0 Likes
612

when u are declaring ur radio button.

parameters : r1 radiobutton group r user command u1 default 'X',
                     r2 radiobutton group r .


at selection screen output.
  loop at screen.
       if R1 = 'X'.
          do this....
      else if R2 = 'X'
           do that.....
      endif.
      modify screen.
 endloop.

the prob might be becoz u have not assigned user command to ur radio button,.. thats why it was not responding to ur click.

Read only

former_member209217
Active Contributor
0 Likes
612

Hi,

Please search SCN . U will get lot of Code Samples.

Assign one function code to the radio button using USER-COMMAND and

For handling that type of events i.e screen Change with a click on ardio button u have to use AT SELECTION-SCREEN event.

regards,

Lakshman.

Read only

Former Member
0 Likes
612

Hi Pranab,

did u loop the screen and checkfor the condition.

try doing it in at selection-screen event.

code:

at selection-screen.

if rad1 eq 'X'.

( your code )

endif.

or if the radio button is selected by default than at selection-screen output.

just use Loop at screen and check for the value of the radio button.

if it's 'X' than perform your code.

hope u got the idea.

all the best

Thanks

Ravi

Read only

viquar_iqbal
Active Contributor
0 Likes
612

Hi

You need to use at user-command. so it would change according to user selection.

PARAMETERS :w_a type c RADIOBUTTON GROUP g1 USER-COMMAND u1,
            w_b TYPE c RADIOBUTTON GROUP g1.

Thanks

Viquar Iqbal