08-21-2009 6:01 AM
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.
08-21-2009 9:49 AM
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.
08-21-2009 10:13 AM
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,
08-27-2009 10:41 AM
HI Jaideep Sharma,
your code will work for fields in header level but my requriment is to block in item level.
07-26-2010 11:59 AM
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.