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

Radio Button

Former Member
0 Likes
954

Hi All,

i have design one custom screen in thet there is three radio buttons i ahve assigned one function code to radio buttons.

now i want to preform duiffrent-2 functionaliity on clicking on radio button.can anybody tell me how can i achive this functionallity.

Thanks

Kunaal

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
930

When you select any one of the Radiobutton then your Function code will be triggered. So PAI will be triggered.

There you handel them.

PAI

module user_command_100.

module  user_command_100 input.
case ok_code.
when 'RAD'.
IF R1 = 'X'.
"R1 logic.
else.
"R2 Logic
endif.
endmodule.

9 REPLIES 9
Read only

Former Member
0 Likes
931

When you select any one of the Radiobutton then your Function code will be triggered. So PAI will be triggered.

There you handel them.

PAI

module user_command_100.

module  user_command_100 input.
case ok_code.
when 'RAD'.
IF R1 = 'X'.
"R1 logic.
else.
"R2 Logic
endif.
endmodule.

Read only

0 Likes
930

hI VIJAY,

THANKS FOR UR REPLY.

i ma using this code:

case ok_code.

when 'CYTMAA'.

IF gwa_reinstatement_data-zpoint = gc_x.

MOVE GC_X TO GV_POINT.

CYTMAA is my function code for radio button,

now the thing is i am caaling radio button inside the tab, so while debugging the sy-ucomme is coming for my tab not for radio button.

can you please suggest how the problem will resolved.

Thanks

Kunaal

Read only

0 Likes
930

Are you using Tabstrip..?

Read only

0 Likes
930

YES

Read only

0 Likes
930

You need to check the main screen. Where are you handing the user actions.

Give me Complete Flow what you are doing. how many screens you have and how many subscreens..etc.

Read only

0 Likes
930

i have six tabstrops and six subscreen inside it.

now in my second scrreen i have three radio buttons that have specific use..

thanks

Read only

0 Likes
930

You need to check the Radiobuttons in the main screen. based on the Tab, and then Radiobutton code and the Radiobutton selection.

Read only

0 Likes
930

Hi,

In the secand sub-screen PAI you should write the logic related to handling variouys functionalities depending on the radio-button selected.

say 210 is the secand sub screen where yuo have designed the 4 radiobuttons, In same the same subscreen create another subscreen which is possible.

Depending on the radiobutton selected call the sub-screen.

if R1 EQ 'X'.

" call sub-screen 211

elseif R2 eq 'X'.

"call sub-screen 212

elsif R3 eq 'X'.

"call sub-screen 213.

elseif r4 eq 'X'.

"call sub-screen 214.

endif.

In order to see how to call sub screen from an screen refer to the standard program DEMO_DYNPRO_SUBSCREENS

Hope this explanation of mine helps,

Rama.

Read only

Former Member
0 Likes
930

solved