Skip to Content
0
Former Member
Oct 08, 2014 at 09:59 AM

VA02 USEREXIT_SAVE_DOCUMENT_PREPARE

350 Views

Hi All,

I am working on FORM USEREXIT_FIELD_MODIFICATION.my requirement is that when user uses VA02 to change a sale order and suppose he forget to fill the entry in "Tax classification" it should show an error.I have added following enhancement code in the user exit 'MV45AFZZ' .now its working.

ENHANCEMENT 313 OIU_LO_SAPMV45A. "inactive version

if sy-tcode = 'VA02' .

IF VBAP-TAXM1 = ' ' '.

MESSAGE ' Enter Tax classifc ..... ' type 'E'.

ENDIF.

endif.


But m facing one problem now.suppose I enter tcode VA02.Fill the order no. and press enter.It shows sale order now if i select a line item press SAVE button directly without making any chages it showing the same error.Can anyone help me with this problem.

Thanks in advance.