Skip to Content

Deletion of RFQ Object using BAPI CV140_LINKS_DELETE

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Mar 18, 2011 at 03:19 PM

    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,


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member


      Which function module is used to get the data associated to the document linked in PO. If I use Function module CLFM_OBJECT_CLASSIFICATION it gives the data in the screen level but I need it in internal table.

      Thanks and Regards,

      Jaiganesh Sekar.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.