‎2009 May 05 7:15 AM
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
‎2009 May 05 7:23 AM
‎2009 May 05 10:07 AM
‎2009 May 05 2:48 PM
‎2009 May 05 3:14 PM
This is probably what you're looking for: [Dynamic Setting of Field Attributes in Table Controls|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/11651] [original link is broken] [original link is broken] [original link is broken];
Rob