<?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 Tricky problem (RESB Table) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/tricky-problem-resb-table/m-p/3379077#M811351</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 facing quite a tricky problem, hope someone can help me with the logic for the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample RESB Table data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WERKS -- MATNR -- POSNR -- BAUGR -- XFEHL&lt;/P&gt;&lt;P&gt;1000 -- B1001 -- 0010 -- A1000 -- X&lt;/P&gt;&lt;P&gt;1000 -- C1041 -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; C104 -- A1000 -- (blank)&lt;/P&gt;&lt;P&gt;1000 -- R1011 -- 0001 -- C1041 -- (blank)&lt;/P&gt;&lt;P&gt;1000 -- R1012 -- 0001 -- C1041 -- X&lt;/P&gt;&lt;P&gt;1000 -- R1013 -- 0001 -- C1041 -- (blank)&lt;/P&gt;&lt;P&gt;1000 -- F1010 -- A210 -- A1000 -- (blank)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Req:&lt;/STRONG&gt; I want to find if the field XFEHL contains 'X' for the combination of BAUGR &amp;amp; POSNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below Code works fine for the materials starting with R, because they are all pegged to C1041 &amp;amp; the POSNR of C1041 does not change, so i dont have to consider it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my problem is for materials starting with B, C &amp;amp; F, although they are all pegged to A1000, the POSNR is different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT XFEHL INTO WL_XFEHL&lt;/P&gt;&lt;P&gt;    FROM RESB &lt;/P&gt;&lt;P&gt;    WHERE WERKS EQ S_WERKS&lt;/P&gt;&lt;P&gt;      AND RSNUM EQ S_RSNUM&lt;/P&gt;&lt;P&gt;      AND BAUGR EQ S_BAUGR&lt;/P&gt;&lt;P&gt;      AND XLOEK EQ SPACE&lt;/P&gt;&lt;P&gt;      AND KZEAR EQ SPACE      &lt;/P&gt;&lt;P&gt;      AND DUMPS EQ SPACE&lt;/P&gt;&lt;P&gt;      AND SCHGT EQ SPACE&lt;/P&gt;&lt;P&gt;      AND XFEHL  NE SPACE.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope i was able to put across my problem clearly. Await suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Feb 7, 2008 11:29 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Feb 2008 16:26:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-07T16:26:15Z</dc:date>
    <item>
      <title>Tricky problem (RESB Table)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tricky-problem-resb-table/m-p/3379077#M811351</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 facing quite a tricky problem, hope someone can help me with the logic for the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample RESB Table data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WERKS -- MATNR -- POSNR -- BAUGR -- XFEHL&lt;/P&gt;&lt;P&gt;1000 -- B1001 -- 0010 -- A1000 -- X&lt;/P&gt;&lt;P&gt;1000 -- C1041 -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; C104 -- A1000 -- (blank)&lt;/P&gt;&lt;P&gt;1000 -- R1011 -- 0001 -- C1041 -- (blank)&lt;/P&gt;&lt;P&gt;1000 -- R1012 -- 0001 -- C1041 -- X&lt;/P&gt;&lt;P&gt;1000 -- R1013 -- 0001 -- C1041 -- (blank)&lt;/P&gt;&lt;P&gt;1000 -- F1010 -- A210 -- A1000 -- (blank)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Req:&lt;/STRONG&gt; I want to find if the field XFEHL contains 'X' for the combination of BAUGR &amp;amp; POSNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below Code works fine for the materials starting with R, because they are all pegged to C1041 &amp;amp; the POSNR of C1041 does not change, so i dont have to consider it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my problem is for materials starting with B, C &amp;amp; F, although they are all pegged to A1000, the POSNR is different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT XFEHL INTO WL_XFEHL&lt;/P&gt;&lt;P&gt;    FROM RESB &lt;/P&gt;&lt;P&gt;    WHERE WERKS EQ S_WERKS&lt;/P&gt;&lt;P&gt;      AND RSNUM EQ S_RSNUM&lt;/P&gt;&lt;P&gt;      AND BAUGR EQ S_BAUGR&lt;/P&gt;&lt;P&gt;      AND XLOEK EQ SPACE&lt;/P&gt;&lt;P&gt;      AND KZEAR EQ SPACE      &lt;/P&gt;&lt;P&gt;      AND DUMPS EQ SPACE&lt;/P&gt;&lt;P&gt;      AND SCHGT EQ SPACE&lt;/P&gt;&lt;P&gt;      AND XFEHL  NE SPACE.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope i was able to put across my problem clearly. Await suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Feb 7, 2008 11:29 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 16:26:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tricky-problem-resb-table/m-p/3379077#M811351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T16:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Tricky problem (RESB Table)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tricky-problem-resb-table/m-p/3379078#M811352</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;The are Function modules to read data from RESB&lt;/P&gt;&lt;P&gt;A few of them.&lt;/P&gt;&lt;P&gt;If you could give the Sample data clearly we can proceed further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CO_BT_RESB_READ_WITH_INDEX&lt;/P&gt;&lt;P&gt;CO_BT_RESB_READ_WITH_KEY&lt;/P&gt;&lt;P&gt;CO_BT_RESB_READ_WITH_SPLRV&lt;/P&gt;&lt;P&gt;CO_BT_RESB_RSCOMP_INDEX_GET&lt;/P&gt;&lt;P&gt;CO_BT_RESB_SET&lt;/P&gt;&lt;P&gt;CO_BT_RESB_UPDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bala.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 16:39:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tricky-problem-resb-table/m-p/3379078#M811352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T16:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Tricky problem (RESB Table)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tricky-problem-resb-table/m-p/3379079#M811353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why does transaction CO24 not work for you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 16:43:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tricky-problem-resb-table/m-p/3379079#M811353</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T16:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Tricky problem (RESB Table)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tricky-problem-resb-table/m-p/3379080#M811354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bala &amp;amp; Mylene,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the post. Yes CO24 does work no problem. I am trying to build a query report which will not display the entire set of material belonging to a particular BAUGR - POSNR combination. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not quite sure how i can phrase my problem, but will give it a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per my initial post, i am looping to find if XFEHL is 'X' for all materials which are pegged to a particular material. But i also need to ensure that the POSNR of the BAUGR field is the same as in the case of materials starting with R.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want it same as what we find in CO24 or CO27 output, but not sure which FM can give me that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know if i have been able to put across my problem clearly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 16:53:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tricky-problem-resb-table/m-p/3379080#M811354</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T16:53:26Z</dc:date>
    </item>
  </channel>
</rss>

