‎2005 Dec 29 8:45 AM
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
‎2005 Dec 29 9:09 AM
Dear Ankur,
Could you be more specific??? Are you trying to read some file from your presentation server???
Regards,
Deva.
‎2005 Dec 29 9:28 AM
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
‎2005 Dec 29 9:32 AM
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.
‎2005 Dec 29 10:28 AM
Hi, u have to use:
for opening a file use ->
ARCHIVE_OPEN_FOR_READwhen your file its openend, use
ARCHIVE_READ_OBJECTfor 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_FILELook at demo program
RSARCH10and function Groups
ARCHand
AS_APIHope it helps.
‎2005 Dec 29 9:28 AM
‎2005 Dec 29 9:34 AM
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.