<?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 CV02N, BEFORE_SAVE, DRAD empty ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cv02n-before-save-drad-empty/m-p/7768919#M1584357</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;Background.&lt;/P&gt;&lt;P&gt;1. I have created document via CV01N, attached a file to it and linked an object to it.&lt;/P&gt;&lt;P&gt;2. I wanted to modify the document via CV02N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working with BADI DOCUMENT_MAIN01. Have implemented method BEFORE_SAVE where I need to perform a few checks(whether a filename is attached and an object is linked).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that in BEFORE_SAVE the table with linked objects ( DRAD ) is empty, but the object itself is linked to the document because it is visible on the linked objects tab. The thing is, when I create a document - BEFORE_SAVE method works ok, DRAD is populated. But when I try to edit it afterwards, DRAD is empty unless I open the linked objects tabstrip before saving.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Long story short.&lt;/P&gt;&lt;P&gt;1. CV01N -&amp;gt; attach file, link an object -&amp;gt; SAVE -&amp;gt; BEFORE_SAVE: DRAD is populated&lt;/P&gt;&lt;P&gt;2. CV02N -&amp;gt; SAVE -&amp;gt; BEFORE_SAVE: DRAD is empty&lt;/P&gt;&lt;P&gt;3. CV02N -&amp;gt; open linked objects tabstrip -&amp;gt; SAVE -&amp;gt; BEFORE_SAVE: DRAD is populated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Couldn't find a note to fix this behavior, any clues ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Mar 2011 07:09:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-03-11T07:09:17Z</dc:date>
    <item>
      <title>CV02N, BEFORE_SAVE, DRAD empty ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cv02n-before-save-drad-empty/m-p/7768919#M1584357</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;Background.&lt;/P&gt;&lt;P&gt;1. I have created document via CV01N, attached a file to it and linked an object to it.&lt;/P&gt;&lt;P&gt;2. I wanted to modify the document via CV02N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working with BADI DOCUMENT_MAIN01. Have implemented method BEFORE_SAVE where I need to perform a few checks(whether a filename is attached and an object is linked).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that in BEFORE_SAVE the table with linked objects ( DRAD ) is empty, but the object itself is linked to the document because it is visible on the linked objects tab. The thing is, when I create a document - BEFORE_SAVE method works ok, DRAD is populated. But when I try to edit it afterwards, DRAD is empty unless I open the linked objects tabstrip before saving.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Long story short.&lt;/P&gt;&lt;P&gt;1. CV01N -&amp;gt; attach file, link an object -&amp;gt; SAVE -&amp;gt; BEFORE_SAVE: DRAD is populated&lt;/P&gt;&lt;P&gt;2. CV02N -&amp;gt; SAVE -&amp;gt; BEFORE_SAVE: DRAD is empty&lt;/P&gt;&lt;P&gt;3. CV02N -&amp;gt; open linked objects tabstrip -&amp;gt; SAVE -&amp;gt; BEFORE_SAVE: DRAD is populated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Couldn't find a note to fix this behavior, any clues ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 07:09:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cv02n-before-save-drad-empty/m-p/7768919#M1584357</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-11T07:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: CV02N, BEFORE_SAVE, DRAD empty ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cv02n-before-save-drad-empty/m-p/7768920#M1584358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Bartosz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I faced the same problem and found the reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note 396960 - BADIS notes on the use of BADIS:&lt;/P&gt;&lt;P&gt;Problem:&lt;/P&gt;&lt;P&gt;If in method BEFORE_SAVE in Badi DOCUMENT_MAIN01 the object links should be read from table DRAD, then this does not contain any data. The object links were not displayed before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution:&lt;/P&gt;&lt;P&gt;Due to the performance the object links are only read in the transaction when being called. By using function module cv110_doc_data_get the system can be forced to read the data of table DRAD via parameter PF_READ_DRAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will be useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 14:55:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cv02n-before-save-drad-empty/m-p/7768920#M1584358</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-29T14:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: CV02N, BEFORE_SAVE, DRAD empty ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cv02n-before-save-drad-empty/m-p/7768921#M1584359</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;A bit late response, thanks for input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, &lt;/P&gt;&lt;P&gt;Bart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 07:53:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cv02n-before-save-drad-empty/m-p/7768921#M1584359</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-22T07:53:35Z</dc:date>
    </item>
  </channel>
</rss>

