10-07-2013 8:39 AM
Hi,
I want to retrieve delivery from the archive.
i using the FM archive_read_object and always get the error - "Archive file 003410-001RV_LIKP does not exist".
the delivery exist in table zarixsd001 so i don't understand what i'm missing here.
Can you please help me on this .
Regards.
10-07-2013 9:44 AM
Gil Hadida,
this might help you.
DATA:
archiving_object TYPE objct_tr01 VALUE 'BC_SBOOK',
archive_key TYPE arkey VALUE '001469-001BC_SBOOK',
archive_offset TYPE admi_offst VALUE 285884,
ARCHIVE_HANDLE LIKE SY-TABIX,
COMPR_OBJECT_LENGTH TYPE I.
CALL FUNCTION 'ARCHIVE_READ_OBJECT'
EXPORTING
OBJECT = archiving_object
OBJECT_ID = ' '
USER_EXIT_PROGRAM = ' '
USER_EXIT_FORM = ' '
ARCHIVKEY = archive_key
OFFSET = archive_offset
MOVEFLAG = ' '
IMPORTING
ARCHIVE_HANDLE = ARCHIVE_HANDLE
COMPR_OBJECT_LENGTH = COMPR_OBJECT_LENGTH
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
.
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
10-07-2013 10:12 AM
Zahid Hameed,
Thank you for your respone but this is exactly what i have did and still i got the above message.
Thanks,
Gil
10-07-2013 10:17 AM
Then you must check the archive table the file which yor are passing it dosn't exist. The message is clearly saying that the file which you have declare dosn't exist.
10-07-2013 11:02 AM
Hi Gil,
this message BA111 is used in LARCHF02 and LARCHU45. Please set BREAK-POINTs in the lines where the messages are called and some lines before to find the reason of this behaviour.
Maybe a file path is too long / too short, the filename is cut because a too short data element, or the path and/or the filname are wrong (System Copy?)
Regards,
Klaus.