‎2006 Aug 21 6:46 AM
Hi
I have defined a selection screen which contains Dropdown box and few input boxes using 'select-options'.
i need to make few input boxes into display mode, if a particular option is selected at Dropdown box..
How to code for this scenario..??
‎2006 Aug 21 6:49 AM
‎2006 Aug 21 6:49 AM
‎2006 Aug 21 6:57 AM
first of all you must group your fields like that.
select-options : a for b MODIF ID GRP.
at selection-screen output.
if dropdownvalue eq X.
loop at screen.
if screen-group1 eq 'GRP'.
screen-input = 0.
else.
screen-input = 1.
endif.
modify screen.
endloop.
endif.
ibrahim
‎2006 Aug 21 7:41 AM
Hi
In selection screen declare drop-down with user-command hide
and in at selection-screen output
loop at screen .
case screen-group1.
when <varable>
screen-required = 0.
screen-input = 0.
screen-invisible = 1.
endcase .
modify screen.
endloop.
‎2006 Aug 21 6:51 AM
HI,
check this report.
<b>REPORT zwa_test2.
TYPE-POOLS : vrm.
tables: bkpf.
DATA : values TYPE vrm_values.
DATA : wa LIKE LINE OF values.
PARAMETERS : field(10) TYPE c AS LISTBOX VISIBLE LENGTH 10 MODIF id abc.
select-options: a for bkpf-bukrs MODIF ID buk.
select-options: b for bkpf-belnr MODIF ID SEL.
at selection-screen output.
If field = 1.
loop at screen.
if screen-group1 = 'SEL'.
screen-input = 0.
modify screen.
endif.
endloop.
endif.
INITIALIZATION.
wa-key = '1'.
wa-text = 'Orange'.
APPEND wa TO values.
wa-key = '2'.
wa-text = 'Red'.
APPEND wa TO values.
wa-key = '3'.
wa-text = 'Blue'.
APPEND wa TO values.
wa-key = '4'.
wa-text = 'Gray'.
APPEND wa TO values.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'FIELD'
values = values
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.</b>Regards,
HRA
‎2006 Aug 21 6:52 AM
Hai Pavan,
You can change to display mode in the event
AT SELECTION-SCREEN OUTPUT.
Check the app. condition here.
‎2006 Aug 21 6:54 AM
Hello Pavan,
you can do like this as below:
Parameters p_matnr like mara-matnr as list-box visible length 18 user-command UC01.
select-options : so_werks for marc-werks.
At selection-screen output.
Loop at screen.
If screen-name CS 'SO_WERKS'.
if P_matnr eq <Condition>.
screen-input = 0.
Modify screen.
Endif.
Endif.
Reward points if helps.
Thanks,
Krishnakumar
‎2006 Aug 21 7:21 AM
HI
GOOD
you check like this
if that particular field having value or it is checked you make that inupt box as
screen-boxname - 1
and
screen-boxname -0
thanks
mrutyun