Multi Mapping 1:N Split

Hi ,
    My scenario is 1: n Split. I have created one intermediate structure (B) and doing splitting due to satisfy all business rules.
A is the source is the Target. (1: N split)
A  B
B C
A and B has the occurrence of 1.
B has the occurrence of 1. C has the occurrence of 0.unbounded.
I have specified the Source and Target interface is A  C.
I got the message type, but I try to give Message mapping for A B & AC, it is not allowing me to give two multimappings in interface mapping.
Please let me know have you found any answers.

Hi Suresh,
Your both mapping structure should have MultiMapping Envelop..because you are using MultiMapping in the interface mapping, i.e 1:1 Mapping with 1:N mapping.
Go thru this SAP Help-
http://help.sap.com/saphelp_nw2004s/helpdata/en/4f/ef761a5ecfb1418b79896e10fe4c57/content.htm
Similar Discussion-
Multiple Mapping programs in one Interface mapping
Hope this helps,
Regards,
Moorthy
Message was edited by: Krishna Moorthy P

Similar Messages

  • Multi-Mapping and Message Split using BPM

    Hi All,
    Could anyone pls let me know clearly how message mapping can be done for this weblog
    /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
    Thanks,
    Ram

    Hi,
    When you are doing Message mapping after adding the Messaget types for source and target messages. You can click on the "" button in the target message and add one more tab. You can go to Message tab as shown in the 5th image and click "" button to add one more message type. Then do the mapping as usual.
    <b>Based on the value of the element(name), the node of input(details)should be directed to one of the two message types</b>
    Here in this blog it is done based on the Name.
    You need to use IFTHENELSE boolean function and do the mapping.
    Thanks,
    Prakash

  • Multi mapping and message splitting in BPM

    Hi ,
    I am working with this scenario ...
    /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
    how many message interfaces i have to create .
    one outbound , one abstract  and two inbound .. is it correct.

    Hi
    Minimum you need to create three message interfaces i.e. Bpm_In_MI_Abstract,  aBpm_Out_MI_Abstract Bpm_Out1_MI_Abstract, because abstract interfaces can be use inbound and outbound as well.
    You can also use create implement it by using inbound and outbound message interfaces. In that case you have to use three additional interfaces(1 outbound and 2 inbound).
    Regards
    Sami
    Reward points if helpful.

  • Multi-Mapping and Message Split using BPM UDFs Error

    hi
    As per the below blog
    Illustration of Multi-Mapping and Message Split using BPM in SAP Exchange Infrastructure
    I have just modified the UDFs(1.selectnodeifA 2.selectNodeifB)
    1.selectnodeifA
    for(int i=0;i<=n;i++)
    if(Name<i>.equals("A"))
    result.addValue(Node<i>);
    2.selectNodeifB
    for(int i=0;i<=n;i++)
    if(Name<i>.equals("B"))
    result.addValue(Node<i>);
    while checking I am getting the following errors
    Source code has syntax error: 
    D:/usr/sap/D10/DVEBMGS01/j2ee/cluster/server0/./temp/classpath_resolver/Mapdc8fa4d0896011dd907d001cc01cef0d/source/com/sap/xi/tf/_bpm_mm_.java:132: cannot resolve symbol
    symbol : variable n
    location: class com.sap.xi.tf._bpm_mm_
    for(int i=0;i<=n;i++)
    ^
    D:/usr/sap/D10/DVEBMGS01/j2ee/cluster/server0/./temp/classpath_resolver/Mapdc8fa4d0896011dd907d001cc01cef0d/source/com/sap/xi/tf/_bpm_mm_.java:140: cannot resolve symbol symbol : variable n
    location: class com.sap.xi.tf._bpm_mm_
    for(int i=0;i<=n;i++)
    ^
    2 errors
    The source code given in the blog is correct ? I thought for loop has not completed
    pls help
    manian

    Hi manian,
    I was having a look to Illustration of Multi-Mapping and Message Split using BPM in SAP Exchange Infrastructure blog.
    The functions are not the same. I mean, yours and blogs functions.
    Each function has two parameters, Name and node. Furtheremore, in the blogs' functions is using arrays and you don't.
    So, the right code will be
    1.selectnodeifA
    for(int i=0;i<=node.length();i++)
    if(Name<i>.equals("A"))
    result.addValue(Node<i>);
    However, if you don't need an advance user defined function as you want to process just one element of the node's queue, you will not need to use for sentence.
    Something like:
    1.selectnodeifA
    // for(int i=0;i<=n;i++)
    if(Name.equals("A"))
    result.addValue(Node);
    Hope it is usefull for you.
    Carlos

  • Question with multi-mapping 1:n split scenario

    Hi
        I have a scenario with the following requirement
    R3 --> XI --> Multiple files
    I used a multi-mapping scenario  using message mapping. to get the following output
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
    <ns0:Message1>
    <Transaction> </Transaction>
    <Transaction> </Transaction>
    </ns0:Message1>
    <ns0:Messages>
    Each  <Transaction> </Transaction>  produces a file in runtime. So far so good.
    Now, there was a new requirement to introduce a dtd line as the first line  in each of the target files created  - that looks like follows :
    <!DOCTYPE Transaction PUBLIC \"-//XXXXX//DTD BatchReceiptAuthorization//EN\" \"http://dtd.XXXXX.com/dtds/ReceiptAuthorization.dtd\">
    How do I go about introducing this header line above the <Transaction> node in each and every target file - that is created by multi-mapping  ? This header line is not a part of the target schema and hence cannot be mapped to as an constant element in the target.
    Any suggestions/ideas as to how this can be done ?

    Hi Gautam
        I did use a java mapping , as a second step after the message mapping - so that the dtd line can be introduced as a header for each target message/file written by the muti-mapping in the first step.
         In my scenario, I sent the inputstream that is being passed to the Java execute method  - to trace and I see that the whole of the xml file - as shown below - which is the output of message mapping ( from the first mapping step ) in sent to the execute method of the java mapping a single call
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
    <ns0:Message1>
    <Transaction> </Transaction>
    <Transaction> </Transaction>
    </ns0:Message1>
    <ns0:Messages>
    So, I modified Java mapping program to look for multiple occurences of <Transaction> tag and prefix them with my constant DTD Literal - which is the primary reason , why I had to use Java mappings after the message mapping.
    Now, I get an error is XI- 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>XIServer</SAP:Category>
    <SAP:Code area="MAPPING" />
    <SAP:P1>unexpected symbol; expected '<'</', entity refe</SAP:P1>
    <SAP:P2>rence, character data, CDATA section, processing i</SAP:P2>
    <SAP:P3>0</SAP:P3>
    <SAP:P4>113</SAP:P4>
    <SAP:AdditionalText />
    <SAP:ApplicationFaultMessage namespace="" />
    <SAP:Stack>The exception occurred (program: CL_XMS_MAIN===================CP, include CL_XMS_MAIN===================CM00A, line: 609)</SAP:Stack>
    <SAP:Retry>M</SAP:Retry>
    </SAP:Error>
    Can you help me out here ?

  • Split Message value in Multi-Mapping

    Hello everybody,
    I got the following problem with 1:n Mapping
    My Source Structure is
    <root>
    .<element_list> // 1:1
    ..<element>     // 1:unbounded
    ...<value>
    ...</value>
    ..</element>
    .</element_list>
    </root>
    Sample for source structure:
    <root>
    .<element_list>
    ..<element>
    ...<value><b>WILLIAM</b>
    ...</value>
    ..</element>
    ..<element>
    ...<value><b>RICHARD</b>
    ...</value>
    .</element_list>
    </root>
    I want to split by multi-mapping!
    The target structure looks similar as source target structure (just <element_list> is missing)!
    So my structure looks in target:
    <Messages>
    .<Messages1>
    ..<element>    
    ...<value>
    ...</value>
    ..</element>
    .<Messages2>
    ..<element>    
    ...<value>
    ...</value>
    ..</element>
    For splitting the <value> tag is responsible:
    Every RICHARD should be mapped to <Messages1>
    Every WILLIAM should be mapped to <Messages2>
    --> so I use the if-function (I dont want to use the SORT function!)
    But this seems not to work.
    Any suggestions?
    Regards Mario
    null

    Hi Vijaya
    annotation:
    I need different messages!
    So in the tab >messages< of massage mapping
    Target Message: The message type must occur in row 1 & 2
    Like in thread: /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
    Here: First screen shot under >Message Mapping<
    Did you do this?
    Regards Mario
    Message was edited by:
            Mario Müller

  • Multi-mapping not found at configuration time

    Hi
      I have defined an interface mapping that takes one msg interface as source and two msg interfaces as targets - the underlying message mapping is a multi-mapping.
    However , when I go to configuration time - and create a enhanced interface determination - and drop down - to pick up multi-mapping - it says no objects found !!!
    I double check the sender interface and its link with the SWCV , the interface mapping - everything is ok . Coud anybody help me - as to why my multi-mapping is not being picked up at configuration time ( I also check the runtime cache - everything is ok )
    Please help !!!!

    HI,
    see the below links
    multi mapping - /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
    multi mapping without bpm -/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    Various multi-mappings and Optimizing their Implementation in Integration Processes (BPM) in XI.
    /people/narendra.jain/blog/2005/12/30/various-multi-mappings-and-optimizing-their-implementation-in-integration-processes-bpm-in-xi
    Multiple mappings into one Im - Multiple message mappings in one integration scenario
    Regards
    Chilla

  • Multi-Mapping with BPM?

    Hi Experts,
                    Can anyone send me a scenario which contains multi-mapping using BPM (collect pattern)........I searched on SDN but cudn't find any scenario which contains Multi-Mapping BPM scenarios. All the scenarios which r available based on without BPM.............points will given to the approriate replies.
    Thanks in Advance
    Faisal

    Hey
    strange you didn't find it,it was the second link when i searched SDN with the string "multimapping BPM"
    /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
    Thanx
    Aamir

  • Doubt in Multi mapping

    Hi
    Suppose i want 1:2 transformation. Both the destinations are of the same type. (say two database tables have to be updated int he receiver end, )
    1. I can create one business service with two receiver interfaces. And go for multimapping.
    or
    2. I can create 2 separate business services for the two target interfaces and proceed in the usual way.
    I would like to know when to go for multi mapping in terms of configuration.

    Hi Aarti,
    You can go through these two blogs for clearing doubts on Multi mapping
    /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    Pravesh

  • What is Multi-mapping in SAP+XI and when is it used?

    Hi SDN,
    Can you please tell me what exactly is a multi-mapping in SAP+XI  and when is it used with an example.
    Regards,
    Aniruddha Bhattacharya

    Hi Aniruddha,
      Multi mappings can be used in ccBPM which is used to map abstract interfaces. Development is the same as Message Mappings.
    n:1 Transformation
    Bundles multiple messages into one message, for example, individual purchase order items into one purchase order.
    1:n Transformation
    Splits a message into multiple messages, for example, a purchase order into the individual purchase order items.(its possible without BPM)
    n:m Transformation
    Converts a message into another message, for example, a message that is defined by interface A is converted to message that is defined by interface B.
    Multi-Mappings reference multiple message structures:-
    a) All source message structures are combined into 1 source structure.
    b) All target message structures are combined into 1 target structure.
    Therefore, there is only one source structure mapped to one target.
    With BPM:
    /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
    Also go through this thread...you will find lots of link which are helpfull...
    Multi Mapping
    Regds,
    Pinangshuk.

  • What is Multi mapping

    Hi All,
    What is Multi Mapping ??
    How many Types of Multi mappings r there ???
    Please Explain a Little bit
    Regards
    Vamsi

    Multi-Mapping can only be used in ccBPM. It is used to map abstract interfaces. Development is the same as Message Mappings
    n:1 Transformation
    Bundles multiple messages into one message, for example, individual purchase order items into one purchase order.
    1:n Transformation
    Splits a message into multiple messages, for example, a purchase order into the individual purchase order items.
    n:m Transformation
    Converts a message into another message, for example, a message that is defined by interface A is converted to message that is defined by interface B.
    Multi-Mappings reference multiple message structures:-
    a) All source message structures are combined into 1 source structure.
    b) All target message structures are combined into 1 target structure.
    Therefore, there is only one source structure mapped to one target.
    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
    Regards,
    Kumar

  • Multi-Mapping Message Split 1:n

    Hi experts,
    I have a few questions regarding a multi-mapping for a 1:n message split. I have a business process which collects IDOCs from a specific IDOC type (ZHINVOIC01).
    I have a 1-to-1 Mapping for collecting the IDOCs.
    After this 1-to-1 Mapping the IDOC has the following structure:
    xdoc has the occurrence 0..unbounded
    For every IDOC in the source structure one xdoc in the target structure should be created. My Mapping works very fine, but I have one question. If there are more IDOC-Elements in the source structure, I have more xdoc-Elements in the target structure. But I do not want to have one target-message. the mapping should create one file with the element xdoc for every IDOC element in the source structure.
    I want to send a xml-file for each xdoc-element to a ftp-server. is that possible?
    Thanks and best regards
    Christopher Kühn

    Hi Udo,
    look at my example above:
    for the source structure
    <Messages>
       <Message1>
          <ZHINVOIC01>
             <IDOC/>
             <IDOC/>
             <IDOC/>
          </ZHINVOIC01>
       </Message1>
    </Messages>
    I have the following target structure:
    <Messages>
       <Message1>
          <xdoc/>
          <xdoc/>
          <xdoc/>
       <Message1>
    <Messages>
    now the target structure is only one message, isn't it?
    But I want to have for this case 3 Messages each with only one xdoc-element.
    I hope that we are not talking at cross-purposes
    Thanks and best regards
    Christopher

  • Multi Mapping issue - *Split mapping created no messages*

    Hi,
    The scenario I am trying to test is a multi mapping scenario where I am trying to split one source message and create two target messages by using two different inbound service interfaces, one for each message type.
    I am on PI 7.1 and when I test message mapping and operation mapping using the payload from SXMB_MONI, it is successful. Whereas when I test the scenario end to end I am getting the following error messages:
    Runtime error
    *Split mapping created no messages*
      Start tag ns0:MessagesStart tag ns0:Message1Close tag ns0:Message1Start tag ns0:Message2Close tag ns0:Message2Close tag ns0:Messages
    Could someone please help
    Cheers,
    S

    Hi,
    (1)First change the occurrence of target message to 0..unbounded.
    (2) Do the mapping and test it under test tab of mapping whether your mapping is working fine creating target records.
    (3) Copy the source code from mapping and remove the unwanted tags "as Mark said " those were created due to multimapping.
    Then test that file and that will work.
    You can follow this link .
    Link :Message Splitting
    Thanks
    Rabi
    Edited by: RabiPanda on Nov 17, 2011 8:42 AM

  • Duplicate Message ID issue in case of Multi mapping (without BPM)

    Hi Experts,
    I am doing one sample Example for my requirement of converting the single source message data into the multiple Target messages.
    for example, when sender system is sending the 5 sale order details into a single message in PI then my Inbound proxy class of ECC R/3 receiver system must get this sale orders separately, that means inbound proxy class method must be triggered separately for 5 sale orders from sender system. for achieving this, I have used the Multi mapping concept in ESR (without BPM).
    This scenario is in Asynchronous mode.
    The below screen shots give the details on what I have configures so far.
    IN ESR
    IN ID
    IN SXMB_MONI of PI
    IN SXMB_MONI of ECC R/3 Receiver system (Error in Processing)
    due to this error, inbound Proxy class method is not being triggered for the single Sale order details as well,
    please let me know how to tackle this duplicate message ID issue when we have multiple payloads to process in a single message.
    please also let me know if is there any other workaround to fulfil this requirement.
    Thank you,
    Regards,
    Jagesh

    Hi Nunu,
    Check the below blog for restrictions.
    Multi-Mapping without BPM - Yes, it’s possible!
    Restrictions
    Messages that result from the split in a mapping-based message split are sent using one AE. So only adapters running on the AE are supported. In particular, this means that target IDOC message splits are not supported since the IDOC adapter is not part of the AE.
    Regards,
    Praveen.

  • Multi-Mapping Error after copying into new namespace

    Hi everybody,
    we got a BPM running using a multi-mapping.
    We decided to design new namespaces. After copying every IR object (datatype, message-type, mappings etc.) --> SXMB_MONI shows a mapping-error.
    But when I take the payload and test the mapping, everything is fine?
    Any ideas?
    Regards Mario

    Hi,
      If your payload has Messages tab remove that..and test the payload.
    Payload doesn't have any Messages tab.
    Just i have given example payload..this payload two strucures it will split into twofiles..and compare your payload should be like same
    <?xml version="1.0" encoding="UTF-8"?>
    <STRUCTURE>
    <EMP_DETAILS>
       <EMPNO>123<EMPNO>
       <EMPNAME>XYZ<EMPNAME>
    <EMP_DETAILS>
    <STUDENT_DET>
       <STUO>123<STUNO>
       <STUNAME>XYZ<STUNAME>
    </STUDENT_DET>
    <STRUCTURE>
    Regards,
    Venu.

