on 02-08-2011 7:02 AM
Dear Expert,
While creating RFQ from PO, RFQ number is also getting linked to EKPO(PO) object link in document management system. now customer doesn't want RFQ to be linked to PO object link but i can see function module CV140_LINKS_DELETE to delete object link from DRAD table. while executing function module i am unable to delete object link from the document.
any one has used CV140_LINKS_DELETE function module to delete object link? i am calling this function module in the BADI method.
Thanks in advance
Bhuwan Tiwari
Dear Tiwari,
based on your desciption I think that a better solution would be to use the API_DOCUMENT_MAINTAIN2 function module to delete the object link for the document info record and table DRAD.
I would suggest you to read out the current data with BAPI_DOCUMENT_GETDETAIL2 first and then hand this data over to BAPI_DOCUMENT_CHANGE2 or API_DOCUMENT_MAINTAIN2. During the handover please made sure that the entry in table OBJECTLINKS got the deletion indicator assigned. Then after the function module is executed the object link should be removed form the document and from table DRAD correctly. Maybe you have to execute also BAPI_TRANSACTION_COMMIT too.
Best regards,
Christoph
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.