‎2008 May 16 7:20 AM
Dear all,
I have two fields in selection screen sales order & SV Note.
Here if i enter SO,the SV Note field should be disabled & if i enter SV Note, SO field should be disabled.
Can any one give me the code for this ASAP.
Thanks & Regards,
Naresh
‎2008 May 16 7:26 AM
Check this code
PARAMETERS : r_one RADIOBUTTON GROUP r2 USER-COMMAND u2.
PARAMETER : p_one(10) TYPE c.
PARAMETERS : r_two RADIOBUTTON GROUP r2 DEFAULT 'X'.
PARAMETER : p_two(10) TYPE c.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF r_one = 'X'.
IF screen-name = 'P_TWO'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDIF.
IF r_two = 'X'.
IF screen-name = 'P_ONE'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDLOOP.Regards
Gopi
‎2008 May 16 7:29 AM
parameters : p type i.
parameters : d type i.
at selection-screen output.
loop at screen.
if p is not initial.
if screen-name = 'D'.
screen-input = 0.
endif.
endif.
endloop.
user just need to press enter to make that effect
reward if helpful
‎2008 May 16 7:31 AM
Hi Naresh,
Use the following code
select-options : s_order .... modif id 'ABC',
s_sv..........modif id 'DEF'.
at selection-screen.
loop at screen.
if screen-group1 = 'DEF'.
if not s_order is initial and screen-fieldname = 'S_SV'.
screen-input = '0'.
modify screen.
endif.
endif.
endloop.
try this and get back to me incase of any queries.
Dont forget to reward points if found useful.
Thanks,
Satyesh
‎2008 May 16 8:03 AM
Dear gopi,
can you tell me how to use only with the paramaters & i am not using the radio buttons...kindly revert me ASAP
‎2008 May 16 8:14 AM
Hi,
Check the below code.
parameters: p_char type c,
p_num type i.
at selection-screen output.
loop at screen.
if screen-name = 'P_NUM'.
if not p_char is initial.
screen-input = 0.
else.
screen-input = 1.
endif.
endif.
if screen-name = 'P_CHAR'.
if not p_num is initial.
screen-input = 0.
else.
screen-input = 1.
endif.
endif.
modify screen.
endloop.