cancel
Showing results for 
Search instead for 
Did you mean: 

How to add code in userexit_save_document in include MV45AFZZ

Former Member
0 Kudos

Hi experts,

I want to add codes in subroutine userexit_save_document in include MV45AFZZ for the enhancement of sales order creation.

Please give the procedure.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Thanks to all of ur suggestions regarding this issue.

Former Member
0 Kudos

Hi,

Welcome to SDN

U need to get the Access key because that include is a std object.

To obtein the key you need to register the object in your OSS, so you need to have an account for OSS.

https://websmp208.sap-ag.de/~SAPIDP/002006825000000234912001E

If you hadn't one you should ask your basis to register the object.

Regards

Former Member
0 Kudos

Hi

Take the access Key and find the correct place for the Requirement (correct Form..Endform) and write the code

there will be structures/internal tables like VBAK,XVBAK,YVBAK at header level and

VBAP,XVBAP abd YVBAP

so keep a breakpoint and check for the values in these itabs and use the code

Regards

Anji

Former Member
0 Kudos

first time, if you want to write the code then it will ask the access key, get it from Basis team and apply and then you can very well write your own logic.

Reward if it is useful.

Thanks,

Srinivas

Former Member
0 Kudos

Hi Srinivas,

Open the include in change mode If you are 1st opening this it will asks access key It should get from your Basis team, once you get open this include, in that include you can find the form exit userexit_save_document in that form you have to implement your own logic and activate it.

you can find the form in the include like this

----


  • FORM USEREXIT_SAVE_DOCUMENT *

----


  • This userexit can be used to save data in additional tables *

  • when a document is saved. *

  • *

  • If field T180-TRTYP contents 'H', the document will be *

  • created, else it will be changed. *

  • *

  • This form is called at from form BELEG_SICHERN, before COMMIT *

  • *

----


FORM USEREXIT_SAVE_DOCUMENT.

ENDFORM.

in between form endform. you have to implement your logic.

Regards

Ganesh