<?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: Regarding Archiving Object in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-archiving-object/m-p/5345123#M1231004</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;read program is nothing but a report program which have the 4 function module in sequence. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you see my sample program ,in the call function 'ARCHIVE_OPEN_FOR_READ' i have passed my arc. object name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at the time of configuration one or more INFO STRUCTURE will be added to an arc. object. because data stored in archived file should come through some structure to your program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your case create an info structure with all fields in your 15 z tables. and assign in to a arc.object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;infostructure is nothing but a structure used to bring your archive data to your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through this link, its really good:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/2a/fa04af493111d182b70000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/2a/fa04af493111d182b70000e829fbfe/frameset.htm&lt;/A&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;still have doubts feel free to revert back&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;mano&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Mar 2009 14:09:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-09T14:09:23Z</dc:date>
    <item>
      <title>Regarding Archiving Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-archiving-object/m-p/5345119#M1231000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have few questions about Archiving object:&lt;/P&gt;&lt;P&gt;1. How to create an archiving object for set of Z tables? shall i create a new archiving object by clicking on new entry or shall i copy an existing archiving object.&lt;/P&gt;&lt;P&gt;2.is there any restrictions on number of tables being used in an archiving object? in our scenario there are around 15 Z tables...&lt;/P&gt;&lt;P&gt;3. in T code AOBJ, i want to maintain customizing settings, but the screen is greyed out,which authorzation role will give me the access to this screen.&lt;/P&gt;&lt;P&gt;4.what are the retrieval methods avaialable in system???&lt;/P&gt;&lt;P&gt;5.in our scenario we have created a new archivie info structure,shall we use standard field catalog or need to create a new one???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;awaiting your reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ramana Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 09:42:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-archiving-object/m-p/5345119#M1231000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T09:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Archiving Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-archiving-object/m-p/5345120#M1231001</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;ans 4 :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you should call 4 function modules in sequence to retrive the archived data from archiving files to your report program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the below sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data declaration&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: handle                 like sy-tabix,&lt;/P&gt;&lt;P&gt;      buffer                 type arc_buffer,&lt;/P&gt;&lt;P&gt;      sbook_wa               like sbook,&lt;/P&gt;&lt;P&gt;      number_of_records_read type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;open existing archive files&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;call function 'ARCHIVE_OPEN_FOR_READ'&lt;/P&gt;&lt;P&gt;     exporting&lt;/P&gt;&lt;P&gt;          object         = 'BC_SBOOK01'&lt;/P&gt;&lt;P&gt;     importing&lt;/P&gt;&lt;P&gt;          archive_handle = handle&lt;/P&gt;&lt;P&gt;     exceptions&lt;/P&gt;&lt;P&gt;          others         = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  write: / 'No file can be accessed'(001).&lt;/P&gt;&lt;P&gt;  stop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear number_of_records_read.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;loop to get the next data object from the archive file(s)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;do.&lt;/P&gt;&lt;P&gt;  call function 'ARCHIVE_GET_NEXT_OBJECT'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            archive_handle = handle&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            end_of_file    = 1&lt;/P&gt;&lt;P&gt;            others         = 2.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;get data records from the data container&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  do.&lt;/P&gt;&lt;P&gt;    call function 'ARCHIVE_GET_NEXT_RECORD'&lt;/P&gt;&lt;P&gt;         exporting&lt;/P&gt;&lt;P&gt;              archive_handle   = handle&lt;/P&gt;&lt;P&gt;         importing&lt;/P&gt;&lt;P&gt;              record           = buffer-segment&lt;/P&gt;&lt;P&gt;              record_structure = buffer-rname&lt;/P&gt;&lt;P&gt;         exceptions&lt;/P&gt;&lt;P&gt;              end_of_object    = 1&lt;/P&gt;&lt;P&gt;              others           = 2.&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      exit.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    add 1 to number_of_records_read.&lt;/P&gt;&lt;P&gt;  enddo.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: / 'Total number of records read: '(002), number_of_records_read.&lt;/P&gt;&lt;P&gt;skip.&lt;/P&gt;&lt;P&gt;write / 'Last record read: '(003).&lt;/P&gt;&lt;P&gt;skip.&lt;/P&gt;&lt;P&gt;case buffer-rname.&lt;/P&gt;&lt;P&gt;  when 'SBOOK'.&lt;/P&gt;&lt;P&gt;    sbook_wa = buffer-segment.&lt;/P&gt;&lt;P&gt;    write: / 'CARRID    :', sbook_wa-carrid,&lt;/P&gt;&lt;P&gt;           / 'BOOKID    :', sbook_wa-bookid,&lt;/P&gt;&lt;P&gt;           / 'CONNID    :', sbook_wa-connid,&lt;/P&gt;&lt;P&gt;           / 'FLDATE    :', sbook_wa-fldate,&lt;/P&gt;&lt;P&gt;           / 'CUSTOMID  :', sbook_wa-customid,&lt;/P&gt;&lt;P&gt;           / 'ORDER_DATE:', sbook_wa-order_date,&lt;/P&gt;&lt;P&gt;           / '...'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;when ...&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If the archive object contained more than one table&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;(different buffer-rname), more cases would be needed.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;close the archive session&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;call function 'ARCHIVE_CLOSE_FILE'&lt;/P&gt;&lt;P&gt;     exporting&lt;/P&gt;&lt;P&gt;          archive_handle = handle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ans 5:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can either use standard field catalog, from the available field in field catalog you can select the required fields alone to your info structure.&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;mano&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 09:53:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-archiving-object/m-p/5345120#M1231001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T09:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Archiving Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-archiving-object/m-p/5345121#M1231002</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;ans 1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best way is to copy the standard archiving object, if your requirement is completely not matching with any available arc object then go for creating a new arc. object. ( but the latter is very rare).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;feel free to revert back for doubts..&lt;/P&gt;&lt;P&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;mano&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 09:57:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-archiving-object/m-p/5345121#M1231002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T09:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Archiving Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-archiving-object/m-p/5345122#M1231003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Manoj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply...&lt;/P&gt;&lt;P&gt;in our case we are using all Z tables, i dont see any standard archiving object matching,,,&lt;/P&gt;&lt;P&gt;and have one more question.. is Read program is used to retrieve the data or Archivie info structure should be used for this purpose...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 10:09:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-archiving-object/m-p/5345122#M1231003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T10:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Archiving Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-archiving-object/m-p/5345123#M1231004</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;read program is nothing but a report program which have the 4 function module in sequence. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you see my sample program ,in the call function 'ARCHIVE_OPEN_FOR_READ' i have passed my arc. object name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at the time of configuration one or more INFO STRUCTURE will be added to an arc. object. because data stored in archived file should come through some structure to your program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your case create an info structure with all fields in your 15 z tables. and assign in to a arc.object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;infostructure is nothing but a structure used to bring your archive data to your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through this link, its really good:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/2a/fa04af493111d182b70000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/2a/fa04af493111d182b70000e829fbfe/frameset.htm&lt;/A&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;still have doubts feel free to revert back&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;mano&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 14:09:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-archiving-object/m-p/5345123#M1231004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T14:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Archiving Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-archiving-object/m-p/5345124#M1231005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramana Reddy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Z Archiving object can be created by custom Write program, delete progam. Write program helps in creating archive file hence all the necessary restriction that is required to archive the business document should be considered. &lt;/P&gt;&lt;P&gt;Custom Delete program helps in deletion of the archived data. This program should delete the archived data from the database only after checking the archive files written completely by write program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Build of Custom Read program depends on your requirement. Better to take option of AIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. There is no restriction of no of tables for custom archiving object. However to keep the business document intact you have to archive data from all the associated tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Archiving object specific customizing is cross client configuration so you have to open the client to do the customizing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Retrieval technique depends on the business documents, however SAP promots to use AIS instead of archive enable transactions and read program due to its drawbacks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. What is the reason of creating new archive infostructure? When you want to use standard field catalog then there is no need to create new archive structure. This can avoid duplication of work.&lt;/P&gt;&lt;P&gt;If you want some field that is not provided by standard infostructure then you can go with creation of new archive infostructure and field catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this information has help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Thanks,&lt;/P&gt;&lt;P&gt; Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 03:15:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-archiving-object/m-p/5345124#M1231005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T03:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Archiving Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-archiving-object/m-p/5345125#M1231006</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;Ans 1 :&lt;/P&gt;&lt;P&gt;You can go ahead in creating a new object in transaction &amp;lt;AOBJ&amp;gt; for Z tables. For creating an archiving object the following things are mandatory to be provided in AOBJ:&lt;/P&gt;&lt;P&gt;a)Write Program Name - To be deveopled for your tables&lt;/P&gt;&lt;P&gt;b)Deletion Program - To be developed for your tables&lt;/P&gt;&lt;P&gt;c)Read Program - this is optional , u can use an archive info structure also&lt;/P&gt;&lt;P&gt;d)Maintain Structure Definition - The tables for the archiving object must be defined here&lt;/P&gt;&lt;P&gt;e)Maintain Customizing Settings &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are able to define these things you can create a custom archive object successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ans2 : &lt;/P&gt;&lt;P&gt;You can create one archiving object for all the 15 z tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ans3 : &lt;/P&gt;&lt;P&gt;This screen also can be obtained from &amp;lt;SARA&amp;gt; transaction. Go to &amp;lt;SARA&amp;gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt; Customizing -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt; Archiving Object-Specific Customizing----&amp;gt;Technical Settings&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ans4 : &lt;/P&gt;&lt;P&gt;The retrieval methods available are&lt;/P&gt;&lt;P&gt;a) Read Program&lt;/P&gt;&lt;P&gt;b) Archive Infostructure&lt;/P&gt;&lt;P&gt;c) DRB - Transaction &amp;lt;ALO1&amp;gt; (This is not applicable for custom tables)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ans 5: &lt;/P&gt;&lt;P&gt;You need to create new field catalog since the standard catalogs will be available only for standard tables. If you have field catalogs already created for your custom tables you can use the same for your AIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Asish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 03:20:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-archiving-object/m-p/5345125#M1231006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T03:20:35Z</dc:date>
    </item>
  </channel>
</rss>

