<?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: Requested delivery date in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/requested-delivery-date/m-p/1127506#M110761</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know how the READ with the option COMPARING works(never used it!!!), but as Lanka pointed out, there is a possibility of having more than one schedule line for a given line item of the sales order. So instead of a READ, please use a loop as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT xvbap INTO lf_vbap.
  ls_tmp-posnr = lf_vbap-posnr.
  LOOP AT xvbep INTO ls_tmp WHERE vbeln = xvbap-vbeln
                              AND posnr = xvbap-posnr.
*-- do whatever you want to do here using EDATU
  ENDLOOP.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jan 2006 15:12:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-12T15:12:12Z</dc:date>
    <item>
      <title>Requested delivery date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/requested-delivery-date/m-p/1127502#M110757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using USEREXIT_SAVE_DOCUMENT in include MV45AFZZ to write some info of the Sales order to my own tables.&lt;/P&gt;&lt;P&gt;Now I would like to get the Requested delivery date for each position in the Sales Order. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is this field with the "Requested delivery date of the document" in the document Header (vbak-vdatu), &lt;/P&gt;&lt;P&gt;but this can change for each position. They are displayed in Screen Field RV45A-ETDAT. &lt;/P&gt;&lt;P&gt;The dates are eventually written in table VBEP (VBEP-EDATU), but are not yet there in USEREXIT_SAVE_DOCUMENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How / where can I get the right date for each position?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings Fred.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2006 12:42:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/requested-delivery-date/m-p/1127502#M110757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-12T12:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Requested delivery date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/requested-delivery-date/m-p/1127503#M110758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you check if internal table XVBEP has any values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2006 12:55:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/requested-delivery-date/m-p/1127503#M110758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-12T12:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Requested delivery date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/requested-delivery-date/m-p/1127504#M110759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas Adavi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, XVBEP contains the right values, but when I run this code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;   data: lf_vbap TYPE vbap,
         ls_tmp like xvbep. 

     LOOP AT xvbap INTO lf_vbap.      

      ls_tmp-posnr = lf_vbap-posnr.

      READ TABLE xvbep INTO ls_tmp
       COMPARING posnr
       TRANSPORTING edatu.
    ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then I do not get the right values in ls_tmp-edatu.&lt;/P&gt;&lt;P&gt;But the value of the last position. The value of lf_vbap-posnr in the loop is correct. &lt;/P&gt;&lt;P&gt;Can someone tell me what is going wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings fred.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2006 14:07:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/requested-delivery-date/m-p/1127504#M110759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-12T14:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Requested delivery date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/requested-delivery-date/m-p/1127505#M110760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fred,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using USEREXIT_CHECK_VBEP in MV45AFZB for Checking the schedule lines for completeness. Because one line item may have 1 or more schedule lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may help you.&lt;/P&gt;&lt;P&gt;Lanka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2006 14:49:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/requested-delivery-date/m-p/1127505#M110760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-12T14:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Requested delivery date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/requested-delivery-date/m-p/1127506#M110761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know how the READ with the option COMPARING works(never used it!!!), but as Lanka pointed out, there is a possibility of having more than one schedule line for a given line item of the sales order. So instead of a READ, please use a loop as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT xvbap INTO lf_vbap.
  ls_tmp-posnr = lf_vbap-posnr.
  LOOP AT xvbep INTO ls_tmp WHERE vbeln = xvbap-vbeln
                              AND posnr = xvbap-posnr.
*-- do whatever you want to do here using EDATU
  ENDLOOP.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2006 15:12:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/requested-delivery-date/m-p/1127506#M110761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-12T15:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Requested delivery date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/requested-delivery-date/m-p/1127507#M110762</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;Why cant you just take the EDATU from the any entry in schedule lines table for an item and exit? Some thing like the following..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   data: lf_vbap TYPE vbap,&lt;/P&gt;&lt;P&gt;         ls_tmp like xvbep.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT xvbap INTO lf_vbap. &lt;/P&gt;&lt;P&gt;        ls_tmp-posnr = lf_vbap-posnr.&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;        LOOP AT xvbep INTO ls_tmp&lt;/P&gt;&lt;P&gt;                     WHERE vbeln EQ lf_vbap-vbeln&lt;/P&gt;&lt;P&gt;                       AND posnr EQ lf_vbap-posnr.&lt;/P&gt;&lt;P&gt;          IF NOT ls_tmp-edatu IS INITIAL.&lt;/P&gt;&lt;P&gt;            EXIT.&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;        ENDLOOP.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2006 15:14:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/requested-delivery-date/m-p/1127507#M110762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-12T15:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Requested delivery date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/requested-delivery-date/m-p/1127508#M110763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Srinivas Adavi: &lt;/P&gt;&lt;P&gt;Thanx for your answer. I must say, like in my first post that the VBELN is not yet available in the user-exit I am using. But without the "vbeln = xvbap-vbeln" it also works.&lt;/P&gt;&lt;P&gt;Actually xvbep was what I was looking for, was already looping xvbap, but not xvbep.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;greetings Fred.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2006 09:13:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/requested-delivery-date/m-p/1127508#M110763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-13T09:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Requested delivery date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/requested-delivery-date/m-p/1127509#M110764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would have imagined that the VBELN value would be assigned by this time, but apparently not. Anyway, glad to hear that the issue is resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2006 13:19:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/requested-delivery-date/m-p/1127509#M110764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-13T13:19:54Z</dc:date>
    </item>
  </channel>
</rss>

