<?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: quantity display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/quantity-display/m-p/1048823#M88666</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you would be extracting stock data from table LQUA for various materials in an internal table say itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to define itab2 with fields: material, quantity less than 30 days(qunt1), quantity between 31 to 60 days(quant2) etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You also have to create and populate itab3 that contains a list of all materials.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For further processing, psuedocode would be&lt;/P&gt;&lt;P&gt;Loop at itab3&lt;/P&gt;&lt;P&gt;	Loop at itab1 where material = material&lt;/P&gt;&lt;P&gt;	Calculate age of stock&lt;/P&gt;&lt;P&gt;	If age less than 30&lt;/P&gt;&lt;P&gt;	Quant1 = stock + Quant1&lt;/P&gt;&lt;P&gt;	Elseif age between 31 and 60&lt;/P&gt;&lt;P&gt;	Quant2 = stock + quant2&lt;/P&gt;&lt;P&gt;	-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;	-&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;	endif&lt;/P&gt;&lt;P&gt;	Endloop.&lt;/P&gt;&lt;P&gt;Append material, Quant1, Quant2 etc into itab2&lt;/P&gt;&lt;P&gt;Endloop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you will get all the materials with agewise stock in itab2 which you can output with write statenments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Nov 2005 07:42:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-09T07:42:11Z</dc:date>
    <item>
      <title>quantity display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quantity-display/m-p/1048820#M88663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to display the materials with &lt;/P&gt;&lt;P&gt;sy-date against LQUA-WDATU(Date of Goods Receipt).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the date between 0 to 30 days the quantity(lqua-gesme) should display between the days like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0 to 30days,31 to 60days,61 to 90days,&amp;gt;91days&lt;/P&gt;&lt;P&gt;lqua-gesme, lqua-gesme,lqua-gesme,lqua-gesme&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could any one tell me how to do this...&lt;/P&gt;&lt;P&gt;reward guaranteed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers &lt;/P&gt;&lt;P&gt;kaki&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;points guranteed&lt;/P&gt;&lt;P&gt;kaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2005 06:39:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quantity-display/m-p/1048820#M88663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-09T06:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: quantity display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quantity-display/m-p/1048821#M88664</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; Answer is simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data : diff(3) TYPE N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; diff = sy-date - lqua-wdatu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF diff &amp;lt; 31.&lt;/P&gt;&lt;P&gt;   ~~~&lt;/P&gt;&lt;P&gt; ELSEIF diff &amp;lt; 61.&lt;/P&gt;&lt;P&gt;   ~~~~&lt;/P&gt;&lt;P&gt; ELSEIF diff &amp;lt; 91.&lt;/P&gt;&lt;P&gt;   ~~~~&lt;/P&gt;&lt;P&gt; ELSE.&lt;/P&gt;&lt;P&gt;   ~~~~&lt;/P&gt;&lt;P&gt; endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Are you OK??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2005 06:47:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quantity-display/m-p/1048821#M88664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-09T06:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: quantity display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quantity-display/m-p/1048822#M88665</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;Hope you have selected both lqua-wdatu and lqua-gesme before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data d type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write 'Date'.&lt;/P&gt;&lt;P&gt;write : 10 '0 to 31 days',&lt;/P&gt;&lt;P&gt;        20 '31 to 60 days',&lt;/P&gt;&lt;P&gt;        30 '61 to 90 days',&lt;/P&gt;&lt;P&gt;        40 '&amp;gt;91 days'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into wa.&lt;/P&gt;&lt;P&gt;...calculate the difference between wa-wdatu and sy-datum and store it in d&lt;/P&gt;&lt;P&gt;write / wa-wdatu.&lt;/P&gt;&lt;P&gt;if d &amp;lt; 31.&lt;/P&gt;&lt;P&gt;write 10 wa-gesme.&lt;/P&gt;&lt;P&gt;elseif d &amp;lt; 61.&lt;/P&gt;&lt;P&gt;write 20 wa-gesme.&lt;/P&gt;&lt;P&gt;elseif d &amp;lt; 91.&lt;/P&gt;&lt;P&gt;write 30 wa-gesme.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;write 40 wa-gesme.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.If so,Kindly reward points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2005 07:05:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quantity-display/m-p/1048822#M88665</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-11-09T07:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: quantity display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quantity-display/m-p/1048823#M88666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you would be extracting stock data from table LQUA for various materials in an internal table say itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to define itab2 with fields: material, quantity less than 30 days(qunt1), quantity between 31 to 60 days(quant2) etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You also have to create and populate itab3 that contains a list of all materials.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For further processing, psuedocode would be&lt;/P&gt;&lt;P&gt;Loop at itab3&lt;/P&gt;&lt;P&gt;	Loop at itab1 where material = material&lt;/P&gt;&lt;P&gt;	Calculate age of stock&lt;/P&gt;&lt;P&gt;	If age less than 30&lt;/P&gt;&lt;P&gt;	Quant1 = stock + Quant1&lt;/P&gt;&lt;P&gt;	Elseif age between 31 and 60&lt;/P&gt;&lt;P&gt;	Quant2 = stock + quant2&lt;/P&gt;&lt;P&gt;	-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;	-&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;	endif&lt;/P&gt;&lt;P&gt;	Endloop.&lt;/P&gt;&lt;P&gt;Append material, Quant1, Quant2 etc into itab2&lt;/P&gt;&lt;P&gt;Endloop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you will get all the materials with agewise stock in itab2 which you can output with write statenments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2005 07:42:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quantity-display/m-p/1048823#M88666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-09T07:42:11Z</dc:date>
    </item>
  </channel>
</rss>

