Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Regarding disable fields in a module pool

Hi

My requirement is i have to disable fields in a module pool according Order Type(VBAK-AUART),Sales Organization(VBAK-VKORG),Distribution Channel(VBAK-VTWEG),Division(VBAK-SPART).

This screen field option should work only for Sales Order Types

ZOL1

ZOL2

ZOL3

ZOL4

ZOL7

ZL08

ZL09

Sales Organization - 1000

Distribution Channel - 10

Division - 20.

so i write the code like this

IF ( VBAK-AUART NE 'ZOL1' or VBAK-AUART NE 'ZOL2 or VBAK-AUART NE 'ZOL3'

or VBAK-AUART NE 'ZOL4' or VBAK-AUART NE 'ZOL7' or VBAK-AUART NE 'ZL08'

or VBAK-AUART NE 'ZL09' ) and ( VBAK-VKORG NE '1000' and

VBAK-VTWEG NE '10' AND VBAK-SPART NE '20' ).

LOOP AT SCREEN.

IF SCREEN-GROUP1 = 'G1'.

SCREEN-INPUT = 0.

SCREEN-ACTIVE = 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

but it is not working......

Waiting for u r reply..

Thanks

Former Member
Not what you were looking for? View more on this topic or Ask a question