Maybe you are looking for

  • Error : CGImageCreate: invalid image colorspace: NULL.

    Hi, I am unable to launch Intellij IDEA from command line using ./idea.sh on my Mac (OS 10.7.4). The intellij IDEA flash screen comes up after which I am seeing the following error and the application hangs -- the IDEA does not open. I have been tryi

  • Adobe 11.0.06

    I have updated Adobe Reader to the latest version 11.0.06 and now I cannot open PDF files, I keep getting the following message: "There is a problem with Adobe Acrobat/Reader.  If it is running please exit and try again (523:523)". I have exited the

  • Doubt on sld

    Hi,     I'm new to XI plz assist me by answering my questions            1.if we maintain single sld for dev, con & prod is it necessary to transport TECH & BUSS.SYST's information  to TEST SYST or just we to transport only configured objects to TEST

  • Import a word document composed in Arabic font (.ttf) into a .fla

    Hello Everyone; I am developing an advance e-book in Flash. My client has composed about 500 books in arabic using Microsoft Word. My client wants search features in this book in which the user will type something in arabic & it will search the ebook

  • After form trigger procedure call

    In Reports 6i on a 10g DB the afterform trigger calls a db procedure (in a package) which performs several inserts of "default" data without commit. The report then selects this data. The afterreport trigger performs a rollback. Sometimes this works