Skip to Content

Name zip file and zipped file in File Receiver

Dear experts,

I have a "RFC to File"-scenario. So I have a File Receiver and the received XML needs to be zipped. I have a XSLT mapping that hands over a dynamic file name to the File Receiver. Now when I use the PayloadZipBean my resulting ZIP-file gets the dynamic name. But the zipped XML gets the name "untitled.xml". But I also want the zipped file to get the dynamic name!

I had a look at Stefan Grube's blog /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework

and also at the WIKI

Do you know if there is any way I can avoid writing my own adapter module? I would like to stay with SAP standard modules!

If not, will the module described in that WIKI also work with a File Receiver instead of a Mail Receiver? (I think it should)

Thank you for any ideas and best regards,


Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Best Answer
    Posted on Apr 13, 2011 at 03:34 PM

    Follow instructions given Note 965256 - XI 3.0 Adapter Framework Zip Module

    You need to use MessageTransformBean to get filename for your contents inside zip file. See stefan's blog.

    In addition to your payloadZipBean, you have to do the following MessageTransformBean


    Module Name: AF_Modules/MessageTransformBean
    Type : Local Enterprise Bean
    Module Key: contentType

    Module configuration

    Module Key:contentType         
    Parameter Name:Transform.ContentType
    Parameter Value:text/xml; charset="UTF-8"; name="file.xml"

    Edited by: Baskar Gopal on Apr 13, 2011 12:14 PM

    Add comment
    10|10000 characters needed characters exceeded