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

Change input fiels dynamically

Former Member
0 Likes
375

I have a perform named adjust screen.

&----


*& Form ADJUST_SCREEN

&----


  • text

----


  • --> p1 text

  • <-- p2 text

----


FORM ADJUST_SCREEN .

IF P_MBATCH = 'X'.

LOOP AT SCREEN.

IF SCREEN-NAME = 'P_FILE'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ELSEIF P_MFILE = 'X'.

LOOP AT SCREEN.

IF SCREEN-NAME = 'P_TEXT'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

IF SCREEN-NAME = 'P_FORCOL'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

IF SCREEN-NAME = 'P_LANGU'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

IF SCREEN-NAME = 'S_MATNR'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

ENDFORM. " ADJUST_SCREEN

My programm works in two modes. The problem is that i can't "lock" the select options' field named s_matnr. The parameter fields work fine with "SCREEN-INPUT = 0." . Anyone know the reason ??

1 ACCEPTED SOLUTION
Read only

dev_parbutteea
Active Contributor
0 Likes
349

Hi,

use

screen-name = 'S_MATNR-LOW' or screen-name = 'S_MATNR-HIGH'

Regards.

2 REPLIES 2
Read only

dev_parbutteea
Active Contributor
0 Likes
350

Hi,

use

screen-name = 'S_MATNR-LOW' or screen-name = 'S_MATNR-HIGH'

Regards.

Read only

0 Likes
349

THX, that solved my problem.