<?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 Grouping in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/grouping/m-p/3704111#M891844</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;can someone please let me know what I am doing wrong.&lt;/P&gt;&lt;P&gt;Problem:&lt;/P&gt;&lt;P&gt;at loop the value of wa_delivery-rbtxt always changes from *&lt;STRONG&gt;HAZ&lt;/STRONG&gt;* to ********. &lt;/P&gt;&lt;P&gt;Thus the case statements could not be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is wrong with my code and how can I change it that the case statements would be executed as I want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT GT_DELIVERY INTO WA_DELIVERY.    &lt;/P&gt;&lt;P&gt;        AT NEW VBELN.&lt;/P&gt;&lt;P&gt;**Count orders according to storage condition (section 1)&lt;/P&gt;&lt;P&gt;          CASE WA_DELIVERY-RBTXT.&lt;/P&gt;&lt;P&gt;           WHEN ' *&lt;STRONG&gt;HAZ&lt;/STRONG&gt;* '.&lt;/P&gt;&lt;P&gt;              ADD 1 TO SC1_ORDER.&lt;/P&gt;&lt;P&gt;              AT NEW POSNR.&lt;/P&gt;&lt;P&gt;                ADD 1 TO SC1_LINE.&lt;/P&gt;&lt;P&gt;              ENDAT.&lt;/P&gt;&lt;P&gt;            WHEN 'Storage condition 1'.&lt;/P&gt;&lt;P&gt;              ADD 1 TO SC2_ORDER.&lt;/P&gt;&lt;P&gt;              AT NEW POSNR.&lt;/P&gt;&lt;P&gt;                ADD 1 TO SC2_LINE.&lt;/P&gt;&lt;P&gt;              ENDAT.&lt;/P&gt;&lt;P&gt;           ENDCASE.          &lt;/P&gt;&lt;P&gt;        ENDAT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Blacky.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 21, 2008 1:04 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Apr 2008 14:11:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-21T14:11:55Z</dc:date>
    <item>
      <title>Grouping</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/grouping/m-p/3704111#M891844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;can someone please let me know what I am doing wrong.&lt;/P&gt;&lt;P&gt;Problem:&lt;/P&gt;&lt;P&gt;at loop the value of wa_delivery-rbtxt always changes from *&lt;STRONG&gt;HAZ&lt;/STRONG&gt;* to ********. &lt;/P&gt;&lt;P&gt;Thus the case statements could not be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is wrong with my code and how can I change it that the case statements would be executed as I want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT GT_DELIVERY INTO WA_DELIVERY.    &lt;/P&gt;&lt;P&gt;        AT NEW VBELN.&lt;/P&gt;&lt;P&gt;**Count orders according to storage condition (section 1)&lt;/P&gt;&lt;P&gt;          CASE WA_DELIVERY-RBTXT.&lt;/P&gt;&lt;P&gt;           WHEN ' *&lt;STRONG&gt;HAZ&lt;/STRONG&gt;* '.&lt;/P&gt;&lt;P&gt;              ADD 1 TO SC1_ORDER.&lt;/P&gt;&lt;P&gt;              AT NEW POSNR.&lt;/P&gt;&lt;P&gt;                ADD 1 TO SC1_LINE.&lt;/P&gt;&lt;P&gt;              ENDAT.&lt;/P&gt;&lt;P&gt;            WHEN 'Storage condition 1'.&lt;/P&gt;&lt;P&gt;              ADD 1 TO SC2_ORDER.&lt;/P&gt;&lt;P&gt;              AT NEW POSNR.&lt;/P&gt;&lt;P&gt;                ADD 1 TO SC2_LINE.&lt;/P&gt;&lt;P&gt;              ENDAT.&lt;/P&gt;&lt;P&gt;           ENDCASE.          &lt;/P&gt;&lt;P&gt;        ENDAT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Blacky.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 21, 2008 1:04 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 14:11:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/grouping/m-p/3704111#M891844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T14:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/grouping/m-p/3704112#M891845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : v_flag type c.
LOOP AT GT_DELIVERY INTO WA_DELIVERY.
AT NEW VBELN.
  move 'Y' to v_flag
endat.
if v_flag eq 'Y'.
  CASE WA_DELIVERY-RBTXT.
    WHEN ' **HAZ** '.
     ADD 1 TO SC1_ORDER.
     AT NEW POSNR.
       ADD 1 TO SC1_LINE.
     ENDAT.
    WHEN 'Storage condition 1'.
     ADD 1 TO SC2_ORDER.
     AT NEW POSNR.
       ADD 1 TO SC2_LINE.
     ENDAT.
  ENDCASE.
  clear v_flag.
endif.
ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 14:39:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/grouping/m-p/3704112#M891845</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-04-21T14:39:29Z</dc:date>
    </item>
  </channel>
</rss>

