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

How to control custom fields

former_member295881
Contributor
0 Likes
1,172

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
771

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.

1 REPLY 1
Read only

Former Member
0 Likes
772

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.