05-27-2011 2:37 PM
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
05-27-2011 2:41 PM
Hi,
how did u declare the radio buttons?? Post ur code, so we can help u
Regards
05-27-2011 3:32 PM
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
05-27-2011 3:42 PM
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.
05-27-2011 4:33 PM
Hi shanky,
you may check out the transaction ABAPDOCU: They have sample codes (not only) for radiobuttons.
Regards,
Clemens
05-30-2011 7:54 AM