on 07-07-2021 9:46 PM
hi,
i want a dropdown box after clicking radiobutton?
please help me.
Regards,
priyanka gore.
Hello,
This should be close to what you want to achieve:
PARAMETERS:
p_hidedd RADIOBUTTON GROUP rg1 DEFAULT 'X' USER-COMMAND ddn,
p_showdd RADIOBUTTON GROUP rg1,
p_dropdn AS LISTBOX VISIBLE LENGTH 30 MODIF ID ddg.
AT SELECTION-SCREEN OUTPUT.
IF p_hidedd = abap_true.
cl_selection_screen=>get_instance( )->set_field( |P_DROPDN| )->hide_group( |DDG| ).
ELSE.
DATA: drop_down_filled TYPE abap_bool.
IF drop_down_filled = abap_false.
drop_down_filled = abap_true.
DATA(drop_down_values) = VALUE vrm_values( ( key = |Key1| text = |Text1| )
( key = |Key2| text = |Text2| ) ).
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'P_DROPDN'
values = drop_down_values[]
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
IF sy-subrc <> 0.
CLEAR: p_dropdn.
ENDIF.
ENDIF.
ENDIF.
The dropdown(P_DROPDN) will be completely hidden and will open up as a field on the screen only if you click RB-2(P_SHOWDD)
Regards,
Nikhil Rao
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
I want two radio button one is employee and other one is department after i click on employee radio button and open employee dropdown box same as above department using internal table.
regards.
priyanka gore.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.