‎2012 Oct 20 10:33 PM
Hello Experts,
I've added 3 custom fields in Sales Order transaction. For TCODE VA01 and VA02 my fields are enable (which is required) but in case of VA03 fields are also editable. Please advice what I should change to disable my custom fields like other fields if TCODE is VA03.
Many thanks in advance.
‎2012 Oct 21 5:48 PM
in MV45AFZZ, you can try below code.
FORM USEREXIT_FIELD_MODIFICATION.
if sy-tcode = 'VA03'.
if SCREEN-NAME = 'VBAK-ZZFIELD1'.
SCREEN-ACTIVE = 0.
Modify screen.
endif.
endif.
ENDFORM.
‎2012 Oct 21 5:48 PM
in MV45AFZZ, you can try below code.
FORM USEREXIT_FIELD_MODIFICATION.
if sy-tcode = 'VA03'.
if SCREEN-NAME = 'VBAK-ZZFIELD1'.
SCREEN-ACTIVE = 0.
Modify screen.
endif.
endif.
ENDFORM.