‎2014 Mar 08 8:56 AM
Hi all,
i have to provide some user's to change the sales order related stuff, in VA02
transaction, i have searched this forum but get confused in which user exit should
i write my code.
Please suggest me the required user exits.
‎2014 Mar 08 11:03 AM
Hi,
please see these user exit in program MV45AFZZ
FORM USEREXIT_FIELD_MODIFICATION.
FORM USEREXIT_SAVE_DOCUMENT_PREPARE
I will prefer latter one for your need.
‎2014 Mar 08 11:03 AM
Hi,
please see these user exit in program MV45AFZZ
FORM USEREXIT_FIELD_MODIFICATION.
FORM USEREXIT_SAVE_DOCUMENT_PREPARE
I will prefer latter one for your need.
‎2014 Mar 08 11:10 AM
Hi Sanjeev,
can you please tell me the difference between these two user-exits ?
‎2014 Mar 08 11:27 AM
Hi Srikant,
here is the difference between these two user exits
FORM USEREXIT_FIELD_MODIFICATION -> by using this user exit you can enable/disable any screen fields
FORM USEREXIT_SAVE_DOCUMENT_PREPARE -> changes or checks, before a document is saved.
Please see this wiki link for better understandings about user exit.
SAP Library - System Modifications
‎2014 Mar 08 11:38 AM
‎2014 Mar 08 11:09 AM
Hi Srikant,
Try this
In USEREXIT_SAVE_DOCUMENT_PREPARE of MV45AFZZ
if vbak-vbtyp = 'B' and t180-trtyp = 'V' and r185D-dataloss = 'X'.
if sy-uname <> "selected user".
message ......
endif.
endif.