07-04-2008 10:13 AM
Hi,
I have the following requirement and somehow don't have a clue on how to achieve this in ABAP.
I have 4 files stored in ABAP tables, say File1, file2, file3 and file4.
I want to provide a download functionality of these files such that on triggering a download the user should get a ZIP file which should have a structure as follows:
Root Folder
- Folder1 |
-
File1
-
File2
- Folder2 |
-
File3
|
-
File4
The issue is, I can add files directly to a zip in ABAP(as far as i know) but putting the same files organized in a directory structure like above is the issue.
Can somebody help me with this?
I would prefer the download to be through an ICF service which can internally extract the files from the DB, package them in the required directory structure and compress the structure into a zip and thereafter return it to the caller (i.e. the BSP page/any other client).
Regards,
Vikas
07-04-2008 10:19 AM
Hi,
Try to use GUI_EXEC to execute the particular program or Zip mechanism program.
Im not sure wether this will solve ur issue or not.
Reward if helpful.
Best Wishes,
Chandralekha
Edited by: Chandralekha on Jul 4, 2008 11:19 AM
Edited by: Chandralekha on Jul 4, 2008 11:20 AM