Unzip attachment in Mail adapter or/ File Adapter

Hi everyone,
I need to get flat file from .zip attachment that comes with mail? Is it possible to get it with Mail adapter, unzip it and then make conversion? All steps in the Integration engine?
Another option can be get .zip with File adapter, but again how to unzip it?
Thanks,any help appriciated as I am doing my first XI project.
Nataliya

>
Buffy76 wrote:
> Thanks a lot,  guys. Unzipping is clear now.
>
> Prateek, it would be great if you can you point to "how-to" file or example for MessageTransformBean.
>
> Regards,
>
> Nataliya
ref this https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb1551f05

Similar Messages

  • SRFC-adapter  and file adapter with error: no adapter found

    Hello,
    we have two scenarios here in an XI 3.0 SP12:
    First scenario connects two R/3 systems via RFC adapter (outbound / inbound) for an RFC in a standard R/3 function module SUSR_ZBV_GET_REMOTE_PROFILES.
    The RFC is synchronous.
    Second scenario uses file adapter to send file from A to B.
    When starting the RFC call from the sender system the error message in area "call adapter" for XML message in the trace is "exception while reading from SLD:Property sap_xiadapterservice.adapterType does not exist".
    Message in RWB:
    "Transmitting the message using connection http://abc038.ceu.test.com:8077/sap/xi/engine?type=entry failed, due to: XIServer:AE_DETAILS_GET_ERROR:Property sap_xiadapterservice.adapterType does not: Unable to find any Adapter Engines."
    Same problem for file adapter!
    Here is the message from the file adapter error log entry in SXMB_MONI:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">AE_DETAILS_GET_ERROR</SAP:Code>
      <SAP:P1>af.kx1.test038</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>Property sap_xiadapterservice.adapterType does not: Unable to find any Adapter Engines</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error when reading the access data (URL, user, password) for the Adapter Engine af.kx1.test038</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Looks like an identical problem for both adapter.
    What we have done (checked) so far:
    - SLD connection is working
    - Vis.Admin.: no problems found
    (SAP RFC adapter active, file adapter active)
    - Component monitoring: no errors, adapters are fine
    - all rfc connections checked: ok
    - have checked user and pwd and replaced to be sure
    - cache refresh: ok
    - reimport of SWCV to IR for RFC: done, no result
    Does anybody have an idea, how to get rid of that?
    Best regards
    Dirk

    Hello Udo,
    in Adapter monitoring all adapters are listed and per adapter (here RFC and FILE) all adapter entries from the scenarios are available (sender / receiver comm. channel entries - in green)!
    Pipeline URL in SLD Bus. Syst. is fine ( and an IDOC adapter scenario is running successfully) !
    I think this is a really tricky one!
    Best regards
    Dirk

  • JCBC Adapter and File adapter not processing messages

    Hi
    I noticed that messages are being delivered to Adapter engine and the same are visible in Runtime Workbench with status "to be delivered". But, JDBC Adapter and File Adapter not processing these messages.
    Any idea where I can find the problem?
    I was able to re-deliver successfully via the JDBC Adapter using the MessagingSystem GUI using XISUPER user.
    Regards
    Chandu

    Hi,
    1.Status: TO_BE_DELIVERED
    Which means that the message was successfully delivered from Integration Server point of view and it states that the messages is initially handed over to the Messaging System.
    TO_BE_DELIVERED occurs while the message is put into the Messaging System receive queue.
    Regards
    Agasthuri Doss

  • What kind of data is taken from mail adapter to file adapter

    hai
    i am learning mail to file adapter can u tell me in real time where it is use,
    well what data we will transfer from mail to file.

    sandeep,
    we are using the sender mail adapter to receive mails (IDOCS) from a Exchange server
      when a sales person gets PO thrugh mail then he sends this Po to Mainframes then we use mail to file.
    similarly we can have many situations to useit.
    Message was edited by:
            Sreeram Reddy

  • Need help with a simple process with FTP Adapter and File Adapter

    I am trying out a simple BPEL process that gets a file in opaque mode from a FTP server using a FTP adapter and writes it to the local file system using a File Adapter. However, the file written is always empty (zero bytes). I then tried out the FTPDebatching sample using the same FTP server JNDI name and this work fine surprisingly. I also verified by looking at the FTP server logs that my process actually does hit the FTP server and seems to list the files based on the filtering condition - but it does not issue any GET or RETR commands to actually get the files. I am suspecting that the problem could be in the Receive, Assign or Invoke activities, but I am not able identify what it is.
    I can provide additional info such as the contents of my bpel and wsdl files if needed.
    Would appreciate if someone can help me with this at the earliest.
    Thanks
    Jay

    persiandude wrote:
    Topic: Need help with if, else, and which statements and loops.
    How would I display 60 < temp. <= 85 in java
    System.out.println("60 < temp. <= 85 in java");
    another question is how do I ask a question like want to try again (y/n) after a output and asking that everytime I type in yes after a output and terminate when saying No.Sun's [basic Java tutorial|http://java.sun.com/docs/books/tutorial/]
    Sun's [New To Java Center|http://java.sun.com/learning/new2java/index.html].Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    [http://javaalmanac.com|http://javaalmanac.com]. A couple dozen code examples that supplement [The Java Developers Almanac|http://www.amazon.com/exec/obidos/tg/detail/-/0201752808?v=glance].
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's [Thinking in Java|http://mindview.net/Books/DownloadSites] (Available online.)
    Joshua Bloch's [Effective Java|http://www.amazon.com/Effective-Java-2nd-Joshua-Bloch/dp/0321356683/ref=pd_bbs_1?ie=UTF8&s=books&qid=1214349768&sr=8-1]
    Bert Bates and Kathy Sierra's [Head First Java|http://www.amazon.com/exec/obidos/tg/detail/-/0596004656?v=glance].
    James Gosling's [The Java Programming Language|http://www.bookpool.com/sm/0321349806].

  • Sender RFC Adapter , Sender File Adapter  - Payload Compression

    Sender RFC Adapter or the Sender File Adapter compress the payload of any spaces in between the tags or remove any spaces at the start and end of the payload.
    We need to pass the spaces as is in the message payload to the receiving system?
    Is there a way to do it in PI 7.1.

    Hi Vikrant,
    Preserving white spaces while reading a file from FTP
    NameA.fieldContentFormatting
    - Enter trim to remove all the leading and subsequent blanks for a value found. This is the default.
    - Specify nothing to ensure that the value remains unaltered.
    For RFC you need to check your payload to see whether spaces are coming from R/3 itself or not.
    Regards
    joel

  • False Error in the Adapter Monitor/File Adapter

    I have a receiver file adapter that is showing a 553 Permissions error when the file is actually delivered.  This shows up in the adapter monitor and the message monitor.   
    I've been looking around but I couldn't find anyone who had this problem.

    Hi Mark,
    I think this error is because of Spaces/or and Invalid Characters like  -!"£$%^&*'#... in the file name.
    Just check it. ARe you using FTP server ? or NFS ?
    If it is FTP then also check that  user has a file write permission in the FTP server
         >>Also this may be because of  you don't have righ to write the directory/file(file permissions) with the name already exists i.e overwrite rights..
    Regards,
    Moorthy
    Message was edited by: Krishna Moorthy P

  • SOAP adapter or file adapter

    Hi Gurus,
    Non-SAP system B ->PI->Non-SAP system A.
    The request is sent from non-SAP application  A to Pi and this is routed to another non SAP system sap example SYSTEM B.
    Then B sends the response in the form of XML file to Application A via PI.
    This is sysnchornous interface. Is it possible to use file adapter on both sender and reciever side in this snchrnous interface.
    or do we need to use teh SOAP adapter on both sides to allow communication between the two system webservices or HTTP post method.
    Please suggest all the possible options.
    Any help appreciated.
    Thanks,
    Jay.

    >Is it possible to use file adapter on both sender and reciever side in this snchrnous interface.
    Since it is synchronous interface, I would recommend you to go SOAP adapter on both sides. That is one possible way. 
    The second possible way is  one end file and other end soap(synch) and the response goes back to file adapter. This is file -> SOAP->file.
    refer this [link|http://wiki.sdn.sap.com/wiki/display/XI/File-RFC-File(Without%20BPM)]
    Replace SOAP with RFC.

  • Adapter Framework File Adapter Message on hold

    Hello,
    we have a problem with the Adapter Framework and their the File Adapter / Messaging System.
    We process one HR IDOC from R/3 through XI and send it to 7 file adapters. The SXMB_MONI tells us that all messages have been processed without errors and when you go to the RWB and use the Message-Monitoring many messages are on status HOLD. XI makes the message EOIO once you have multiple receivers and something blocks the messages in the AF. Is there a way to delete the AF queues like the XI queues with SMQ1 or SMQ2. It looks like SAP had duplicated the SMQ business in JAVA but I found no documentation how to clean up queues or what to do if the get stuck.
    Thanks
    Stefan

    hi,
    you can try question 3 adapters section
    on the XI FAQ:
    /people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions
    to see adapters in RWB
    but if you see them when you do it then
    it means that this XI's configuration was not complete
    so you may expect further problems
    Regards,
    michal

  • Diff between Seeburger Adapter and File Adapter

    Hi All,
             My company needs to interact with some banks and the banks are particular that they want SFTP, which is not supported by  File Adapter, so we have decided to go with Seeburger adapter.
    Now what are the differences between File adapter and seeburger adapter?
    I believe that Seeburger adapter does not support File Content Conversion, Archiving etc.
    Could you all pls put some light on the diff between file adapter and seeburger adapter when it comes to dealing with files?
    Xier

    Hi
    You are aware with working of File Adapter.
    The most direct way of using the Seeburger adaptors is to configure the BIC as a module. There is a software component from seeburger called bicmapper which will allow you to
    1. Define or import the inbound message metadefinition in various formats ( edifact, xml,...)
    2. Using a mapping create an xml variant as the output metadefinition or edifact in the other direction.
    3. Create a one to one mapping between input en output.
    4. Export the metadata in xsd or sda format for import in XI
    5. Generate an SDA which can be deployed in XI and used as a module.
    Have a look here,
    http://www.seeburger.com/fileadmin/com/pdf/SAP_Exchange_Infrastructure_Integratio_Strategy.pdf
    Some Seeburger related information
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e2aeb02c-0601-0010-d680-c9be61ffa390
    Go through this threads:
    http://www.seeburger.com/fileadmin/com/pdf/SAP_Exchange_Infrastructure_Integratio_Strategy.pdf
    Need Material on Seeburger Adapters.
    Seeburger Adapter
    Installing seeburger adapter
    http://www.seeburger.com/xi-adapters/
    Thanks

  • File Adapter: trailing space in field using XSD:Decimal in a CSV file

    Hi Folks,
    I have a problem which i am unable to understand fully.
    We have a SAP to file via XI scenario where a mail adapter is used. We are producing a CSV file as an mail attachment.
    The issue is all the decimal fields have an extra space before the next delimiter i.e. comma.
    The data type used in mapping is XSD:Decimal with 'fraction' set as 2.
    I have checked the source XML and there is no trailing spaces there. Initially i thought this might be due to doing the conversion using transformation beans in mail adapter, to rule this out i checked other files produced using FILE adapter they also appear to have same issue.
    I can't get my head around it, could not find any parameter i need to pass in content conversion either in MAIL adapter or FILE adapter to supress trailing space before the delimiter.
    I suppose this must have occured with others as well.
    Any directions would be greatly appreciated.
    Btw, we are on PI 7.0 and ECC 6
    -Praveen
    Edited by: - External Consultants Mouchel on Sep 15, 2009 5:34 PM

    Hi Mouchel,
    I personally didnot encounter this kind of issue with the file adapter at any point of time. I would suggest you to check the message mapping before and after payload in sxmb_moni. If you see in mapping you may not find out, so view the source in notepad and then see.
    Regards,
    ---Satish

  • ASMA parameters in file adapter

    Hi experts,
    Please explain when exactly we will get the requirement to use  ASMA attributes in file adapter and provide few examples?

    HI,
    Just to add a quick note, in the case of adapter like File Adapter you have the option in the Sender / Receiver File Adapter to select the ASMA and the corresponding Attribute ( eg : FileName, Directory etc ) to be used from the SOAP Header.
    In the case of few other adapters like SOAP, you do not have such explicit option. You add the ASMA to the SOAP Header using a UDF and you just select ASMA and Varibale Transport Binding in the Receiver SOAP adapter and all the SOAP Adapter value are replaced with header ASMA.
    Each adapter has a few specific ASMA and these can be seen along with the technical names while trying to set some condtion in the Condition Editory under Context Objects.
    If we check ASMA of file adapter ......all the information corresponding to that attributes will be available in the SOAP header
    Every adapter has a defined set of attributes, which are described individually as part of the configuration for each of the adapters. So these attributes would be visible. And better to call it Message Header instead of SOAP header.
    If we check ASMA in the receiver file adapter then receiver file adapter will pick those values from the SOAP header and will assign to the target file.
    Yes, if mapping of these attributes are done.
    Even we can directly set the target file name by accessing the system parameters through UDF.
    Yes
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e964516
    /people/jin.shin/blog/2007/04/27/sap-netweaver-xi-variable-substitution-with-adapter-specific-message-attributes-via-dynamicconfigurationbean
    /people/sravya.talanki2/blog/2006/12/20/accessing-system-parameters-in-mapping-runtime
    /people/alessandro.guarneri/blog/2007/03/18/basic-spam-protection-for-xi-mail-adapter
    Thanks
    Swarup

  • Adapter moduler in file adapter receiver - get Target Directory from param

    Hi everybody,
    We are in PI 7.1
    I need in an adapter module (file adapter receiver) to access to the Target Directory comming from parameters
    I foound the code in a weblog
    /people/sap.user72/blog/2005/07/15/copy-a-file-with-same-filename-using-xi
    Here is the code I found
    public ModuleData process(
              ModuleContext moduleContext,
              ModuleData inputModuleData)
              throws ModuleException {
              Object obj = null;
              Message msg = null;
              try {
                   Channel ch = new Channel(moduleContext.getChannelID());
                   obj = inputModuleData.getPrincipalData();
                   msg = (Message) obj;
                   XMLPayload xmlpayload = msg.getDocument();
                   String path = ch.getValueAsString("file.targetDir");
                   if (!path.endsWith("
    ") && !path.endsWith("/"))                    
                             if(path.indexOf("
    ")!=-1)
                                  path+="
                             else
                                  path += "/";
                   if (xmlpayload != null) {
                        convert(xmlpayload.getContent(), path);
                   inputModuleData.setPrincipalData(msg);
              } catch (Exception e) {}
              return null;
         private void convert(byte[] bs, String path) throws Exception {
              String bs_out = new String(bs);
              String filename =
                   bs_out.substring(
                        bs_out.indexOf("<FileName>") + 10,
                        bs_out.lastIndexOf("</FileName>"));
              bs_out =
                   bs_out.substring(
                        bs_out.indexOf("<Base64>") + 8,
                        bs_out.lastIndexOf("</Base64>"));
              byte bb[] = com.sap.aii.utilxi.base64.api.Base64.decode(bs_out);
              File f1 = new File(path + filename);
              FileOutputStream fos = new FileOutputStream(f1);
              fos.write(bb);
              fos.close();
    The object Channel come s from the package import com.sap.aii.af.service.cpa.Channel;
    The jar is in the build path (com.sap.aii.af.service.cpa.jar);
    When I write in NWDS
    Channel ch = new Channel(moduleContext.getChannelID());
    NDWS gives me an error "Cannot instantiate the type Channel".
    Can somebody help me about that, please?
    Does that code dosn't work in pi 7.1?
    Thanks in Advance for your help.
    Best Regards.
    E. Koralewski
    Edited by: Eric Koralewski on Feb 3, 2011 1:40 PM

    > When I write in NWDS
    > Channel ch = new Channel(moduleContext.getChannelID());
    > NDWS gives me an error "Cannot instantiate the type Channel".
    it should be:
    Channel ch = (Channel) LookupManager.getInstance().getCPAObject(CPAObjectType.CHANNEL, moduleContext.getChannelID());
    (taken from sample module ConvertCRLFfromToLF)
    http://help.sap.com/javadocs/pi/pi711sp03/index.html?com/sap/aii/af/service/cpa/Channel.html
    Edited by: Stefan Grube on Feb 3, 2011 2:02 PM

  • How to add fault handling for file adapter??

    Hi guys I am new to SOA technology ,I have one scenario  in file adapter  ,when file adapter reads a file from directory .If file is there   then read the file  data else it can give user defined exception that  the file is not there .How can i write user defined exception in SOA?? Give me any ideas please.............
    Thanks in advance..

    So, you want to (1) Fetch the data from these 3 type of files and (2) Also, store the payload data of the file, which is in XML format, into the same database tables ?
    If this is the requirement.. then, I would say, you could :
    (1) Read files using file adapter, but not as opaque.. Define schemas conforming to the file structures. In that way, you'll always have the file data read in the form of XML.
    (2) Fetch relevant data from such XML payloads of files and insert into database tables. Then, insert the XML payload into WHO column. You might have to convert the xml data into blob/clob before inserting.
    Job done !

  • Error in File Adapter: no alert generated

    Hi folks,
    I have a problem with monitoring our file adapters.
    In one scenario we occasionally get the following error:
    Fehler bei der Konvertierung des Dateiinhalts in XML an Position 0: java.lang.Exception: ERROR converting document line no. 2 according to structure 'eTSFlatDetailStructure':java.lang.Exception: ERROR in configuration / structure 'eTSFlatDetailStructure.': More elements in file csv structure than field names specified!
    So I have build an alert category with me as recipient and an alert rule in Runtime Workbench with the following attributes:
    - Rule active
    - Alert-category as I have created above
    - Bound to Message: no
    - Error occures in Adapter Engine -> File Adapter
    I have tested the Category... it works... but the rule does not fire any alert.
    Has anyone an idea how to solve this problem?
    Thanks
    Greetings
    Habib Sarbas

    Hi,
    the report generates following output:
    20090507072803,7018210          0  07.05.2009    09:28:03      0AFE24F09F47460132CAD06697A18964
    *Error records received from AF on host rd-srxt0_RXT_00 (sysid: RXT client:  ). Try to send Alert...
    20090507072803,7045260          0  07.05.2009    09:28:03      0AFE24F09F47460132CAD06697A18964
    *Find rule for (From:vkeTSFlatBPM:vkeTSFlatBPM_var01_eTSSender:mi_eTSFlat_var01_out_asyn:urn:rsd-de:xi:ZRSD_XI_01:vkeTSBPM To::::)
    20090507072803,7063530          0  07.05.2009    09:28:03      0AFE24F09F47460132CAD06697A18964
    *No matching rule found
    I also tried to specify the conditions with service, interface and namespace, but this is only possible if i switch bound to message to yes...
    but the error occurs in file adapter... there is no message generated...

Maybe you are looking for