2009 Jun 03 10:26 PM
Hi
I have a problem reading archived data.
In the Z program I am using this FM ARCHIVE_READ_OBJECT but it do not work in version 6.0.
The problem is that The fm ARCHIVE_READ_OBJECT never I can obtain a correct value (HANDLE) for use in the other function
What can I do ?? Any sugestion?? I need use other function for this purpose??
This part of code
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.Regards
Gregory
Hi
I have a problem reading archived data.
In the Z program I am using this FM ARCHIVE_READ_OBJECT but it do not work in version 6.0.
The problem is that The fm ARCHIVE_READ_OBJECT never I can obtain a correct value (HANDLE) for use in the other function
What can I do ?? Any sugestion?? I need use other function for this purpose??
This part of code
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.Regards
Gregory
2009 Jun 03 10:32 PM
2009 Jun 04 7:15 PM
Hi
Exactly I have an error, It is that I can not read data archived using this function.
I read the table zarixmm1, I found the fields " archivekey and archiveofs" and those used in the FM ARCHIVE_READ_OBJECT for read data Archived for the OBJECT = MM_EKKO but my result ( Field HANDLE) is 1.
This HANDLE is used in the FM CHANGEDOCU_READ_ARCHIVE_OBJECT for search CDHDR y CDPOS.
How Can i read data archived using this fm ARCHIVE_READ_OBJECT ??? Do I need use others FM? What can I do???
Regards
Gregory
2009 Jun 10 8:10 PM
2010 Jan 14 3:33 PM
How was this solved? Shouldn't ARCHIVE_OPEN_FOR_READ be used?
Regards,
/Fredrik.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |