Can I do multimapping?

Gurus,
I have a scenario wherein I have a message that is required to be converted to temp message using the Java Mapping and then map to a different message to call an RFC.
Is this possible?
A simplistic view of what i am tring to achieve
eg:Source Message
<EMP>
  <Name1/>
  <Name2/>
</EMP>
I am using java mapping to get the Temp Message
eg: Temp Message
<EMPLOYEE>
  <FullName/>
</EMPLOYEE>
Map the temp message to RFC
eg: Target Message
<EMPLOYEE>
  <FullName/>
  <some additional message/>
</EMPLOYEE>
Regards
Unni

Hi Unni,
I saw the details you had sent...
You will be getting the source message and that you are passing to Temp message with Java Mapping...
i.e. mt_test  to mt_temp_jdbc
now while mapping Target message you are adding additianl message mapping and calling it to RFC ..is it ... mt_temp_jdbc to RFC (ZXL00....)
Here the 2nd mapping will not be executed as the mt_temp_jdbc is not at all related with the Source Interface.
This kind of combination will work out...when you will directly pass some of the fields from source to Target via Java mapping and remaining fields to be mapped as Message Mapping between Source and Target messages..no need to temp message..
Try this kind of combination.
Thanks
Swarup

Similar Messages

  • PI 7.4(Single stack) Idoc to file + additional done file

    Hi All,
    here the requirement : I want to convert Idoc to file in PI 7.4 (single stack) and send to FTP location with time stamp (eg: xxx_06082014123055.txt)   and also need to create another empty file with same time stamp (eg: done_06082014123055.txt) after transferring xxx file. when the target system find the done file then it process the xxx file and deletes done file.
    one way is I could create a 2 operation mapping and 2 service interface which will then configured in ID as two receiver interface mentioning 'maintain order at Runtime' pointing to same communication channel but the filename had to be created in UDF in mapping.
    My question is , Is there any other alternative or better way to achieve this??
    ur ideas pls....
    Sha

    Hi Sha,
    You can use the multimapping concept, you will generate two messages and two files, with the second message only with its root element in order to create an empty file. Check these links to know more about the multimapping concept:
    Multi-Mapping without BPM - Yes, it’s possible!
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90dcc6f4-0829-2d10-b0b2-c892473f1571?overridelayout=t…
    Regards.

  • FILE To RFC Synchronous

    Hi Experts,
    I have a requirement of FILE TO RFC (BAPI_ABC) synchronous  .Everything is ok with it.
    But Once I have called BAPI_ABC, I need to call BAPI_TRANSACTION_COMMIT and pass it the hardcoded string u201CXu201D to save the changes made in SAP.
    For this in Target Side of mapping i have called this bapi after BAPI_ABC.  this wont work. 
    because with synchronous intefaces we can't do multimapping(1..2)
    now when will I call this comit bapi,?
    and What will be the probable solution for it.
    Shall I use BPM or Proxy. but my client requirement is "everything should be done in PI side only"
    Kindly reply it with your best.
    Regards,
    Sumit

    Hello,
    I had similar problem and i could resolve this issue with help of SAP Note 1342143 - RFC Adapter: WAIT during call to BAPI_TRANSACTION_COMMIT.
    So all you need it is to set up next:
    In receiver RFC adapter
    Check "Advanced Mode"
    Check "Commit Handling for Single BAPI Calls"
    Add the following Name-Value pair to the table:
    Name: BAPICommitWait
    Value: true
    BR,
    Dzmitry

  • File to Mail Adapter issue

    I am trying FILE-TO-MAIL ADAPTER senorio
    I have file contains following data(more than one row data in file)
    emailaddress,subject, content
    I used receiver Data type
    https://websmp205.sap-ag.de/~sapidb/012006153200000361852004E/ximail30_xsd.txt
    If text file is only one record it is sending mails as mail defininition is 1..1 in ximail30_xsd
    I changed the mail definition in ximail30_xsd to 0...unbounnd and recreate the external definition andcreated interface based on external definition.
    I am getting validation error.
    please advice me.

    Hi,
    ><i>I changed the mail definition in ximail30_xsd to 0...unbounnd and recreate the external definition andcreated interface based on external definition.</i>
    Maybe you can consider using MultiMapping to send the multiple Mails out of XI.
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    Is this what you want?
    Regards
    Bhavesh

  • 1:N RFC call

    Hi,
    Can you do multimapping for making 1:N rfc call. Assuming source has 10 items, can you call an RFC FM 10 times using 1 item alone from the source?
    UK

    Hi Krishnan,
    Yes it is possible. Please see this blog on how to achieve this:
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    Regards,
    ---Satish

  • Receiver interfaces problem...

    Hi all...
    I have 2 questions...
    1. Can we use multimaping in which both proxy and other adapter(say File or Mail) are in receiver side without any BPM?
       If yes lemme know how please...
    I could not do the above so i am going for 2 different mappings.....
    2. Can i use the same receiver interface in more than 1 flow for the same sender and receiver components but the sender interfaces are in different namespaces?
    I am trying to do above but i am getting the following error...
    - <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="IF_DETERMINATION">CX_ID_PLSRV</SAP:Code>
      <SAP:P1>Inbound interface found several times (for same sender and receiver) for the outbound interface urn:np.atl.warrants.stage2meterplus.WarrantsS2Meterplus_OB</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>Error when determining the inbound interface: Inbound interface found several times (for same sender and receiver) for the outbound interface urn:interface_OB Inbound interface found several times (for same sender and receiver) for the outbound interface urn:interface_OB</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Can any1 please throw some light on this issue..
    Thanks in advance..

    > 1. Can we use multimaping in which both proxy and other adapter(say File or Mail) are in receiver side without any BPM?
    Yes, you can do it without BPM if it is 1:N mapping but if it is N:1 then you have to use BPM.
    I could't realize while answering. It is not possible, see the reason given below by Sanjeeve.
    > 2. Can i use the same receiver interface in more than 1 flow for the same sender and receiver components but the sender interfaces are in different namespaces?
    No, you cannot do like this. You can see it is clear from the error message it self that "Inbound interface found several times (for same sender and receiver)".
    Regards,
    Sarvesh
    Edited by: Sarvesh Singh on Dec 14, 2009 8:54 PM

  • Sender Idoc needs to be translated into 4 text files

    Hi,
    Could you please guide me how can i achieve this.
    Within XI this Idoc message needs to be translated into 4 text files:
    Could you pls. confirm as...can i use MultiMapping or shall i go for BPM?
    Thanks & Regards,
    Y.Raj.

    Should also work in your case:
    1. Create your mapping program that will map the information from the source file
    into the destination idoc. This has to be a 1:N split. Just make sure that the destination message type and message interface are are of occurrence N.
    2. Also, you will have 2 destination interfaces and 2 interface mapping, one for the IDOC and one for the mail.
    Now, there are a few essential steps in your configuration,
    1. In the receiver determination, specify the 2 receiver systems, one for your IDOC and the other for your MAIL.
    2. Now, you will have a condition window. Just type the condition on the basis of which the receiver has to be determined for the mail and the idoc business system. Just remember that the condition can be specified only for the source message.
    3. In the Interface Determination, you have an option called RB CLASSIC and RB SPLIT. To do a 1:N split, you will have to do a RB_SPLIT.
    You can even use xslt mapping to split source message type into multiple target messages types.for more information on the same check this link:
    http://help.sap.com/saphelp_erp2005/helpdata/en/83/2200cb50d345c793336d9a1683163e/frameset.htm

  • Can any one brief me in using multimapping

    Hi ALL,
    Can any one brief me in using multimapping in detail.
    Thanks
    Govindu.

    Hi Govindu,
    I hereunder explain you in detail what is multimapping all about:-
    Multi-Maping 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.
    I hope this clarifies.
    Regards.
    Praveen

  • In Multimapping how can we configure the Receiver , Interface Deter for BPM

    Hi Friends ,
    I am trying the the BPM scenario using Integration Process
    BpmPatternCollectTime
    from SAP BASIS ® SAP BASIS 7.00 in the namespace http://sap.com/xi/XI/System/Patterns
    I have done the scenario like the above . I have followed all the Steps which are used in above scenario.
    I am using a File Sender Adapter and Receiver Adapter .
    It is Successfully picked up the File but nothing is happening after that .
    I am using two receiver Determination one from Ob to IP and other from IP to FIleReceiver ( IB) .
    But, I am Getting error as Block1 (No agent) Error in the PE graphical diagram
    I have checked in SWWL my Integration Process Return code is "0"
    The steps Which i have followed in BPM are
    1. Block with Deadlkine branch and Exception handler( as TimeOut Exception)
    Block Start and Block End as New Transaction
    2. Inside Block infinite Loop which contains Receive step ( Actives the Correlation ) and Multiline Container element which appends the Messages with CollectMessage
    3. Transformation Step
    It creates the New Transaction and Interface Maping from CollectMessage List to New Mesage
    4. Send Step
    It sends the New Message . It creates the New Transaction .
    Can you Please tell me how to configure the Receiver and Interface Determination for the above scenario ?
    Regards.,
    V.Rangarajan

    Hi Ranga
    have a look at these
    you can ref: this link to find example where a receiver determination step is used in BPM- http://help.sap.com/saphelp_nw04/helpdata/en/43/6211b11c895f6ce10000000a1553f6/content.htm
    More abt RD step in BPM - http://help.sap.com/saphelp_nw04/helpdata/en/14/d5283fd0ca8443e10000000a114084/content.htm
    if useful pls reward

  • Veriable substitution issue in multimapping

    Hi Experts,
    I am working on the requirement where i need to create multiple flat files using multimapping for this. I am working on SAP PI 7.31 SP07, using SFTP adapter and messagetransformbean to create flat files.
    I am going for the variable substitution option as i want file name should be dynamic.(considering limitation of ASMA and dynamic configuration in
    multimapping)
    Getting the error "The variable substitution cannot be parse the message xml: Content is not allowed in prolog"
    Variable name- var1 reference- payload:NotificationAttachments,1,DocumentDetails,1,IncidentNumber,1
    Output struture-
    NotificationAttachments(1)
         ->DocumentDetails(0-n)
                   ->IncidentNumber(1)
                   ->DocNumber(1)
                   ->DocDescription(1)
                   ->Path(1)
    Please note one file can have multiple DocumentDetails.
    When i use reference for header data i.e. message:interface_name this works fine, but i want ot use IncidentNumber in file name from the payload.
    Can some one tell me is there something wrong on configuration, or there is some limitation here.
    Appreciate quick help.
    Thanks,
    Sandip

    Hello,
    May be u can check ur xpath? BTW, few days back i have seen a similar thread hope it's not somekind of bug (will cross check the same once i reach office)
    Variable Substitution in Receiver File Channel. PI 7.3
    Thanks
    Amit Srivastava

  • Usage of Variable Transport Binding(Receiver SOAP adapter) in multimapping

    Hi All,
    Mentioned below is the flow of the scenario that I am facing issues with:
    ECC -> PI (A) -> PI (B) - Receivers(1,2,3..n)
    I am working on PI(A).
    An Idoc containing multiple Plants is triggered which is mapped to an XML in PI(A).
    Depending on the number of Plants in the Idocs, that many XMLs are created in PI(A) using multimapping.
    These XMLs are then sent to PI(B) which would route it to different receivers.
    But PI(A) should send the party name to PI(B) for routing.
    For this I am using dynamic configuration. If there are 'N' party names based on 'N' plants, always the last part name is being sent to PI(B).
    Is it possible to send all the party names associated with each XML(/plant) without overriding?
    As mentioned in the below table, an Idoc is triggered with 3 Plants. 3 XMLs are generated each for a different party. But only the last party i.e. C is being sent to PI(B) using dynamic configuration overriding A and B.
    Plant
    Party Name
    Output
    1
    A
    2
    B
    3
    C
    C
    Please help me to resolve this issue.
    Regards,
    Vishal

    Hello,
    DC is not supported in multimapping.
    But, where exactly u want to send the party name? In the xml file u want that party name to be there?
    If yes, then there are 2 options either use AM as shown below or u can use variable substitution (search SDN u will find quite a few blogs/wiki on the same)
    A new approach: Multi-mapping Dynamic Configuration using a generic custom module
    Thanks
    Amit Srivastava

  • Problem with Multimapping with out using BPM

    Hi All,
    Here i have face a problem when working with multi mapping.
    For example I explain u with the following example.
    <Message1>
      <Employee>
          <Eno>
          <Ename>
    </Employee>
    </Message1>
    <Message2>
      <City>
           <Address>
           <Dno>
      </City>
    </Message2>
    Message1,Employee,Message2,City are mapped with constant("").
    Here my aim is to create 2 different files with the format as xml structure.
    One file with -
    <Message1>
    Second file with ---<Message2>
    this my example... Now I am explaining where i encountered problem in runtime.
    Error: Mapping exception
    Can not produce target element <Employee>....
    Hint: Iam presently using service pack-9.
    can one one assist....

    Hi,
    The problem is in the mapping, you need to check the mapping..
    1) did you change the occurence of the messages for the multimapping.. Go to Mapping-->Messages (Tab) and change the occurence of the messages
    2) Check the all fields,segments are mapped correctly
    3) Test the mapping
    4) Check the occurence of the Interface Mapping, and test it in the integration respository
    5) check the Source Message Structure and make sure that, it is a valid input to your mapping rules..
    Hope this helps,
    Regards,
    Moorthy

  • N:1 Multimapping For Files

    Hi All,
    I am doing N:1 multimapping for files.
    I have 2 senders and 1 receiver.
    I created 2 sender interfaces and 1 receiver interface.
    I did message mapping in which I added 2 sender message types in source and added the target message type.
    I did Interface mapping with 2 sender message interface and 1 receiver interface.
    But i faced problem when creating configurations in ID.
    (a) I am not able to understand how many interface determination/Receiver determinations are required.
    (b) Again I am not getting interface mapping in Interface Determination .
    So can anyone help me to solve this?
    Thanks
    Rabi

    Hi,
    You can use any of the collect message pattern provided. In your case any one of the following can be used:
    1. BpmPatternCollectMessage
    2. BpmPatternCollectTime
    ->There are some patterns in SWC : SAP BASIS --> namespace : http://sap.com/xi/XI/System/Patterns In ESR of your SAP PI System.
    -> please go through this blogs it will help you.
    Correlation – Runtime Behavior of BPM.
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/10526. [original link is broken] [original link is broken]
    In Configuration By using of BPM.
    -> two communication channels one for sender and one for receiver
    -> 2 receiver Determinations
              one for Sender to IP.
                One for IP to Receiver.
    -> 2 Interface Dtermination
             one for Sender to Ip
             one for IP two Receiver
    -> 1 Sender agrement.
    -> 1 receiver agrement for (IP to Receiver)
    regards,
    ganesh.

  • Can Same IDOC be sent to same Receiver with two different Message Mappings

    Hello Experts,
    Wierd doubt but want to confirm from you people.
    Scenario:
    One R/3 Sender
    SAP XI :
    One external Receiver :
    IDOC is sent from R/3 to external receiver via SAP XI.
    One interface has already been developed for the above scenario.
    Now client wants another interface to be developed for the same IDOC. Might be the values would be different for some specific fields.
    Doubt:
    Is it possible to send one similar IDOC to one target system with two different Message Interfaces?
    Ex: Created Message Interface 'A'  and correspoding Message Mapping with an IDOC
          Created Message Interface 'B' and correspoding Message Mappingwith an IDOC
    Values would be different in the IDOC and would be triggered from SAP R/3. Basing on the specific value of a field in the IDOC , can we trigger a different Message mapping for the same receiver?
    I donot see any reason in developing a new interface for the same IDOC but as per the situation mentioned above, can it be done?
    Thank you
    Alex.

    Create two interfaces for target side.
    If you want only one target interface should get data.
    You can use simple interface determination. Use the condition tab and specify the field there but the value should be constant. e.g. if field has value EN it should go to First interface and if Field has value != EN it should go to second interface.
    If you want to divide your message in to both target interfaces.
    Multimapping also can help but only if both of your target interface need idoc data.
    You can use ifexist standard node functions from UDF to choose between the field.
    For multimapping you can go to messages tab in the message mapping and can add interfaces using + sign.
    then when you see the design part you will see two messages.
    Now Start with receiver determination in ID and create one receiver determination for the sender and receiver, this shows you have only one receiver.
    In interface determination you have to choose extended and choose your mapping designed.
    then both your interfaces automatically would appear.
    Create two receiver agreements and one sender agreement.
    thanks
    hemant
    Edited by: Hemant on Aug 28, 2008 12:29 AM

  • How  we can mention varible substitution for diffrent message payloads

    Hi,
    How  we can mention varible substitution for diffrent message payloads,
    My sceanrio like following,
    According the Outbound idoc message,based on the condition the messages to be split into 9 diffrent files.The sender message may or may not satisfied the condition to one or two messages or  all messages.
    I done the mapping 1:N multimapping in messagemapping & Interface mapping too.
    In reciever file adapter i put the variable substiution like as fallows.
    Variable            Refrence
    Name--            -
    Filename -- payload:message_type_1,1,Segment1,1,Segment2,1,Field_1,1
    <b>How we can mention variable substitution for remaining messages in the same communication channel.my message type names are diffrent for all 9 messagetypes.</b> Any ideas pl forward..,
    When i am testing this scenario,able to processing a one file but the file is not placed in the specified target & gives the follwing error:
    'Conversion configuration error: Unknown structure 'ns1:message_type_2' found in document', probably configuration error in file adapter (XML parser error)'.The file is
    In this case Idoc data satisfied the one message condition only.
    If any ideas & suggestions ..?

    Hi Anjan
    You could always put the "FileName" and "Directory" names into the Dynamic Configuration using a UDF in the map - possibly using a value mapping table to determine the correct values. Then simply reference "%Directory%" and "%FileName%" in the file adapter.  This way you do not have to reference payload variables and you set the names in the map. You will need to tick the box for "use adapter specific message attributes" in the file adapter. you UDF code will look something like
    String dir = "/path";
    String fil = "filename.txt";
    DynamicConfiguration conf = (DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
    conf.put(key,dir);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    conf.put(key,fil);
    - Stephen

Maybe you are looking for

  • Using other apps to create iphoto book

    I want to use indesign to create an iphoto book - just to give me some more control over text, layout etc. What are the dimensions of the page in the softcover book?

  • SUBCONTRACTING PALNT TO PLANT - URGENT

    Dear SAP Gurus, Plant to plant subcontracting withing comapany code, Plant A will supply raw material to other plant B will receive Raw material with subcontracting challan, Plant B will process it and sent back to Plant A with Job work invoice by SD

  • Please allow us to mark more than 5 answers as helpful

    hi, I know a lot of people are not bothered about points, and they just answer to share knowledge However, I still think if someone has gone out of their way to help me, that I can at least show some sort of gratitude, albeit by awarding them 5 measl

  • URGENT!  Problems with On-Commit and Key-Commit triggers!!

    Hi there, We are having a problem with our form actually saving a value to the database after the commit_form is given. When we hit the Save Button (which triggers the Key-Commit, and that in turn triggers the On-Commit trigger) we want a populated g

  • Elements 13, canon scannertreiber unter "importieren" öffnen

    hallo, ich vermisse seit dem zwangsweisen update von 8 auf photoshop elements 13 die möglichkeit den canon-treiber direkt unter datei-importieren-canon9000F zu finden bzw. eben mit den entsprechenden umfangreichen einstellungen scannen zu können. can