2

BADI for Material Document header change( MIGO)

 2 years ago
source link: https://answers.sap.com/questions/13705242/badi-for-material-document-header-change-migo.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
2 hours ago

BADI for Material Document header change( MIGO)

21 Views Last edit 53 minutes ago 2 rev

Hi All,

I have a requirement where I have to change Posting Date of Material Document to past date based on some custom configurations & I am looking for a BADI to do that.

Currently the document gets created automatically by Tcode "/DSD/SV_LC_COUNT" & the BADI "MB_MIGO_BADI" is not getting called for these cases for some reason.

Please help me find a suitable BADI for header change or to understand why BADI "MB_MIGO_BADI" is not getting called & how can I fix it.

The Document Type of the material doc. is WA - Goods Issue and the movement types are 344 & 343

Thanks & Regards,

Ganesh

4 comments
57 minutes ago

The Document Type is WA - Goods Issue and the movement types are 344 & 343

Also, break point at above method does not get hit.

Please find below screenshot of MB51

mb51.png
Attachments

mb51.png (11.2 kB)

Hi, These documents are created using MIGO_TR. (Transfer posting)

Try put break point in the followng badi

MB_DOCUMENT_BADI_SAP

Methods : MB_DOCUMENT_BEFORE_UPDATE, MB_DOCUMENT_UPDATE

29 minutes ago

Break point does get a hit for MB_DOCUMENT_BADI_SAP, but all the parameters are Importing type.

There is no changing type parameter in this BADI. How to change Posting Date here?


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK