Application Development 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: 

PARAMETER field fixed value.

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

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

8 REPLIES 8

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

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

0 Kudos

Thank you Rich.

0 Kudos

Hi

Why only "Thank you Rich"?

I've given you the same solution so: "<u>Thanks guys!</u>"

0 Kudos

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

0 Kudos

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.