Skip to Content

Need details on how to make custom ABAP report archive enabled

Hi All,

We are working in our project to make custom reports as archive enabled so that they can read archived data.

Need some information on the below queries.

1.Is there any function module to read selected data from archive file? For example i don't want to read the whole BKPF table data from archive file instead want to get belnr and bukrs only.

2. What are the perfromance measure which can be taken while making an existing program archive enabled

3. Important archiving tables which can help for the above.

4. When i use the function module "Archive_open_for_read' then system displays a pop up to select the archive files based on the archive object.

Considering that all the reports are run in background how do i make sure that in background run all the archive files are selected and processed.

Thanks in advance for your valuable suggestions...


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Mar 17, 2009 at 05:45 AM

    This message was moderated.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 16, 2009 at 01:39 PM

    Take a look at program RSARCH05

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 16, 2009 at 04:21 PM

    Hi Ajay,

    1. You have to create a separate field catelogus and AIS according to your requirement with the required fields you want . Because the standard structures and field catelogues contains many fields from all tables. So before doing the read operation you have to deactivate the standard AIS and activate your newly created AIS .

    2. Can you give some more details for this question to be answered.

    3. The important archiving tables used are ARCH_IDX,ARCH_RPRG,ARCH_DEF.

    4. While scheduling the Read process in batch mode , it will give you three criterias to be entered.

    ℹ️ . Spool Parameters

    (ii). Start date

    (iii). Archive selection of files.

    Unless you enter values for any one of these options , You cannot execute the batch job.

    Hope this would help you.

    Regards - Swarna.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Ajay,

      Ans 1:

      You can create an new archive info structure with a field catalog which contains only the fields you would like to retrieve (Transaction <SARI> and <SARJ>). When you activate an archive info structure,in the background SAP generates an ABAP program. The structure of this program would not be similar to the standard read program. But still you could add this program name in transaction <AOBJ> ---> Arch Object ---> Read Program, so that it will appear in the selection options when you press on READ in transaction <SARA> , along with other standard read programs, if any.

      Ans 4:

      If you are using the function 'archive_open_for_read' and you want to run the program in background, write the code in such a way that you pass the archive document numbers to the export parameter "archive_document" of the function module. If you pass this value , then archive selection pop-up would not appear when you execute the read program.

      Hope this input helps you.



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.