<?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: simple list in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-list/m-p/2310574#M506054</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi radhika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  answer is in ur question itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U need to create a custom table for the two tables and update this table whenever u run the report.only thing is u need a key . may be u can create another field 'pkey' of char(6). and assign value 'H_COUNT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to SE11 and create the Ztable.&lt;/P&gt;&lt;P&gt;In ur report code, read this table, and assign head count and date.&lt;/P&gt;&lt;P&gt;select ... from ztable into itab where pkey = 'H_COUNT'.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  assign ur values here.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;perform showREport.&lt;/P&gt;&lt;P&gt;ztable-date = ...&lt;/P&gt;&lt;P&gt;ztable-headcount = ...&lt;/P&gt;&lt;P&gt;ztable-pkey = 'H_COUNT'&lt;/P&gt;&lt;P&gt;modify ztable from ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope tht helps &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 May 2007 06:45:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-22T06:45:30Z</dc:date>
    <item>
      <title>simple list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-list/m-p/2310571#M506051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abapers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created one simple list where i have three fields&lt;/P&gt;&lt;P&gt;1.  starting headcount&lt;/P&gt;&lt;P&gt;2. date&lt;/P&gt;&lt;P&gt;3. final headcount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is executed once in a month. final headcount which is sum of all other fields for this month should be stored as a starting headcount of next month.&lt;/P&gt;&lt;P&gt;next month when i execute this report again starting headcount is nothing but last month's final headcount. Also i need to generate date which is nothing but date on which this report is run. this also needs to be stored in table.&lt;/P&gt;&lt;P&gt;for this i have to create one custom table with two fields i.e.., starting headcount and date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i code this... plz help me.. its urgent...&lt;/P&gt;&lt;P&gt;points are sure for helpful answers........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Radhika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 06:26:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-list/m-p/2310571#M506051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T06:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: simple list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-list/m-p/2310572#M506052</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;how to create an ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://dev.mysql.com/doc/maxdb/en/ee/1c5bcdeba711d4aa2800a0c9430730/content.htm" target="test_blank"&gt;http://dev.mysql.com/doc/maxdb/en/ee/1c5bcdeba711d4aa2800a0c9430730/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eb6e446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eb6e446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. starting headcount    - type I&lt;/P&gt;&lt;P&gt;2. date - data element 'DATS'&lt;/P&gt;&lt;P&gt;3. final headcount. - type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Reshma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 06:34:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-list/m-p/2310572#M506052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T06:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: simple list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-list/m-p/2310573#M506053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;  Have a look on the links:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;http://dev.mysql.com/doc/maxdb/en/ee/1c5bcdeba711d4aa2800a0c9430730/content.htm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eb6e446011d189700000e8322d00/content.htm&amp;lt;/b&amp;gt;" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eb6e446011d189700000e8322d00/content.htm&amp;lt;/b&amp;gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sreeram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 06:36:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-list/m-p/2310573#M506053</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2007-05-22T06:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: simple list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-list/m-p/2310574#M506054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi radhika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  answer is in ur question itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U need to create a custom table for the two tables and update this table whenever u run the report.only thing is u need a key . may be u can create another field 'pkey' of char(6). and assign value 'H_COUNT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to SE11 and create the Ztable.&lt;/P&gt;&lt;P&gt;In ur report code, read this table, and assign head count and date.&lt;/P&gt;&lt;P&gt;select ... from ztable into itab where pkey = 'H_COUNT'.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  assign ur values here.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;perform showREport.&lt;/P&gt;&lt;P&gt;ztable-date = ...&lt;/P&gt;&lt;P&gt;ztable-headcount = ...&lt;/P&gt;&lt;P&gt;ztable-pkey = 'H_COUNT'&lt;/P&gt;&lt;P&gt;modify ztable from ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope tht helps &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 06:45:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-list/m-p/2310574#M506054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T06:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: simple list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-list/m-p/2310575#M506055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Premraj,&lt;/P&gt;&lt;P&gt;First create a database table as u required.&lt;/P&gt;&lt;P&gt;Initially the table is empty.U will update the table through program.&lt;/P&gt;&lt;P&gt;Whenever u get the final headcount after doing all the process, just pass the value final headcount and system date to that table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next time when u run the report get the max. date value from the table using aggregate functions.At the same time u have to get the value of the headcount so assign this value to start_headcount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g: Initially, in the table start_headcount = 0 and date = 00:00:0000&lt;/P&gt;&lt;P&gt;After all the process in the program, u ll get some final_headcount value say 100.&lt;/P&gt;&lt;P&gt;Then, assign start_headcount = 100 and time = sy-datum.&lt;/P&gt;&lt;P&gt;Insert these values to table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next time u read values from table using max. prog run date using aggregate functions &amp;lt;b&amp;gt;MAX ( date )&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;U ll get the recent value of start_headcount from the table.&lt;/P&gt;&lt;P&gt;Just assign start_headcount = 100. And do the process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 07:06:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-list/m-p/2310575#M506055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T07:06:26Z</dc:date>
    </item>
  </channel>
</rss>

