Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Parameter Disable

Former Member
0 Likes
2,185

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

8 REPLIES 8
Read only

Former Member
0 Likes
1,300

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

Read only

Former Member
0 Likes
1,300

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

Read only

Former Member
0 Likes
1,300

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

Read only

Former Member
0 Likes
1,300

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

Read only

Former Member
0 Likes
1,300

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

Read only

0 Likes
1,300

what is the syntax to define the third paramter as modif id ?

Read only

0 Likes
1,300

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

Read only

Former Member
0 Likes
1,300

Hi,

Parameters:c type XXXXXX modif-id 'MID'.

if screen-group1 = 'MID'.

screen-input = 0.

modify screen.

endif.

Rgds,

Bujji