Two Message Mappings in one Interface Mapping without using BPM

Hello Experts,
I have this scenario, please help me
I have to execute two mappings of which one is a java mapping and then the other is a message mapping sequentially.
The mapping is something like below
Message1  -> (java Mapping) -> Message2
Message2
Message1 -> (Message Mapping) -> Message3
Based on the value in Message2 I have to map Message1 to Message3
I am not an expert in java so please give me options that doesn't involve changing of java code.
The above 2 mappings have to be implemented in only one interface mapping.
Suggestions please.

Hi Ravi!
You say message2 dependes on message1 and message3 is mapped from message1 but using also values from message2? But this means, that whole mapping dependes only on message1!
So change your mapping and use the one not based on message2, but message1. Put these as a condition in interface determination and based on these values use the correct mapping.
Peter
p.s. I'm not sure, if I got your requirement correctly, but your target message dependes only on message1 (since message2 dependes on it too), so this whole mapping can be done as 1. Unfortunately, you'll probably have to change your java part. Bur definetely, Raj is right.
Edited by: Peter Jarunek on Feb 20, 2008 5:36 PM

Similar Messages

  • 1:N mapping without using BPM

    Hi All,
    I am facing a problem in 1:N mapping without using BPM...
    I would explain regarding it first...
    Scenarion is from SAP > XI> 3files
    I have 4 XSD's 1) one is Source Idoc XSD (all xsd's imported to External def.s)
                          2) target file 1 XSD
                           3) target file 2 XSD
                          4) target file 3 xsd
    I have created 4 message interfaces one is Outbound and rest 3 are Inbound
    and also i have done mapping : In mapping messages tab i have mentioned the 3 XSD(External definitions) and done the mapping as required...
    But now my problem is how to proceed with Interface mapping ...
    should i create 3 interface mappings ( ithink no) ... but in IM i am able to create for only one taget Interface .. how to with 3 XSD's ...
    Any solution is always thankfull...
    and Points are surely rewarded....
    Thanks and Regards,
    Sridhar Reddy

    Hi Sridhar,
    Receiver Determinatiion: one Receiver without Condition (Service that has all the Three inbound Interfaces).
    Then in Interface Determination choose enhanced  and choose ur Interface Mapping that has the Multi Mapping.
    It will automatically provide the three inbound Interfaces and u can create ur receiver agreements.
    Reference Blog:
    <a href="/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible:///people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    Regards,
    Sudharshan

  • Sequential mapping without using BPM

    I have a requirement where i need to do a sequential mapping without using BPM. IDoc to file is the first mapping.A few fields of the IDoc are transformed in this mapping. Output of this first one should contain the transformed as well as rest of the fields of the IDoc as it is coz they will be used in the second mapping.
    Is this possible any way?

    yes soumen...u can do it.in the interface mapping option is there to do that...
    but u can do it in a single mapping!!!
    go thro'  this general Idoc to file scenario...u may get some help
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e07dcaa0-a92b-2a10-3a96-b3d942bd1539

  • Multi-map without using BPM

    Hello
    I am trying to create a multimap without using BPM as we are on SP15. I did the respective configuration in Message and Interface mapping as mentioned in the weblog.
    I am expecting multiple files to get generated in the target directory and i hope file adapter supports this.
    For that I did extended interface determination where I selected the respective interface mapping.
    When I am trying to execute this interface it throws error in SXMB_MONI saying "<b>No messages created from split mapping</b>".
    One more doubt, with what names it will generate multiple files?
    Thanks in advance.
    Regards
    Rajeev

    Hello
    I tested my mappings in the Test tab of Interface Mapping where it runs absolutely fine.
    Here is source and target messages
    ***************************Source**********************************
    <b>  <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
    - <ns0:Message1>
    - <ns1:UpdateShipTest_MT xmlns:ns1="http://sjm.com/DynConf">
    - <DELIVERY>
      <DELIVERY_NUMBER>12</DELIVERY_NUMBER>
      <TRACKING_NUMBER>3</TRACKING_NUMBER>
      <SHIP_DATE>3</SHIP_DATE>
      <USER_ID>33</USER_ID>
      <SHIP_VIA>3</SHIP_VIA>
      <ITMNO>3</ITMNO>
      <MATNR>3</MATNR>
      <QUANTITY>3</QUANTITY>
      </DELIVERY>
    - <DELIVERY>
      <DELIVERY_NUMBER>121</DELIVERY_NUMBER>
      <TRACKING_NUMBER>3</TRACKING_NUMBER>
      <SHIP_DATE>3</SHIP_DATE>
      <USER_ID>33</USER_ID>
      <SHIP_VIA>3</SHIP_VIA>
      <ITMNO>3</ITMNO>
      <MATNR>3</MATNR>
      <QUANTITY>3</QUANTITY>
      </DELIVERY>
      </ns1:UpdateShipTest_MT>
      </ns0:Message1>
      </ns0:Messages></b>
    *************************End Source*****************************
    This is the one message which is required to be split into two separate Delivery files
    ***************************************Target Message*******************************
    <b>  <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
    - <ns0:Message1>
    - <ns1:UpdateShipTest_MT xmlns:ns1="http://sjm.com/DynConf">
    - <DELIVERY>
      <DELIVERY_NUMBER>4</DELIVERY_NUMBER>
      <TRACKING_NUMBER>5</TRACKING_NUMBER>
      <SHIP_DATE>5</SHIP_DATE>
      <USER_ID>5</USER_ID>
      <SHIP_VIA>5</SHIP_VIA>
      <ITMNO>5</ITMNO>
      <MATNR>5</MATNR>
      <QUANTITY>5</QUANTITY>
      </DELIVERY>
      </ns1:UpdateShipTest_MT>
    - <ns1:UpdateShipTest_MT xmlns:ns1="http://sjm.com/DynConf">
    - <DELIVERY>
      <DELIVERY_NUMBER>46</DELIVERY_NUMBER>
      <TRACKING_NUMBER>5</TRACKING_NUMBER>
      <SHIP_DATE>5</SHIP_DATE>
      <USER_ID>5</USER_ID>
      <SHIP_VIA>5</SHIP_VIA>
      <ITMNO>5</ITMNO>
      <MATNR>5</MATNR>
      <QUANTITY>5</QUANTITY>
      </DELIVERY>
      </ns1:UpdateShipTest_MT>
      </ns0:Message1>
      </ns0:Messages></b>
    *************************************End Target****************************************
    According to interface map I guess the adapter should split the messages but at runtime it gives error.
    Thanks and Regards
    Rajeev

  • 1:N mapping without using BPM -- IDOC to multiple files

    Hi all,
    I am facing a problem while sending multiple files,
    I need to send files ( File1, File2 or FIle3) ...
    I was able to successfully send the first 2 files and along with it the 3rd file is being created without any data... How to stop this file( either file2 or file 3 should be created) in creating..
    I have done the sceanrio like this, )ALL the source and target files are XSD's imported)
    In the Message Mapping <b>Messages Tab</b>
    <b>Source is AFS_DELVRY03   occurence is 1,
    Target files
    rootI8 occurence is 1,
    rootI9 occurence is 0...1,
    rootIB occurence is 0...1</b>
    I have done all the maping part , problem is all 3 files are being created(eventhough 2nd or 3rd has no data) , I need rootIB, either rootI9 or rootIB based on condition,
    So any one has done the similar scenario, If please suggest me how to hadnle so that only 2nd or 3rd file should be created,
    In Interface Determination i have selected the extended option also...
    Should i do any specific handling in the Configuration part or should i create more than one mapping?..
    U r suggestions are welcome and will be rewarded with points,
    Regards,
    sridhar

    Venu,
    Using a BPM, you can do the mapping / Split as needed and then send the files individually, using a Sens Step as needed. There are multiple ways in which this can be done with a BPM.
    But, for a solution without a BPM, as the requirement is such that only 2 of the 3 target messages need to be created, multimapping would not work and the need for conditional routing occurs.So, this would require additional mappings.
    The solution is either use a BPM or  do the logic using Conditional Routing. Ofcourse the second solution requires 3 mapping programs , but you are avoiding a BPM which can cause a perfromance bottle neck.
    If perfromance cannot become a bottle neck, then using BPM would make much more sense , but again it all boils down to the exact requirements and the feasibilty of the solutions!
    Regards,
    Bhavesh

  • 1:N mapping without using BPM , based on segment conditions

    Hi All,
    I have to send 3 different files from source based on some conditions
    1) for the first file to be sent is okay
    2) But for second file and third file i need to check some conditions
    the conditions are
    If E1EDL44 case detail fields exists   i should generate second file and i should not create any third file  (it's one or the other, not both).
    If E1EDL44 case details doesnot exist i should generate third file and not second file...
    So My confusion is how to send either second or third file (any one only)
    If i do mapping  is it sufficient or also should i use condition editor in Receiver Determination...
    Please suggest u r valuable help..
    Thanks and Regards,
    sridhar

    Hi Sridhar,
    Make ur second interface Occurence as Optional 0:1 in ur Interfaec Mapping.
    In ur Multi-mapping (Message Mapping) also make ur  message type corresponding to ur second file as Optional.
    In ur mapping check the condition and if doesnot satisfy dont populate the second message type. Check this option.
    Regards,
    Sudharshan

  • Two message mapping in one interface mapping

    hi,
    my scenario is idoc to file and i am using java mapping(not UDF) for some fields as well as graphical for rest of the fields.
    I want to add these two mapping program in one interface mapping to generate final target, but the problem is it is not creating final file structure, but when i add only one mapping(either one) it works fine. 
    I'm doing this because I have to add value mapping, after the value i get through java mapping or is it possible to use static value mapping within the java mapping itself.
    Please help.....

    Hi,
    In addition to what Moorthy said you first test mapping individually and see if it works fine. While testing you make sure you are giving the right input, I mean if Java mapping comes second you need to give the output XML of the Graphical mapping or vice versa.
    Hope in Java mapping is done properly and you are returning the expected structure as output. For example if you are using Java mapping as the first one your ouput should be exaclty like that of source structure with the values filled.
    Regards,
    Prakash

  • Intermediate result between two message mappings

    Hi,
    we have a Scenario with an Interface mapping, which is created from two message mappings. The first one receives the source message and the second one sends the target message.
    I have a trouble with finding the intermediate result between the two message mappings.
    Do you have an idea, where to find it?
    Thank you for your help.

    hi,
    the only way i think to do the same is to have a CCBPM.....
    - here u should have the receive step,transformation step and a send step...
    - and then go to sxmb_moni,then there go into the process engine and see the graphical view.
    - here you will be able to view the intermediate result also clearly.
    -we cannot do the same without a CCBPM because,in the normal method u can only see the source and target results and not the intermediated result as in the case of CCBPM

  • Multi-mapping with message bundling but without using BPM

    Hi all,
    I have a requirement to bunch specific no. of records (say 50) from source message and create separate target messages for those bunches. For example, if the source message has 120 records, then there should be three separate target messages created containing 50, 50 and 20 records each.
    I am wondering whether this multi-mapping is possible without using BPM, as the typical no. of records in the source message are in the range of 600 to 800, and rarely (twice or thrice a month) they shoot up to 2000. So my concern is whether BPM would affect the performance. We are using PI at SP12.
    Regards,
    - Shankar.

    Sorry for late reply.. Well the sender is a file system, which sends a single XML file containing multiple records. (I mean I have a sender file adapter that polls periodically from a specific path and picks up the file when it is available)
    The no. of records in the source file may be different in each run. The requirement on the receiver system is that it can handle a file which has maximum of 'n' records only (say 50 in my example)
    Now the sender file can contain any no. of records. It may contain 10 on some day, or 200 the next day, or 120 on the third day. But on the receiver side, I want the files to be created such that each will contain AT MAX 50 records.
    So, if source file has <=50 records, then there will be only 1 target file having the same no. of records.
    If source file has between 51 to 100 records, then there will be two target files. One will have 50 records, and the second will have remaining records.
    And so on..
    Regards,
    - Shankar.

  • Is it possible to have two iTunes programs on one computer to be used by two different users without songs, photos etc. being commingled?

    is it possible to have two iTunes programs on one computer to be used by two different users without songs, photos etc. being commingled?

    Yes.  See Here...
    How to Use Multiple iDevices with One Computer
    Create a New User Account for each User. Then Each user will have their own iTunes library..
    Also... Have a read here...
    https://discussions.apple.com/message/18409815?ac_cid=ha

  • My iPhone has two computers in (iTunes wifi sync), how can I remove one of them without using it ?

    Hello everyone.
    My iPhone has two computers in (iTunes wifi sync) how can I remove one of them without using that computer?
    because that PC stopped working so I had to recover it. Now everything is gone on that PC.
    Also I bought a new computer (MacBook Pro) and I use iTunes on it in the mean time. Now I want to remove the old computer!
    here is a photo of my (iTunes WiFi sync)
    is there any way that I can use to do that?
    Thanks

    Hello,
    Did you ever find a solution for this ?
    I have the same issue and i dont know how to fix it.

  • Why sometimes we have to use two message( ) to display one message ?

    Sometimes one message( ) function is not working properly ? We have to use two message( ) to display one message ? Why ?

    And just to add a little on what dave said:
    You can also detect which button the user has clicked and do some action accordingly.
    DECLARE
    al_id ALERT;
    al_result NUMBER;
    BEGIN
      al_id := Find_Alert('MESSAGE');
      SET_ALERT_PROPERTY(al_id, ALERT_MESSAGE_TEXT, 'your message here');
      al_result := Show_Alert(al_id);
      IF al_result = ALERT_BUTTON1 THEN
         ...  --do some action.
      END IF;
    END;

  • Multi-Mapping in IDOC without using BPM ?

    Hi ,
    Please check ..
    Can below given blog can be used to achive Multi-mapping in IDOC without using BPM ?
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    Regards
    PS

    Solved .. Thx every one .
    Approache Used :
    1. Created mapping  with Change signature on target Message type(idoc) with 1..N Occurence.
    2. Operation mapping with change Occurence on Target Operation(1..Unbounded) .
    3. Used same Operation mapping in Interface Determination with 0..unbounded(Multiplicity).

  • Choosing Receiver Interface (IDoc or RFC) without using BPM

    Hi,
    We have a scenario wherein the receiver interface (either IDoc or RFC) must be dynamically determined at runtime based on the source message. I've tried using Multi-Mapping but this did not work since IDoc and RFC interfaces are not on the same Adapter Engine.
    How do I configure this scenario without using BPM?
    Thanks,
    Francis

    Hi,
    >That was my first solution but it did not work since it seems that conditions only work for determining the Operation Mapping to use for the same Receiver interfaces.
    not true - not only Operation Mapping but also receiver agreement
    so the receiver's channel
    >I was misled into thinking that we could use it to dynamically determine the receiver interface.
    but you can do it over there
    intrface determination can be used for pseudo receiver determination too
    so you can have one interface that either goes to one
    channel or the other (within the same receiver)
    Regards,
    Michal Krawczyk

  • Message Spiltting Without Using BPM in XI-7.0

    We are using XI-7.0.
    We need to spilt the message from 1 to many without using BPM based on following conditions.
    We need to spilt the one message in many messages depending on the segment records of ZORDER3 and ZORDER2.
    If IDOC message do not have segment ZORDER3 then message needs to be spilt based on the segment records of ZORDER2.
    In the following example, one IDOC message would come from SAP system and that message needs to spilt into 7 messages for the vendor's system.
    Any help will be appreciated.
    <u>Source message: IDOC-ZORDER</u>
    <i>Segment:ZORDER1(Max occ-1)
    PO:4600000010
    LineItem:00010
    Plant:5000
               Segment:ZORDER2(Max occ-999)
               ServiceCode-100000
                              Segment:ZORDER3(Max occ-99)
                              CostCenter:CC123456789
                              CostDesc:CCTest1
                              CocstCenter:CC23456795
                              CostDesc:CCTest2
                               WBSElement:WBS45698712
                               CostDesc:WBSTest1
                               WOrderNo:WO56987412
                               CostDesc:WOTest1
              ServiceCode-200000
                              Segment:ZORDER3(Max occ-99)
                              CocstCenter:CC78956795
                              CostDesc:CCTest7
                               WBSElement:WBS492871
                               CostDesc:WBSTest5
                               WOrderNo:WO98757412
                               CostDesc:WOTest6
    <u>Target Message Structure</u>
    POData(1:1)
              Level1(1:1)
              PO&LineItemNo:460000001000010
              Plant:5000
              ServiceCode-100000
              Level2(1:1)
              costobjectID:CC123456789
              costobjectDesc:CCTest1</i>Thanks in advance!
    MP

    Mrudula,
    If you give the target structure and occurrences of it , then it will be more helpful. Also please quote on wht basis the message needs to be splitted, coz the condition is not clear, Please give the condition too.
    Best regards,
    raj.

Maybe you are looking for

  • How do I remove the "normal state" image after applying a "rollover state" image?

    I want to make a site similar to http://piecespeople.prosite.com/ But when I apply the rollover image, the original image doesn't vanish, so I can't see the words in my rollover image through the original image. I've been able to do this effect with

  • Passing multiple fields as addition to  "end at " statement

    Hi All I dont think I can pass multiple fields to END AT statement. I need to sum at end of few field values in table .what is the best method of acheving this. Thanks in Advance Regards Vinay Kolla

  • TS3433 anyone using extended wifi on TimeCapsule 7.6.1 fw with BT router

    Just updated the firware on my TC to 7.6.1 and I now have problems with the TC wifi configured to extend the wifi from my BT router. These include flashing amber light on the TC, amber connection to the Internet in Airport Utility and general access

  • IPad or Mack Book Air?

    I'm in a dilemma right now. My father just took my old HP laptop for his job and now I'm left with a choice of getting either and iPad or MBA. I was origionally going with the air since it would be for taking notes or doing quick write ups and going

  • Multiple sites, multiple Edge servers

    How do I configure multiple Edge servers? I am working with a client that has offices in US, Europe, and Asia. There are three sites configured. Each site has it's own internet and voice provider. Right now they use one Edge server that is located in