Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

'ARCHIVE_READ_OBJECT'

Former Member
0 Likes
2,209

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.

5 REPLIES 5
Read only

vigneshyeram
Active Participant
0 Likes
1,603

This message was moderated.

Read only

Former Member
0 Likes
1,603

Hi Krishna,

Please check this example program.

SBOOKS

Hope its helpful for u.

Regards,

Santanu Mohapatra.

Read only

thorsten_hopf
Advisor
Advisor
0 Likes
1,603

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

Read only

0 Likes
1,603

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

Read only

0 Likes
1,603

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?