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

Archiving Query

Former Member
0 Likes
639

Hi,

I want to know whether if we can read the contents of the archive file by passing the archive file key. I have the archive key in my Z table and I dont want to use the function modules which take handle as the input to read the archive details.

Regards,

Ankur Bhandari

6 REPLIES 6
Read only

Former Member
0 Likes
619

Dear Ankur,

Could you be more specific??? Are you trying to read some file from your presentation server???

Regards,

Deva.

Read only

0 Likes
619

I am not. I have archived SAP data in some files , I have the archive file key. want to know if I can use some function module which will read the file for me.

Ankur Bhandari

Read only

0 Likes
619

hi

U can read files using these FM's

<b>gui_download</b>

<b>gui_exec</b>

but am not sure if it can help in ur case.

Read only

0 Likes
619

Hi, u have to use:

for opening a file use ->

ARCHIVE_OPEN_FOR_READ

when your file its openend, use

ARCHIVE_READ_OBJECT

for reading a single OBJECT

afeter reading a single object, you have to retrieve it's information, for that use

ARCHIVE_PUT_RECORD

(for a single entrie) or

ARCHIVE_PUT_TABLE

(for a whole table)

after working with the file, you have to close it with

ARCHIVE_CLOSE_FILE

Look at demo program

RSARCH10

and function Groups

ARCH

and

AS_API

Hope it helps.

Read only

Former Member
0 Likes
619
Read only

Former Member
0 Likes
619

Dear Ankur,

You can read the file from your presentation server by GUI_UPLOAD for that purpose. Read the file with the file name (actually file path).

regards,

Deva.