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

disable parameters field?

Former Member
0 Likes
640

Hi everybody,

is it possible to disable a <b>parameters</b> (like in HTML) ?

Thanks Ragards Mario

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
616

Yes you can do that


parameters: p_check type c.
parameters: p_group type c.
 
 
 
at selection-screen output.
 
  loop at screen.
    if screen-name = 'P_GROUP'.
     screen-input = '0'.
      modify screen.
    endif.
  endloop.
 
start-of-selection.
 
  if sy-slset <> space.
    clear p_group.
  endif.

Regards,

Santosh

Hi everybody,

is it possible to disable a <b>parameters</b> (like in HTML) ?

Thanks Ragards Mario

3 REPLIES 3
Read only

Former Member
0 Likes
617

Yes you can do that


parameters: p_check type c.
parameters: p_group type c.
 
 
 
at selection-screen output.
 
  loop at screen.
    if screen-name = 'P_GROUP'.
     screen-input = '0'.
      modify screen.
    endif.
  endloop.
 
start-of-selection.
 
  if sy-slset <> space.
    clear p_group.
  endif.

Regards,

Santosh

Read only

Former Member
0 Likes
616

hi

yes it is possible.

u have to declare MODIF ID for the parameters you want to disable

you have to write an event AT SELECTION-SCREEN OUTPUT.

and using LOOP AT SCREEN, you can disable the parameters.

pls refer to the following link for sample code:

http://help.sap.com/saphelp_nw04/helpdata/en/79/34a234d9b511d1950e0000e8353423/content.htm

thanks

pavan

Read only

Former Member
0 Likes
616

try this code at the pbo of the screen i.e.

PARAMETERS : P_MATNR LIKE MARA_MATNR.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-NAME = 'P_MATNR'.

SCREEN-INPUT = '0'.

SCREEN-OUTPUT = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

REGARDS

SHIBA DUTTA