<?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 LOOP question in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-question/m-p/5582372#M1273033</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I have an internal table, like the EKBE table. &lt;/P&gt;&lt;P&gt;I want to create a table with the following format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each PO order (EBELN), for easch item (EBELP), for each po category (BEWTP), I want to sum the WRBTR and BPMNG. When the SHKZG is H the WRBTR and BPMNG must be negative for the sum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result is that we will have one line per PO's Item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i attach and a photo of the ekbe table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[http://www.mypicx.com/uploadimg/989252154_05212009_1.bmp]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: stratos_chm on May 21, 2009 4:36 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 May 2009 14:36:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-21T14:36:11Z</dc:date>
    <item>
      <title>LOOP question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-question/m-p/5582372#M1273033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I have an internal table, like the EKBE table. &lt;/P&gt;&lt;P&gt;I want to create a table with the following format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each PO order (EBELN), for easch item (EBELP), for each po category (BEWTP), I want to sum the WRBTR and BPMNG. When the SHKZG is H the WRBTR and BPMNG must be negative for the sum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result is that we will have one line per PO's Item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i attach and a photo of the ekbe table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[http://www.mypicx.com/uploadimg/989252154_05212009_1.bmp]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: stratos_chm on May 21, 2009 4:36 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 14:36:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-question/m-p/5582372#M1273033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T14:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-question/m-p/5582373#M1273034</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;PRE&gt;&lt;CODE&gt;The order of the field in the internal table should be 
EBELN 
EBELP
BEWTP
....

SORT ITAB BY EBELN EBELP BEWTP.
LOOP AT ITAB.

IF SHKZG EQ 'H'.
AMOUNT   " SUBTRACTION
ELSE.
AMOUNT " ADDITON
ENDIF.

AT NEW BEWTP.
" you can find the amount for tha one line per PO's Item
 WRITE AMOUNT.

CLEAR AMOUNT 
ENDLOOP.

ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 14:44:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-question/m-p/5582373#M1273034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T14:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-question/m-p/5582374#M1273035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This looks pretty straightforward. Why don't you try coding this yourself and get back to the forum if you have a specific question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 14:46:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-question/m-p/5582374#M1273035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T14:46:37Z</dc:date>
    </item>
  </channel>
</rss>

