XML   to   IDOC

HI....PI Experts
I am early bird on PI space,
My boss just given me a   XML file and asked to convert into XML using PI System.
We have a readily installed PI System in place.
What other information i have to get , know, discover to convert the XML to IDOC.
I understand ...some  explicitly mapping to my XML to IDOC document structure is required. ..am i right ?
if some explain more about this, We will be greatful and move further in this requirement.
I tried this but was really not useful
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
Regards
PR

which is your target IDoc ?
How you are picking this XML ?
If you are picking that from folder as ABC.xml, so scenario is XML file to IDoc.
If you are picking up that directly from MQSeries, so you will make connections between MQSeries & SAP PI.
Take help for that from the link for making connection between MQSeries & SAP PI :
How to use MQseries with PI?
make scenario using XSD Schema of sender side IDoc.

Similar Messages

  • Xml of IDOC in R/3

    Scenario is IDOC to File. My ABAP team given some ref Idoc numbers which are there in R/3 system for test data.They are not posting Idoc from R/3 system to XI.They are asking me to take the data from R/3 system and post it thru XI RWB.
    So,how can I get xml (of Idoc) from R/3 system.so that i can the xml(of idoc) from RWB.

    Hi Naresh,
    Hasnt ALE configuration been done?
    I think you cant download XML if you have IDoc numbers.
    If ALE Configuration has not been done. Do the same. Wont take more than 10-15 minutes to do.
    Then using WE19 you can send the idocs.
    Regards,
    Sumit

  • Message split - XML to IDOCs - (1:n) mapping

    I have to split an incoming XML(in idoc DEBMDM format) from MDM to 2 Idocs (ADRMAS & DEBMAS).
    Target message set to occurences "0:unb".
    Have tested my graphical-mapping in IR and its working fine. Tested the configuration and got error in IB.
    In SXMB_MONI i find the error message,
    - <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="OUTBINDING">CO_TXT_MMF_ENGINETYPE</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Messages in multi-message format can only be sent to one Adapter Engine</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Read in few threads about creating a "custom adapter module"...is this right? if so.... how to proceed ?
    Appreciate any help.

    Ram,
    Message Split using Graphical Mapping that ur using now supports adapter which are on same J2EE engine .
    In ur case Ur trying to post IDOCS ( I suppose ) which is not
       supported in using Graphical mapping.
    U need to change the design.
    -- Kavitha

  • XML to IDOC : Hierarchy mapping help needed

    Hi All,
    I am trying to complete graphical mapping for an XML to IDOC structure. Both structures are EXACTLY same, but data is not populating in IDOC as desired.
    My incoming XML structure and IDOC structure is
    Header
    Data_header  (1 -- 999)
      |_Data_item (1 -- 3)
    Trailer
    If I have only 1 header, then IDOC data is populated correctly.
    But when I have multiple headers and theer items, the Headers are getting populated, but items do not get populated correctly.
    *Example  My Input is:*
    Header
    Data_header
      |_Item_1
      |_item_2
    Data_header
      |_item_3
    Trailer
    My output is (IDOC)
    Header
    Data_header
      |_Item_1
    Data_header
      |_Item_2
    Trailer
    As seen above Item3 of Data_header2 has gone missing._
    For Data Header, I am using REMOVE_CONTEXT function and for ITEM I am using SPLITBYVALUE. Thought this should have helped, but am struggling.
    Any tips, help, greatly appreciated.
    Many thanks
    Shirin

    Hello,
    Have you done one to one mapping, as u mentiong they are exactly same..
    if that's the case, then mapping test should be successful.
    If there is any diffrence in occurences of target structure or any other difference and let me know.
    If possible send me the target structure...
    Regards,
    Sreenivas.

  • How to encode XML to Idoc and decode Idoc to XML in business connector?

    Hi all,
    first of all: thanks for all, who are reading and perhaps responding this question!
    Here some facts and my question(s):
    The facts:
    - I have the business connector version 4.6!
    - I'm not working with any SAP Netviewer!
    - I have XML files on an FTP-server and Idoc-files on an FTP-server --> so no connection between SAP and business connector, meaning: the files are just on the ftp-server!
    What am i doing and what is working properly:
    - Business connector logs in into the FTP-server (with FTP-service: pub.client.ftp:login)
    - gets the file (with FTP-service: pub.client.ftp:get) (the idoc-file, when i want to convert it into XML or the XML-file, when i want to convert it into idoc-format)
    - puts the file into another place in the server (with service wm.PartnerMgr.gateway.transport.FTPTransport:OutboundProcess)
    !!!So far only getting and putting of the file works!!!
    What is missing between getting the file in one format - for example idoc-format - and putting the file into the server in the other format - for example XML-format is:
    CONVERSION FROM XML INTO IDOC AND VICE VERSA
    My question:
    - which services i have to use between getting and putting the files?
    Thanks to all,
    Tamer

    Hi,
    I have the same problem. I do fix it?
    Thanks
    Wilson Xavier
    Brazil

  • How to convert XML into idocs and post in ECC using PI

    Hello All,
    I want to configure the scenario like this MDM->PI->ECC. Using FTP I am getting able to fetch the xml file from MDM Server Ready folder. Now, I need to convert this XML file into Idocs and post it in ECC. Can anyone provide me step by step configuration in PI to achieve this. I have configured communication channel with adapter type Idoc in Itegration Builder. But, I am not sure where it will do the conversion of XML into Idoc and how do post it to ECC. I am working first time on PI 7.1. I have worked on XI 3.0 in 2006-2007. Any help to configure this step by step shall be appreciated.
    Thanks & Regards,
    Hemal

    In you have the XML from MDM you have to use the mapping provided by the funtionals in the Funtional specification documents. once you did it you must configure the Receiver IDoc Adapter. and later dont fonget to configure properly the ReceiverAgreement.
    as you receive the docuement from MDM via FTP, thats not a SAP System that means that you have to define PI as the sender of the IDoc,otherwise you will have the Error "Unable to convert the sender service to an ALE logical system"
    to do that in the receiver Agreement>Header Mapping>Sender System-->Select PI server.
    Take in mind to send IDocs to any SAP System, the system that send it must be a SAP system too. thats why you configure it
    http://help.sap.com/saphelp_nw04/helpdata/en/5d/112d20f6ce6c46ba66afb98d278fbd/frameset.htm
    Another thing is you have configure the ALE distribution Model.
    se this:
    http://wiki.sdn.sap.com/wiki/display/XI/FileToIDOC
    /people/michal.krawczyk2/blog/2005/03/29/xi-error--unable-to-convert-the-sender-service-to-an-ale-logical-system
    /people/venugopalarao.immadisetty/blog/2007/01/24/troubleshooting-file-to-idoc-scenario-in-xi
    Let us know
    Rodrigo P-.

  • Multimapping n:1 (XML to IDOC) Issue - Cannot use map in the scenario

    Hi! I have created a multimapping in the directory. Source message is 0...unbounded and destination message is 1. The intention is to bring a single file into XI that contains mutliple XML messages. I then need to map this into a single IDOC. I have the mapping working. However, when I try and bring this into my integration scenario, XI cannot find the message interface.
    I am not 100% convinced that this will all hang together =) But Cannot even prove that 'cos I cannot set this up in the scenario.
    Any ideas would be greatly appreciate and rewarded.
    Thx
    Duncan

    Apologies for getting all my terminology screwed up. Here is what I have:
    <u>Integration Repository</u>
    Imported Objects - Target IDOC
    Interface Objects : External Definitions - XML schema of source message
    Interface Objects : Message Interface - For source XML; Outbound + Asynch
    Message Objects : Message Mapping - XML (0..unbounded) to IDOC (1) map
    Message Objects : Interface Mapping - XML message interface (0..unbounded) -> XML to IDOC mapping -> IDOC (1)
    <u>Integration Directory</u>
    Interface Determination...
    I select Type of Interface Determination = Extended but when I pull down the dropdown I do not see the multimap.
    I have this working OK for one IDOC to multiple XML messages, doing the same as above. I have checked SCV, namespace etc... and they are correct. I am sure I am missing something very simple.
    Again, any ideas appreciated.
    Thx
    Duncan

  • Idoc-xml to Idoc

    Hi,
    Sender is a 'party' which generates an Idoc. Some of the fields from this idoc has to be fetched by XI and passed to the receiver R/3 system.
    Requirement :
    Party -
    > Idoc-xml -
    >XI--> Idoc--
    > R/3
                           (XI - Adapter Sender)      ( IDOC Recevier Adapter)
    1) what are the initial setting to be done in Xi & R/3 systems?
    2) Any authentication details of the party is needed? ( as the XI sender adapter doesn't have many parameters to eneter in comm channel)
    Also, here party is an 'R/3 system', who sends the data as an Idoc.
    3) How should i convert the idoc to Idoc-xml?  In other words how would i create my source DT,MT and MI ?
    Appreciate Ur comments,
    Thanks,
    Raggy

    Hi,
    Here are the answers pointwise.
    1) what are the initial setting to be done in Xi & R/3 systems?
    Initial settings are Port and partner configuration in both XI and R/3 systems. You have to configure the RFC destication also.
    2) Any authentication details of the party is needed? ( as the XI sender adapter doesn't have many parameters to eneter in comm channel)
    Also, here party is an 'R/3 system', who sends the data as an Idoc.
    Why are you using XI - adapter???any specific reason?
    If party is an R/3 system then you can use IDOC adapter and if not then you can use FILE adapter to pick up the IDOC-XML file.
    3) How should i convert the idoc to Idoc-xml? In other words how would i create my source DT,MT and MI ?
    You do not need to convert the idoc to idoc-xml. IDOC adapter will do it automatically.
    IDOC will act as a MT and also as a MI.
    Hope it clarifies your doubts.
    Br,
    Madan Agrawal

  • Xml to idoc for iincoming invoices

    I am quite a newbie.
    I am interested how to convert xml to idoc without XI (now PI).  Probably there is an ABAP possibility(exmple).
    Is there another way?
    I have in mind incoming invoices.

    Hello,
    Have you done one to one mapping, as u mentiong they are exactly same..
    if that's the case, then mapping test should be successful.
    If there is any diffrence in occurences of target structure or any other difference and let me know.
    If possible send me the target structure...
    Regards,
    Sreenivas.

  • XML to IDOC scenario in SAP PI 7.31

    HI Team,
      I am new to Sap PI. I have one scenario xml to idoc in sap pi. Can anyone please help me step by step for this scenario.
    Thanks in Adnavce
    Kallu

    There are ample examples on the internet. Search by giving your exact requirement.
    Try this and see if it helps.
    XI/PI: Simple IDoc Communication using SAP XI

  • XML to IDoc scenario

    Hi all,
    for a customer I'm building an xml to IDoc scenario. The xml-file looks like this:
    <?xml version="1.0" encoding="UTF-8" ?>
    <ROOT>
      <ROW>
        <_5731 />
        <_5735 />
        <EMPLOYEE_SALARYNR>test</EMPLOYEE_SALARYNR>
      </ROW>
    </ROOT>
    The message type I created in the message mapping looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:ROOT xmlns:ns0="http://wartsila.com/i-protect">
       <ROW>
        <_5731 />
        <_5735 />
        <EMPLOYEE_SALARYNR>test</EMPLOYEE_SALARYNR>
      </ROW>
    </ROOT>
    My problem is I'm not able to translate the customer xml-file in my message mapping, unless I add the namespace "xmlns:ns0="http://wartsila.com/i-protect"" to the file. I tried to solve the problem by deleting the namespace declaration in the message mapping. After that I receive an error when I import the changed structure into the message mapping.
    Is anyone familiair with this problem? Is there someway to add a namespace to the sourcefile or to change the message mapping such a way that it corresponds to the source file?
    Thanks in advance!
    Regards,
    Ivo van Ee

    My problem is I'm not able to translate the customer xml-file in my message mapping, unless I
    add the namespace "xmlns:ns0="http://wartsila.com/i-protect"" to the file. I tried to solve the problem by
    deleting the namespace declaration in the message mapping. After that I receive an error when I import
    the changed structure into the message mapping.
    Since you have created a Message Type corresponding to the sender structure you have the option of deleting the namespace from the Message Type itself.....it is not to be deleted from the message mapping as you mentioned above.....changes made to the MT may cause an initial inconsistency in the mapping......but once done it will be fixed :)...just refer the blog given by Aamir...
    Regards,
    Abhishek.

  • Import  XML format IDOC to SAP

    Hi Gurus,
    Need to import an XML format IDOC into SAP,
    does anyone has any idea???
    Thanks,
    sachin soni

    Hi sachin,
    If u want to import the from Prsentation server just follow these procedure.
      frist use the gui_upload  function module..
    data type is  .dat....
    Earilier i have done same requirement plz gimme ur mail id so that iwl sendu  that code to ur mail........
    Regards,
    jayan.

  • When add messge type and profile parter to IDOC regarding xml to IDOC .

    Hi all:
         There is a business requirement to pass xml to IDOC using xi, can you tell me when the message type and profile partner  information is added to IDOC?  this work is done by Xi or sap?
    Thank you very much

    Hi Jingying ,
    There is a business requirement to pass xml to IDOC using xi, can you tell me when the message type and profile partner information is added to IDOC?
    --> at one end XML is available at the other end we need to import the Idoc in XI . Inside XI mapping will take place which will take care of your XML to IDoc passing . Partner Profile Information is maintained at ECC end only. But we need to pass the Logical system details at XI end i.e SLD/Adapter specif indentifers
    this work is done by Xi or sap?
    -->SAP only !!
    Regards ,

  • IDOC_XML_FROM_FILE Error while loading XML as IDOC to ECC 6.0

    I have successfully converted IDOC to XML file.
    Getting Error while converting XML back to IDOC in ECC 6.0 using function: IDOC_XML_FROM_FILE
    Segment EDI_DS40 is not defined.....I am really not sure about the error as this idoc was previously posted to the same ECC 6.0...
    Exception       SEGMENT_ERROR
    Message ID:          EA                         Message number:           721
    Message:
    The segment EDI_DS40 is not defined.
    Secondly is there a way to load XML file via WE19?
    Tx
    Salman

    Thanks alot Oliver for taking a stab...
    I created the XML file from within SAP by using the functionailty of this function module:-
    IDOC_XML_TRANSFORM
    I created my ZIDOC_XML_TRANSFORM and just added file download facility in that the rest is the same as the orignal function.
    Is there any way for me to supress generation of ED_DS40 segements in the XML file??

  • Mapping from nested to one table (sales order) XML to IDOC

    Hello,
    I have to map a xml file to the IDOC SALESORDER_CREATEFROMDAT2.SALESORDER_CREATEFROMDAT202.
    How I can map the the longtext from the XML file to the IDOC struktur.
    Part of the XML file, there could be n times BPosition with n times longtext. The longtext must be map with a table. I some case its a mapping from nested to mornal table.
        <BPosition>
             <lpos>1</lpos>
             <bbl_sap_nr/>
             <milvonr/>
             <kurztitel/>
             <anzbest/>
             <anzliefer/>
             <kostenpflichtig/>
             <longtext>
                <line>pos1 zeile1</line>
                <line>pos1 zeile 2</line>
             </longtext>
          </BPosition>
    thanks for your help.

    Hi, I have to map this 1 XML to 1 IDOC
    XML:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_Milver xmlns:ns0="http://ccssap.bfi.admin.ch/milver">
       <bestellung>
          <besteller>
             <bestellnr/>
             <auftragdefit/>
             <wempfdebit/>
             <bestelldat/>
             <lieferdat/>
             <anzpos/>
             <language/>
             <adrzeile1/>
             <adrzeile2/>
             <adrzeile3/>
             <adrzeile4/>
          </besteller>
          <Kopf>
             <Lkopf>Kopf1 zeile1</Lkopf>
             <Lkopf>Kopf1 zeile2</Lkopf>
          </Kopf>
          <BPosition>
             <lpos>1</lpos>
             <matnr/>
             <milvonr/>
             <kurztitel/>
             <anzbest/>
             <anzliefer/>
             <kostenpflichtig/>
             <bemerkung>
                <line>pos1 zeile1</line>
                <line>pos1 zeile 2</line>
             </bemerkung>
          </BPosition>
          <BPosition>
             <lpos>2</lpos>
             <matnr/>
             <milvonr/>
             <kurztitel/>
             <anzbest/>
             <anzliefer/>
             <kostenpflichtig/>
             <bemerkung>
                <line>pos2 zeile1</line>
                <line>pos2 zeile 2</line>
             </bemerkung>
          </BPosition>
       </bestellung>
    </ns0:MT_Milver>
    IDOC:
    The Idoc have a segment for the longtext (table).I have to map, lpos, line into  E1BPSDTEXT from SALESORDER_CREATEFROMDAT2. Its now more clear?

