Application Development 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: 

Issue in Radio buttons in module pool

Former Member
0 Kudos

Hi,

I have a issue in module pool.

I have two radio buttons, when i am clicking the radio button, the cursor is not pointing to the function code RADIO but if a break-point is placed then the debugger is stopping. can any one tell me what can be done to make the debugger.

Kindly help me in this regards,

shankar

5 REPLIES 5

former_member203305
Active Contributor
0 Kudos

Hi,

how did u declare the radio buttons?? Post ur code, so we can help u

Regards

Former Member
0 Kudos

Hi,

WHEN 'RADIO'.

*BREAK-POINT.

  • loop AT SCREEN where group1 = '001'.

LOOP AT SCREEN .

IF screen-name = 'RADIO1'.

IF rc = 0.

IF screen-name = zhr05-rpres AND screen-name = zhr05-trfrn

AND screen-name = zhr05-tfrdp.

screen-active = '0'.

screen-invisible = '0'.

ENDIF.

ELSE.

EXIT.

ENDIF.

ELSEIF screen-NAME = 'RADIO2'.

  • if rc = 0.

  • if

  • if screen-VALUES_IN_COMBO = 'TRANSFER'.

*

  • endif.

ENDIF.

ENDLOOP.

Function Code - RADIO.

For Radio Button 1 - Group1 - 001

For Radio Button 2 - Group 1 - 002.

Thanks,

shankar

former_member191735
Active Contributor
0 Kudos

Where did you place the debugger?

however, few key points to remember with radio buttons in module programming

1) Group the radio buttons

2) assign FctCode to the radio button group (if assigned to one radio button and grouped the radio buttons, this setting will automatically get assigned to other radio buttons)

3) Though, you use FctCode, it is not a Fcode and don't need to handle with sy-ucomm. You can always say, RB1 = 'X' instead of case Sy-ucomm.

If debugger is working and you could stop at break point then it is matter of writing proper statements.

Finally, i really didnt understand your question. post it clearly.

Clemenss
Active Contributor
0 Kudos

Hi shanky,

you may check out the transaction ABAPDOCU: They have sample codes (not only) for radiobuttons.

Regards,

Clemens

Former Member
0 Kudos

Re-structured the code and some changes helped it