Skip to Content
avatar image
Former Member

module to zip and unzip

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Aug 13, 2007 at 02:17 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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.

  • avatar image
    Former Member
    Aug 13, 2007 at 01:42 PM

    Hi Hema !

    Check this weblog:

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

    Regards,

    Matias

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 13, 2007 at 02:13 PM
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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.

  • avatar image
    Former Member
    Aug 14, 2007 at 05:28 AM

    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

    Add comment
    10|10000 characters needed characters exceeded