<?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: Debugging Delivery Creation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-delivery-creation/m-p/10058041#M1810525</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the reasons why the above error comes is that there is no confirmed quantity available on the requested delivery date. Please check if you have some confirmed quantity on the RDD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Varun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Feb 2014 06:31:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-02-12T06:31:41Z</dc:date>
    <item>
      <title>Debugging Delivery Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-delivery-creation/m-p/10058039#M1810523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;Hello, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I’m trying to debug a delivery creation program from the VA02 menu. The requested delivery date is today’s and the Material Availability Date is in the future. I get the error message that no schedule lines are available for delivery. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;I would like to know that which SAP program/form exactly does the check on Material Availability Date and then throws the above error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 16:08:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-delivery-creation/m-p/10058039#M1810523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-11T16:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging Delivery Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-delivery-creation/m-p/10058040#M1810524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can simply note down the error message number and message class. Again try to create delivery but switch on debugger.Breakpoint at-&amp;gt; Message number-&amp;gt; Provide message details...(new debugger) it will stop where error is thrown. Check the call stack for program details&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 18:01:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-delivery-creation/m-p/10058040#M1810524</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2014-02-11T18:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging Delivery Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-delivery-creation/m-p/10058041#M1810525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the reasons why the above error comes is that there is no confirmed quantity available on the requested delivery date. Please check if you have some confirmed quantity on the RDD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Varun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 06:31:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-delivery-creation/m-p/10058041#M1810525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-12T06:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging Delivery Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-delivery-creation/m-p/10058042#M1810526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First consider the following example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0 in stock.&lt;/P&gt;&lt;P&gt;There is a production order with a finish date in the future. Production Orders are considered in the ATP check via transaction OVZ9. So, lets say we have a production order with finish date = 5th March 2014, CO09 will look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/386028" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when we create a sales order with a requested delivery date = today (12th Feb), the system cannot confirm as there is no available quantity until 5th March. Therefore, the system will confirm on 5th March:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/386029" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/386030" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I was to deliver this sales order today, I get the message "No Schedule Lines due for delivery up to the selected date". The "Selected Date" is automatically today's date when you deliver from the menu option in VA02. You have the option of manually entering the date in VL01n.&lt;/P&gt;&lt;P&gt;The reason you get the error is because todays date is earlier than the material availability date. As per the long text of the message "If this is the case, set the selection date further into the future if you still want to create a delivery for this item." - you can do this in VL01n:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/386033" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From debugging viewpoint, the most relevant code is here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAPFV50C FORM LIPS_FUELLEN_AUS_VBEP (Include SAPFV50C_LIPS_FUELLEN_AUS_VBEP)&lt;BR /&gt;********************************************************************&lt;/P&gt;&lt;P&gt;LOOP AT XVBEP WHERE&amp;nbsp; VBELN =&amp;nbsp; CVBAK-VBELN&amp;nbsp;&amp;nbsp; AND&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; POSNR =&amp;nbsp; CVBAP-POSNR&amp;nbsp;&amp;nbsp; AND&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( MBDAT LE LV50C-DATBI&amp;nbsp;&amp;nbsp; OR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TDDAT LE LV50C-DATBI ).&lt;/P&gt;&lt;P&gt;********************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;^^The LOOP is only true is MBDAT (Material Availability Date) is less than or equal to&amp;nbsp; LV50C-DATBI (Selection Date). Within this loop, LF_DELIVERY_FLAG is set:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Flag: at least one schedule line is copied into delivery&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LF_DELIVERY_FLAG = CHARX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that goes on to create the delivery. When the LOOP is not true, the system never sets the flag and you get the VL248 message. In the case above, it wont be true as LV50C-DATBI&amp;nbsp; = today (12th) while MBDAT = 5th March.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 11:44:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-delivery-creation/m-p/10058042#M1810526</guid>
      <dc:creator>former_member223981</dc:creator>
      <dc:date>2014-02-12T11:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging Delivery Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-delivery-creation/m-p/10058043#M1810527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class="font-color-meta" style="padding: 0 0 5px; font-size: 1.2em; background-color: #e6e6e6; color: #8b8b8b;"&gt;&lt;SPAN class="replyToName" style="font-weight: inherit; font-style: inherit; font-size: 14px; font-family: inherit;"&gt;Alice D' Souza&lt;/SPAN&gt; &lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In new debugger set breakpoints at message statement. It will lead you directly there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check the condition written over there which results into that message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pravin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 11:58:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-delivery-creation/m-p/10058043#M1810527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-12T11:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging Delivery Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-delivery-creation/m-p/10058044#M1810528</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;Note down the error message details and put a break point in new debugger by providing the message details (id,number and type).&lt;/P&gt;&lt;P&gt;please activate the update debugging as well while debugging because if error occures while updating then it iwll stop or else it willnot stop even though you put breake point at message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or try one more method that open message in SE91 tcode then try where used list from there and put break point an debug. some times it will not work(if they are generating dynamic message ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 12:35:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-delivery-creation/m-p/10058044#M1810528</guid>
      <dc:creator>former_member821147</dc:creator>
      <dc:date>2014-02-12T12:35:21Z</dc:date>
    </item>
  </channel>
</rss>

