‎2007 Apr 19 12:11 PM
Hi,
I have two radio buttons.
I want to fill the select-options (account group ktokk) when i click a radio button.
I tried to fill them at INITIALIZATION event. But it is not working.
Is it possible to do so.
Please answer my question.
Thanks
Rekha
‎2007 Apr 19 12:14 PM
hi
chk this code sample:
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/abapProgramtogenerateselect-options+dynamically&
**reward if helpful
regards,
madhu
‎2007 Apr 19 12:14 PM
hi
chk this code sample:
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/abapProgramtogenerateselect-options+dynamically&
**reward if helpful
regards,
madhu
‎2007 Apr 19 12:18 PM
Hi rekha,
try like this.
TABLES:vbak.
PARAMETERS:p_1 RADIOBUTTON GROUP g1 USER-COMMAND cmd1,
p_2 RADIOBUTTON GROUP g1.
SELECT-OPTIONS:s_vbeln for vbak-vbeln.
*SELECTION-SCREEN :PUSHBUTTON /2(10) but1 USER-COMMAND fcode .
*INITIALIZATION.
but1 = 'GET List'.
AT SELECTION-SCREEN.
IF p_1 = 'X'.
s_vbeln-low = '1000'.
s_vbeln-option = 'EQ'.
s_vbeln-sign = 'I'.
APPEND s_vbeln.
ELSE.
REFRESH s_vbeln.
ENDIF.
‎2007 Apr 19 12:19 PM
INITIALISATION event is called once only at the start.
If you press particular radio button, you can that code
at user command. by giving FCODE for the selct option field & then check it at at user coomand & try to fill the select option
Sandeep
Reward if helpful
‎2007 Apr 19 12:22 PM
Hi,
Try doing that in AT SELECTION-SCREEN event by giving Radio button a User command.
with regards,
Jay
‎2007 Apr 19 12:22 PM
YOU HAVE TO CODE IN AT SELECTION-SCREEN OUTPUT...
PARAMETERS : R1 RADIOBUTTON GROUP RG1 USER-COMMAND PRES,
R2 RADIOBUTTON GROUP RG1 .
AT SELECTION-SCREEN OUTPUT.
IF R2 = 'X'.
SELECT <FIELD> FROM <DBTAB> INTO <PARAMETER NAME> WHERE....
ENDIF.
REGARDS
SHIBA DUTTA