<?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 Read Data Archivied in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-archivied/m-p/5680126#M1291195</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;I have a problem reading archived data. &lt;/P&gt;&lt;P&gt;In the Z program I am using this FM ARCHIVE_READ_OBJECT but it do not work in version 6.0. &lt;/P&gt;&lt;P&gt;The problem is that The fm ARCHIVE_READ_OBJECT never  I can obtain a correct value (HANDLE) for use in the other function &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can I do ?? Any sugestion?? I need use other function for this purpose??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This part of code&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select ebeln archivekey archiveofs
  into corresponding fields of table it_zarixmm1
  from zarixmm1 client specified
    for all entries in itc_ekpo
    where mandt = sy-mandt
      and ebeln eq itc_ekpo-anfnr.
  delete adjacent duplicates from it_zarixmm1 comparing all fields.
  loop at it_zarixmm1.
v_archivkey = it_zarixmm1-archivekey.
v_offset    = it_zarixmm1-archiveofs.
 call function 'ARCHIVE_READ_OBJECT'
         exporting
              object                    = 'MM_EKKO'
              archivkey                 = v_archivkey
              offset                    = v_offset
              object_id                 = ' '
         importing
              archive_handle            = handle
         exceptions
              no_record_found           = 1
              file_io_error             = 2
              internal_error            = 3
              open_error                = 4
              cancelled_by_user         = 5
              archivelink_error         = 6
              object_not_found          = 7
              filename_creation_failure = 8
              file_already_open         = 9
              not_authorized            = 10
              file_not_found            = 11
              others                    = 12.
      refresh: i_cdhdr, i_cdpos.
      call function 'CHANGEDOCU_READ_ARCHIVE_OBJECT'
           exporting
                archive_handle     = handle
           importing
                icdhdr             = i_cdhdr
                icdpos             = i_cdpos
           exceptions
                file_already_open  = 1
                no_files_available = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gregory&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jun 2009 21:26:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-03T21:26:07Z</dc:date>
    <item>
      <title>Read Data Archivied</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-archivied/m-p/5680126#M1291195</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;I have a problem reading archived data. &lt;/P&gt;&lt;P&gt;In the Z program I am using this FM ARCHIVE_READ_OBJECT but it do not work in version 6.0. &lt;/P&gt;&lt;P&gt;The problem is that The fm ARCHIVE_READ_OBJECT never  I can obtain a correct value (HANDLE) for use in the other function &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can I do ?? Any sugestion?? I need use other function for this purpose??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This part of code&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select ebeln archivekey archiveofs
  into corresponding fields of table it_zarixmm1
  from zarixmm1 client specified
    for all entries in itc_ekpo
    where mandt = sy-mandt
      and ebeln eq itc_ekpo-anfnr.
  delete adjacent duplicates from it_zarixmm1 comparing all fields.
  loop at it_zarixmm1.
v_archivkey = it_zarixmm1-archivekey.
v_offset    = it_zarixmm1-archiveofs.
 call function 'ARCHIVE_READ_OBJECT'
         exporting
              object                    = 'MM_EKKO'
              archivkey                 = v_archivkey
              offset                    = v_offset
              object_id                 = ' '
         importing
              archive_handle            = handle
         exceptions
              no_record_found           = 1
              file_io_error             = 2
              internal_error            = 3
              open_error                = 4
              cancelled_by_user         = 5
              archivelink_error         = 6
              object_not_found          = 7
              filename_creation_failure = 8
              file_already_open         = 9
              not_authorized            = 10
              file_not_found            = 11
              others                    = 12.
      refresh: i_cdhdr, i_cdpos.
      call function 'CHANGEDOCU_READ_ARCHIVE_OBJECT'
           exporting
                archive_handle     = handle
           importing
                icdhdr             = i_cdhdr
                icdpos             = i_cdpos
           exceptions
                file_already_open  = 1
                no_files_available = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gregory&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 21:26:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-archivied/m-p/5680126#M1291195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-03T21:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Read Data Archivied</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-archivied/m-p/5680127#M1291196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you getting some sort of error? Can you describe it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 21:32:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-archivied/m-p/5680127#M1291196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-03T21:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Read Data Archivied</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-archivied/m-p/5680128#M1291197</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;Exactly I have an error, It is that  I can not read data archived using this function. &lt;/P&gt;&lt;P&gt;I read the table zarixmm1, I found the fields " archivekey and archiveofs" and those used in the FM &lt;STRONG&gt;ARCHIVE_READ_OBJECT&lt;/STRONG&gt; for read data Archived for the &lt;STRONG&gt;OBJECT = MM_EKKO&lt;/STRONG&gt; but my result ( Field HANDLE) is 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This HANDLE is used in the FM &lt;STRONG&gt;CHANGEDOCU_READ_ARCHIVE_OBJECT&lt;/STRONG&gt; for search CDHDR y CDPOS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How Can i read data archived using this fm &lt;STRONG&gt;ARCHIVE_READ_OBJECT&lt;/STRONG&gt; ??? Do I need use others FM? What can I do???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gregory&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 18:15:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-archivied/m-p/5680128#M1291197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T18:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Read Data Archivied</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-archivied/m-p/5680129#M1291198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ready&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 19:10:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-archivied/m-p/5680129#M1291198</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-10T19:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Read Data Archivied</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-archivied/m-p/5680130#M1291199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How was this solved? Shouldn't ARCHIVE_OPEN_FOR_READ be used?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;/Fredrik.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2010 15:33:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-archivied/m-p/5680130#M1291199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-14T15:33:07Z</dc:date>
    </item>
  </channel>
</rss>

