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

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

  • 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

  • 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

  • Header Mapping in Idoc scenarios

    What is the use of Header Mapping in IDOC based scenarios?

    Hi,
    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
    Ckeck this link this will help you a lot
    reg:HEADER MAPPING
    Check these links also
    Header Mapping in File to IDoc
    Header mapping while using IDoc as receiver communication
    Thanks
    Vikranth
    Edited by: Khimavath Vikranth on May 28, 2008 9:30 PM

  • 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

  • How can I include the Header Information....for a File to IDOC Scenario

    Hi,
    I made a File to IDOC Scenario with DEBMDM06 for MDM>XI>SAP R/3. The Header Information in the XML File which is at the XI end is Missing. For that reason In Tcode SXMB_MONI we are getting an Error that <b>"HEADER Information Missing: Message should Start with EDI_DC40"</b> i.e the Header Information.
      My Question is that whether we can do some changes in the Message mapping Step in the Integration Repository. I HardCoded the Few mandatory Fields that were there but it Again gave me the Same Error as above.
    Can you please Suggest some Solution for this. Since the data is Coming in from MDM part the Header information is not there but It actually Important as it has got all the Port Information.
      Kindly Inform me some Solutions.
    Thanks & Regards
    Somnath

    Hi Suraj,
      Thanks for ur Reply, but Since we are Doing a File to IDOC Scenario the IDOC DEBMDM is on the Right Side in Message Mapping and as U know it is Mandatory to Map an IDOC on the Right Part. EDI_DC40 is coming as it is there in the IDOC but our XML File Does not have that. If we Don't Map then it Becomes RED, which is an Error.
      Furthermore in the Receiver Agreement we have put the Necessary Details such as Sender Service and Receiver Service along with the IDOC Communication Channels.
      Can U give as a Better Insight on this Note how to check the Header Part as it is mandatory to MAP.We also tried to HARDCODE it by putting those Values and Mapping them to a Constant but it is Giving the Same Error.
    Thanks and Regards
    Somnath

  • Flat file to idoc - mapping

    Gurus,
    I have a flat txt file of following format
    Doc#         Whse        Item          Matnr         date                       code
    3256999     WH20     1001     861927     09/12/200713:24     9596     2
    3256999     WH20     1002     861928     09/12/200713:24     9596     2
    3256999     WH20     1003     861929     09/12/200713:24     9596     2
    3257169     WH20     2000     861964     09/12/200713:24     9596     2
    The first 2 columns are header fields rest all are item fields. How do i map this to an Idoc, so as to move doc# and whse to header segment and rest of columns to add multiple item segments on the same idoc ? So for above file i should get 2 idocs only.

    You can navigate thru these links to get more information:
    /people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
    http://help.sap.com/saphelp_nw04/helpdata/en/ef/df564b6aa24fc9ab0d685460747de5/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/ee/bf9640dc522f28e10000000a1550b0/frameset.htm
    Do your want the source and target structures to resemble the structures below?
    Source:-
    <source_file>
    <row_1>
    <item_a>
    <item_b>
    <item_c>
    </row_1>
    <row_2>
    <item_p>
    <item_q>
    <item_r>
    </row_2>
    <row_3>
    <item_x>
    <item_y>
    <item_z>
    </row_3>
    </source_file>
    Target:-
    <target_idoc>
    <item_a>
    <item_b>
    <item_c>
    <item_p>
    <item_q>
    <item_r>
    <item_x>
    <item_y>
    <item_z>
    </target_idoc>
    If so, then all you need to do is to use the node function: "remove context" for all the items under your rows. In other words,do the following mapping:-
    *source_file mapped to target_idoc
    *map each of the items under all the three rows in the following way:-
    "source item" mapped to "remove context" (node function) mapped to (corresponding) "target item".
    Also check the occurences for each of your variables in both source and target structures.
    /people/ravikumar.allampallam/blog/2005/03/03/creating-purchase-order-idoc-through-xi
    Regard's
    -Prabhakar.A

Maybe you are looking for

  • HT204380 My ipod wont let me make a Facetime!! HELP!

    Will someone please tell me how to make a Facetime on a Ipod touch 4th gen. It wont let me make a Facetime!

  • Multiple stages app dev

    Has anybody tried multiple stages app dev? The main stage manages the life-cycle of several secondary stages. Meanwhile, each secondary stage has an independent UI.

  • Oracle 8i  Service Start problem

    I have installed Oracle 8i and the service for some of the database instances don't start successfully. I'm getting error 1053 from Microsoft Management Console - stating that the service didnot respond to the start in a timely fasion. When a new dat

  • Converting from binary to decimal

    i writ this program to let the user input his number and then it will be converted to decimal,but how can i limited the rang of my digit,or if i want him to enter 4 digits only what can i do,,,and if i dont limit a range how can i make it?

  • Synch passwords and bookmarks reports "Unknown Error" in Firefox 4.0 Beta 9.

    I continually "unknown error" from synch on the bottom of my screen. I am using beta version. Is this the problem?