<?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: Logic for displaying Reservations in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-displaying-reservations/m-p/2503558#M565820</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The logic what you written is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first get the data from resb table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from resb into table resb &lt;/P&gt;&lt;P&gt;                          where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT * INTO TABLE i_mard&lt;/P&gt;&lt;P&gt;             FROM mard&lt;/P&gt;&lt;P&gt;             FOR ALL ENTRIES IN i_resb&lt;/P&gt;&lt;P&gt;             WHERE matnr = i_resb-matnr&lt;/P&gt;&lt;P&gt;              other where condition.&lt;/P&gt;&lt;P&gt;                   &lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_resb.&lt;/P&gt;&lt;P&gt;here you can use read table with mard and move to final internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jul 2007 14:00:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-06T14:00:18Z</dc:date>
    <item>
      <title>Logic for displaying Reservations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-displaying-reservations/m-p/2503557#M565819</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;I have a requirement to display reservations along with open PO and consignment stock for materials.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Per the requirement i am not able to fetch the exact requirements.&lt;/P&gt;&lt;P&gt;I am getting correct reservations for some and wrong for some materials when compared to MD04 Reservations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the below logic to fetch the reservations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  *&lt;/P&gt;&lt;P&gt;        FROM resb&lt;/P&gt;&lt;P&gt;        INTO CORRESPONDING FIELDS OF TABLE i_resb&lt;/P&gt;&lt;P&gt;        FOR ALL ENTRIES IN i_mard&lt;/P&gt;&lt;P&gt;        WHERE matnr EQ i_mard-matnr&lt;/P&gt;&lt;P&gt;        AND   werks EQ i_mard-werks&lt;/P&gt;&lt;P&gt;        AND   xloek EQ ' '&lt;/P&gt;&lt;P&gt;        AND   kzear EQ ' '.&lt;/P&gt;&lt;P&gt;LOOp At i_mard into mard.&lt;/P&gt;&lt;P&gt;READ TABLE i_resb INTO resb WITH KEY matnr = mard-matnr&lt;/P&gt;&lt;P&gt;                                       werks = mard-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ '0'.&lt;/P&gt;&lt;P&gt;     LOOP AT i_resb FROM sy-tabix.&lt;/P&gt;&lt;P&gt;        IF i_resb-matnr NE mard-matnr.&lt;/P&gt;&lt;P&gt;           EXIT.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;        zmmresv-bdmng = zmmresv-bdmng + ( i_resb-bdmng - i_resb-enmng ).&lt;/P&gt;&lt;P&gt;     ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;Clear mard.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one suggest me the exact logic to fetch the reservations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        babulreddy kurapatti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 13:44:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-displaying-reservations/m-p/2503557#M565819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T13:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Logic for displaying Reservations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-displaying-reservations/m-p/2503558#M565820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The logic what you written is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first get the data from resb table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from resb into table resb &lt;/P&gt;&lt;P&gt;                          where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT * INTO TABLE i_mard&lt;/P&gt;&lt;P&gt;             FROM mard&lt;/P&gt;&lt;P&gt;             FOR ALL ENTRIES IN i_resb&lt;/P&gt;&lt;P&gt;             WHERE matnr = i_resb-matnr&lt;/P&gt;&lt;P&gt;              other where condition.&lt;/P&gt;&lt;P&gt;                   &lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_resb.&lt;/P&gt;&lt;P&gt;here you can use read table with mard and move to final internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 14:00:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-displaying-reservations/m-p/2503558#M565820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T14:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Logic for displaying Reservations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-displaying-reservations/m-p/2503559#M565821</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;You can use this FM MD_STOCK_REQUIREMENTS_LIST_API to get the same information as transaction MD04.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 14:05:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-displaying-reservations/m-p/2503559#M565821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T14:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Logic for displaying Reservations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-displaying-reservations/m-p/2503560#M565822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ferry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your valuable answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 07:55:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-displaying-reservations/m-p/2503560#M565822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T07:55:08Z</dc:date>
    </item>
  </channel>
</rss>

