IDOC-- PI-- flat xml file

Hi ,
we are working on a HR IDOC>PI>flat xml file scenario.
Idoc name is HRMD_A07.
we have consolidated some 10 interfaces together.
Plan is to,
1)(master interface) get the idoc data into a flat xml file, where flat xml consists of unique fields of all 10 interfaces.
2)Later, use flat xml as input to 10 interfaces, which are FILE>PI>FILE.
we are facing problem in master interface. The data is not coming properly in flat xml.
Can you guys suggest the proper way to do this.
should we use,
1)abap mapping, with standard functionality to convert idoc to flat file?
2)write a udf to get the proper data?
pls suggest the best approach.
san.

Hi San,
you gave us nearly no details, so it is hard to give you any recommandation.
PI provides 4 general possibilities for mappings:
Graphical: Standard and for simple cases the best solution
XSL: Webstandard, in some cases much less development time compare to graphical (if the message structure changes)
ABAP: For special cases (access to ABAP tables, operations before parsing)
Java: For special cases
Regards,
Udo

Similar Messages

  • HR - XI - External System: one IDOC to multiple XML Files

    Hi,
    I have a scenario where I need, out of one HRMD_A07 IDOC send multiple XML files:
    The IDOC and the XML files can the Master data for many employee (IDOC has max of 200 as of SAP, external system, max of 1000).
    The IDOC will be generated with change pointers with all the needed filters (I can add/remove if needed).
    My goal is to generate 3 types of XML files:
    - 1 for the persons (containing basic info like name, firstname, persnr,etc)
    - 1 for the various unit (with basic info of unit like number, description & name)
    - 1 for the links between persons and units (this person is linked with that unit)
    The structures of the 3 XML files are know and can be imported via XSD definition.
    Do I need to use BPM for doing so or is there a way to do that with simple mapping?
    If BPM is needed, as I new to that, if you have a link to a begginer guide, fell free to send it
    Cheers,
    greg

    hi,
      For your scenario there is no need of BPM.
      In message mapping select the message tag.
      In the target add 3 message types.
      Just map the fields.Go to Interface mapping add the 3 message in the target.
      Get the mapping.
      In ID sender agreement,Receiver Determination is same.
      In Interface Determination select extended.Get the mapping.
      Create 3 Receiver agreement for each Receiver.
    Regards,
    Prakasu

  • So is this Possible to update already existed Receiver Flat/XML File ?

    HI ,
    On Receiver File (FTP) Side ,So is this Possible to update already existed FLAT/XML File with some values using Receiver File Adapter??
    Like I have 3 Columns in a Flat File/XML File :-
    Name,  Deptid,  Expenses.
    NameA, 8000,   -
    Currently Blank -
    NameB, 1000,  -
    Currently Blank----
    Now I want to Update Existing Flat file from Receiver File Adapter
    After Execution of scenario, Fileon FTP server would be Updated like this
    Name,  Deptid,  Expenses.
    NameA, 8000,   18000
    NameB, 1000,   25000
    So is this Possible to update already existed FLAT/XML File with some values using Receiver File Adapter?

    I am dealing with similar type of scenario..
    If that way it is not possible , So please guide me what other workarounds can be done ..........???
    Does FTP Sender Support Synch Call... ???
    regards

  • How can I generate IDOC(WPUUMS) from XML file in POSDM or in SAP Retail

    Hallo Retail expert,
                                I have following scenario,
    I have Retail Store who send me their daily sales report through Wincor Nixdorf Point of sale. There i am using standard POSLOG2 to SEEBURGER(its a middleware which act as Converter) xml format and then i post that data first in POSDM and then with BAPI i transfer or book that data to SAP Retail.
    Above is the one scenario which is working.
    This is the Second scenario.......
    I have some external Retail store, they dont have Wincor Nixdorf POS, so they send me their Sales Report through SEEBURGER(its a middle Hardware which act as Converter) and SEEBURGER Convert that Sales data to XML format. My question is....
    How can i upload or Convert a XML File into IDOC (WPUUMS)in SAP or in POSDM?
    any new suggestion are welcome.
    Thank you all in advance.
    regards,
    Niel

    Hi,
    1. To get the required XML Schema, use transaction code WE60 to go to the IDoc documentation -> enter the IDoc type you want to use (WPUUMS01). Flag control and data record. Then display the XSD by choosing Documentation -> XML Schema from the menue bar. Now you can donwload the XSD for usage in Seeburger.
    2. Create your mapping from the POS format into the IDoc XML format in Seeburger.
    3. Create an XML File Port in ERP or POS DM using transaction code WE21.
    3. To inbound the XML file from Seeburger into POS DM or SAP Retail Seeburger should trigger the function module EDI_DATA_INCOMING. Parameters for this FM are the Pathname to the XML file and the Portname you just created. Based on the port name the FM can derive the port type xml and the data will be handled as XML data.
    Regards Carsten

  • Mapping flat xml file to xml Structure

    Hi all,
    i have to map an xml file, wich is incoming via a RFC call in a flat import field, to a xml-Structure. The xml Structure has the same Structure except that it is not flat but even as a xml-Structure in the Repository. Ist ther a way to make a 1:1 - Mapping?
    Regards Mathias

    Hi,
    This can be done very easily using Java Mapping.
    Parse the flat xml String using Dom4j and directly set this as the target structure.
    eg code:
    public void execute(InputStream in, OutputStream out) throws StreamTransformationException{
    String flatXml = "the flat xml string";
    Document doc = DocumentHelper.parseText(flatXml) ;
    out.write(doc.asXML().getBytes());
    Regards,
    P.Venkat

  • Converting an existing iDoc to an XML file

    Hi experts
    I want to create an xml file from an iDoc. Is there a program/function module in R/3 that can achieve this? I am running ECC 6.0
    Thanks in advance

    Hi Murthy,
    Thanks for the quick response. I am new to iDocs, so the document is not very explanatory
    I created the TCP/IP Connection in sm59, but the connection test fails. Is this expected?
    Also, is that all that is required from the first four steps?
    1 Creation of logical system for the sender system.
    2 Assignment of logical system to the client.
    3 Create a logical system for the recipient
    4 Creation of RFC destination (Connection type:TCP/IP)
    Thanks in advance
    Johan Kriek

  • Custom IDOC to create XML file

    Hi,
    We are on 4.7 release.
    A custom outbound IDOC type is developed to creates a text file at the location entered in FILE type port.
    Now we want to create XML file intead of text file. Is it possible by simply changing the port to XML FILE port? Or do we need to do any modifications inside the FMs for the IDOC?
    Similarly for Inbound scenario (using custom IDOC type), do we need any chagnes in FMs to handle IDOCS in XML file format?
    Thanks.

    You can even do that conversion of idoc to xml by simple method
    create a xml port and use the standard fm there
    and it wud handle that.
    u may like to refer this blog...
    Collecting IDocs without using BPM
    Thanks
    Kiran
    Edited by: kiran dasari on Dec 12, 2008 10:38 AM

  • IDOC to xml file

    hi,
    my name is avinash.i m new to xi.i have few qs regarding it.
    1.what is third party?
    2.what are adapters?where are they located?
    3.what is IDOC?
    4.how is IDOC converted to xml file?
    pls reply.its urgent.
    thanks in advance.
    Message was edited by:
            avinash s

    Hi avinash s  ,
    >>1.what is third party?
    third party is middleware or intermediate software which takes data from sender & transfers to a reciever in his understandable format.
    For Example
    Suppose think that there r 3 different people who speak different languages.
    Say User A understands french language,
           User B understands french , german, english language
           User C understands german language
    & User A and C want 2 communicate . Hence their languages r different they can't understand. If they take the help of User B, He undertands the language of User A & converses to User C in german.
    User B is the 3rd Party here.
    This example can be viewed in terms of systems who r having different platforms & they want 2 exchange messages with each other.
    Examples of 3rd party include:
    TIBCO,XI,EDI.....
    >> 2.what are adapters?where are they located?
    Adapters enable communication between the XI integration engine and an application system. This leads to the compatibility between heterogeneous systems.Adapters convert the XI protocol (SOAP with attachments over HTTP) to the protocol spoken by the application system and vice-versa.The key purpose of XI is to integrate heterogeneous systems and adapters are the key enabler to achieving this goal
    Adapter Categories
    Application adapters provided by SAP (IDoc and RFC) and 3rd party vendors (Seeburger, Siebel, Oracle, ...)
    Technical adapters relate to specific protocols
    File systems (FTP / File)
    RDBMS systems (JDBC)
    Messaging systems (JMS)
    Web services (SOAP)
    Mail servers (SMTP)
    SAP Business Connector
    Marketplaces
    Industry standard adapters
    RosettaNet
    CIDX
    The Adapter Engine
    The XI Adapter engine is the home of the majority of the XI adapters. Only the IDoc adapter and the plain HTTP adapter do not reside on the adapter engine. They reside on the Integration Server.
    It is fully integrated in to the XI landscape with tools provided for configuration, logistics and monitoring. It's Adapter Framework is based on the JCA.
    SAP XI requires an adapter framework to communicate outside of the SAP system. These adapters translate code from external applications to an XML message for NetWeaver processes using the Java Connector Architecture.It is a part of the Adapter Engine, which provides interfaces for configuring, managing, and monitoring adapters.
    The following r good websites which give complete overview of Adapter:
    Structure of the Adapter Framework
    http://help.sap.com/saphelp_nw04/helpdata/en/fd/16e140a786702ae10000000a155106/content.htm
    Adapter for SAP XI environment
    http://publib.boulder.ibm.com/infocenter/wbihelp/v6rxmx/index.jsp?topic=/com.ibm.wbia_adapters.doc/doc/sap_xi/sapximst11.htm
    List of all adapters compatible with XI 3.0
    http://searchsap.techtarget.com/expert/KnowledgebaseAnswer/0,289625,sid21_gci1229988_tax304527,00.html
    Adapter and Module Development
    http://help.sap.com/saphelp_nw04/helpdata/en/8b/895e407aa4c44ce10000000a1550b0/content.htm
    Legacy Integration with the SAP XI Adapter
    http://www.makdata.de/www_makdata/sites/www.makdata.de/en/solutions/solutions02/downloads/SAP_XI_Adapter_mak_data_news_23_en.pdf
    Installing the SAP XI Integration Components of the XI Adapter
    http://documentation.softwareag.com/crossvision/xio311/install/sapXiInstall.htm
    >>3.what is IDOC?
    IDoc is a container that carries the data thru 2 methods : either thru ALE or EDI.
    >> 4.how is IDOC converted to xml file?
    Pls go thru the following websites :
    A Step-by-Step Guide on IDoc-to-File Using Business Service in the XI Integration Directory
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e07dcaa0-a92b-2a10-3a96-b3d942bd1539
    How to convert an IDoc-XML structure to a flat file and vice-versa in XI 3.0
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
    Introduction to IDoc-XI-File scenario and complete walk through for starters.
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    cheers!
    gyanaraj
    ****Pls reward points if u find this helpful

  • Conversion of inbound IDOC into XML file

    Hi experts,
    We have an inbound idoc (FIDCC2) that starts and triggers the creation of an FI document. We would like now, that, instead of creating the FI document, the inbound IDOC creates an XML file on a given directory, with the contents of the idoc. Can anybody explain how to configure this?
    Many thanks in advance,
    John De Coninck.

    John,
       Firstly, need more information. If I understand you correctly, you are getting an inbound FI document that is created as an IDOC and it posts into FI (using an underlying FM/transaction etc). Now you want to convert this IDOC into XML on a folder (which can be found on AL11 (a.k.a App Server)).
    Question 1: Where are you getting this IDOC from? Is it through EDI/ALE? What is your interfacing server (the one that is sending you this IDOC.
    Question 2: What format is this IDOC coming in? Is it flat/XML etc?
    Question 3: Is this an internally created IDOC? Is there an attached partner profile in WE20? If there is a partner profile that exists and you're using this to create the inbound IDOC, then there are process codes available to forward these IDOC's (e.g ED08).
    There are many ways you can achieve this but everything depends on how your system is configured and how this processing is going on.

  • Mapping IDoc to XML file

    hi,
    I have to export production order data to an xml file and to do this I want to use an IDoc but I don't know how I can map an Idoc to an XML document after I created it. Please help me

    Hi,
    I created a custom IDoc for a production order and its segments, now I have to export this IDoc to an XML file at the same time to a print process which is start from an existing report and to do this I'd like to insert the code to fill the IDoc in an internal form of the existing report and than I could associate the IDoc to a message type that is associate to the function module "IDOCS_OUTPUT_IN_XML_FORMAT" to create the XML file from IDoc. can you tell me if I can proceed in this way to realize my project and how I can send my IDoc from the same form where I fill it. thank you

  • Transform IDoc to XML file

    Hi.
    I'm trying to transformate an IDoc in SAP to a XML file and vice versa by Business Connector. I have configured a routing in BC for export IDoc to a XML file by FTP and then appear a flow service in BC Developer within a map and a TransportService for a OutboundProcess, but I don't know how to continue by there.
    I have run a lookup service and return IDoc OK.
    Thanks.

    Hi Julio,
    Take a look to this thread
    /people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions
    There you will find what you want! Go to Documents > here you can find templates for XI and I think you have one or two templates ffor your scenario.
    If it helps, don't forget the points.
    Regards,
    Ricardo

  • IDoc - XML File

    HI,
    is it possible to convert an existing"filled" IDoc to an XML file ? Without using SAP XI.
    Maybe an fuction or something else `?
    Regards,
    Gordon

    That´s it !
    Thank You,
    Gordon.

  • Problems with mapping after bundling messages into one XML-file

    Hi all,
    Case 1: one DebMas IDoc ==> XI ==> one XML-file : no problems with mapping.
    Case 2: several DebMas IDoc's ==> XI ==> one XML-file : problems with mapping.
    Explanation:
    Incoming DebMas IDoc's:
    Businesspartner 1 : no Customer Master Partner Functions (E1KNVPM).
    Businesspartner 2 : Customer Master Partner Functions (E1KNVPM).
    Businesspartner 3 : Customer Master Partner Functions (E1KNVPM).
    Businesspartner 4 : Customer Master Partner Functions (E1KNVPM).
    After bundling into one XML-file:
    Businesspartner 1 : no Customer Master Partner Functions (E1KNVPM).
    Businesspartner 2 : no Customer Master Partner Functions (E1KNVPM) !!!!
    Businesspartner 3 : Customer Master Partner Functions of Bp 2 (E1KNVPM) !!!!.
    Businesspartner 4 : Customer Master Partner Functions of Bp 3 (E1KNVPM) !!!!.
    All the payloads of the IDoc's are correct.
    In the message mapping we use a Container for the Partner Functions (shown as below)
    Is this a serious bug in the mapping of SAP XI ?
    Does anyone knows how to solve this serious problem.
    E1KNVVM -
    > Partner_Container
    E1KNVPM -
    > Partner
       PARVW -
    > ParnerRole
       KUNN2   -
    > PartnerNumber
    Regards,
    Theo Pijlman

    Hi,
    Example:
    Input idoc has field F1 with occurence 0..unbnd
    My input values for field F1 is
    1
    none
    2
    3
    Say, I have a mapping, F1---->TargetF1
    In the target only 3 TargetF1s will be created for the values 1,2,3 and nothing will be created for the field F1 with no value.
    To overcome this, use collapse contexts.
    F1->collapsecontexts>TargetF1
    This way, the TargetF1 fields created will have the following values:
    1
    blank
    2
    3
    Collapse contexts makes sure that a target is created, even if there is a context change specified at the source.
    Hope this is clear.
    Regards,
    Smitha.

  • Message Mapping from flat XML to a Record structure

    Hi All,
    We have a scenario in which the input message is a PDF document. we are following below the blog to convert PDF to XML format which uses <b>PDF box utitlity</b>.
    /people/sap.user72/blog/2005/07/31/xi-read-data-from-pdf-file-in-sender-adapter
    We are able to convert the PDF doc to a flat XML file.
    Now we have the following queries...
    what are the different ways to map the flat XML to our record structure?
    Do we have any utitlity in PDF box to do that?
    Regards,
    Rakesh.

    Hi Rakesh,
    You have Graphical mapping, Java mapping, ABAP mapping and XSLT mapping. The choice depends on the scenario and what target result you require.
    <b>Message mapping using graphical mapping editor:</b>
    http://help.sap.com/saphelp_nw04/helpdata/en/49/1ebc6111ea2f45a9946c702b685299/frameset.htm
    <b>XSLT mapping:</b>
    http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/frameset.htm
    <b>Java Mapping:</b>
    http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm
    <b>ABAP mapping:</b>
    http://help.sap.com/saphelp_nw04/helpdata/en/ba/e18b1a0fc14f1faf884ae50cece51b/frameset.htm
    As said earlier, graphical mapping is the simplest and quite a few built in options are available with it, explore it and see which is suitable for your scenario.
    Regards,
    Chandra

  • Regarding XML file miss information

    Dear Expert,
    I am facing issue in XML file ,issue details as follows ,
    1) IDOC(outbound) generated successfully with all required information .
    2) In PI, schema used to convert IDOC data to XML , in graphical mapping functions are used to check the condition and convert the data accordingly.
    2) In PI Enterprise Servise builder and integration builder, message mapping for IDOC is correct
    It convert source data to destination data using customize function which convert idoc data into XML file . But here some data are missing for only those fields have customize function are used for conversion.
    3) When XML file generated on FTP server successfully but in that some fields are showing blank data for those fields have used functions.
    Regards,

    2) In PI Enterprise Servise builder and integration builder, message mapping for IDOC is correct
    It convert source data to destination data using customize function which convert idoc data into XML file . But here some data are missing for only those fields have customize function are used for conversion.
    >>
    Points to a mapping issue. troubleshoot your mapping first in ESR and check if there is a proper result.
    in case the results are coming correctly but only when u do and end to end test with the same data the result is different, it should be a cache issue. Try to refresh the cache and try again.

Maybe you are looking for

  • Sharepoint foundation 2010 externel https access problems

    I have a very strange problem with my sharepoint foundation 2010 site. I have a site which is accessible from outside on https (we have a valid certificate). I configured IIS for http and https. Also I configured internal and externel access for this

  • Setting up email won't work.

    Since I mistakenly wiped my phone a week ago  I cannot set up my email accounts again. I seem to remember having to use a blackberry address and then got to key up my live mail account but now i cant seem to do it. THe email account icon doesnt lead

  • Lunar effect in photoshop?

    hello, could you tell me how can i recreate similar effect to this on the photo. (its taken from nasa,and i would like to apply to some landscapes that effect) Thank you http://imageshack.us/photo/my-images/199/nasapic.jpg/

  • SNMP TRAPS and SLA

    HI I am trying to configure IP SLA to send SNMP TRAPS but looks like doing some mistake .. i have following configured /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0;

  • Missing SMTP address and SELF AUTHORITY for a few mail boxes

    Hello Everyone, This is Jay. I am seeing a strange thing in exchange 2010. Primary SMTP addresses are missing from the User mailboxes. Below is the required information.    *  We are creating user mailboxes through CA Identity Manager tool. It happen