on 07-24-2007 5:22 AM
how to change the parameter field to be unchangable..... for example if we are have some values in the parameter it should not be changed in the output screen........... ???????
i think it is not possiable .
PARAMETERS <p>[(<length>)] [TYPE <type>|LIKE <obj>] [DECIMALS <d>]
[DEFAULT <f>]
[MEMORY ID <pid>]
[LOWER CASE]
[OBLIGATORY]
[VALUE CHECK]
[AS CHECKBOX]
[RADIOBUTTON GROUP <radi>]
[NO-DISPLAY]
[MODIF ID <key>].
Declares a variable <p>, as in the DATA statement. For <p>, an input field appears on the corresponding selection screen. The additions allow you to define default values, accept lowercase input, define the field as required, check values, define a checkbox or radio button, prevent the field from being displayed on the selection screen, or modify the field
else supports try.
at selection screen
loop at screen..
parameter
invisable = 'x'
endloop.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I think you need to post your questions in one of the ABAP forums - you will get far more responses there (I stumbled over this one).
To achieve what you want, you can use the "at selection-screen output" event and "loop at screen" logic to prevent data being entered into the screen - see the example below.
cheers
Jonathan
report zlocal_jc_lock_field.
parameters:
p_fielda like sy-datum default sy-datum,
p_fieldb like sy-datum default sy-datum.
at selection-screen output. "just before screen is displayed
perform at_selection_screen_output.
form at_selection_screen_output.
loop at screen.
if screen-name cs 'P_FIELDB'.
screen-input = '0'.
modify screen.
endif.
endloop.
endform.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.