<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SAP DMS; function module to delete object links table DRAD in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-dms-function-module-to-delete-object-links-table-drad/m-p/3851923#M925978</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, please update this message with your results so that future SDN'ers can benefit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One last thing that I wanted to mention:  The standard DMS functionality appears to be to set the deletion indicator before deleting a linked document (again, I'm no expert on DMS).  Instead of 'CV140_LINKS_DELETE' it might be safer for you to use 'CV140_LINKS_DELFLAG_SET'.  Of course that depends on how your requirement is specified.  I just thought I'd throw that out there for you to think about.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jamie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 May 2008 16:25:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-14T16:25:23Z</dc:date>
    <item>
      <title>SAP DMS; function module to delete object links table DRAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-dms-function-module-to-delete-object-links-table-drad/m-p/3851919#M925974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are looking for  a function module or bapi to delete the object links in a document. See transaction CV03n.&lt;/P&gt;&lt;P&gt;We need to delete only the object links from a document version (table DRAD) but do not want to delete the document in itself.&lt;/P&gt;&lt;P&gt;we found BAPI_DOCUMENT_DELETE but it deletes of the entire document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if anyone knows any bapi or FM to delete object links of a document please let us know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Simmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 15:21:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-dms-function-module-to-delete-object-links-table-drad/m-p/3851919#M925974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T15:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAP DMS; function module to delete object links table DRAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-dms-function-module-to-delete-object-links-table-drad/m-p/3851920#M925975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simmi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function module 'CV140_LINKS_DELETE' should do the trick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jamie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 17:55:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-dms-function-module-to-delete-object-links-table-drad/m-p/3851920#M925975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T17:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAP DMS; function module to delete object links table DRAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-dms-function-module-to-delete-object-links-table-drad/m-p/3851921#M925976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have included an &lt;STRONG&gt;&lt;U&gt;example&lt;/U&gt;&lt;/STRONG&gt; program below.  Your solution will not be exactly the same as the sample program, but at least you can see the various functions that go along with 'CV140_LINKS_DELETE'.  Note that I am no expert in this area and my answer does not come from an actual productive solution, but I was able to determine how SAP standard performs the document links deletion which allowed me to write the example program.  Also note that the example program &lt;STRONG&gt;&lt;U&gt;WILL DELETE&lt;/U&gt;&lt;/STRONG&gt; actual data from table DRAD, so your solution should contain the appropriate controls to prevent unwanted loss of data.  The purpose of this example program is just to show one way that a document link can be deleted.  Here's the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT zjrg_drad_link_delete .

PARAMETERS: p_doknr	LIKE	draw-doknr OBLIGATORY,
            p_dokar	LIKE	draw-dokar OBLIGATORY,
            p_dokob	LIKE	drad-dokob OBLIGATORY,
            p_objky	LIKE	drad-objky OBLIGATORY,
            p_doktl	LIKE	drad-doktl OBLIGATORY,
            p_dokvr	LIKE	drad-dokvr OBLIGATORY.

DATA: l_drad  TYPE drad.

l_drad-doknr = p_doknr.
l_drad-dokar = p_dokar.
l_drad-dokob = p_dokob.
l_drad-objky = p_objky.
l_drad-doktl = p_doktl.
l_drad-dokvr = p_dokvr.

* Get the documents entered on the selection screen
CALL FUNCTION 'CV140_LINKS_CREATE_WORKAREA'
     EXPORTING
          ps_drad      = l_drad
     EXCEPTIONS
          not_found    = 1
          record_exist = 2
          OTHERS       = 3.
IF sy-subrc &amp;lt;&amp;gt; 0.
  MESSAGE s001(00) WITH 'Could not create link work area.'.
  EXIT.
ENDIF.

* Change buffer by deleting the entry entered on the selection screen
CALL FUNCTION 'CV140_LINKS_DELETE'
     EXPORTING
          pf_doknr        = p_doknr
          pf_dokar        = p_dokar
          pf_dokob        = p_dokob
          pf_objky        = p_objky
          pf_doktl        = p_doktl
          pf_dokvr        = p_dokvr
     EXCEPTIONS
          not_found       = 1
          error_enque     = 2
          error_authority = 3
          OTHERS          = 4.
IF sy-subrc &amp;lt;&amp;gt; 0.
  MESSAGE s001(00) WITH 'Could not delete link.'.
  EXIT.
ENDIF.

* Update database
CALL FUNCTION 'CV140_LINKS_SAVE'
     EXCEPTIONS
          error  = 1
          OTHERS = 2.
IF sy-subrc &amp;lt;&amp;gt; 0.
  MESSAGE s001(00) WITH 'Could not delete link.'.
ELSE.
  COMMIT WORK.
  MESSAGE s001(00) WITH 'Link was deleted from DRAD.'.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jamie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 16:09:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-dms-function-module-to-delete-object-links-table-drad/m-p/3851921#M925976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T16:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAP DMS; function module to delete object links table DRAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-dms-function-module-to-delete-object-links-table-drad/m-p/3851922#M925977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jamie.&lt;/P&gt;&lt;P&gt;Will update you if this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 16:19:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-dms-function-module-to-delete-object-links-table-drad/m-p/3851922#M925977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T16:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAP DMS; function module to delete object links table DRAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-dms-function-module-to-delete-object-links-table-drad/m-p/3851923#M925978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, please update this message with your results so that future SDN'ers can benefit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One last thing that I wanted to mention:  The standard DMS functionality appears to be to set the deletion indicator before deleting a linked document (again, I'm no expert on DMS).  Instead of 'CV140_LINKS_DELETE' it might be safer for you to use 'CV140_LINKS_DELFLAG_SET'.  Of course that depends on how your requirement is specified.  I just thought I'd throw that out there for you to think about.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jamie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 16:25:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-dms-function-module-to-delete-object-links-table-drad/m-p/3851923#M925978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T16:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAP DMS; function module to delete object links table DRAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-dms-function-module-to-delete-object-links-table-drad/m-p/3851924#M925979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its the other way round.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to delete the object links in order to set the delete indicator flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;'CV140_LINKS_DELETE' &lt;/SPAN&gt; , you delete the object links and then you could easily set the delete indicator flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful,&lt;/P&gt;&lt;P&gt;Shubhendu &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 20:07:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-dms-function-module-to-delete-object-links-table-drad/m-p/3851924#M925979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-29T20:07:42Z</dc:date>
    </item>
  </channel>
</rss>

