Application Development 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: 

Make Item level field Non-Editable in VA01

Bhushan_hs
Participant
0 Kudos

Dear Experts,

I have a requirment to make ITEM Category field in item level of VA01

make Non-editable based on the value of Sale order Type in the main screen

i am using Program MV45AFZZ to make necessary changes i am able change any thing on the header level but i am not geting the control of item level Please suggest me how to change or make fields non-editable in Item level.

4 REPLIES 4

former_member262988
Active Contributor
0 Kudos

Hi,

use the form USEREXIT_FIELD_MODIFICATION and check

CASE SCREEN-GROUP3.

  • WHEN '900'.

  • IF VBAP-VBTYP NE 'A'.

  • SCREEN-ACTIVE = 0.

  • ENDIF.

  • ENDCASE.

Thanks,

Shailaja Ainala.

jaideepsharma
Active Contributor
0 Kudos

Hi,

Try writing code in FORM userexit_field_modification.

*** Lock field pricing date in SO if delivery occured
  IF   screen-name = 'VBAP-PSTYV'  AND
       sy-tcode NE 'VA01' AND l VBAK-AUART EQ 'your document type'.

      screen-input = 0.
  ENDIF.

ENDFORM.                    "USEREXIT_FIELD_MODIFICATION

KR Jaideep,

0 Kudos

HI Jaideep Sharma,

your code will work for fields in header level but my requriment is to block in item level.

Bhushan_hs
Participant
0 Kudos

I found my own solution with out any help. here i am telling how i fulfilled my requirment so that it will be usefull for others.

Solution:

First i created a screen variant for VA01 by blocking Item Category Field after this we can assign this screen variant for required order Type in VOV8(Functional person will be knowing better) where Item Category field has to be Blocked.