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

User exit needed

Former Member
0 Likes
723

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.

1 ACCEPTED SOLUTION
Read only

former_member187748
Active Contributor
0 Likes
695

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.

5 REPLIES 5
Read only

former_member187748
Active Contributor
0 Likes
696

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.

Read only

0 Likes
695

Hi Sanjeev,

can you please tell me the difference between these two user-exits ?

Read only

0 Likes
695

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


            

Read only

0 Likes
695

Thanks a Lot Sanjeev

Read only

Former Member
0 Likes
695

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.