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

Similar Messages

  • 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

  • How to edit the existing data in the XML file from java programming.

    Hi all
    i am able to create XML file with the sample data as below from java programming.
    i need sample code on how to edit the existing data in the XML file?
    for example
    <?xml version="1.0"?>
       <mydata>
               <data1>
                         <key1>467</key1>
                        <name1>Paul</name1>
                        <id1>123</id1>
              </data1>
              <data2>
                         <key2>467</key2>
                        <name2>Paul</name2>
                        <id2>123</id2>
              </data2>
        </mydata>
    i am able to insert the data in the XML.
    now i need sample code on how to modify the data in the above XML file from the java programming for only key2,name2,id2 tags only. the remaining tags data in the XML file i want to keep same data except for key2,name2,id2 which are i want to modify from java code
    Regards
    Sunil
    [points will be always rewardable]

    hi
    u need a parser or validate the xml file for to read the xml file from java coding u need for this
    xml4j.jar u can download this file  from here
    http://www.alphaworks.ibm.com/tech/xml4j
    or we can use the SAX(simple API for XML)
    some sample applications for this
    http://www.java-tips.org/java-se-tips/javax.xml.parsers/how-to-read-xml-file-in-java.html
    http://www.developertutorials.com/tutorials/java/read-xml-file-in-java-050611/page1.html
    http://www.xml-training-guide.com/e-xml44.html
    let me know u need any other info
    bvr

  • 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

  • Convert data from internal table to XML file.

    Hi All,
    I am selecting data from database into one internal table.
    Now I want to convert data from internal table to xml file format and save in to my desktop. Please suggest me how I can achieve my requirement.
    Kindly reply me ASAP.

    Use this FM. SAP_CONVERT_TO_XML_FORMAT
    Check this link too -
    Re: Data Export in XML format
    XML files from ABAP programs

  • 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

  • Converting build.cmd to Ant build.xml file

    Can anyone help me convert the attached build command file (windows) to a
              build.xml file for Ant?
              Thanks,
              Matt
              [build.txt]
              

    Hi Kevin,
    You can get lots of help from the following links
    http://help.sap.com/saphelp_nw04/helpdata/en/e1/8e51341a06084de10000009b38f83b/frameset.htm
    SAP XI - Where to Find Information
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/sap xi - where to find information.pdf
    Following is the link for 'how to guides', A step by step guide to create scenarios:
    https://websmp201.sap-ag.de/nw-howtoguides
    All the information you need in XI :
    http://help.sap.com/saphelp_nw04/helpdata/en/0f/80243b4a66ae0ce10000000a11402f/frameset.htm
    you can also go through the url for Elearning :
    https://www.sdn.sap.com/sdn/elearning.sdn
    To understand the architecture of XI, Please go through this link,
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    XI is all about configuration of Adapters, to learn more please go through this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm
    One of the most powerful feature of XI, Business Process Management:
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/831620a4f1044dba38b370f77835cc/frameset.htm
    Once you go through these links and are a bit aware what all XI objects do, you can try a simple "File to File Scenario" which would help you to understand XI objects in a much better manner.
    For help on this scenario go through this blog it is in two parts thus i am providing both links below:
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    Re: new to netweaver
    Re: how  use XSLT maping in XI
    Re: IDOC - XI - FILE scenario
    Regards
    Vishnu

  • 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 - 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.

  • 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.

  • Script to convert metadata to xml file - Bridge CS6/InDesign CS6

    I need a script that will convert metadata in Bridge to an xml file I can import into InDesign so that when I export long documents the alt text for photos is already included with the images.  
    Two problems -
    1) I need the scripting for dummies version - from step 1 to end.  I have zero experience with using scripts, as in - did not know they existed until a few days ago. 
    2) If the script needs adapted - see #1; there is very little hope that I will have any idea of how to do that without assistance. 
    I will be grateful for any assistance!!  I do want to learn how to do this, if I can. 

    I need a script that will convert metadata in Bridge to an xml file I can import into InDesign so that when I export long documents the alt text for photos is already included with the images.  
    Two problems -
    1) I need the scripting for dummies version - from step 1 to end.  I have zero experience with using scripts, as in - did not know they existed until a few days ago. 
    2) If the script needs adapted - see #1; there is very little hope that I will have any idea of how to do that without assistance. 
    I will be grateful for any assistance!!  I do want to learn how to do this, if I can. 

  • 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

  • Convert custom outbound idoc to CSV file

    Hi
    I need to send generate a flat file that will be sent to a non SAP partner. A requirement is that the messages go via  the IDOC system. This makes it possible to resend them if necessary.
    So there are 2 stages
    1) create IDOC. I have done this
    2) read IDOC and convert to flat file
    stage 1
    =====
    I have defined a custom IDOC, partner profile etc and developed a Function Module to create the outbound IDOCs The FM is triggered by a message in the NAST table. . This works OK.
    So I now have custom outbound IDOCs in the DB with status 30 (ready for dispatch) (WE05).
    Stage 2
    ======
    Now I want to convert these custom IDOCs into simple flat files (CSV like).
    How do I go about making this happen? I guess I need to develop another Function Module. But I dont know how to tie this FM into the system. My questions are:
    How will the FM be triggered
    what is the interface of the FM
    will I need to configure a 2nd partner profile for stage 2 (which is fine)
    Peter
    Note1 - there is no EDI converter available so must solve this in ABAP
    Note2 - I do not want to create the flat file at the same time as I create the IDOC. This would defeat the purpose of going via IDOCs

    No, EDI is only one method of transferring data.  There's no need for an EDI subsystem in this case.
    To the OP, since it seems the you have decided that you must use IDOC processing in this case, I would go ahead and use a file port (or an XML port).  You will drop an IDOC formatted flat file into the specified location (for each IDOC, based on your logical file definition).  For you, this will merely be a temporary holding location.  You can then use a simple program to read the file, re-format it, send it, then move the original file to a 'processed' location.  Of course, you could also just throw away the generated files and read the IDOCs directly with the standard functions available and (re)generate/send the files as required. 
    It's often done this way with 3rd party EDI providers, where the company in question is required to use EDI by their customers but do not have the required systems in place.

  • Convert an internal table from ABAP to an xml file on the Unix server

    I'm trying to convert an internal table to an xml file.  This file will be downloaded to a unix server.  Can someone help?

    Hello Linda,
    You can combine the code given by Mahalakshmi with something like this:
    CALL FUNCTION 'FILE_GET_NAME'
          EXPORTING
            logical_filename = 'YOUR_LOGICAL_FILE_NAME
            parameter_1      = l_file_name_xml
          IMPORTING
            file_name        = l_file_server
          EXCEPTIONS
            file_not_found   = 1
            OTHERS           = 2.
        IF sy-subrc = 0.
          TRY.
            OPEN DATASET l_file_server FOR OUTPUT. "<IN TEXT MODE> <ENCODING DEFAULT>.
          ENDTRY.
          IF sy-subrc = 0.
          LOOP AT lt_xml INTO ls_xml.
            TRANSFER ls_xml TO l_file_server.
          ENDLOOP.
          CLOSE DATASET l_file_server.
    ENDIF.
    ENDIF.
    You need to have the server path defined (look at the paths with tcode AL11) and the file logical name with tcode FILE
    Best regards,
    Andri

  • 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

