‎2008 Feb 05 6:52 AM
Hi Senior ABAP Folks ,
I have three parameters , if my second paramater value is "circle" i have to disable the third parameter .(ie) restrictin the user .
How to achieve this ?.
Kinldy help .
Thanks ,
Jaga
‎2008 Feb 05 6:56 AM
Hi,
Check the below code.
AT SELECTION-SCREEN .
If second_parameter = 'CIRCLE'.
loop at screen.
if screen-name = 'parameter' <Name of the parameter in CAPITAL LETTERS>
screen-input = 0.
modify screen.
endif.
endloop.
endif.
Rgds,
Bujji
‎2008 Feb 05 6:59 AM
you should declare your third parameter like
paramteres: user-id type sy-user modifid G1.
then
AT SELECTION SCREEN OUTPUT.
if <second paramter> = 'X'.
loop at screen .
if group1 = 'G1'.
SCREEN-ACTIVE = '0'.
SCREEN-INPUT = '0'.
SCREEN-OUTPUT = '0'.
MODIFY SCREEN.
endif.
endloop.
ENDIF
TRY THIS CODE.
reward if useful.
vivek
‎2008 Feb 05 7:01 AM
Hi
use this
AT SELECTION-SCREEN ON VALUE-REQUEST FOR Parameter 2.
flag = 1.
at selection screen output.
if not flag initial.
loop at screen.
disable parameter three
endloop.
endif.
Reward if Helpful,
Gaurav J.
.
Edited by: Gaurav Juneja on Feb 5, 2008 8:01 AM
‎2008 Feb 05 7:01 AM
Hi,
try this......
parameters : a,b,c.
data f.
at selection-screen on b.
if b is not initial.
move 'X' to f.
endif.
at selection-screen output.
if f is not initial.
loop at screen.
if screen-name = 'C'.
screen-input = 0.
endif.
modify screen.
endloop.
endif.enter value for second parameter and press enter.
u can also do like dis........
PARAMETERS : first,b USER-COMMAND com,second,third.
AT SELECTION-SCREEN OUTPUT.
IF b IS NOT INITIAL.
LOOP AT SCREEN.
IF screen-name = 'THIRD'.
screen-input = 0.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ELSE.
LOOP AT SCREEN.
IF screen-name = 'SECOND'.
screen-input = 0.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.Cheers,
Will.
Edited by: Will smith on Feb 5, 2008 8:01 AM
‎2008 Feb 05 7:05 AM
Hi,
Give the modif id for third parameter.
then
at selection-screen output.
if second_parameter = 'CIRCLE'.
loop at screen.
if screen-group1 = 'name of that modif id xxx for third parameter'.
screen-input = 0.
modify screen.
endif.
endloop.
Regards,
Kumar
‎2008 Feb 05 7:10 AM
what is the syntax to define the third paramter as modif id ?
‎2008 Feb 05 7:13 AM
Hi Jagadish,
Vivek already mentioned that in his reply:
PARAMETERS: p_userid TYPE sy-uname MODIF ID g1.
Regards,
Aditya
Edited by: Aditya Laud on Feb 5, 2008 2:14 AM
‎2008 Feb 05 7:14 AM
Hi,
Parameters:c type XXXXXX modif-id 'MID'.
if screen-group1 = 'MID'.
screen-input = 0.
modify screen.
endif.
Rgds,
Bujji