Maybe you are looking for

  • EWM - MIGO Goods receipt against a PO

    Hello, We are currently building a prototype for EWM in integration with ERP. The goods receipt from Production order via MIGO is integrated with SAP EWM. (Inbound delivery is created and sent to SAP EWM).  A MIGO for a purchase order should also tri

  • Functional Ack - 997

    Hi, Here is a scenario, B2B is configured to send functional acknowledgement automatically. The Exchange Protocal being used is EDI X12 over generic exchange. Few of our customers require 997s for POs(850) Invoices(810) and ASNs(856). There is an ele

  • SQL Server 2008 R2 - Cannot remove 50th instance with command line uninstall

    I have reached the 50 instance SQL Server limit on my Microsoft Server 2008.  I have tried to remove an existing instance using the command line below but it still is reporting that "No more transforms are available because the maximum 50 has been re

  • Workplan Version Name

    Anyone have a way to turn off the workplan version naming convention that Oracle Projects uses each time you publish a new workplan.....the system generates it something like this unless you manually change the name: Copy: Copy: Copy: Copy: Copy: Cop

  • Location of User Picture OS X 10.9.4

    When I started up Mavericks for the first time, I took my picture with my MacBook camera. Where is this photo located? It is not in my Library/Caches/ on my hard disk. It's still set as my user picture, and Messages picture. Anyone know where I can f