FTP 2 IDoc with XML payload mapping

Good day,
is this scenario possible or do I have to split it into two different interfaces:
1. FTP ->NFS
2.XML file -> IDoc.
regards.

Hi,
Yes these scenarios are possible
1. FTP ->NFS
Refer file to file scenario on receiver side configure it as NFS
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1 - File to File Part 1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2 - File to File Part 2
2.XML file -> IDoc
How to Convert Between IDoc-XML Structure to a Flat File and Vice Versa in Exchange Infrastructure 3.0 (NW2004)
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
/people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping - Any flat file to any Idoc
Thanks
Swarup
Edited by: Swarup Sawant on Mar 5, 2008 5:18 PM

Similar Messages

  • SSL/TLS security certificate data match with XML Payload in SAP PI

    Hi,
    We are working on a solution where we would want to use SSL/TLS or WS Security with client server mutual authentication using client server certificates.
    But, once the sender is authenticated using the certificates, can the XML payload be matched for the correctness with the certificate information? Is this available to PI integration engine at any time? Like Sender A autheticated as A using certificates, must be stopped if his XML payload is saying that he is sender B (which is most unlikely if we trust the senders but did not want to leave a loophole).
    Any ideas here?
    Thanks and Regards,
    Vijay

    Hi Wolfgang,
    Cross-posting is discouraged and against the forum rules, because it is misused and makes a mess of the search due to distributed discussions and answers.
    I will move it to the PI forum and add a watch on it as it is security forum related.
    Unfortunately, the forum software does not have the option to "mirror" threads.
    Cheers,
    Julius
    Edited by: Julius Bussche on Sep 14, 2009 9:50 PM

  • Retrigger failed IDOC with XML HTTP port

    Hi Friends,
    Can anyone suggest me how to retrigger failed IDOCS in we05 with XML HTTP port, any other than we19 to retrigger? I have already gone through all the links in sdn, nothing seems to work, have tried program RSMIPROACT also.
    Thanks & Regards
    Ridhima

    Hello,
    Please check the below SAP Note:
    857321 - Resending HTTP IDocs automatically in status 02
    -Rahul

  • Incoming Image file with XML payload processing

    Hi,
    We have PI 7.1 and the interface is from file to standard RFC scenario with ABAP proxy in ECC.
    2 incoming files need to be processed by the interface - xml file with transaction details and the corresponding Image file.
    These files have to be mapped to the standard RFC and then pushed into ECC.
    Can the Java mapping be used in message mapping to pass the image file in the RFC as I do not want to use the Java module?
    If yes, can someone please help with the code and the mapping aspects?
    Regards,

    Abhishek,
    Though I never worked with server proxy with attachments,
    In my opinio, when it is possible to send attachments from outbound ABAP proxy,  then logically it should be possible to read attachments in the inbound proxies.
    I just saw this link in forum,
    [Re: Inbound proxy with attachments.|Re: Inbound proxy with attachments.]
    Regards,
    Praveen Gujjeti.
    Edited by: Praveen Gujjeti on Apr 8, 2010 5:25 PM

  • Reading XML payload from text file

    Hello,
    I have a text file with XML payload in it. The text file has some header information and then the XML payload. How do I read only the XML payload for processing in PI?
    the structure of the text file is something like this..
    Header Information
    Payload
    Sample:
    #Datetime: 20140318-09:28:50.129
    #MessageID: sample123
    #Sender: TEST
    #SenderParty: TEST
    #ReceiverService:
    #ReceiverParty: Test
    #Interface: Test123
    #InterfaceNamespace: http://test.com
    <?xml version="1.0" encoding="UTF-8"?>
    <Sample ><Header>......
    Please advise.
    Thank you.
    Larry.

    package com.learning.utils;
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.Reader;
    import com.sap.aii.mapping.api.AbstractTransformation;
    import com.sap.aii.mapping.api.StreamTransformationException;
    import com.sap.aii.mapping.api.TransformationInput;
    import com.sap.aii.mapping.api.TransformationOutput;
    public class FetchPayload extends AbstractTransformation {
      String strData = null;
      @Override
      public void transform(TransformationInput arg0, TransformationOutput arg1)
      throws StreamTransformationException {
      // TODO Auto-generated method stub
      getTrace().addInfo("File Reading started ");
      String strData = convertStreamToString(arg0.getInputPayload()
      .getInputStream());
      getTrace().addInfo("File Reading successfully completed ");
      try {
      getTrace().addInfo("Generating XML started");
      strData.substring(strData.indexOf("<?xml"), strData.length());
      arg1.getOutputPayload().getOutputStream().write(
      strData.getBytes("UTF-8"));
      getTrace().addInfo("Generating XML started");
      } catch (IOException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
      public String convertStreamToString(InputStream in) {
      StringBuffer sb = new StringBuffer();
      try {
      InputStreamReader isr = new InputStreamReader(in);
      Reader reader = new BufferedReader(isr);
      int ch;
      while ((ch = in.read()) > -1) {
      sb.append((char) ch);
      reader.close();
      } catch (Exception exception) {
      return sb.toString();
    and u can get  the xml as a resultant which  u can use as input for next message mapping.
    thanks and regards,
    Praveen T

  • Inbound IDOC using  XML

    Hi,
    I need to create an Inbound IDOC using Function modules using an XML file as Input.
    I am using mySAP ERP 2004(WAS 6.4).
    IDOC type : HRMD_A05
    Message Type : HRMD.
    I am using the FM's in an ABAP report for testing, reading the data from the XML File using the FM GUI_UPLOAD .
    I tried using the FM <b>IDOC_INBOUND_XML_VIA_HTTP</b>,with import parameters XML_STREAM, CONTENT_LENGTH, CONTENT_TYPE, REMOTE_ADDR.(ALL Type Strings)
    This FM creates the IDOC successfully but i do not get the status record for the IDOC as there are no export parameters or tables where i can get the value.
    I am trying using the FM <b>IDOC_INBOUND_XML_SOAP_HTTP</b>,with import Parameters as <b>XML_STREAM type XSTRING</b>,and there is the export parameter ASSIGN ,type IDOC_ASSIGN_TAB and i was wondering if this could return the status.
    I used the same XML and used the FM "SCMS_STRING_TO_XSTRING", to convert the file input string into XSTRING.
    On executing this i get the exception,"NO DATA RECEIVED" .
    Can anybody Please Tell me
    1)How to get the status of an IDOC if i use the FM IDOC_INBOUND_XML_VIA_HTTP ?
    2)How to use the FM IDOC_INBOUND_XML_SOAP_HTTP ?
    3)Is there any other way to create an IDOC with XML input?
    Thanks,
    regards,
    Siddhartha Jain

    HI Nagarajan,
    I had checked the first link mentioned by you and activated the required service from Transacttion SICF,but still it didn't help.
    The second link points to the IDOC Adaptor for XI,guess it won't help as i'm not using XI.
    I want to pass XML data read from file and call a FM which creates and posts and IDOC into R/3 and returns the IDOC Number and Status.
    For this i found the FM's IDOC_INBOUND_XML_SOAP_HTTP and IDOC_INBOUND_XML_VIA_HTTP.
    The FM IDOC_INBOUND_XML_VIA_HTTP accepts xml as string and posts IDOC succesully,but i do not get the status and IDOC Number.
    The IDOC_INBOUND_XML_SOAP_HTTP accepts xml as xstring,so i used the FM SCMS_STRING_TO_XSTRING to convert the same xml string to xstring and pass it to the FM.But it gives an error 'NO DATA RECEIVED'.
    If i make few changes to the XML doc,to include SOAP envelope ,like
    <?xml version="1.0" encoding="UTF-8"?><HRMD_A05>.......</HRMD_A05>
    to
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:Body><IDOC BEGIN="1">.......</IDOC></soap-env:Body></soap-env:Envelope>
    I get the error,the tag <IDOC BEGIN="1"> not found ,the IDOC XML should be of format <IDOC BEGIN="1"> <IDOC>.
    Can anybody please help on what to do/how to proceed.
    Thanks,
    Regards,
    Siddhartha

  • XML Data Mapping Disappear when Reopening xlf - Xcelsius

    Hi,,,
    I have created one xcelsius with XML Data maps which works fine. But when I re-open this XLF, the XML data mapping disappear from XML source screen of Excel. It's so much enoying, so every time when i re-open the xlf. I have to map xml data again and then do some formating. after that it works fine.
    I guess i have missed some setting. Does anyone has faced such a weired problem with xcelsius.
    your quick help in this will be really appreciated.
    Regards,
    Ashish

    Hi,
    Its a Fixed Issue ,It has been solved
    For Futher Details
    http://alteksolutions.com/wp/index.php/2010/10/xcelsius-2008-sp-3-fix-pack-3-now-available/
    XML Data Maps Disappear when Reopening xlf
    Regards
    Naveen

  • How to pass XML payload to HTTP POST Service.

    Hi All,
    I am calling a RestFul service using Http Post method.
    If the payload type is "url-encoded" then my directly assignment of values using assign activity is working fine.
    But when i change the payload type to "xml" , It's erroring out saying the value is not provided for the parameters..
    You can also try this using below details to reproduce the issue.
    Details:
    =====
    URL : http://api.geonames.org/postalCodeSearch
    Used HttpBinding as reference in composite.
    XSD :
    <?xml version= '1.0' encoding= 'UTF-8' ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.example.org" targetNamespace="http://www.example.org"
    elementFormDefault="qualified">
    <xsd:element name="geonames">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="totalResultsCount" type="xsd:integer"/>
    <xsd:element name="code" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="postalcode" type="xsd:string"/>
    <xsd:element name="name" type="xsd:string"/>
    <xsd:element name="countryCode" type="xsd:string"/>
    <xsd:element name="lat" type="xsd:float"/>
    <xsd:element name="lng" type="xsd:float"/>
    <xsd:element name="adminCode1" type="xsd:string"/>
    <xsd:element name="adminName1" type="xsd:string"/>
    <xsd:element name="adminCode2" type="xsd:integer"/>
    <xsd:element name="adminName2" type="xsd:string"/>
    <xsd:element name="adminCode3" type="xsd:integer"/>
    <xsd:element name="adminName3" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="Input">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="postalcode" type="xsd:string"/>
    <xsd:element name="username" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    We need to send following input values to the service.
    postalcode = 90110
    username =siddhardha
    Can someone let me know how to make it work with XML payload.Looks like i am not constructing the XML payload correctly in assign.
    Please send me the sample to [email protected].
    Thanks in advance,
    Siddhardha.

    Sid,
    I am still trying the same, here we need to change the input type to mimeXml
    have a look at this link....
    https://blogs.oracle.com/reynolds/entry/oracle_http_adapter
    I am trying multiple ways, everytime i get the same below error...
    <messages>
    <Invoke1_Request-Response_InputVariable_2>
    <part name="Input">
    <Input>
    <postalcode>90110</postalcode>
    <username>siddhardha</username>
    </Input>
    </part>
    </Invoke1_Request-Response_InputVariable_2>
    <Invoke1_Request-Response_OutputVariable>
    <part name="geonames">
    <geonames>
    <status message="Please add a username to each call in order for geonames to be able to identify the calling application and count the credits usage." value="10"/>
    </geonames>
    </part>
    </Invoke1_Request-Response_OutputVariable>
    </messages>
    Thanks,
    N

  • XML Payload with attachment idoc to rnif

    Hi Experts,
    I am doing the scenario Idoc to RNIF. i have to pick up some1234 .pdf , fieldticket.pdf files and attached to the xml payload of out put and send it to the customers. How can we do this. please any one help me. If you have any documents please send me.

    Anyone working/worked with RNIF adapter would like to share their experience.

  • Conversion of purchasing idoc to xml and sending with FTP to supplier

    Hello,
    I have a question about something i am not very familar with. And i could not find the answer in this forum.
    We have a supplier who wants to receive our orders by EDI.
    The plan is to convert the IDOC to XML and to send this XML by FTP to our supplier.
    Could anyone give me some hints to achieve this.
    usefull help will be rewarded.
    Gr., Frank

    Hi,
    1. Create XML port in WE21.
    2. Configer the partner profile in WE20 for required message type.
    3. Access the file by using transaction AL11.
    Thanks,
    Asit Purbey

  • Idoc with XSLT Mapping ALE service error

    Hi all,
    I have the same problem with "converting to an ALE logical system".
    In this case I have a Business System without logical system name in the SLD. This information for the IDoc control record, like SNDPOR, I will map with a xslt mapping.
    In weblogs from Michael are the properties for the directory described.
    /people/michal.krawczyk2/blog/2005/09/01/xi-idoc-adapter--edidc40--demystified
    I selected in the comminication channel the last two check boxes, as described in SAP help.
    "Take Sender from Payload
    If you want to take the sender of the message from the payload and not from the configuration information in the Integration Directory, set this indicator.
    If you do not set the indicator, the information is taken from the configuration in the Integration Directory.
    Take Receiver from Payload
    If you want to take the receiver of the message from the payload and not from the configuration information in the Integration Directory, set this indicator.
    If you do not set the indicator, the information is taken from the configuration in the Integration Directory.
    If you set both of the above indicators, you do not require a heading mapping and do not need to set the alternative identifiers.
    However, you must ensure that the SNDPRN, SNDPRT, RCVPRN, and RCVPRT fields are set in the IDoc control record.
    Setting the senders and receivers of a message from the payload simplifies configuration and speeds up processing.
    If the sender and receiver are not set correctly in the payload, the resulting error is only visible in the receiving system. "
    In my XSLT-Mapping I set the appropriate Idoc fields:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml"/>
    <xsl:preserve-space elements="*"/>
    <xsl:template match="DATEN">
    <_-XXX_-018_XXXXX_XIDATEN>
    <IDOC>
    <xsl:attribute name="BEGIN">1</xsl:attribute>
    <EDI_DC40>
    <xsl:attribute name="SEGMENT">1</xsl:attribute>
    <TABNAM>EDI_DC40</TABNAM>
    <DOCREL></DOCREL>     
    <DIRECT>2</DIRECT>
    <IDOCTYP>_-XXX_-018_XXXXX_XIDATEN</IDOCTYP>
    <MESTYP>_-XXX_-018_XXXXX_XIDATEN</MESTYP>
    <SNDPOR></SNDPOR>
    <SNDPRN>XXXXX01IN</SNDPRN>     
    <SNDPRT>LS</SNDPRT>
    <RCVPOR>xxx</RCVPOR>
    <RCVPRN>xxx</RCVPRN>
    <RCVPRT>LS</RCVPRT>
    </EDI_DC40>
    <xsl:variable name="pid" select="substring(.,1,1)"/>
    But in the sxmb_moni the message is red with the error message :" converting to an ALE logical system"
    Have you any idea?
    With another interface I used a graphic Mapping and the same properties in the directory and it works.
    Bye
    Stefan

    Hi togehter,
    it works now, after cpa_cache and sxi_cache.
    and and ...
      <IDOCTYP>/XXX/018_XXXXX_XIDATEN</IDOCTYP>
      <MESTYP>/XXX/018_XXXXX_XIDATEN</MESTYP>
    Without: _-...
    I would write a blog.
    Does know one how that goes here?
    Thanks
    SDN is great
    Stefan

  • From IDoc to SMTP with XML attachment.

    Hi,
    I'm looking for some info to guide me up how to split and IDOC structure into an email message that contents an XML file attached and a NFS repository.
    I mean, i need to create an XML FIle from the IDOC and i need to post it into a NFS directory and also send it attached into an email message.
    May i create both messages in a single process?
    This is my scenario:
    <R/3 Sales IDoc> TO <SMTP/FTP Business partners> and <local file system>.
    Thnx in advanced.
    Gerardo.
    Ps. I will post reward points.

    Bhavesh/Krishna,
    Thank you guys for your helpful comments, just to acknowledge you i have gathered all the links that i found in these forums in order to help other people in this issue:
    <b>Introduction to IDoc-XI-File scenario and complete walk through for starters</b>
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    <b>IDOC to XML</b>
    IDOC to XML
    <b>Send a XML file using the mail adapter</b>
    Send a XML file using the mail adapter
    <b>Example: Multicast – Multiple Receivers (with Response Message)</b>
    http://help.sap.com/saphelp_nw2004s/helpdata/en/11/13283fd0ca8443e10000000a114084/content.htm
    <b>Multi-Mapping without BPM - Yes, it’s possible!</b>
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    <b>Mail Adapter scenarios – SAP Exchange Infrastructure</b>
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    <b>XI: Dynamic name in the mail attachment - pseudo "variable substitution"</b>
    /people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution
    <b>XI: HTML e-mails from the receiver mail adapter ?</b>
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
    <b>Receiving Mail attachments using additional files of file adapter.</b>
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    Best regards,
    Gerardo.

  • Response Payload (Mapped XML) in SXMB_MONI

    Hi,
    I found many posts with the same question and but couldn't get an answer
    Posting it again!
    I can find the request and response( XML after mapping) if it is a X - IDoc scenario. But for IDoc - X scenarios I can find only the request payload which is the IDoc XML not the mapped XML.
    Is there any way I can get the mapped XML also in SXMB_MONI?
    Could you throw some light towards where these XML is stored in J2EE engine?
    Regards,
    Anish

    Hi,
    In the SXMB_MONI I get only 3 menus
    Inbound Message(CENTRAL)
        -SOAP Header
        -SOAP Body
        - Payloads
    Receiver Grouping
        -SOAP Header
        -SOAP Body
        - Payloads
    Response
        -SOAP Header
        -SOAP Body
    Payloads option is not there in the last menu and I need that payload XML and that too in the Runtime.
    Any help on the same?
    Regards,
    Anish

  • Having a try with HCI, newly mapped data not visible in Payload?

    Hi experts,
    I'm playing around with HCI on our Test tenant as we would like to map a few more fields. I'm trying to map the Customer Group field which is at the Customer level in Sales Data in C4C, with our Price List Type field also in Sales Data in our SAP CRM.
    The idea behind that mapping is just that this is the only field we are using to determine the Price List used for a Customer in a given Sales Org and we would like to get this data in Customer Group in C4C as it's also a field used in Price List determination.
    My test is fairly simple:
    Made sure my test data was in the Code List Mapping in my C4C Project Implementation
    Used the web interface to map my field with the Sales Data-Customer Group field in C4C (see attached)
    Pushed a change from on premise to C4C (IDOC and Payload attached)
    Unfortunately the field doesn't appear in the Payload even if there is something in the IDOC with the mapping configured.
    I'm sure I am missing something now, any help?
    Thanks,
    JB.

    Hello,
    Bumping my request and adding some other clarifications.
    Instead of trying to make this Customer Group field work, I tried integrating another simple extension field (text type) to avoid any mapping issues if there were any.
    Unfortunately even after redeploying the iflow, seeing that the mapping is OK in the web interface and that the data is properly generated in the outgoing IDOC, the incoming XML is still not showing this new field/data.
    The field was extended properly to the scenario and the WSDL has been updated properly in HCI to reflect the new field (I can see it in the mapping). Everything was deployed/restarted as far as I can tell.
    Am I missing something or should I create an incident?
    Thank you,
    JB.

  • Mapping issue for Idoc to xml

    hello all,
           my scenario is idoc to xml file
    E1EDKT1-------segment (1:n)
       -TDID----
    ele
       -E1EDKT2----segment (1:n)
          -TDLINE-----ele
    When TDID value is X then all values in TDLINE of undeline sement E1EDKT2 needs to be cocatenated and passed to target elemnt A
    if  TDID value is Y then all values in TDLINE of undeline sement E1EDKT2 needs to be cocatenated and passed to target elemnt B
    i have written java function(for all values in context) to conctenate TDLINE elements.
    also the context of TDLINE is changed to  E1EDKT1.
    i am getting all the concatenaed values of TDLINE for TDID=X in target element A but i am not geting any value in target element B for TDID=Y
    can any one suggest what could be the problem.
    Regards,
    Sandip

    Hi Sandip,
    Map like this for target element A:
    use simple if stament.  and for If give TDID  equals(text function) to constant X
    and for then TDLINE-->concattdline(udf) --> output A
    Map like this for target element B:
    use simple if stament.  and for If give TDID  equals(text function) to constant Y
    and for then TDLINE-->concattdline(udf) --> output B
    concattdline udf:
    Create a Context udf with one argument a and name it as concattdline.
    Imports:  java.*;
    Add this code:
    //write your code here
    String value = "";
    for(int j=0; j<a.length - 1; j++){
         value += a[j] + "";
    value +=  a[a.length - 1];
    result.addValue(value);
    I just tested this and it should work for you.
    Regards,
    ---Satish

Maybe you are looking for

  • Error running a query

    Hi, When i try to run a query i get to a point it asks me to input the values. Once i do that i get an error ther is an UNCAUGHT_EXCEPTION in class SAPMSSY1 method. As a result the system has been disconnected from BI server. I went through  Note 931

  • Error while printing message

    Hi I'm hoping someone can help me I have a Macbook and have been using a HP Deskjet D5560 printer with it since i bought it and now it will not let me print each time i go to print it says error while printing. I have gone into some settings and had

  • Backing up a time capsules to a remote device across internet?

    Hi has anyone any experience of backing up the time capsule (backup and NAS) over the Internet to a remote device (either a machine, NAS or another time capsule)? I'm trying to do a home (cheap) version of colocating the time capsule (primary locatio

  • How do i change the cover color?

    can i change the color of the cover or the material? how? thanks

  • Urgent!! Problem in using session invalidate()

    Dear all, I think may be the problem has been posted here before, but i can't find the solution yet. I hope you can help me about this. My case is that i wrote a logout servlet for my web site. So i use session.invalidate() in the servlet. After that