<?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: Reading data and displaying in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-and-displaying/m-p/6653766#M1445311</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.Few questions are still revoving around in my head&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;1. you have to add one field in between sol to party and delivered quantity, month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is ,I have to put in an additional field in my itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;2. filled month with month value like 01, 02, 03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was filling my itab as follows from the LIKP table.&lt;/P&gt;&lt;P&gt;The delivery date field in LIKP ,must be of type DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How will I fill the month field in the itab by changing the following &lt;STRONG&gt;select&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT matnr,Sold-To-Party,deliveredQuantity,DeliveryDate into itab from LIKP where matnr = meaterialNr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Mar 2010 06:37:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-11T06:37:57Z</dc:date>
    <item>
      <title>Reading data and displaying</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-and-displaying/m-p/6653764#M1445309</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;Have a situation as follows and need your advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to read the delivered quantites of a meaterial within a definite period of time from the table LIKP and split the delivered quantities by month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The input from the user is the meaterial number and the time range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the attached image for the endresult.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[http://img163.imageshack.us/img163/2082/testfile.jpg]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr,Sold-To-Party,deliveredQuantity,DeliveryDate into itab from LIKP where matnr = meaterialNr.&lt;/P&gt;&lt;P&gt;(The select fields are just example names and not the actual fields in the table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if the generated itab is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;matNr  Sold-To-Party    delivered_Quantity    deliveryDate

[1] x        A                         3                                  01.01.2010
	
[2] x        B                         4                                   30.09.2009

[3] x        C                         4                                   15.02.2009

[4] x        A                        4                                   15.01.2010

[5] x        A                        4                                  20.02.2010

[6] x        A                        4                                   30.03.2010&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to to sum up the quantities for each "Sold_To_Party according to month by looping through the itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above Example for Sold-To-Party "A" I have to sum up the quantiies of [1] and [4] for the month of january. [5] for the month of february(Summing up if there is another quantity for meaterial in February).[6] for the month of march and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is ,Is this a good approach.Is there any better approach or idea to make it effective and simpler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A sample code would be helpful..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Mar 2010 18:10:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-and-displaying/m-p/6653764#M1445309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-10T18:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data and displaying</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-and-displaying/m-p/6653765#M1445310</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;1. you have to add one field in between sol to party and delivered quantity, month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. filled month with month value like 01, 02, 03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. sort the table by material sold to party and month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. loop the internal table and use&lt;/P&gt;&lt;P&gt;    AT END OF month&lt;/P&gt;&lt;P&gt;            SUM.&lt;/P&gt;&lt;P&gt;    END AT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and move the entries to separate internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. hide month filed at the time building field catalog...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Mar 2010 20:33:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-and-displaying/m-p/6653765#M1445310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-10T20:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data and displaying</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-and-displaying/m-p/6653766#M1445311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.Few questions are still revoving around in my head&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;1. you have to add one field in between sol to party and delivered quantity, month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is ,I have to put in an additional field in my itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;2. filled month with month value like 01, 02, 03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was filling my itab as follows from the LIKP table.&lt;/P&gt;&lt;P&gt;The delivery date field in LIKP ,must be of type DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How will I fill the month field in the itab by changing the following &lt;STRONG&gt;select&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT matnr,Sold-To-Party,deliveredQuantity,DeliveryDate into itab from LIKP where matnr = meaterialNr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Mar 2010 06:37:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-and-displaying/m-p/6653766#M1445311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-11T06:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data and displaying</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-and-displaying/m-p/6653767#M1445312</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;Try using &lt;EM&gt;COLLECT&lt;/EM&gt; stmt. if collect doesnot work, try looping through the current table and then add into another internal table. Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kavitha Kraj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kavithakraj on Mar 11, 2010 9:17 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Mar 2010 08:17:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-and-displaying/m-p/6653767#M1445312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-11T08:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data and displaying</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-and-displaying/m-p/6653768#M1445313</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;For your question&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;How will I fill the month field in the itab by changing the following select.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get the month from the date and modify the internal table by filling the month field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Mar 2010 08:23:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-and-displaying/m-p/6653768#M1445313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-11T08:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data and displaying</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-and-displaying/m-p/6653769#M1445314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to get one go using the select statement the month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the date field in the itab and then loop through  the itab and  modify the date field to month by slicing the date string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Was better when I could do it with the select statement at one go....&lt;/P&gt;&lt;P&gt;Is that  possible.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Mar 2010 09:41:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-and-displaying/m-p/6653769#M1445314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-11T09:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data and displaying</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-and-displaying/m-p/6653770#M1445315</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 don't think you can do the changes in one go in the select statement.&lt;/P&gt;&lt;P&gt;you will have to get the data in itab then loop through it and then modify.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Mar 2010 09:57:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-and-displaying/m-p/6653770#M1445315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-11T09:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data and displaying</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-and-displaying/m-p/6653771#M1445316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Mar 2010 12:09:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-and-displaying/m-p/6653771#M1445316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-11T12:09:32Z</dc:date>
    </item>
  </channel>
</rss>

