2007 Jul 27 9:23 PM
Hi All,
I want to read the idoc from the archive in the program.
Please suggest the possible options.
we can read the idoc present in the R/3 database using the FM idoc_read_completely.
But how to read the same from the archive. I can view the idoc from the t-code we10.
Thanks in Advance.
Ankit Gupta
2007 Jul 27 10:19 PM
You have a couple options here.
1. Use the Archive Development Kit (ADK). There are a bunch of functions in function group ARCH that are useful for reading archive files. For an example, see program RSEXARCR.
2. Import the data into the Archive Information System. You'll have to populate an infostructure, and then you could write an ABAP program to read that.
2007 Jul 27 10:19 PM
You have a couple options here.
1. Use the Archive Development Kit (ADK). There are a bunch of functions in function group ARCH that are useful for reading archive files. For an example, see program RSEXARCR.
2. Import the data into the Archive Information System. You'll have to populate an infostructure, and then you could write an ABAP program to read that.
2007 Jul 27 10:39 PM
Hi Kevin,
Thanks for quick reply.
For all the archiving FM in the function group ARCH, I need to specify the file name.
I want a solution where I just pass on the idoc number and it give me the idoc data record (EDID4).
It would be some modified form of t-code we10.
Please help.
Regards,
Ankit
2007 Jul 27 10:42 PM
Check the function module EDI_IDOC_GET_FROM_ARCHIVE to read the archived IDOC..
<i>*Reward each useful answer</i>
Raja T
2007 Jul 28 7:04 AM
Thanks buddy.
I will try this in my code. Look like it will solve my problem.
But now I have another question. Should I start new thread or can post in the same thread.
Archive infostructure SAP_IDOC_001 is not active in my system. what is the procedure to do it and also it should link to the existing Archive file also.
Regards,
Ankit
2007 Jul 30 4:24 PM
You can activate this in transaction SARI. Go to Customizing, enter the infostructure, and click Activate. Then, to populate it, go back to the beginning screen in SARI and click Status.
Once you have activated this, it will most likely get populated with every archiving job for that object. If this is not what you want, you should deactive this after you get what you need.