XML IDoc file to IDOC .

Hi,
I am receiving XML idoc (Orders05) file from 3rd party to PI system , PI needs to create sales order IDoc ( Orders05) in ECC system. 
1) Do I need to create source structure for XML IDoc file ? If yes should I create the structure as Orders05 ?
2) How to map line items of xml file to Orders05 IDoc line items ?
Please help.
Thanks - Vinay.

Hi Vinay,
Please see Mikes reply in this thread. You may follow the same procedure:
XML to FlatFile IDOC
Regards,
---Satish

Similar Messages

  • Doubt while importing idoc (file 2 idoc scenario)

    hi,
    In IR, Imported objects..>Idocs
    while importing idoc there are two options to import
    according to software componet version,
    Overwrite sever info temporarily
    which one i have to use ? what circumstances i have to each option?

    Praba,
    Also please check this SAP help for the difference between these two:
    http://help.sap.com/saphelp_nw04/helpdata/en/2b/a48f3c685bc358e10000000a11405a/content.htm
    Regards,
    ---Satish

  • Splitting target IDocs(File to Idoc scenario)

    Hi Experts,
    Customer
    ........Recordset(1..unbounded)
    Header
    ........................Child1
    ........................Childn
    For each header I need to create an IDOC.
    WABC
    ........IDOC
    ...........Header
    ...........Item
    I've mapped IDOC to Header. So, whenever Header comes and IDOC is created. For Ex, In the source file 2 headers are coming, output currently looks like
    <WABC>
    .........<IDOC>
    .........</IDOC>
    .........<IDOC>
    .........</IDOC>
    </WABC>
    But I want the output to be
    <WABC>
    .........<IDOC>
    .........</IDOC>
    </WABC>
    <WABC>
    .........<IDOC>
    .........</IDOC>
    </WABC>
    Thanks,
    Vishal

    Re-reading your original message, if you really want the output to be:
    <WABC>
    .........<IDOC>
    .........</IDOC>
    </WABC>
    <WABC>
    .........<IDOC>
    .........</IDOC>
    </WABC>
    that won't go through the idoc adapter. The output has to be:
    <IdocType>
    .....<IDOC>
    .....<IDOC>
    </IdocType>
    <IdocType>
    .....<IDOC>
    .....<IDOC>
    </IdocType>
    But if you are planning that the output is sent to an R3 system with an idoc, then the weblog and its solution will work perfect. You don't need that structure as a requirement, you just need to use the correct output structure.
    If you want to send any other thing different to an idoc, then you can build any structure that it works for you.
    Did I understand you correctly?

  • IDOC-FILE - If IDOC is not triggered, need to genarate file with constants

    Hi Friends,
    I have a scenario like this.
    IDOC to FILE scenario.
    1. IDOC will get triggerd everyday and flat file will be genatated at specified location.
    2. If IDOC is not genarated for the day, need to genarate falt file with some constants.
    Can anyone help me on this.
    Thanks in advance.

    Hi Vivek,
       I assume that Idocs are being triggred from a different system say SAP r/3 system to XI server. Since you do not have any messages to verify whether idoc has been triggred for the day or not, you have to keep a log in the SAP r/3 system in form of a table. This table (say Z_IDOC_TIME) will contain one entry having date and time when last idoc has been sent to PI system. Now one ABAP code is required which will continuously read the contents of last entry in the ZIDOC_TIME and compare with current server time. If the difference between the time is found to be more or equal to 24 hours then emails can be triggred to a fixed set of recipients. The set of recipients may be made dynamic by storing them in a table say ZEMAILID. So the ABAP program will take contents from both Z_IDOC_TIME and ZEMAILID. The flat file with constants can be attached with the emails.
    In case you do not want emails to be sent then you would require batch jobs which will run in background. This batch job will check at a particular time if iodcs were sent for the day or not. If they not been sent then it will call ABAP code to trigger iodcs with a different data set than what is expected by PI in normal conditions (may be you can populate the idoc with the constants you would like in the file). When such an idoc is received in PI then you can easily generate an flat file with required constants.
    regards
    Anupam

  • Suggestions for File to IDOC Scenario

    Experts,
    Here is the requirement A Legacy System will Produce the Customer data file and we have to transform certain data and post it to DEBMAS.
    As Part of the information in the file there is a field Which could have a value Update,Amend or Delete.
    My Question is How do it handle this.
    Please give me your valuable thoughts.
    Is it Possible to go for File2IDOC here?
    Thanks
    Vasu.

    Hi Vasu,
      If Customer data file is of type xml then file to IDOC scenario is preferable.
    Else you have to convert Customer data file to xml first and then proceed for that you can use content converson feature of File Adapter.
    The information for Update,Amend or Delete will be provided by customer or you have to decide it based of data in table?
    if it is provided by customer then you can go for ABAP Proxy for that take help of ABAPers.
    If you have to decide the Update,Amend or Delete logic.
    Then fetch the data from table compare it with incoming data decide the Action and then perform the action this can also be handled in ABAP Proxy.
    Reward Points if HElpful
    Thanks
    Sunil Singh

  • Help in creation of XML file for IDOC postings

    Hi All,
    Need help if anyone has knowledge/experience in creating XML files for IDOC processing.
    We need to design an input file (in XML format) for creation of IDOCu2019s for purchase Invoices through Interface.
    We have an existing input file, which is working correctly.  We are trying to modify this existing input file for a new Tax Code (Non-deductible inverse tax liability).   This tax code is working fine for manual postings.   But, through IDOC, tax postings are not correctly triggering.
    Could you please confirm if any one has experience on this, so that I can share more details for resolving.
    Thanks & Regards,
    Srini

    Hello,
    you can use CALL TRANSFORMATION id, which will create a exact "print" of the ABAP data into the XML.
    If you need to change the structure of XML, you can alter your ABAP structure to match the requirements.
    Of course you can create your own XSLT but that is not that easy to describe and nobody will do that for you around here. If you would like to start with XSLT, you´d better start the search.
    Regards Otto

  • Converting ISO20022 XML Payment file to PAYEXT iDoc using PI 7.1

    Hi All,
    As per my requirement :  R/3 generates ISO20022 XML Payment file . PI will pick the file and converts into PAYEXT  Idoc and send back to the same R/3.
    I have some doubts regarding this...
    1)Is ISO20022 XML Payment file also like normal xml file in R/3  OR  different.
    2) Can we use file adapter to pick the file.
    3)Any modules required in CC.
    4)Can I go with normal file to Idoc scenario.
    Thanks
    Drumi

    solved

  • File to IDoc : XML parsing in ABAP mapping

    Hi,
    In ABAP mapping I want to parse all of the incoming XML strings to internal table.Later I add few more fields to this table and transfer them to IDOC adapter in IDOC-XML format.In thsi case how do i get all of the input file data(converted from XML) into internal table using XML parsing in ABAP Mapping?
    Thansk in advance,
    RP

    Hi Amil,
    I insert into table but not immediately,I want all the parsed xml data into internal table and do something before I insert into DB /send it to IDOC.
    I knwo how to get single Xml parsing,but how to get multple records(looping xml parse) to internal table?
    Thanks,
    RP
    Edited by: RP@261 on Jun 3, 2009 2:14 PM

  • Corrupt XML file encoding utf-8 special chars (IDOC - File scenario)

    Dear experts,
    I have a problem with the XML output files of XI and could not find the answer in one of the current posts.
    I'm sending Master Data from R/3 with IDOCs through XI to a FTP directory. These files include characters as Á, Ê, etc.
    The XI server includes the utf-8 encoding in the output XML message. However, when opening these files I receive errors (tried it in multiple programs). It tells me that Á is not utf-8.
    It will not accepts Á. I was under the impression that utf-8 included extended Latin and thus would accept these characters. Thus implying that the message was created wrong. Also importing these files into MDM import manager gives errors.
    All rfc destinations are on Unicode.
    By the way, we experience the same problem when syndicating files from the MDM server.
    Any suggestions?
    Cheers.
    * Will reward points for helpful answers.

    Hi,
    Check out this guide..
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42
    make use of the messagetransformbean - http://help.sap.com/saphelp_nw04/helpdata/en/57/0b2c4142aef623e10000000a155106/content.htm
    Also for further ref: go thru this thread - Change encoding from utf-8 to iso-8859-1 in JMS receiver!
    regards
    sasi.........
    <b>Reward if useful</b>

  • XML Files from Idoc

    Hi All,
    pls can you help me
    i need how will i get xml file from idoc
    can you give me the steps to get it
    thanks
    mars

    report zexternalfile .
    tables : zzpublisher,
    sscrfields.
    data: it_publisher like standard table of zzpublisher,
    wa_publisher like zzpublisher.
    select * from zzpublisher into table it_publisher.
    call function 'GUI_DOWNLOAD'
    exporting
    BIN_FILESIZE =
    filename = 'C:externalfileskamal.XLS'
    FILETYPE = 'ASC'
    APPEND = ' '
    write_field_separator = 'X'
    HEADER = '00'
    TRUNC_TRAILING_BLANKS = ' '
    WRITE_LF = 'X'
    COL_SELECT = ' '
    COL_SELECT_MASK = ' '
    DAT_MODE = ' '
    IMPORTING
    FILELENGTH =
    tables
    data_tab = it_publisher
    EXCEPTIONS
    FILE_WRITE_ERROR = 1
    NO_BATCH = 2
    GUI_REFUSE_FILETRANSFER = 3
    INVALID_TYPE = 4
    NO_AUTHORITY = 5
    UNKNOWN_ERROR = 6
    HEADER_NOT_ALLOWED = 7
    SEPARATOR_NOT_ALLOWED = 8
    FILESIZE_NOT_ALLOWED = 9
    HEADER_TOO_LONG = 10
    DP_ERROR_CREATE = 11
    DP_ERROR_SEND = 12
    DP_ERROR_WRITE = 13
    UNKNOWN_DP_ERROR = 14
    ACCESS_DENIED = 15
    DP_OUT_OF_MEMORY = 16
    DISK_FULL = 17
    DP_TIMEOUT = 18
    FILE_NOT_FOUND = 19
    DATAPROVIDER_EXCEPTION = 20
    CONTROL_FLUSH_ERROR = 21
    OTHERS = 22
    if sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    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
    Reward points if found helpful....

  • ZIP-File- XML-Files- XSLT- IDOC(invoice)

    Hi ,
    I am doing file to idoc scenario on BC. I am getting the mail with an attachment file in zip format. It must be extract  to XML files and after that each of this files must be transformed via xslt to idoc to R3. Please help with  solution!!!
    Thanks in advance
    Regards
    Olga

    In your file adapter, use the following modules in module processor chain:
    1. PayloadSwapBean module to get the attachment as main payload;
    2. PayloadZipBean module to extract the XML from zip file;
    next steps should be standard steps for file-to-IDOC scenarios.
    Check the wiki for help with those modules:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/xi_adapter_notes&
    Regards,
    Henrique.

  • Error in File to IDOC Scenario

    Hi,
    I have File to IDOC scenario.
    I am getting error in sender file channel.
    "Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Mandatory parameter 'xml.keyfieldName': no value found "
    Although I have used this parameter in content conversion 'xml.keyfieldName' (for each sub structure and defined a key field).
    Despite of this error in sender channel I am receiving the message in XI.
    But in XI also it throws error :
    "Unable to convert the sender service PG_TOM_CEEMEA_RU_SFA to an ALE logical system"
    Any help on this ?
    Thanks,
    Vikas

    Hello Vikas,
    I am getting error in sender file channel.
    "Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Mandatory parameter 'xml.keyfieldName': no value found "
    Although I have used this parameter in content conversion 'xml.keyfieldName' (for each sub structure and defined a key field).
    Check your flat file structure whether the key field you have chosen is appropriate and also recheck the FCC details whether you have assigned the value for the key field i.e.  keyFieldValue.
    "Unable to convert the sender service PG_TOM_CEEMEA_RU_SFA to an ALE logical system"
    regarding the above error refer this
    https://wiki.sdn.sap.com/wiki/display/XI/Unable%20to%20convert%20Sender%20system%20to%20ALE%20logical%20system
    Regards,
    Prasanna

  • HTTP 500 Error while using XML HTTP Port for idoc

    Hi,
    I am trying to send CRM idocs via XML Http instead of usual t-rfc.
    After standard idoc - pi configs i get the below error.
    transferring the IDoc by HTTP, the return code with the message '500Error during parsing of SOAP header' has occurred.
    In BD87 I get the below error.
    The target address was: http://yyyyyy.XXX.local:800X/sap/xi/engine?type=entry
    I get the http 500 error as:-
    Check whether the IDoc can be sent again.
    It is unfortunately not possible to determine automatically whether the IDoc has in fact arrived in the target system and the error occurred afterwards
    Any idea on how to trouble shoot or resolve this.
    Regards,
    Anirban

    Hi Anirban,
      Follow the below links for troubleshooting.
    Troubleshooting  File-to-IDOC Scenario in XI.
    The specified item was not found.
    Regards,
    Leela

  • File sender adapter:FILE to IDOC without BPM, can't see in SXMB_MONI.

    Hi all
    I have a FILE - XI - IDOC Async scenario without BPM.
    I configured FILE sender adapter and IDOC receiver adapter. I made a mapping to transfer file data to the structure of IDOC.
    Now when i am trying to load the file using command prompt, i cud see nothing in the monitoring. Whereas if i go to the communication channel monitoring of runtime workbench, i saw that CC is polling correctly and was reading the file also.
    And also wen i saw in the processed folder which i mentioned in the CC configuration for the ARCHIVE DIRECTORY, i saw that file got transferred to the folder also.
    I don't understand why i cant see anything in the monitoring.
    Could anybody help me to rectify the problem. Is there anything i m missing ?
    Regards
    Naina

    Rajesh/Amar
    TCode:: SXMB_ADM->Integration engine configuration->specific configuration->runtime
    Trace_Level = 3 then you can get all MONI PIPELINE Steps also
    I did this change but cudn't see anything in SXMB_MONI.
    This is how i have configured my process:
    http://wiki.sdn.sap.com/wiki/display/XI/FiletoMultipleIDOCSplittingwithoutBPM
    But instead of IDOC splitting i have simple FILE - XI -IDOC scenario.
    I have configured everything exaclty the same way it is mentioned here. But for me the process is not visible at all.
    I can't even see the first request message in the monitoring.
    This is the message i can see in the communication channel monitoring:
    2010-05-24 09:07:41 Success Channel CC_*: Entire file content converted to XML format
    2010-05-24 09:07:41 Warning Channel CC_*: Empty document found. Proceed without sending message
    2010-05-24 09:07:41 Success File "/xyz/ABC.txt" archived after processing
    Is there any problem with the file and that could be the reason it cant convert the file to the request message MT_REQUEST and thus am not able to see anything in monitoring.
    help me guys....this is a simple process and i m stuck...its frustrating
    Regards
    Naina

  • File to Idocs using BPM

    Hi,
    Current Interface Flow - File (xml) to Idoc (single Idoc type)
    Thirdparty sends a File for Goods Receipt. This file may have multiple orders.
    Orders are sorted in an xslt by ORDNUM. Each record has a delivery type (Deliver Type PO or Delivery Type STO). For each order Graphical Message mapping occurs.
    In case of PO, inbound delivery number and item number have to be received from ECC via an RFC call and passed to VBELN and POSNR. While in case of STO, source field ORDNUM and ORDITEM are passed to VBELN and POSNR. (RFC call happens only for POs, not for STOs)
    In case of STO, TCode  will be MB0A.and IDoc would be WMMBXY (As is the case right now)
    In case of PO, there may be two cases -
         a) There is at least one response from ECC for all the line items inside an order --> in this case TCode will be MB0A and IDoc is  WMMBXY .
         b) If there is no inbound delivery number for any line item from ECC inside an order --> TCode MB01 will be used and IDoc used is WMMBXY
    So for all the above cases Target IDoc is WMMBXY.
    Changes to be done - Now  File (xml) to Idoc (Two different Idoc types, WMMBXY and DELIVERY03)
    Now there is an additional requirement that I will be using an additional IDoc (DELIVERY03) in above case a).
    I want to use BPM in this case
    1) RFC call in message mapping to get the inbound delivery number (for POs only) (Should be before the message enters BPM)
    2) Separating the messages based on IDoc type
    3) Interface / Message mapping for each IDoc type
    4)Send the message to ECC
    Please suggest how to proceed with BPM
    Thanks,
    Varun
    Edited by: Varun Reddy on Feb 4, 2011 4:47 PM

    Hi Varun,
    Follow this thread... You have answer for this.
    This link gives design ideas for your requirement
    /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
    Follow Bhavesh discussion. It might be helpful too
    Message Split: File to Multiple IDOC Types

Maybe you are looking for

  • How do I keep TB from taking up excessive space on my hard drive?

    My TB "All Mail" folder is using 24GB (versus only 4GB in Gmail). I can't find any NSTMP files to delete under imap.googlemail.com or anywhere else. Under imap.google.com there are only two folders -- [Gmail].sbd and INBOX.std. The latter folder is e

  • System is constantly freezing. What is wrong?

    I've been having some serious problems with my computer in the last couple of weeks. System completely freezes. First time it happened, I was listening to music on iTunes while away from the desk. It was the only running app. Music simply stopped. I

  • Switch statement & system.read.in

    I am attempting to code a java text program that will calculate and print out 3 different mortgage's, I am trying to use a switch statement to select which mortgages I will output. I am trying a simple switch statement first and I am stuck, Can anyon

  • To access the value of the fields in selection screen

    Hi, I have used PNP Logical database in the report and also I have created a Report category with organizational unit,begin date and end date.so in my selection screen,I have these three fields. Now i need to get the value of those fields in the prog

  • Table for PO number & PO date

    Hi friends, From which table i can get purchase order no.(ebeln) & po date(bedat) for the accounting doc no. ie, bsis-belnr. or bsik-belnr? Thx in advance.