Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

Take two files from a folder and compress them into one zip file

$
0
0

Hi experts,

 

AS IS, without SAP ERP and SAP PI, my scenario extracts some data from a DB (a stored procedure) and writes two files that are, then, compressed into a zip file.

 

Now, the TO BE, with SAP ERP and SAP PI, my scenario will be ABAP PROXY -> PI -> and 2 FILE. Until now I have done the first part, so I have extracted the data from the ERP and I have sent it to SAP PI that writes to separates files into a folder (that we will call, to simplify, A.TXT and B.TXT).

 

I have tried to zip both into one zip file in two way:

 

- Using the AF_Modules/PayloadZipBean: but no way, this module can only zip every single file, with a 'bad name' inside every single zip file (Maindocument)

 

- Using some OS Commands: but I can't ... maybe I haven't found the right command ...

 

So, this is my goal:

 

- take two files from a folder and compress them into one zip file

 

- And, if it's possible, maintain the original names of each file into the zip file (not like Maindocument)

 

I think to be near the solution but maybe I lost some details that are importants to reach my goal, so I need your help

 

Thanks,

 

Antonello


Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>