<?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: Archiving customized tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-customized-tables/m-p/6853531#M1474740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can anybody help me on this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Apr 2010 01:51:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-30T01:51:53Z</dc:date>
    <item>
      <title>Archiving customized tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-customized-tables/m-p/6853528#M1474737</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 archive around 10 tables for the past 30 days.  i  have used the following code to archive for one table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* Internal table to store the records that was retrieved
DATA :  BEGIN OF GET_TAB OCCURS 1000.
        INCLUDE STRUCTURE ZFIT0056.
DATA :  END OF GET_TAB.

MOVE SY-DATUM TO TEMP_DATE.

SUBTRACT 30 FROM TEMP_DATE.

IF WA_CNT &amp;lt;&amp;gt; 0.
  PERFORM MOVE_RECORDS.
ENDIF.
FORM MOVE_RECORDS.
  CLEAR GET_TAB.
  TEMP_DATE = TEMP_DATE  + 1.
  MOVE TEMP_DATE+0(4) TO DATE_YY.
  MOVE TEMP_DATE+4(2) TO DATE_MM.
  MOVE TEMP_DATE+6(2) TO DATE_DD.
  CONCATENATE 'DR' DATE_DD DATE_MM DATE_YY '.AAA' INTO FILENAME.
  SELECT * FROM ZFI00001 INTO GET_TAB WHERE FILENAME1 = FILENAME.
    IF SY-SUBRC  = 0.
      APPEND GET_TAB.
    ENDIF.
  ENDSELECT.
  PERFORM ADD_RECORDS.
ENDFORM.                  

FORM ADD_RECORDS.
  INSERT ZFI00006 FROM TABLE GET_TAB.
  IF SY-SUBRC = 0.
    PERFORM DELETE_RECORDS.
  ENDIF.
ENDFORM.                    "add_Records

FORM DELETE_RECORDS.
  DELETE FROM ZF000001WHERE FILENAME1 = FILENAME.
  IF SY-SUBRC = 0.
    WA_CNT = WA_CNT - 1.
  ENDIF.
ENDFORM.                    "delete_records
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anybody suggest me a simpler way to archive all the 10 tables in a single program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Apr 2010 09:37:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-customized-tables/m-p/6853528#M1474737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-29T09:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Archiving customized tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-customized-tables/m-p/6853529#M1474738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you considered using the SAP standard ADK (Archive Developement Kit) and Workbench to get a more modularised and easier to (re-)use tool for this project?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would have to do [a bit of reading first|http://help.sap.com/saphelp_nw2004s/helpdata/en/2a/fa0391493111d182b70000e829fbfe/content.htm], though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Apr 2010 09:45:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-customized-tables/m-p/6853529#M1474738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-29T09:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Archiving customized tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-customized-tables/m-p/6853530#M1474739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no we are not using it. we want to archive the customized tables&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Apr 2010 09:50:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-customized-tables/m-p/6853530#M1474739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-29T09:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Archiving customized tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-customized-tables/m-p/6853531#M1474740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can anybody help me on this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Apr 2010 01:51:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-customized-tables/m-p/6853531#M1474740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-30T01:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Archiving customized tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-customized-tables/m-p/6853532#M1474741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pls help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 May 2010 02:25:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-customized-tables/m-p/6853532#M1474741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-03T02:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Archiving customized tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-customized-tables/m-p/6853533#M1474742</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 this link will helpful to you &lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1962953"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.pbs-software.com/medien/praesentationen/PBS_CUSTOM_EN.pdf" target="test_blank"&gt;http://www.pbs-software.com/medien/praesentationen/PBS_CUSTOM_EN.pdf&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;Pravin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 May 2010 04:00:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-customized-tables/m-p/6853533#M1474742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-03T04:00:13Z</dc:date>
    </item>
  </channel>
</rss>

