10-12-2006 6:13 PM
Hi,
In the selection screen I want delivery block p_lifsk as '01' fixed, so that user cannot change the value.
PARAMETERS: P_LIFSK TYPE LIKP-LIFSK DEFAULT '01'.
Please help me.
Thanks
Veni.
10-12-2006 6:22 PM
All you need to do is loop the screen and change the attribute in the AT SELECTION-SCREEN OUTPUT event.
report zrich_0001.
parameters: p_lifsk type likp-lifsk default '01'.
at selection-screen output.
loop at screen.
if screen-name = 'P_LIFSK'.
screen-input = 0.
modify screen.
endif.
endloop.
Regards,
Rich Heilman
10-12-2006 6:15 PM
Hi
PARAMETERS: P_LIFSK TYPE LIKP-LIFSK DEFAULT '01' MODIF ID LIF.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'LIF'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Max
10-12-2006 6:19 PM
Disable that parameter in initilization event.
PARAMETERS: P_LIFSK TYPE LIKP-LIFSK DEFAULT '01'.
INITIALIZATION.
LOOP AT SCREEN.
IF SCREEN-NAME = 'P_LIFSK'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
10-12-2006 6:21 PM
Hi Veni,
If the users are ok if they dont see the parameter on the selection screen then u can use this option
PARAMETERS <p> DEFALUT VALUE '01' NO-DISPLAY
If this is not an option then you can follow the procedure in the other reply...
Cheers
10-12-2006 6:22 PM
All you need to do is loop the screen and change the attribute in the AT SELECTION-SCREEN OUTPUT event.
report zrich_0001.
parameters: p_lifsk type likp-lifsk default '01'.
at selection-screen output.
loop at screen.
if screen-name = 'P_LIFSK'.
screen-input = 0.
modify screen.
endif.
endloop.
Regards,
Rich Heilman
10-12-2006 6:28 PM
10-12-2006 6:34 PM
Hi
Why only "Thank you Rich"?
I've given you the same solution so: "<u>Thanks guys!</u>"
10-12-2006 6:37 PM
Yes, Max's solution is correct also, he just took a different route. You can use MOD IDs to label one field or a group of fields. Doing so will allow you to modify the group of fields instead of checking the NAME of the field for each. You simply check the name of the GROUP1.
So....... Thank You Max!!!
Regards,
Rich Heilman
10-12-2006 6:43 PM
Thank you All of you. This group is very help full for freshers like me.
Thank you Max.
Rich's solution was simple, so used that.
Thank you All.
Regards
Veni.