Skip to Content
0
Former Member
Apr 29, 2009 at 06:57 AM

Change input fiels dynamically

12 Views

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 ??