cancel
Showing results for 
Search instead for 
Did you mean: 

module to zip and unzip

Former Member
0 Kudos

can anyone pls suggest me any module is there to zip and unzip a file.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Hema !!!

Check this out !

/people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework

also

https://service.sap.com/sap/support/notes/965256

Check this weblog on how to zip the file using XI:

/people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework

PayloadZip Bean

/people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework

Through command line

Check case 2 in this blog

/people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions

or ref plsz go tru it,

/people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions

Check this weblog on this from stefan:

/people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework

http://help.sap.com/saphelp_nw70/helpdata/en/84/2e3842cd38f83ae10000000a1550b0/frameset.htm

/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step

Pls reward if useful

former_member189387
Active Contributor
0 Kudos

Hi ,

The following blog excellently expalins ur need. U have to write adapter module for that .It is really good. I have tested also .

SAP XI acting as a (huge) file mover

/people/alessandro.guarneri/blog/2007/02/21/sap-xi-acting-as-a-huge-file-mover

Best Regards.,

V.Rangarajan

henrique_pinto
Active Contributor
0 Kudos

ranga,

there is no need to develop a custom module anymore.

That document is prior to PayloadZipBean standard module.

Just take a look at Stefan's blog.

Regards,

Henrique.

prateek
Active Contributor
0 Kudos
Former Member
0 Kudos

Hi

Thanks for the suggestion.

My actual requirement is Iam sending around 65000 records(in batches)from proxy to file.

Iam constructing the flat file with content conversion with append mode. For that i need to do encryption which is not possible in append mode constructed file.

So iam thinking to run another scenario to handle that final flat file(around 90MB) zip at the sender side and unzip at the reciever side and encrypt.

is this possible

or any other optimal solutions for my problem??

Former Member
0 Kudos

Hi Hema,

You can use the option 'record set per message' in sender CC and append mode in Recr CC to transfer 65000 records even though size is 90MB.

Try it out.I hope ur prob will be resolved.

Regards,

Srinivas

Former Member
0 Kudos

Hi,

Firstly a huge file of 90MB might take longer to process. Standard size that is followed is around 20 MB. So check wether it effects the performance of the scenario.

Second part ZIP and Unzip of file.

2 ways it can be acheived.

Zip or Unzip your Payload with the new PayloadZipBean module of the XI Adapter

/people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework

XI/PI: Command line sample functions -> go through case 2

/people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions

<b>Cheers,

*RAJ*</b>

Former Member
0 Kudos

Hi Hema !

How are you encrypting the data? are you encrypting row based or file based. Some ideas: you can encrypt each row via udf, using a datatype that handles each row as a raw line, no fields splitting. Once the processing is done, you will have the encrypted file on target destination. Then you will need some mechanism to detect that the file is completed, to execute a script for zipping.

You idea of 2 scenarios looks ok, you could use the abap proxy-> file to create the file in the file system and another scenario to encrypt.

For detecting file completition using append mode, you could program your abap proxy to send for example, for each batch, the filename (as a field in payload) of the target file and use this via dynamic configuration to create the file via file adapter (e.g. "file001.tmp"). While the mesages arrive to file adapter with same file name and using EOIO, using append you will build the file. Then, after the last batch you could send one more message, with same filename but different extension (e.g. "file001.txt")...this could trigger an operating system script that renames the previously created file to its final filename (e.g. "file001.tmp" -> "file001.txt").

Regards,

Matias.

Former Member
0 Kudos

Hi Hema !

Check this weblog:

/people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework

Regards,

Matias