<?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: Regarding &amp;quot;BAPI_MATERIAL_AVAILABILITY&amp;quot; (important) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-quot-bapi-material-availability-quot-important/m-p/2347215#M517912</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;What are the characteristics of  I_ZDAILY_MVMT-ONHAND_VAL?  Are you referencing bapi_on_hand with the section commented as being a correct value and I_ZDAILY_MVMT-ONHAND_VAL with the section not commented being an incorrect value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2007 19:23:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-31T19:23:05Z</dc:date>
    <item>
      <title>Regarding "BAPI_MATERIAL_AVAILABILITY" (important)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-quot-bapi-material-availability-quot-important/m-p/2347214#M517911</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;In my program, I use BAPI_MATERIAL_AVAILABILITY to get the &amp;lt;u&amp;gt;&amp;lt;b&amp;gt;on-hand quantity in CSE.&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_MATERIAL_AVAILABILITY'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        plant      = I_ZDAILY_MVMT-WERKS&lt;/P&gt;&lt;P&gt;        material   = I_ZDAILY_MVMT-MATNR&lt;/P&gt;&lt;P&gt;        unit       = 'CSE'&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        av_qty_plt = bapi_onhand&lt;/P&gt;&lt;P&gt;        return     = return&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        wmdvsx     = atp1&lt;/P&gt;&lt;P&gt;        wmdvex     = atp2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF return IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      READ TABLE atp2 WITH TABLE KEY bdcnt = 0&lt;/P&gt;&lt;P&gt;                                       req_date = sy-datum&lt;/P&gt;&lt;P&gt;                                       com_date = sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     IF atp2-com_qty &amp;lt;&amp;gt; '9999999999.000'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       I_ZDAILY_MVMT-ONHAND_VAL =  atp2-com_qty.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     ELSE.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        I_ZDAILY_MVMT-ONHAND_VAL =  bapi_onhand.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that if the commented section above is uncommented, i get extremely large and unreliable data (for example 163,333,333,333,333 - which doesn't make sense.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other hand, when the commented sections are left commented, i get data that seems real. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is the right way and what am i doing wrong? How do i check if the data that i am getting is correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Responses will be rewarded and highly appreciated&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 18:32:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-quot-bapi-material-availability-quot-important/m-p/2347214#M517911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T18:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding "BAPI_MATERIAL_AVAILABILITY" (important)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-quot-bapi-material-availability-quot-important/m-p/2347215#M517912</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;What are the characteristics of  I_ZDAILY_MVMT-ONHAND_VAL?  Are you referencing bapi_on_hand with the section commented as being a correct value and I_ZDAILY_MVMT-ONHAND_VAL with the section not commented being an incorrect value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 19:23:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-quot-bapi-material-availability-quot-important/m-p/2347215#M517912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T19:23:05Z</dc:date>
    </item>
  </channel>
</rss>

