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

BAPI_DOCUMENT_CHANGE2: Document info record update object links - DOCUMENTDIRECTION

ana82
Discoverer
0 Likes
1,185

Hi all,

we are using BAPI_DOCUMENT_CREATE2 and BAPI_DOCUMENT_CHANGE2 for the management of supplier invoice documents. We need to pass DOCUMENTDIRECTION to the OBJECTLINKS table to enable navigation from the object link to the document in MIRO. Interestingly, when we manually add the link via gui, the document direction is automatically set to A, visible via BAPI_DOCUMENT_GETDETAIL2. 

ana82_1-1723779393470.png

However, despite our efforts to pass DOCUMENTDIRECTION to BAPI_DOCUMENT_CHANGE2- OBJECTLINKS along with OBJECTTYPE, OBJECTKEY and OBJECTKEY_LONG, our attempts have been unsuccessful. Although, the object link is saved, the document direction A is not retained. 

ana82_0-1723778916197.png

Has anyone in the community encountered this issue before? Your assistance would be greatly appreciated 🙂

 

 

0 REPLIES 0