2013 Mar 06 2:06 PM
HI,
In my program to retrive archived data, i am using ARCHIVE_READ_OBJECT FM.and into this i am passing key and offset,and i am getting the l_handle.here upto my knowledge i should get L_handle as 1.but i am getting it as 765 .is this means any error in reading archiving data?.and i am writing another two form to retrive vbak and vbrk archived data and i am declaring parameters for all objects separately.
l_handle like sy-tabix.
CALL FUNCTION 'ARCHIVE_READ_OBJECT'
EXPORTING
object = 'RV_LIKP'
archivkey = g_s_as_key-archivekey
offset = g_s_as_key-archiveofs
IMPORTING
archive_handle = l_handle
EXCEPTIONS
OTHERS = 1.
2013 Mar 06 2:59 PM
2013 Mar 06 3:52 PM
Hi Krishna,
Please check this example program.
SBOOKS
Hope its helpful for u.
Regards,
Santanu Mohapatra.
2013 Mar 06 4:02 PM
Hi Krishna,
habe you tried retrieving the next record through ARCHIVE_GET_NEXT_RECORD using your l_handle as written in the documentation of the FM?
Best regards,
Thorsten
2013 Mar 06 6:52 PM
Hi Krishna,
Please try with this.
call function 'ARCHIVE_OPEN_FOR_READ'
exporting
archive_document = wa_arch_files-document
archive_name = wa_arch_files-archiv_key
object = lv_acc_doc_type "'FI_DOCUMNT'
importing
archive_handle = archive_handle.
call function 'ARCHIVE_GET_NEXT_OBJECT'
exporting
archive_handle = archive_handle
importing
object_id = obj_id
object_offset = obj_offset
archive_name = arc_name
exceptions
end_of_file = 01.
Thanks & Regards,
Vignesh Yeram
2013 Mar 07 4:37 AM
Yes,i tried retrieving the next record through ARCHIVE_GET_NEXT_RECORD using your l_handle and i am getting some data ,but my doubt is if l_handle=765 it starts retriving data from middle(765th rec)then wat abt 1-765 records?