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

Parameters

Former Member
0 Likes
570

Friends,

I am having a parameter field in which I display a default value.

I should prevent users from editing the field-This field should be used only for display.

Is there any parameter options through which we can acheive the same.

Regards,

Usha

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
553

In your AT SELECTION-SCREEN OUTPUT event have this code.


LOOP AT screen.
  IF screen-name = 'MYPARAM'.
    screen-input = 0.
    MODIFY screen.
  ENDIF.
ENDLOOP.

Please reward and close the post if resolved.

3 REPLIES 3
Read only

Former Member
0 Likes
554

In your AT SELECTION-SCREEN OUTPUT event have this code.


LOOP AT screen.
  IF screen-name = 'MYPARAM'.
    screen-input = 0.
    MODIFY screen.
  ENDIF.
ENDLOOP.

Please reward and close the post if resolved.

Read only

0 Likes
553

Parameters : P_field1 like <....>

At selection-screen output.

LOOP AT SCREEN.

Check screen-name = 'P_FIELD1'.

screen-input = 0.

MODIFY screen. EXIT.

ENDLOOP.

regards

gv

Read only

Bema
Active Participant
0 Likes
553

Hi Usha,

Parameters : p type c default 'B'.

At selection-screen output.

LOOP AT SCREEN.

Check screen-name = 'p'.

screen-input = 0.

MODIFY screen.

ENDLOOP.