XI mapping issue File to Idoc

Hello Experts,
I am new in XI ...
I have following issue with the mapping.
I have an input file in XI and I have to map it to idoc ACC_DOCUMENT.
Input structure: (no levels one flat structure)
bldat
blart
burks
budat
Pstkey1 = 1    
kunnr                                                              
Amount1
Pstkey2 = 2
GLaccount
Amount2
Pstkey3 = 3
Vatcode
Vat amount
Postkeys must be mapped to idoc ACC_DOCUMENT segment E1BPACCR09. Three times once for posting key 1 once for posting key 2 and once for posting key 3 and with different fields mapped in case of posting key 1 I have to map amount1 when posting key 2 I have to map amount2 etc..
Can you please help me or give me some info on how to realize this mapping.
Thank you very much.
Best regards,
Daisy Heremans

Hi,
You only need to use the duplicate subtree when you want to have different mapping to the same repeating segment.
Right click on  the object and say duplicate subtree.
Please see the below link:
http://tleterme.developpez.com/bw/how/MappingXI30.pdf
Regards,
P.Rajesh
Edited by: Rajesh_1113 on Jul 13, 2011 6:51 PM

Similar Messages

  • Java heap space error occured during message mapping of FILE to IDOC

    hello Friends,
                          I am trying to do the message mapping for File to Idoc scenario.
    Idoc which I am using is HRMD_A.HRMD_A06 and infotype which I want to update is 14. I am trying to map the message type which I hav created for infotype 14 with the IDOC
    Its very simple scenerio but  every time I try to save the mapping before activating it I get an error:
    Java heap space
    Internal problem occurred (INTERNAL_PROBLEM)
    Java heap space.
                I am not able to figure out what possibly is the problem wheather its from my end or the BASIS end.
    Kindly help.
    Regards,
    Lokesh

    As the server probably survives (you restart your Integration Builder and can probably connect immediately), the problem will be on your side (client). Did you add one or more large xml-test-instances to the mapping ? If yes, delete them, because they lower the performance and can make problems. If not, then this is a strange problem. Even if the Idoc structure is complex, the mapping object itself cannot be that large.Is this problem only with this one mapping ?
    CSY
    Edited by: Christian Sy on Mar 9, 2010 6:26 AM

  • Pass through scenario in SAP PI with no mapping for File to IDoc and Idoc to file scenarios

    Hi Experts,
    Can i have step by step process in SAP PI for pass through scenario with no mapping in case of file to Idoc and Idoc to file both cases please.
    What objects i can skip.
    My PI system is 7.3 dual stack.
    I have seen below blogs, still its confusing to me.
    When and how to create an scenario in SAP PI without mapping objects.
    Pass Through Scenario with no Mapping in PI 7.1
    Appreciate your help on this.
    Regards,
    Mohan.

    Hi Mohan
    In pass thru interface you don't need to create any ESR objects, only ID objects are required.
    Just Create a Receiver Determination and Receiver Agreement for your scenario (no need for Interface Det. and Sender Agreement).
    Specify the IDOC in the Sender Interface and namespace as urn:sap-com:document:sap:idoc:messages
    Or instead of creating objects manually, Run the wizard with Idoc name/namespace in sender/receiver interface
    Regards
    Osman

  • Mapping Queries-File to iDoc

    Hi There,
    I am working on File to iDoc scenario, I will be getting employee details in xml file and I have to create iDoc out of that which will create employee in SAP ECC6.
    I have already mapped the fileds which are coming from xml file but I don;t know what to do with some of these fields,
    BEGIN
    EDI_DC40
    H1HRSM_HEAD
    ..SEGMENT
    ..E1P0000
    ..E1P0001
    I can not disable those fields which has a childs in use.
    Please suggest.
    Thanks,
    Nishant

    Hi All,
    Thanks for your quick replies,
    I am not mapping them with a constant because while loading that iDoc in SAP it must be expecting some specific value. I will be creating employee using the converted idoc so if I map any constant value to those fields will my program in SAP will work?
    Thanks,
    Nishant

  • TO MAP ANSIX12 FILE TO IDOC ORDERS04

    HI ALL,
    i HAVE A FILE WITH THE DATA IN ANSIX12 AND I HAVE TO CONVERT IT TO IDOC ..
    CAN ANY ONE GUIDE ME.
    THANKX

    hi ,
    I have to map the ansi x12 file to idoc meta data and for mapping do i need to write a XML schema for the the ansix12 file .. i need help reagrding this .
    thankx .

  • Mapping issue from Invoice (Idoc - file) scenario

    Dear All,
    I am working on Idoc to File scenario and i have a requirement like..
    INVOICE02                    
       E1EDP01
            E1EDP05                                     
                  BETRG                         
            E1EDP05                                    
                  KSCHL
                  BETRG    etc         
    condition :
    If KSCHL not equals to space then map all BETRG's to a target field which is not mandatory.            Sometimes E1EDP05 may not contain KSCHL and when i set the context to E1EDP05 level its not considering the BETRG values, it behaving lik taking up the condition part and summing part seperately.
    It would be really great if anybody comes up with some ideas.
    Thanks a lot
    Hari

    KSCHL ----> exists
                                                 -----------------------> And ------->ifWithoutElse -------------> Target
    KSCHL                                                                            Then(BETRG)
                     -------> equalS ---> Not
    Constant(blank)
    Context of KSCHL should be above that of E1EDP05
    I hope that Target node is repeating -
    0...unbounded.
    Regards,
    Abhishek.

  • Mapping issue: Two different IDOC P19 segment to one flat file line

    Hello,
    Scenario: For each P01 segment (without uepos) in an order idoc I want to create one line in a plain text file.
    Problem: One P01 segment has two P19 segement with different qualifiers. I want to map both P19.IDNTR (with different qualifiers) fields to the same record in my plain text file.
    How can I do this?
    My "if statement" does noet work. I check the qualifier in the P19 segment. But when one field in the record of the plain text is filled with an P19.IDTNR the second P19.IDTNR field is empty.
    Please advice.
    Best Regards,
    Erik van Lisdonk

    Erik,
    you should get both values if you change the Context of your INPUT-Fields one level higher (for the IDTNR and for the Qualifier that is checked in the IF-statement).
    The Context needs to be set to P01 for all fields and I assume it is set to P19.
    Greetings
    Stefan Hilpp

  • Mapping from File to IDoc with multiple Idocs and multiple line items?

    Hi All,
    Need some help with mapping, requirement as below: I have a flat file with multiple records, need to create multiple idocs per each separate order in flat file with as many line items.
    Order_1 field-1 field-2 field-3 field-4
    Order_1 field-1 field-2 field-3 field-4
    Order_2 field-1 field-2 field-3 field-4
    Order_2 field-1 field-2 field-3 field-4
    Order_3 field-1 field-2 field-3 field-4
    Order_3 field-1 field-2 field-3 field-4
    I have imported IDoc changed to 1:Unbounded, able to create multiple Idocs based on separate order from flat file.
    Order_No - removeContexts - splitByValue(ValueChanged) - collapseContexts - exists - creatIf - IDOC
    Now I am having hard time creating a line item segment E1EDP01. I want to have Idoc created below way:
    IDoc-1 (Order_1)
    E1EDP01
    E1EDP01
    IDoc-2 (Order_2)
    E1EDP01
    E1EDP01
    IDoc-3 (Order_3)
    E1EDP01
    E1EDP01
    I am getting multiple IDocs created. Please help me to create mutlieple line items under each Idoc. Please be speficic about the node funtions to be used, because I tried many times with different combinations, didn't work.
    Regards,
    N@v!n

    Hi Navin,
    Create your source structure like below
    <Order>1 to unbounded
        <Order_No>
        <field1>
        <field2>
        <field3>
        <field4>
    </oder>
    to create mutiple IDocs based on order number,use below logic
    Order_No-->removecontexts--->sort--->splitbyvalue(Valuechange)--->collapsecontext-->Idoc
    use below logic for E1EDPO1,
    Order----->removecontexts------>
                                                                                    formatByexample------>E1EDP01
    Order_No-->removecontexts--->sort--->splitbyvalue(Valuechange)-------->
    try above logic and let me know if you any issues.
    Regards,
    Raj

  • Mapping FLAT File to Idoc

    Hi,
    I have to implement a flatfile --> XI ---> IDOC scenario and I have a question about the mapping.
    Suppose I have a Flat Fiel as following with the first 2columns as key:
    100991;001;text1;posting date
    100991;002;text2;posting date
    100992;001;text4;posting date
    100992;002;text6;posting date
    I have to pass this items to a IDOC strucutured  with header and positions.
    By mapping how can I group  key data to pass to single Idoc?
    Thanks
    marco

    Hi ,
    I have done it with ORDERS IDOC Structure .
    Since the source is a flat file you could take a simple structure with row and all the fields following it ( say filed1 , field2, field3).
    Take a bottom up approach for the child :
    Change the context of all the individual fields to the root then apply split by value on field3 ( this introduces context changes )
    Then format its parents Queue (Field2) based on Field3 Queue for this use the function Format By Example .
    Use the resulting queue  as one of the argument and Field1 to generate the link .
    Using Graphical this requirement is achievable . How ever it is upto your ease to choose which way you want to do it .
    Thanks & Regards
    Kavitha

  • Header Mapping in File to IDoc

    Hi all,
    When do we go for Header mappin in File - IDoc scenario? How we can configure these steps in XI?
    regards,
    Anjaneya

    Hi Swamy,
    Header maping can be used to determine the destination in the interface based upon any particular field .If the field is populated with the value then that value can be used for receiver determination to send message for example you have one file that can be mapped to any one pf the multiple IDOCs then based upon the header value you can determine the destination or the IDOC goin to be used
    Regards

  • Doubt in fields - message mapping (file 2 idoc scenario)

    while doing message mapping in file 2 idoc scenario, i could not able find the values for some field names
    ( i am following this wiki help
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/11/fileToIDOC& )
    cremas04 idoc
    vendorNo LIFNR
    vendor name Name1
    Pur_org   ? ( I could not able locate field with the similar desc in idoc MT side)
    Company code  ?
    Acc_Grp  ?
    Search term MCOD1
    Address ADRNR
    City ORT01
    Pin_code PSLTZ
    could you help me out with this?
    Message was edited by: praba
            praba

    hi,
    I got the answer.

  • ATTRIBUTE_IDOC_METADEATA Error: File  to IDOC Java Mapping

    I have done a Java Mapping from File to Idoc and I get the following error in sxmb_moni:
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
    <SAP:Category>XIAdapter</SAP:Category>
    <SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_IDOC_METADATA</SAP:Code>
    <SAP:P1>I::000</SAP:P1>
    <SAP:P2 />
    <SAP:P3 />
    <SAP:P4 />
    <SAP:AdditionalText />
    <SAP:ApplicationFaultMessage namespace="" />
    <SAP:Stack>Fehler: I::000</SAP:Stack>
    <SAP:Retry>M</SAP:Retry>
    </SAP:Error>
    The Idoc structure that I generate in my mapping makes no fullfil of the IDOC tags.
    For example:
    <IDOC BEGIN="1">
                   <EDI_DC40 SEGMENT="1">
                        <TABNAM/>
                        <MANDT/>
                        <DOCNUM/>
                        <DOCREL/>
                        <STATUS/>
                        <DIRECT/>
                        <OUTMOD/>
                        <EXPRSS/>
                        <TEST/>
                        <IDCOTYP/>
                        <CIMTYP/>
                        <MESTYP/>
                        <MESCOD/>
                        <MESFCT/>
                        <STD/>
                        <STDVRS/>
                        <STDMES/>
                        <SNDPOR/>
                        <SNDPRT/>
                        <SNDPFC/>
                        <SNDPRN/>
                        <SNDSAD/>
                        <SNDLAD/>
                        <RCVPOR/>
                        <RCVPRT/>
                        <RCVPFC/>
                        <RCVPRN/>
                        <RCVSAD/>
                        <RCVLAD/>
                        <CREDAT/>
                        <CRETIM/>
                        <REFINT/>
                        <REFGRP/>
                        <REFMES/>
                        <ARCKEY/>
                        <SERIAL/>
                   </EDI_DC40>
    Should I complete these values in my mapping program?
    Which values should I complete?
    Thank You.

    Antonio,
    you can ignore whole EDIDC Segement make disabled in our mapping still it works . but the problem is not with this is our meta data chekc in IDX2 t/c code of XI box.
          it has some problem the strcuture you generate and R/3 accepts are not same their is mismatch in structure
    Regards
    Sreeram.G.Reddy
    Message was edited by:
            Sreeram Reddy

  • Extension does not exist : File - XI - IDOC

    Hello,
    I have an IDOC MATMAS03 with an extension, so called
    MATMASA03.ZMATMASX
    IDX2 - metadata upload done more than once ! OK
    mapping from file to IDOC: test ok (Name of Interface ZMATX.MATMAS03.ZMATMASX)
    config: test of communication from file system to R/3 with IDOC payload: OK
    Process running results in an error:
    Attribute IDOC Metadata,  Extension ZMATMASX does not exist.
    System is running on SP14!
    Does anybody here have experience with extensions in IDOCs or knows about this problem?
    Lot of thanks for any help!
    regards
    Dirk

    Hi Dirk,
    you can also have a look at idoc receiver channel
    PORT: SAPXXX
    is this the same port that you have your idoc metadata
    downloaded in IDX2 ?
    worth to check I guess 
    Regards,
    michal

  • File to IDOC (CREMAS03)

    Hi Experts,
      I am trying to load Vendor data in the R/3 system, I got stuck up when I am trying to do mapping between file and IDOC, how can get CREMAS03 Idoc into XI.... Please help
    Thnx
    Raj

    Hi Raj,
    You have to import the metadata for SAP Interfaces(IDocs,RFCs) into XI Repository before you can use them in the mapping.
    You can import the Idocs into your own SWC but as a best practice, these Idocs were imported into SWCs like SAP APPL, SAP BASIS etc. In this way there is no duplication of these Interfaces in multiple SWCs.
    To Import the IDOC metadata
    1) Edit the SWC.
    2) Make sure you have the "import of RFC and Idoc interfaces from SAP systems permitted" radio button selected with connection data for the backend R/3 system.
    4) In the SWC, on the left panel select the Tab "Imported Objects". Provide the connection data if asked for. Select the Idoc CREMAS.CREMAS03 and import it.
    5) This imported Idoc will be added to the list of Idocs in "Imported Objects" Tab. Verify the structure of the Idoc before using that in your mapping.
    Hope this helps.
    Regards,
    Sam Raju

  • Mapping issue: FCC: Idoc for each record in file

    Hi,
    I have file to Idoc scenario.
    I receive csv file with multiple records.
    The requirement is to create an Idoc for each record.
    For eg.
    source file
    A1,B1,C1
    A2,B2,C2
    A3,B3,C3
    After FCC
    <MT>
    <TRANS>
    <ROW>
    <A>A1</A>
    <B>B1</B>
    <C>C1</C>
    </ROW>
    <ROW>
    <A>A2</A>
    <B>B2</B>
    <C>C2</C>
    </ROW>
    <ROW>
    <A>A3</A>
    <B>B3</B>
    <C>C3</C>
    </ROW>
    </TRANS>
    <MT>
    I have first tested it with only 1 record to test end to end connectivity. It works as expected and Idoc is posted to target system.
    Now when I am trying to send multiple records, I am getting some issues.
    Below are the steps that I have taken to process multiple records:
    1. Changed the cardinality of ROW (child of RecordSet) from 1 to Unbounded.
    2. Changed the occurance of Idoc to Unbounded.
    3. Mapped ROW to Idoc root.
    I have tested the mapping in IR and it generates multiple IDOCs.
    When I send the test file, it fails with error Tag found instead of tag IDOC BEGIN=
    I can see the xml message created with multiple ROWs in XI by File adapter in sxmb_moni.
    When I do Test Configuration in ID, with the XML message extracted from sxmbmoni, the result that I got was:_
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge"><ns0:Message1></ns0:Message1></ns0:Messages>
    This means that idoc was not created while mapping.
    But the same sample message works OK in IR!
    Pls help where I have missed.
    Regards,
    Anirudh.

    Sudhir,
    Thanks for your response.
    FCC is working fine. I have taken the XML message in XI created after FCC from csv sample message.
    I have tested this message in IR by placing it between
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
       <ns0:Message1>
    </ns0:Message1>
    </ns0:Message>
    It is working fine and Idocs are created in mapping in IR.
    But the same sample message is creating below output ID!
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge"><ns0:Message1></ns0:Message1></ns0:Messages>
    Regards,
    Anirudh.

Maybe you are looking for

  • How can I get iPhoto to NOT automatically import photos when I plug in my phone?

    I use iPhoto to do quick, simple touch-ups to my pictures, but when I am in the middle of editing and plug in my phone just to charge, it automatically begins a new import and takes me away from my work, which is beyond annoying.  If I want to import

  • Query to get the List of Reports on a Universe

    Hi All, I want to write a query to get all the Web I and Crystal Reports that access a particular universe. Can anyone suggest me where to start. This is in BO 3.1 against Oracle databse.

  • Content Server Error Handler

    I have an Intranet site let's say www.xyz.com and it has restricted access. So before anyone gets to the site, they have to be authenticated. If a users press "Esc" for authentication(cancells Authentication), then the Site Studio Error handler is no

  • Dropdown list behaviour - (Adobe Pocket PC)

    Hi there, I am using Designer 8.2 to generate an Interactive Form using ABAP. A dropdown list is filled with almost 1000 entries. This forms works OK by opening it with Adobe Reader 9. The problem comes when I tried to use it in a mobile device, Moto

  • User exists in system

    HI I need to find out if a particular user name exists in my SAP system. Any User tables or function modules ? Thanks