<?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: How to write code to make summary in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-code-to-make-summary/m-p/5569976#M1270588</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Rainer Hübenthal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the outset I thank you very much for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since childhood we are taught that it is immaterial for the ocean to be bothered if a few drops of water are taken out. Knowledge is sharable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my question I did not ask to teach me the whole ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;God bless you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With best Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 May 2009 04:02:58 GMT</pubDate>
    <dc:creator>swarup_modak</dc:creator>
    <dc:date>2009-05-06T04:02:58Z</dc:date>
    <item>
      <title>How to write code to make summary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-code-to-make-summary/m-p/5569972#M1270584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : BEGIN OF it_afru1 OCCURS 0,
       werks LIKE afru-werks,         "Plant"
       budat LIKE afru-budat,         "Posting date"
       bpm LIKE afru-bpm,             "Bottles per Minute" "Machine Speed"
       avgwt LIKE afru-avgwt,         "Average weight of bottles(gms)" "Average Actual Weight"
       shifttime LIKE afru-shifttime, "Shift Time(Minutes)"
       runtime LIKE afru-runtime,     "Run Time(MIN)"
       downtime LIKE afru-downtime,   "Down time(Min)"
       lmnga LIKE afru-lmnga,         "Yield to Be Confirmed" "Draw"
       xmnga LIKE afru-xmnga,         "Scrap to Be Confirmed" "Draining"
       grund LIKE afru-grund,         "Reason for Variance" "Shift"
       aufnr LIKE afru-aufnr,         "Order Number" "Production Order Number"
       arbid LIKE afru-arbid,         "Object ID" "Equivalent to crhd-objid"
       wablnr LIKE afru-wablnr,       "Number of Material Document" "Production Document Number"
       rmzhl LIKE afru-rmzhl,         "Confirmation counter"
       vornr LIKE afru-vornr,         "Operation/Activity Number - Production Planning"
       stzhl LIKE afru-stzhl,         "Operation/Activity Number - Production Planning"
       stokz LIKE afru-stokz,         "Indicator: Document Has Been Reversed"
       arbpl LIKE crhd-arbpl,         "Work center" "IS Machine Number"
       matnr LIKE qals-matnr,         "Material Number"
       ktextmat LIKE qals-ktextmat,   "Short Text for Inspection Object"
       END OF it_afru1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the table there will be one record for each date&lt;EM&gt;machine&lt;/EM&gt;shift.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 13 no machines there will be 3 records for each shift.&lt;/P&gt;&lt;P&gt;For a day there will be total 39 records.&lt;/P&gt;&lt;P&gt;For 5 days there will be tatal 195 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to append data into the following table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : BEGIN OF ittank_sum1 OCCURS 0,
       arbpl LIKE crhd-arbpl,         "IS Machine Number"
       budat LIKE afru-budat,         "First Date"
       budat LIKE afru-budat,         "Last Date"
       bpm LIKE afru-bpm,             "Minimum Speed"
       bpm LIKE afru-bpm,             "Maximum Speed"
       avgwt LIKE afru-avgwt,         "Minimum Weight"
       avgwt LIKE afru-avgwt,         "Maximum Weight"
       lmnga LIKE afru-lmnga,         "Draw" "To be summed up"
       END OF ittank_sum1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;In the aforesaid table there will be a record for each machine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help, since I am new in ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will enable me to write code for the following :&lt;/P&gt;&lt;P&gt;Tank+Machine&lt;/P&gt;&lt;P&gt;Tank&lt;EM&gt;Machine&lt;/EM&gt;Shift&lt;/P&gt;&lt;P&gt;Tank+Itemcode&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 11:33:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-code-to-make-summary/m-p/5569972#M1270584</guid>
      <dc:creator>swarup_modak</dc:creator>
      <dc:date>2009-05-05T11:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to write code to make summary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-code-to-make-summary/m-p/5569973#M1270585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To summarise your data, I'd suggest you take a look at the help for the COLLECT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use COLLECT instead of APPEND to build your summary table, the quantitative fields will be totalled automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing you must watch out for is if there are any numeric fields which you don't want totalled - if so declare them as character fields in your summary table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The documentation should explain it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 11:48:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-code-to-make-summary/m-p/5569973#M1270585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-05T11:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to write code to make summary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-code-to-make-summary/m-p/5569974#M1270586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robin Wix,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I expect some code since I am new in ABAP. Hope you understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your information I could explain you more. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initially there is no record in ittank_sum1. After entering data into it the output should be like following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arbpl      budat1           budat2           bpm1          bpm2            avgwt1        avgwt2        lmnga&lt;/P&gt;&lt;P&gt;MC1      01/04/2009     05/04/2009     380             395              140.95        141.32        600.65&lt;/P&gt;&lt;P&gt;MC2      01/04/2009     05/04/2009     286             300              120.34        120.12        553.85&lt;/P&gt;&lt;P&gt;MC3      01/04/2009     03/04/2009       75              76               115.96        125.16        297.87&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 12:33:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-code-to-make-summary/m-p/5569974#M1270586</guid>
      <dc:creator>swarup_modak</dc:creator>
      <dc:date>2009-05-05T12:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to write code to make summary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-code-to-make-summary/m-p/5569975#M1270587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; I expect some code since I am new in ABAP. Hope you understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is not a forum to teach ABAP Basics. Hope you understand. Meanwhile, you can type in the collect in the ABAP editor, place the cursor on it and read the online help. You can find some code fragements there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 12:37:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-code-to-make-summary/m-p/5569975#M1270587</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2009-05-05T12:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to write code to make summary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-code-to-make-summary/m-p/5569976#M1270588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Rainer Hübenthal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the outset I thank you very much for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since childhood we are taught that it is immaterial for the ocean to be bothered if a few drops of water are taken out. Knowledge is sharable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my question I did not ask to teach me the whole ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;God bless you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With best Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 04:02:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-code-to-make-summary/m-p/5569976#M1270588</guid>
      <dc:creator>swarup_modak</dc:creator>
      <dc:date>2009-05-06T04:02:58Z</dc:date>
    </item>
  </channel>
</rss>

