Message Split: File to Multiple IDOC Types

Hi,
I'm attempting to perform a multi-mapping using BPM where I have File -> XI -> IDOC.
The result will be 3 DIFFERENT IDOC types, but depending on the payload of the file, not all will be created. I have followed the steps in this weblog: https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2748. [original link is broken] [original link is broken] [original link is broken] [original link is broken]
This works fine as long as all 3 messages are being created, however if only 2 of 3 IDOCs are to be created, I receive an error in the PE.
I have set the occurances of the target messages as 0...1 in the Message and Interface Mappings.
Any ideas would be greatly appreciated.

><i>This works fine as long as all 3 messages are being created, however if only 2 of 3 IDOCs are to be created, I receive an error in the PE.</i>
Just noticed this
The reason is when you have a 1:N mapping inside the BPM, all messages need to be compulsorily be created. If you have 3 messages in the target side all 3 messages / idoc's need to be created as the output of your multimapping.
As a workaround, if the condition which you want to check does not exist and you do not want the idoc to be created, in the mappingcreate the idoc, use some dummy flag and then use a switch in the BPm to decide if the idoc is to be sent to the target system or not.
Regards
Bhavesh

Similar Messages

  • File to multiple idoc types

    Hi All,
    Can anyone explain me how to configure a scenario where I have file sender and 2 idoc receivers.
    When I have gone through some documentation I came to know that this is not possible using BPM. How true it is ?Please explain.Also explain my above scenario.
    BR,
    Harish.

    HeY Harish,
    There was a kinda similar ques posted y'day but the reverse way round 1 idoc sender and 2 files had to be generated u can refer to that Re: Scenario-- One Idoc--> Two files has to generate.
    I think it also possible with out BPM as discussed.
    Might be try this considering that you are doing a assynchronous scenario.
    SAP IDOC
    Import  Both the IDOCs
    IR:
    File:
    1 data type
    1 messgae type
    1 Message Interface (outbound, asysnchrnous)
    Message Mapping: Either perform a multimapping or do 2 mapping file to idoc 1, file to idoc 2.
    Interface Mapping: 2 Interface Mapping.
    In the ID:
    Same  steps
    Import the both  Business System.
    1) Define communnication channel file sender, 2 receivers idoc.
    2) 1 Receiver determination
    3) 2 Interface Determination
    4) 1 sender agreement
    5) 2 receiver agreement.
    I havn't tried this ever. If doesn't work then i suppose  1 receiver Communication channel, receiver agreement , will do.
    cheers,
    <b>*RAJ*
    *REWARD POINTS IF USEFULL*</b>

  • File to multiple IDOC(message)

    Hi
    I need to map file to multiple IDoc type  that means on source message have two target message . Any ideas how to achieve that
    Thanks in advance
    Regards
    Swatantra

    refer these weblogs that will give you an idea;
    Multi Mapping -
    BPM involved:
    /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
    /people/narendra.jain/blog/2005/12/30/various-multi-mappings-and-optimizing-their-implementation-in-integration-processes-bpm-in-xi
    Without BPM:
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible

  • Want to add multiple idoc type with single message type.

    Hi Gurus,
    I have a problem. I want to add multiple idoc type with single message type in WE20.
    How we can do this in WE20 or is there any other way to do that?
    Please help me.
    Thanks in advance.
    Srimanta.

    hi,
    basically in partner profile i.e. in we20 , we add details to the receiver / sender port that we have created using we21.
    so what exactly we do in that is that we first use the message type for those idocs that we have created.
    now based on those message type we create a process code. now this is the reason why you cannot apply several message types with the same name in we20... as process code is unque for each message type.
    so thats why you can only assign the same message name to several idocs in we82 and then in we20 define the process code for that message type.
    it will solve your problem.
    hope this will help you!!!
    Thanks & regards,
    punit raval.

  • Configuration scenario of file to multiple IDOCs in XI

    I have to configure a scenario of file to multiple IDOCs in XI.
          I have XML file in MDM server. And it contains multiple segments. Each Segment is  a combination of DEBMAS and ADRMAS.
    So in XI configuration I have to separate the mapping for DEBMAS and ADRMAS. And my ADRMAS idoc should post first in R3 and then DEBMAS should post.
    These IDOCs are multiple because each segment in XML file will be a IDOC.
    Does BPM process is mandatory here or we can do in any other way.
        Could you please suggest how to do this configuration. If you have any documents pls share with me.
    Regards,
    Venkat

    Hi,
    First you need to split the messages into multiple IDOC types. As you are going to send this to IDOC adapter, it is required to have BPM to split the message.
    These 2 docs may help u:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cdded790-0201-0010-6db8-beb9bb2b2660
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/877c0d53-0801-0010-3bb0-e38d5ecd352c
    Regards,
    Moorthy

  • File to multiple IDOCs error

    Dear All,
            I am trying to create customer master using FILE-To-Multiple IDocs.Idoc generated with 2 errors.
    1.First one is status 51...Specify the Account Group.
    2.Second one is it's generating only single idoc(not multiple).
    I have mapped Account Group source field to KTOKD(Idoc).is this mapping problem?I have given IDOC occurence unbounded but not generating multiple idocs.below is my message mapping structure.
    mt_customer                                                   Debmas01
      customer  (1...1)                                
        customer_master(1..unbounded)----
    >IDOC (1..unbounded)
    below is my input xml file with data.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:mt_customer xmlns:ns0="urn://fenestacustmast">
       <Customer>
          <Customer_master>
             <AccountGroup>0004</AccountGroup>
             <CustomerNumber/>
             <CompanyCode>1000</CompanyCode>
             <SalesOrg>DBPM</SalesOrg>
             <DistributionChannel>PS</DistributionChannel>
             <Division>WD</Division>
             <Title>Mr</Title>
             <Name>Preethi</Name>
             <SearchTerm>Mat</SearchTerm>
             <SearchTerm2>V6CUSTNO</SearchTerm2>
             <StreetNumber>Street 6</StreetNumber>
             <City>Bangalore</City>
             <Country>IN</Country>
             <Region>KAR</Region>
             <TransporationZone>ASCHTS01</TransporationZone>
             <Fax>251662546</Fax>
             <Telephone>9658965236</Telephone>
             <VATRegNo>ABCG1254</VATRegNo>
             <LegalStatus>01</LegalStatus>
             <ReconAccount>36023901</ReconAccount>
             <SortKey>001</SortKey>
             <TermsOfPayment>S028</TermsOfPayment>
             <ToleranceGroup>1000</ToleranceGroup>
             <PaymentHistRecord>TRUE</PaymentHistRecord>
             <SalesDistrict>A1KAKA</SalesDistrict>
             <SalesOffice>BPBL</SalesOffice>
             <SalesGroup>SEN</SalesGroup>
             <Currency>INR</Currency>
             <CustPricingProc>1</CustPricingProc>
             <CustStatsGroup>1</CustStatsGroup>
             <DeliveringPriority>01</DeliveringPriority>
             <ShippingConditions>01</ShippingConditions>
             <Plant>DBBG</Plant>
             <AccountAssGroup>01</AccountAssGroup>
             <TaxClassification>1</TaxClassification>
             <InvoicingDate>IN</InvoicingDate>
             <InvoicingListDate>IN</InvoicingListDate>
             <IncoTerms>FCA</IncoTerms>
             <IncotermsPart2>Bangalore</IncotermsPart2>
             <CreditControlArea>FENE</CreditControlArea>
          </Customer_master>
       </Customer>
    </ns0:mt_customer>
    I did very simple mapping one to one without any functions.All are string types.I couldn't find what is the error?any help would be appreciated.
    Thanks in advance.
    Vinay

    Hi,
        I would like to know whether you have mapped your customer_master(1..unbounded) node to IDOC(1..unbounded) node???Please check it once.Depending on that only the multiple IDOCs will be generated. I think it is mapping problem only. Have you changed the occurrence of IDOC to unbounded by exporting & then reimporting it to external definitions???? I've already done it & i got multiple IDOcs generated. Please check it and let me know the response so that I can help.
    Please follow th below links
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/877c0d53-0801-0010-3bb0-e38d5ecd352c
    /people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
    Thanks & Regards
    Priyanka Anagani

  • File to Multiple Idocs, Error: Tag MESSAGE1 found instead of tag IDOC BEGIN

    Hi,
    I have configured my file to multiple idocs scenario using the following blog -
    /people/claus.wallacher/blog/2006/06/29/message-splitting-using-the-graphical-mapping-tool
    Now when i try to execute this scenario it is scenario it is giving me the following error at "Call Adapter" Stage in runtime-
    "Tag MESSAGE1 found instead of tag IDOC BEGIN="
    My message looks like this at "Request Message Mapping" Stage in runtime -
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
    - <ns0:Message1>
    - <ZDR009>
    - <IDOC BEGIN="1">
    - <Z100901 SEGMENT="1">
      <RUNDATE>20080220</RUNDATE>
      <RUNTIME>0037</RUNTIME>
      <CONSTANT1>PYRLINCST</CONSTANT1>
      <CONSTANT2>CSC</CONSTANT2>
    - <Z100902 SEGMENT="1">
      <RECTYP>2</RECTYP>
      <SSN>641381239</SSN>
    Kindly assist me in solving this error, Thanks in Advance!!
    Regards.
    Sudheer

    Hi Sudheer,
    Just the check the message mapping. Check the parant node mappings to create two different messages.
    It seems that the mapping done on IDOC Node to create the IDOCs is getting failed.
    Copy the content from inbound payload and test it in message mapping.
    Remember, when you load the test data into your test tab you will get the error of structure mismatch coz in your mapping you have additional message.
    Do the change with original data as shown below befor testing.
    <?xml version="1.0" encoding="UTF-8" ?>
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
       <ns0:Message1>
    Original message will be here.
    </ns0:Message1>
    </ns0:Messages>
    Regards,
    Sarvesh

  • One file for multiple IDOCs

    Hi,
    Need help on IDOC files created on application server.
    For IDOCs of EDI type generally one file is created on application server for one idoc. Is there any way to create a common file for multiple IDOCs that are created in a batch job?
    Thanking in anticipation
    Sudhir Bhate

    Hi Sudhir;
       Yes, it is a setting on the outbound parameters of the partner profile.  In the section for "output mode," select "Collect IDocs."  This link to help.sap.com describes the procedure:
    http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b812a43d711d1893e0000e8323c4f/content.htm
    Cheers,
    John

  • File to Multiple Idocs scenario. Pls help

    Hi All,
    For Single File to Multiple Idocs scenario i am referring blog --
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/877c0d53-0801-0010-3bb0-e38d5ecd352c
    Suppose my source file is
    AAA, BBB,CCC
    111,222,333
    ZZZ,ZZZ,ZZZ
    I want to make 2 IDOCS for the first 2 records (AAA, BBB,CCC   and  111,222,333)
    and do not want to make IDOC for the 3rd record  -- how to achive this.
    Regards

    Hi,
    If the condition is like, for 'AAA' and '111', IDocs to be generated, then do as follows.
    If IDOCs are of same type.
    1. Value
    > Equals -
    > createIf -
    > IDOC
       Constant('AAA')
    2. Value
    > Equals -
    > createIf -
    > IDOC
       Constant('111')
    3. Value
    > Equals -
    > not -
    > createIf -
    > IDOC
       Constant('ZZZ')
    If 2 IDocs are of differnet types,
    create different mapping programs with same logic.
    If 2 IDocs are to be generated based on the record no in the file rather than the first field value, i think you can go for Global container.
    Refer these,
    [http://help.sap.com/saphelp_nw04/helpdata/en/ee/bf9640dc522f28e10000000a1550b0/frameset.htm]
    [http://help.sap.com/saphelp_nw04/helpdata/EN/49/1ebc6111ea2f45a9946c702b685299/content.htm ]
    [http://help.sap.com/saphelp_erp2004/helpdata/en/75/8e0f8f3b0c2e4ea5f8d8f9faa9461a/frameset.htm]
    thanks.
    Edited by: P.Ravi Varma on Apr 22, 2009 10:27 AM

  • Single file to multiple IDOC's

    I have a scenario (File to IDOC) where single file creates multiple IDOC's.
    I got message mapping error in production for record 622.
    Question here is will the IDOC's till entries 621 be created in the ECC system or the entire messaged failed.?
    It is sure that from 622 nothing was processed.
    Thanks.

    So, in Mapping Mapping, in outbound interface, you certainly used an external definition with option "maxOccurs=Unbounded". is that right?
    Anyway, as in moni, you have only one XML message, and as you said to us that this message is in error in moni (so red flag), it's the wole message (file) which has been rejected.
    Have you check the WE02 (ECC) and IDX5 (PI) ?... because you will have directly your answer of your question "does my file is treated partially ? or completly rejected?" !
    regards.
    mickael

  • Single inbound file - XI - Multiple IDOCs in SAP

    Hi XI pros,
    my file input file has very simple structure of header and item:
    H
    L
    L
    L
    Header has 2 fields snd item has 3 fields which I need to map to IDOC and post simple MM document in SAP.
    Mapping itself is very easy. I need to create separate IDOC for every item record type L.
    Question is whether I can do this in general without BPM ?
    Thank you, Forest.

    Hi Forest,
    Go thru this blog of <b>File to Multiple IDoc's</b>
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
    I think this satisfy ur requirements.
    Hope it helps and u don't forget to give me points.
    Regards
    Arpit Seth

  • File to multiple idoc scenarios depending on finput field value

    Hi,
    i have a file to idoc scenario.
    depending on a particular field of the file i have to trigger a single idoc (with all the records in the file)or multiple idocs  (for each record in the file ).
    for example,
    the file has 5 records-
    2 records have field value A (create 1 idoc for all As)
    3 records have field value B (create 1 idoc for each B)
    so in this case 4 idocs (1 for all A, and 3x1 for B) are created
    What is the best solution ?-
    1. to have several outbound idoc interfaces and check each interface mapping for field value (A or B) ?
    this solution seems like overwork to me
    2. handle this in mapping ?
    in that case will UDF be better or ABAP mapping
    3. any other way ?
    Thanks in advance

    Hi,
    if you have one IDOC type you can use ABAP mapping
    this way you will handle everything in tables
    and you will be able to post one IDOC (bundled)
    with all IDOCs inside
    also if you use ABAP mapping you will be able to incorporate changes
    easily in the future I believe
    for idoc bundling:
    <a href="/people/michal.krawczyk2/blog/2006/10/11/xi-new-book-mastering-idoc-business-scenarios-with-sap-xi"><b>Mastering IDoc Business Scenarios with SAP XI</b></a>
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Error Handling in File to Multiple IDOC Scenario?

    Hello Experts,
    My scenario is file with Multiple records and I want to send it to SAP system.If there will be 10 Records in my file I need to create 10 IDOC in Target system.
    I can use below of the two options.
    1) File to Multiple Idoc (1.N Mapping)
    2) Using BPM
    3)Directly place the file in SAP application server and process it via ABAP Program.
    However I am not clear in which option error handling will be more effective.Please suggest.
    Basically I want to handle If out of 10 records 9 are correct and 1 record is not correct then I should be able to report within PI without affecting 9 correct records.Is it possible 9 records will be sent to SAP system and PI will only show error for 1 incorrect record.
    Also I will be doing this scenrio for transaction data with huge size (1 Million Records).Which approach will be more effective in this case.
    Thanks,
    Pushkar

    Hi Patel,
    I want to handle If out of 10 records 9 are correct and 1 record is not correct then I should be able to report within PI without affecting 9 correct records.Is it possible 9 records will be sent to SAP system and PI will only show error for 1 incorrect record.
    when working on graphical mapping, the target structure is created when there are no errors in all records of source structure.
    suppose if we have validation error in 9th and 10th record, then we can not process the first eight records and inturn we can not store the two error records in XI for further.
    i suggest you the third option, you can directly place the file in SAP application server and process it via ABAP Program.
    this is far better because you can do more customizations as you have to deal with millions of records.
    Regards,
    Pradeep A.

  • Flat file to multiple IDOCs

    Hi experts,
    I have a bit of a problem here wit a flat file to IDOC interface.
    My input CSV file structure (shortened) is as follows -
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:POINBOUND_MT xmlns:ns0="urn:xx:xi:dwn:xx:pf:xxx:poinbound:100">
       <Record>
          <Row>
             <PO_HEADER_ID/>
             <TYPE_LOOKUP_CODE/>
             <LINE_NUM/>
             <AMOUNT_LIMIT/>
          </Row>
       </Record>
    </ns0:POINBOUND_MT>
    the target side is an idoc - PORDCR1.PORDCR102.
    in the input file, for each row the PO_HEADER_ID field will have repeated values. the structure for eg.-
    PO_HEADER_ID < other fields> < otherfields> ...
    12345 <other fields>..<..  >
    12345 <other fields>..<..>
    12345 <other fields>..<..>
    56789 <other fields>..<..>
    56789 <other fields>..<..>
    Now i need two idocs ( 2 distinct header values) on target side - the 1st idoc will have first 3 line items and 2nd idoc will have the last 2 line items.  have already edited the IDOC in xsd format to make it unbounded.
    <b><u>Problem</u></b> - i am able to create two idocs by handling contexts(splitbyvalue and a UDF), but with the line items its not working i.e. <u>the first idoc gets the 3 line items created but the 2nd idoc does not have any!</u> 
    my mapping for line items is -
    PO_HEADER_ID <-> splitbyvalue(value changed) <-> count <---> UDF (for result.addvalue using count)  <----->  lDOC LINE_ITEM node.
    This logic does not work incase i need to create more than one idoc on the target side, it only works for the first idoc..so wat can i do??
    Plz help.
    thnx in advance!
    Raju.

    Hi Raju,
    check these links...
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/877c0d53-0801-0010-3bb0-e38d5ecd352c
    Sachin

  • File-XI-multiple IDoc Scenario

    Hi there -
       I am working on single File-XI-multiple IDoc Scenario and have following questions:
    (please keep in mind that there is already an existing multiple IDocs-XI-single File scenario between the same systems)
    1. Please provide any detailed step by step documentation from end-to-end.
    2. I am thinking it's compulsory to use BPM, is there any way to aviod?
    3. Is it possible to update existing IDocs in R/3 directly from the data from XI?
    Thanks everyone in advance...
    Pat

    HI,
    Pls go thru following links-
    /people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
    Single inbound file -> XI -> Multiple IDOCs in SAP
    One file for multiple IDOCs
    Hope this helps..
    Regards,
    Moorthy

Maybe you are looking for

  • To register new document types

    Is there anyway you can register a new file extension type (for example .dd) and associate it with a mimetype in iFS ? So that browser can open this file as text or doc ? Thanks in advance

  • HT201272 why have only half of my apps come up on my new ipad

    why have only half of my apps come up on my new ipad?

  • Adobe form saved from email has no data

    Hi. We generate Adobe Interactive Forms (developed in Adobe LiveCycle 8.0) from our SAP Netweaver environment.  A form is sent to the vendor as an email attachmet and they launch Adobe Reader (or another pdf reader) to acknowledge the form and submit

  • How to handle PXE

    In our current SCCM 2007 environment we have 1 secondary site in each remote office to handle PXE boot requests for OSD.  In CM2012 we only want  1 Primary Site server for our entire environment.  How do you still allow remote offices to PXE boot up

  • Error watching JMS queues with JMSUtils: java.lang.NoSuchMethodError: main

    Hi. I'm trying to use the command line utility JMSUtils to see if I have configured correctly a new queue in oc4j server but when I try to use execute it following the instructions I have found on the net it doesn't appear to be in the oc4j.jar I fou