2020 Apr 15 11:31 AM
How to clear selection screen input while clicking on another radio button .both radio button has the same selection screen.
At selection-screen output.
IF p_rec = 'X' .
CLEAR :s_lcdoc[].
ENDIF.
IF p_app = 'X'.
CLEAR : s_lcdoc.
ENDIF.

2020 Apr 15 12:17 PM
rushi24,
You have to deal carefully with the events of the ABAP report, You would have missed the USER COMMAND Keyword.
You have to code your Logic in event AT SELECTION SCREEN OUTPUT.
Below code (Example) should help you on the same.
PARAMETERS: p_rec RADIOBUTTON GROUP rb1 DEFAULT 'X' USER-COMMAND uc,
p_app RADIOBUTTON GROUP rb1.
SELECT-OPTIONS: s_lcdoc FOR vbak-vbeln. * Example
AT SELECTION-SCREEN OUTPUT.
CLEAR: s_lcdoc[].
START-OF-SELECTION.
WRITE: s_lcdoc-low.Regards!
2020 Apr 15 12:51 PM
If you want updates on your selection screen not only when the user hits 'Enter' or 'Executes' (F8) the report, but also when a radio-button is changed (or also checkbox is activated or a listbox item is selected), you have to use the USER-COMMAND option when defining the radiobutton parameter:
>> The addition USER-COMMAND can be used to assign a function code fcode to the first parameter in a radio button group. ... When the user selects any radio button from the radio button group on the selection screen, the runtime environment triggers the event AT SELECTION-SCREEN ...
Side note: An update based on changes for most other selection screen objects (mainly select-options and other parameters) is in general only achieved by pressing the 'Enter' button.
SELECT-OPTIONS: s_lcdoc FOR ... .
PARAMETERS p_rec RADIOBUTTON GROUP gr1 DEFAULT 'X' USER-COMMAND gr1.
PARAMETERS p_app RADIOBUTTON GROUP gr1.
AT SELECTION-SCREEN OUTPUT.
IF p_rec = abap_true.
CLEAR s_lcdoc[].
ENDIF.
IF p_app = abap_true.
CLEAR s_lcdoc. " -> not sure what you are trying to do here, but that doesnt work
" the header structure is always the first item of the select-options
" you can clear it here, but it will not affect the selection screen
" and it will be filled again with the next event, based on s_lcdoc[]
ENDIF.
2020 Apr 15 1:25 PM
when I selecting Input for p_app from multiple selections, it is selected after selecting P_REC it is.
But when I Do same for P_REC, values are not selecting on the selection screen .
2020 Apr 15 4:55 PM
2020 May 13 4:11 PM
rushi24, please follow up on your open question.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |