2014 Nov 04 1:12 PM
Hi,
I did search the forum and google, tried various codes, none worked.
I need to hide p_fifom when the user selects the precept radio button.
This is how my selection screen is layed out at the moment:
SELECTION-SCREEN BEGIN OF BLOCK main WITH FRAME.
PARAMETERS: p_fifom TYPE v_my02-method OBLIGATORY MODIF ID fif,
p_plant TYPE v_my03-myfky OBLIGATORY MATCHCODE OBJECT sh_t001w_exts.
SELECT-OPTIONS:
s_matnr FOR mara-matnr MATCHCODE OBJECT s_mat1.
PARAMETERS: p_fifo RADIOBUTTON GROUP rad1 USER-COMMAND rad DEFAULT 'X',
p_recpt RADIOBUTTON GROUP rad1.
SELECTION-SCREEN END OF BLOCK main.
AT SELECTION-SCREEN OUTPUT.
IF p_recpt = 'X'.
LOOP AT SCREEN.
IF screen-name = 'FIF'.
screen-active = '0'.
screen-input = '0'.
screen-output = '0'.
screen-invisible = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
PLEASE HELP!
Thank you guys,
Daniel.
2014 Nov 04 1:18 PM
Hi Daniel,
your two radiobuttons must be link to a command.
after that you have to take the user-command event. AT USER-COMMAND ...
regards
Fred
2014 Nov 04 1:20 PM
Write as:
IF p_recpt = 'X'. Remove this
LOOP AT SCREEN.
IF screen-name = 'FIF' AND p_recpt = 'X'.
screen-active = '0'.
screen-input = '0'.
screen-output = '0'.
screen-invisible = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.