Maybe you are looking for

  • EDI 870 - Order Status Report

    Hi, I would like to know the Message type and basic type for EDI 870 (Outbound). In what instance it is triggered. Should i create an abap report ?? Thanks in advance...

  • Podcast background streaming no longer works after upgrade to iOS4

    Behavior of my iphone, streaming (click the title after searching for Dan Patrick podcast in itunes app)a podcast with old OS - (Don't strip out my asterisks as bullet points, silly web editor) 1- When a podcast starts streaming, you may click the lo

  • Adobe Acroat 8 Pro & Windows 7 (64-bit)

    I have gotten a new computer that is running Win7 64-bit. I have a copy of Adobe Acrobat 8 Pro that I'm trying to get to work on the new system. During the install process, it brought up an error asking for the Windows Vista adobepdf.dll file. Since

  • Windows 7 Home Premium Activation Problem

    Dear Forum Admin, Cannot activate my new copy of OEM Windows 7 home premium. Kindly resolve this issue before this becomes a legal issue. Thank you.

  • FTPS in BPEL with passphrase

    HI All..how are you today.. i am trying to do a FTPS within the BPEL...i been searching..and i gues it can be done configuring the JNDI for the FTP adapter..since i have the FTPS = true, i can set a private key..... BUT...what i need, is to use a pas