<?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 Object in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-object/m-p/1200251#M130855</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 have all the definitions in FILE transaction and have checked the AOBJ transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will update later with my findings and your comments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aveek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jan 2006 08:14:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-18T08:14:20Z</dc:date>
    <item>
      <title>Archiving Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-object/m-p/1200247#M130851</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 need to know where the Archivibng Object is created in SAP. For example in the function module:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;open a new archiv for write&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          CALL_DELETE_JOB_IN_TEST_MODE = TESTRUN&lt;/P&gt;&lt;P&gt;          COMMENTS                     = TEXT-001&lt;/P&gt;&lt;P&gt;          CREATE_ARCHIVE_FILE          = CREATE&lt;/P&gt;&lt;P&gt;          OBJECT                       = 'EXAMPLE'&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;          ARCHIVE_HANDLE               = HANDLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This takes EXAMPLE as an input and returns the handle. Where exactly is the EXAMPLE object created. I checked swo1 and it is not there although I could find it in the table ARCH_OBJ. I have a case where I have to archive a particular file in the application server ( Directory /tmp ). All the necessary config for the logical and physical file is done in the FILE transaction. Any inputs will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can also execute the function module: Filename_archive_object but I need to pass the handle as input. It looks like the order in which the directory is listed in AL11 defines the handle. When I try to execute this function module with the handle as the sy-tabix for /tmp directory the program errors out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking forward to your replies.&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;Aveek Ghose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 06:20:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-object/m-p/1200247#M130851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-18T06:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Archiving Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-object/m-p/1200248#M130852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aveek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what you need to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From transaction AOBJ, get the Logical File name of the Archiving object you are using ('EXAMPLE'). Path: AOBJ &amp;gt; Select the object EXAMPLE &amp;gt; Customizing settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the logical file name from above, go to transaction FILE, where you will be able to see the exact physical location of this logical path.&lt;/P&gt;&lt;P&gt;FILE &amp;gt; Select logical name &amp;gt; Assignment of physical paths to logical path. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 06:30:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-object/m-p/1200248#M130852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-18T06:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Archiving Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-object/m-p/1200249#M130853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Thanks for the reply. Is there any way the handle can be determined in the function module: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'FILENAME_ARCHIVE_OBJECT'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;    ARCHIVE_HANDLE     = HANDLE&lt;/P&gt;&lt;P&gt;    CLIENT             = FILENAME_TAB-MANDT&lt;/P&gt;&lt;P&gt;    LOGICAL_FILENAME   = FILENAME_TAB-FILEINTERN&lt;/P&gt;&lt;P&gt;    OBJECT_DELETE_FLAG = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does the handle signify the sequence of the directories in AL11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use the program: RSARCH04 as an example fo the archiving object related issue. Although I have done the necessary config in FILE transaction the function module errors out in test execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: Clas Filename is not registered for handle 33. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The handle is defined as sy-tabix and I have put 33 as the handle as /tmp is in sequence 33 in the internal table that retrieves all the directories.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FILEPATH_TAB retrieves all the directories:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT FILEPATH_TAB.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;initializing a new data object&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'ARCHIVE_NEW_OBJECT'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            ARCHIVE_HANDLE = HANDLE&lt;/P&gt;&lt;P&gt;            OBJECT_ID      = FILEPATH_TAB-PATHINTERN.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any inputs will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aveek Ghose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 07:02:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-object/m-p/1200249#M130853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-18T07:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Archiving Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-object/m-p/1200250#M130854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aveek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that the handle is only a generated number and not the sequence of the directory. I will tell you why I came to this conclusion: If the handle did indeed depend on the directory, then all files for a particular object would have the same handle. This would hold good across even archive objects (as multiple objects could point to the same directory). I do not think this is the case. I tried reading 2 different files from the same directory, and got different handles for each.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the error you received - have you maintained the logical file name in AOBJ? Are all other configurations (tables, table relations, etc) defined?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess it would be helpful if you could post further details of the object EXAMPLE here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sudha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sudha Mohan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 07:36:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-object/m-p/1200250#M130854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-18T07:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Archiving Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-object/m-p/1200251#M130855</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 have all the definitions in FILE transaction and have checked the AOBJ transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will update later with my findings and your comments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aveek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 08:14:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-object/m-p/1200251#M130855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-18T08:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Archiving Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-object/m-p/1200252#M130856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aveek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the Logical File Path defined from FILE transaction.I think the function module is not recognizing the physical file path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lakshman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 08:22:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-object/m-p/1200252#M130856</guid>
      <dc:creator>Lakshmant1</dc:creator>
      <dc:date>2006-01-18T08:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Archiving Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-object/m-p/1200253#M130857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aveek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read your post again and realized that the code pasted earlier (using FILEPATH_TAB) is incorrect, in my opinion.&lt;/P&gt;&lt;P&gt;Since you are creating a write program for a custom object, here are the steps you need to follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use FM ARCHIVE_OPEN_FOR_WRITE to get the handle for your particular object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, using the same handle, call FM ARCHIVE_NEW_OBJECT, which creates the data container for the object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, call ARCHIVE_PUT_RECORD inside a loop for each record, finally call ARCHIVE_SAVE_OBJECT and ARCHIVE_CLOSE_FILE to save data and close the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Archive handle you get from the first FM call will be required in all the subsequent calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sudha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sudha Mohan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 09:07:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-object/m-p/1200253#M130857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-18T09:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Archiving Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-object/m-p/1200254#M130858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    Function Module ARCHIVE_CREATE_OBJECT can be used to&lt;/P&gt;&lt;P&gt;    create archive object.&lt;/P&gt;&lt;P&gt;    When Archive object is created Write and delete&lt;/P&gt;&lt;P&gt;    program are associated with it. Check out&lt;/P&gt;&lt;P&gt;    Sara and SARI transaction.&lt;/P&gt;&lt;P&gt;    See the below link for more info on Archiving.&lt;/P&gt;&lt;P&gt;   &lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/6d/56a06a463411d189000000e8323d3a/plain.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/6d/56a06a463411d189000000e8323d3a/plain.htm&lt;/A&gt;  &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt; Amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 10:02:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-object/m-p/1200254#M130858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-18T10:02:14Z</dc:date>
    </item>
  </channel>
</rss>

