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 Buttons

Former Member
0 Likes
803

Hi Guy's,

Please help me friends presently i am working in creation of radio buttons, using se-51 created two radio buttons also assained to one group.

1.Radio Button - Zun1

2.Radio-Button - Zun2

I have 2 doubts:

1. when we work with radio buttons what we need to take care.

2. when press the 1radio button what to display the Zun1-Transation contain information, same like 2 also.. How to work this senario.

Thanks and Regards,

Sai.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
773

and also you need to assign the Function code to the The Radiobutton.

Assigning Fcode to one radiobutton will be automatically assigned to second. (they are grouped)'

in the PAI

module user_command input.

case ok_code.
when 'RADC'.

 if r1 = 'X'.
 "Do some thing here for R1,.
else.
 "Do R2 logic here..
endif.


endcase.

endmodule.

Hi Guy's,

Please help me friends presently i am working in creation of radio buttons, using se-51 created two radio buttons also assained to one group.

1.Radio Button - Zun1

2.Radio-Button - Zun2

I have 2 doubts:

1. when we work with radio buttons what we need to take care.

2. when press the 1radio button what to display the Zun1-Transation contain information, same like 2 also.. How to work this senario.

Thanks and Regards,

Sai.

5 REPLIES 5
Read only

Former Member
0 Likes
774

and also you need to assign the Function code to the The Radiobutton.

Assigning Fcode to one radiobutton will be automatically assigned to second. (they are grouped)'

in the PAI

module user_command input.

case ok_code.
when 'RADC'.

 if r1 = 'X'.
 "Do some thing here for R1,.
else.
 "Do R2 logic here..
endif.


endcase.

endmodule.

Read only

0 Likes
773

Hi vijay,

can you give me some info on my doubts.i am new to abap.

case ok_code.

when 'RADC'.

if r1 = 'X'.

"Do some thing here for R1,.

else.

"Do R2 logic here..

endif.

endcase.

endmodule.

when 'RADC' ??

should i put my function code that i assign to radio buttonm here.

becuse when i am debuuging the code it does not going inside the case condition..

\

Thanks

Kunaal.

Read only

0 Likes
773

I dont think you need use function code to handle your requirement. Straight away go

if r1 eq 'X'.

logic.

elseif r2 eq 'X'.

...

endif.

Regards,

Rama.

Read only

Firoz_Ashraf
Contributor
0 Likes
773

Hi Sai,

Radio Buttons are always grouped.. so even if you create N numbers of radio button only one will be selected at time. These are assigned a Function Code which when selected can be programmed to perform the required funtionality.

For example.

IF ZUN1 = 'X'.

**Do things related to ZUN1**

ELSEIF ZUN2 = 'X.

**Do things related to ZUN2**

ENDIF.

Read only

Former Member
0 Likes
773

Hi,

Check my previous post, it will help you.

With best wishes,

Rama.