Skip to Content
Jul 02, 2013 at 09:23 AM

Automatic Document attachment in Purchase Order


Hello experts,

When a purchase order is created, it is possible to manually assign documents to every item using the button “Documents”.

I want to do this automatically, assigning to every item the documents assigned to the material in the material master. I have tried to use the BAPI DOCUMENT_ASSIGNMENT_DIRECT in BADI ME_PURCHDOC_POSTED~POSTED, but I am having problems (just in the productive environment).

The purchase order is not being saved, PO_CHEK error appears.

Before this I tried to use BAPI_DOCUMENT_CHANGE and it worked for the documents without RMM. The rest of the documents could not be assigned because the RMM was blocked.

Does anybody know why this could happen??