Idoc to multiple interfaces in XI

Hi,
how can we handle same Idoc ( MATMAS.MATMAS03) sending to multiple interfaces in XI otherthan using multi mapping?
If we develop one scenario now and in future if you want to send same idoc to different systems, do we have to change the existing interface?. Alternatively is it possible to add another interface?. Please clarify.

ok, as it's case 1, I think it's easier.
You have two ways:
1. Inside <b>ID</b>, use your previous Scenario:
=> after that, you will have 1 scenario...
1.1 Create a new Business Process (BPM_2)
1.2 Inside your <u>existing</u> Receiver Determination, add your new BPM_2 as a receiver (use righ-click + "insert above").
1.3 with your triplet "Sender_name + Sender_interface + BPM_2", create your Interface Determination
1.4 As receiver is a BPM, Receiver Agreement is not needed.
Then, you need to configure the step "BPM_2 -> Receiver_2"
1.5 Create a Receiver Determination between your BPM_2 (sender) and your receiver_2.
1.6 create your Interface Determination
1.7 create your Receiver Agreement (receiver adapter)
2. Inside <b>ID</b>, use a new Scenario:
=> after that, you will have 2 scenarios which use the SAME Receiver Determination "Matmas -> Receiver_1 + BPM_2"
2.1 create a new Scenario
2.2 <b>ADD</b> to this scenario your existing Receiver Determination ("Matmas -> Receiver_1").
2.2 do the same steps than "1.1 -> 1.7"
At the end, you will have:
Matmas --> | Receiver_1              => File_1 with single Idoc
            | BPM_2
              BPM_2 --> Receiver_2    => File_2 with collected IDocs
Mickael
Message was edited by: Mickael Huchet

Similar Messages

  • Single IDOC to Multiple Interface Mapping

    We have a requirement in our project where one masterdata IDOC will be sent from a SAP MDM box and will be transformed to a target IDOC and be sent to an SAP SNC box. However, the scenario is that depending on the contents of the IDOC, there can be multiple IDOCs that need to be created. For example, the single MDM IDOC has V1, V2 and V3 values then the IDOCS that should be sent to the SAP SNC box should be three.
    The IT head of the customer decided against using Enhanced Interface Determination (since the problem can be easily solved using a 1:n mapping) due to the complexity especially when the solution is rolled out to other regions as each region has it's own logic (currently, the other implementation has only 1:1 mapping so there is no problem). I had developed a 1:n mapping but the resulting map is too big and very complex.
    What I tried to do is to create separate mappings for each scenario that an IDOC needs to be generated out of the values from the received IDOC in XI and then define rules in the Interface Determination. Problem is that XI throws an error stating that multiple interfaces are found. So I cannot use Interface Determination to trigger creation of multiple IDOCS of the same type with different values from a single IDOC sent by the same SAP box.
    Question is, is there any way to solve this requirement without using Enhanced Receiver Determination. I was thinking of BPM but not really sure how to do it.
    Thanks in advance!
    Best Regards,
    Rommel Mendoza
    Hewlett Packard Asia-Pacific, Ltd.

    Thanks a lot for that.
    For example, We have this input Message:
    <ZMATMA>
      <IDOC>
        <E1MARAM>
           <E1MARMM>
               <MEINH>IT</MEINH>
           </E1MARMM>
           <E1MARMM>
               <MEINH>CS</MEINH>
           </E1MARMM>
           <E1MARMM>
               <MEINH>SW</MEINH>
           </E1MARMM>
        </E1MARAM>
      </IDOC>
    </ZMATMA>
    then there should be an output of:
    <SAVEMULTIPLE204>
      <IDOC>
        <BUOM>IT</BUOM>
      </IDOC>
    </SAVEMULTIPLE204>
    <SAVEMULTIPLE204>
      <IDOC>
        <BUOM>CS</BUOM>
      </IDOC>
    </SAVEMULTIPLE204>
    <SAVEMULTIPLE204>
      <IDOC>
        <BUOM>SW</BUOM>
      </IDOC>
    </SAVEMULTIPLE204>
    The logic is when the MEINH field of the ZMATMA02 IDOC has the values: IT, CS and SW, create one IDOC for each.
    Thanks in advance!
    Edited by: Rommel Mendoza on Nov 6, 2008 7:30 PM

  • Idoc to Multiple file scenario

    Hi Experts,
    My scenario is IDOC to Multiple files..
    IDOC will be triggered from the ECC system and i have three differient structures and need to drop those 3 files in the ftp server at the target system.
    Here we can use multimapping for such scenario but the problem here is ..
    In my scenario for all the 3 mappings i am using combination of message mapping and xslt mapping as below
    1st case:
    Idoc -
    Message mapping -
      Target First File.
    XSLT Mapping1
    XSLT Mapping2
    XSLT Mapping3
    XSLT Mapping4    -
    The output of the xslt 4th mapping will go to the target ftp server
    In similar for the other 2 mappings also uses the combination of messag mapping and xslt mapping.
    Here as the receiver system is one in the interface determination (PI 7.1-- NO Enhanced determination)when i add these operation mapping in the interface determination when i execute the scenario all the operation mappings are not getting executed.
    For example;; If the first target file has no records then it is not executing the 2nd operaion mapping, does the occurence of the operation mapping needs to changed.
    could anyone suggest on this..
    Thanks,
    sai

    Hi,
    Why cannot you use three mappings when you want to generate the three files for the same input instead of multimapping as the multimapping generates either of the three messages only...
    you can later provide the condition at the interface determination to execute the mappings if not all mappings to be executed..
    if there are no conditions provided by you at the interface determination level then mappings will get executed automatically..
    provided your mapping is working fine..so in your case check /test the message mapping..
    HTH
    Rajesh

  • HR - XI - External System: one IDOC to multiple XML Files

    Hi,
    I have a scenario where I need, out of one HRMD_A07 IDOC send multiple XML files:
    The IDOC and the XML files can the Master data for many employee (IDOC has max of 200 as of SAP, external system, max of 1000).
    The IDOC will be generated with change pointers with all the needed filters (I can add/remove if needed).
    My goal is to generate 3 types of XML files:
    - 1 for the persons (containing basic info like name, firstname, persnr,etc)
    - 1 for the various unit (with basic info of unit like number, description & name)
    - 1 for the links between persons and units (this person is linked with that unit)
    The structures of the 3 XML files are know and can be imported via XSD definition.
    Do I need to use BPM for doing so or is there a way to do that with simple mapping?
    If BPM is needed, as I new to that, if you have a link to a begginer guide, fell free to send it
    Cheers,
    greg

    hi,
      For your scenario there is no need of BPM.
      In message mapping select the message tag.
      In the target add 3 message types.
      Just map the fields.Go to Interface mapping add the 3 message in the target.
      Get the mapping.
      In ID sender agreement,Receiver Determination is same.
      In Interface Determination select extended.Get the mapping.
      Create 3 Receiver agreement for each Receiver.
    Regards,
    Prakasu

  • One IDOC to multiple XML messages

    Hi! I am using the graphical mapper in XI to map the SHPMNT03 IDOC to an XML message. The IDOC has a shipment node and potentially multiple delivery nodes, for example:
    E1EDT20
      - E1EDL20
      - E1EDL20
      - E1EDL20
    I need to create one XML message per E1EDL20 node. I figured I could do this in the mapper but when I execute the map for an IDOC with multiple E1EDL20 nodes, I get a 'Cannot cast 2 to boolean' error. The map executes fine when there is a single E1EDL20 in the IDOC.
    As always, help is very much appreciated and points awarded.
    Thx, Duncan

    Hi Duncan,
    Can you just check if this is what you have done,
    IR
    1. Message Mapping -- Occurence of the Destination message type ( file ) is unbounded
    2. Interface Mapping -- Occurence of the Destination Interface ( File ) is unbounded
    ID
    1. No sender communication channel , sender agreement
    2. Receiver communcation channel for FIle with appropriate FILE CONSTRUCTION MODE
    3. Receiver Determination  and Interface Determination with Sender Interface as the IDOC interface and Receiver Interface as the FILE INTERFACE.
    I think there is some misunderstanding on this front.
    Multimapping will work if you are trying to  do an IDOC to FILE with a 1:N split
    just check this and let me know if you ve missed something.
    Regards,
    Bhavesh

  • BPM using multiple interface

    Hi All,
    i have a sceanrio where i have one sender idoc and multiple(5) soap receivers.so i have five interface that have same sender idoc and different soap receiver.Soap is syncronous and sending us the response of that message.
    So we have to create a scenario as IDOCSoapRequestSoapResponse---File  for each interface
    I know it requires BPM to fullfill the condition of multiple interface.Please suggest the BPM design to achive the scenario.
    Regards
    Laxmi Bhushan

    hi Laxmi Bhushan Jha ,
    IDOCSoapRequestSoapResponse---File for each interface
    As per my knowledge that is poosiable and simple with SOAP Lookup in ESR Mapping
    for Soap Lookup:
    Webservice Calls From a User Defined Function.
    and coming to id:
    in receiver determination , we need to define multiple recievers
    in interface determiination, we define multiple operation mappings.
    thanks,

  • IDOC to multiple file with dynamic file names with same content

    Hi,
    My scenario is from IDOC to file.
    The number of files which i need to create is dynamic, which depends on the number of plants.
    I have a Z-table where i will maintin list of all plants ( non SAP plant names).
    I need to fetch the data from this z-table and depending on the nunber of plants i need to create the file for each plant and fiel name should contain plant name in it. EX: abc_<plant>_datatype.txt
    I want to use only receiver one CC, and files should be created in the same directory.
    Can we do this without BPM?

    Hi,
    You can use the Mapping lookup concept to fetch the plant names from Z-tables and then you can use the variable substitution technique to resolve your purpose.
    Here you need to create multiple interfaces ie.e per plant to create multiple files. You can use common Communication channel for all.
    Mapping Lookup
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0/frameset.htm
    Mapping Lookups - RFC API
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439
    /people/bhavesh.kantilal/blog/2006/11/20/webservice-calls-from-a-user-defined-function
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0/frameset.htm
    Variable Substitution
    An interesting usage of Variable Substitution in XI
    /people/sameer.shadab/blog/2005/09/23/an-interesting-usage-of-variable-substitution-in-xi
    SP12 -Variable Substitution option
    Receiver File Adapter:Variable substitution :FATAL  ERROR
    Thanks
    Swarup

  • How to use multiple Interfaces for the same BS?

    Hi @ ,
    Is it possible to have a scenarion where i am using multiple interfaces in the same BS based upon some conditional field in the message.
    I amnot able to get the solution I know with condition editor I can have multiple receivers but in my scenarion based upon message fiels i have to decide which BAPI to be used and wht mapping and then post it to the same System
    Any help will be highly rewarded
    Regards

    Hi-
    Yes it is possible you can use multimapping for mapping the interfaces.
    To know more about multimapping see
    http://help.sap.com/saphelp_nw04/helpdata/en/21/6faf35c2d74295a3cb97f6f3ccf43c/content.htm
    Some more helpful links
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible

  • Multiple Interfaces on a single web service URL

    we have a scenario where we have a multiple interfaces that are related to SD that needs to be exposed to another system. When we generate the WSDL from XI - it seems we can do only for one interface at a time.
    Is there a way - where in we can expose a single URL and treat these interfaces as web methods on that single URL? (similar to .Net or Java)
    If yes - how do we do that?
    Thanks.

    That will not be possible. Instead you have to expose only one interface which takes generic data as input. In the mapping, depending on dat, you should map them to various other interfaces which would definetly make your scenario complex..
    In XI each outbound interface is a separate web service (method).
    VJ

  • Mapping Issue for IDoc to JDBC interface

    Hi All,
      I am having problem in implementing logic in IDoc to JDBC interface where I have to filter out E1WBB07-KSCHL = VKP0.
      Source IDoc structure is like ->
    E1WBB01(occ 0 -1000)
      |-> E1WBB03 (occ 0-100)
                |-> E1WBB07(occ 0-1000)
                         |-> KSCHL
                              DATAB
                              DATBI
    Now, For each KSCHL = VKA0 there should be a duplicate VKP0 record. From these 2 records only the VKA0 should get processed and VKP0 ignored.
    Duplicates for VKP0 and VKA0 can be identified by identical DATAB and DATBI.
    Suppose, in one  E1WBB03 segment,there are 4 E1WBB07 segment having following values.
    1: KSCHL=VKP0, DATAB=20102011, DATBI=25102011
    2: KSCHL=VKP0, DATAB=26102011, DATBI=30102011
    3: KSCHL=VKA0, DATAB=26102011, DATBI=30102011
    4: KSCHL=VKP0, DATAB=01112011, DATBI=31129999
    2 & 3 are duplicates. From these, 2 should get dropped.
    As a result only 1, 3 and 4 should get  processed.
    How can I proceed with this..?...I have tried some work around but not able to do it successfully. Is a UDF required to compare DATAB and DATBI. If yes how it can be written.?
    Thnx in advance,
    Praveen.

    chk below mapping:
    change the context of DATAB, DATAB1 and KSCHL to E1WBB03 (right click-> context) in all the mappings shown below
    1)
    DATAB
    ------------concat-----sort----splibyvalue(value change)-----collapse context---TargetNode
    DATBI
    2)
    DATAB
    ------------concat-----sortbykey \
    DATBI                    /        \
    KSCHL------------/                 \
    ----------------------------------------FormatByExample----sort-----UDF1----Target KSCHL
    DATAB                                    /
    ----concat---sort--splibyvalue(value change)-
    DATBI
    3)
    DATAB
    ---concat ( ; )-----sort-splibyvalue(value change)---collapse context--splitbyvalue (each value)--UDF2---TargetDATAB
    DATBI
    4)
    DATAB
    ------------concat ( ; )-----sort----splibyvalue(value change)-----collapse context--splitbyvalue (each value)--UDF3---TargetDATABI
    DATBI
    UDF1: execution type : all values of a context...input: var1
    int a=var1.length;
    int count=0;
    if(a>=2)
    for(int i=0;i<a;i++)
    if(var1<i>.equals("VKA0"))
    count= count+1;
    else
    result.addValue(var1[0]);
    if(count>1)
    for(int i=0;i<count;i++)
    result.addValue("VKA0");
    UDF2:execution type: single value...input: var1
    String [] temp= var1.split(";");
    return temp[0];
    UDF3: execution type: single value...input: var1
    String [] temp= var1.split(";");
    return temp[1];

  • IDOC to (multiple) file design help

    Hi all,
    i am trying to do a IDOC to multiple file scenario.
    Requirement:
    An outbound idoc has 4 segments.
    now i want the output of first 2 segments in one file and second 2 segments in another file.
    How to approach this design (without BPM).
    Waiting for reply,
    Senthilprakash.

    Hi,
    Use multimapping (use external definition of Idoc in source side) in which target message occurance should be 0..unbounded.
      write one UDF like below
    for(int i=1;i<=4;i++)
         if(i==2||i==4){
         result.addValue("");;
                     so that it will split the target structure 2 time(when i=2 and i=4). so that you map all the source fields to target fields(all one to one mapping except UDF).
    start doing this so that you will get the required output easily.
    thanks,
    madhu

  • Single SOAP receiver adapter for multiple interfaces

    Hi,
    I have to send multiple interfaces like Vendor, Customer, Material to one receiver.
    I want to configure only one communication channel (receiver SOAP adapter) to send all these interfaces. Is this possible?
    Currently I am provided with different URLs from the receiver system as below.
    http://host:port/Services/Vendor.wsdl
    http://host:port/Services/customer.wsdl
    http://host:port/ServicesMaterial.wsdl
    I will be having 3 Sender agreement, 3 receiver determination, 3 interface determination and 3 Receiver agreement.
    I want only one SOAP reciever adapter which goes inside all the above 3 Receiver agreement.
    So When I give the target url as http://host:port/Services, the messages fail.
    But When I specify the full targert url in the adapter as http://host:port/Services/Vendor.wsdl then it works.
    Which means I would have to create as many communication channel as interfaces.
    Is there a work around for this?

    hi kantheri,
       For this, we have to fill the TargetURL and the SOAPAction in Receiver Communication channel dynamically.
    So, we need to write UDF in Message Mappings using DynamicConfiguration to fill the TargetURL and the SOAPAction Dynamically.
    DynamicConfigurationKey keyURL = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/SOAP","THeaderSOAPACTION");
    DynamicConfigurationKey targetURL=DynamicConfigurationKey.create("http://sap.com/xi/XI/System/SOAP","TServerLocation");
    // access dynamic configuration
    DynamicConfiguration conf = (DynamicConfiguration) container
    .getTransformationParameters()
    .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    conf.put(keyURL,"Soap action");
    conf.put(targetURL,"target url");
    return "";
    In this UDF, we are filling the TargetURL in u201CTServerLocationu201D message attribute and SOAPAction in u201CTHeaderSOAPActionu201D message attribute.
    So, whenever we execute this corresponding operation these values will be filled in receiver communication channel at runtime.
    TargetURL- Give some dummy URL or http:// 
    SOAPAction - *
    regards,
    ganesh.

  • Multiple IDOC to Multiple IDOC scenario without BPM steps????

    Hi
    Could you please give me the solution for this ???
    I want steps for sending all IDOCs at a time- ---"Multiple IDOC to Multiple IDOC scenario without using BPM".???
    thanks
    3nadh

    Hello,
    Refer the below, for certain details!
    /people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi     ALE configuration for pushing idocs from SAP to XI
    /people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change     XI: IDOC bundling - the "trick" with the occurance change
    Regards,
    Jilan

  • From IDOC to Multiple Oracle tables Structure

    Hi Guys,
    I am doing a one Senario which is Custom idoc and Custom Tables of oracle they both have same fields and Same Sturucte does it possible from to do 1:1 mapping shall i process these in 1:n.Need a sugestion in these  How i can slove these problem. IF some from india will give their cont pho to my mail id [email protected] i can call them and dicuss about these problem..
      the senario is idoc to multiple oracle tables..need to map.
    Regd's
    Raj

    Hi Raj,
    you scenario can be:
    R/3 -> XI -> JDBC
    The flow is asynchronous - so you dont have any responses. If you want to use BPM/acknowledgements to catch errors have a look to <a href="/people/udo.martens/blog/2005/09/30/one-logical-system-name-for-serveral-bpm-acknowledgements Logical System Name for serveral BPM Acknowledgements</a>
    You can split the IDoc (<a href="/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible without BPM - Yes, it’s possible!</a>) to several JDBC messages or put serveral statements into one message (
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/frameset.htm">Document Formats for the Receiver JDBC Adapter</a>)
    Regards,
    Udo

  • IDOC to multiple header scenario..

    Hi,
    My scenario is Idoc to multiple flle scenario..(CDMA & GSM files needs to routed to differient structures)
    The requirement is Idoc is triggered at R/3 ECC side, at the target end we have 3 structures, the 1st structure is common as it has email details and the 2nd structure (CDMA structure)and the 3rd structure (GSM Structure) is differient which should handle CDMA & GSM.
    so, the IDOC triggers with the following case
    1. Only CDMA files
    2. Only GSM files
    3. Mixed CDMA & GSM files
    4. Sometimes missed data without having anyinformation to differentiate (For this case the records should not be geterated)
    Ouput should be as follows:
    for the first case:
    1. If only CDMA files -
    > In this case the output should be 2 files (one email file , CDMA text file--- so totally 2 files)
    2. If only GSM files  -
    >In this case the output should be 2 files (one email file , GSM text file--- so totally 2 files)
    3. If both CDMA & GSM -
    > Then here totally 3 output files where (One email file, CDMA text file, GSM test file -- totally 3 files)
    Please throw some light for how to proceed with this type of scenario..
    Thanks,
    --Kishore

    Hi Sarvesh,
    The reply was really useful and also can you clarify the below things,
    1. I have to drop the files by using dynamic file naming configuration i mean i have to drop the files with the name as below
    First case: If only CDMA records in the IDOC then i need to drop 2 files (1 email file -- 1 CDMA text file)
    the file names should be as : IDOCNumber_Currentdate.xml -- For email file & IDOCNumber_CurrentDate.txt for CDMA text file
    Second case: If only GSM records in the IDOC then i need to drop 2 files (1 email file -- 1 GSM text file)
    the file names should be as : IDOCNumber_Currentdate.xml -- For email file & IDOCNumber_CurrentDate.txt for CDMA text file
    Third case: If mixed CDMA & GSM records in the IDOC then i need to drop 3 files (1 email file -- 1 CDMA text file & 1 GSM text file)
    the file names should be as : IDOCNumber_Currentdate.xml -- For email file & IDOCNumber_CDMA_CurrentDate.txt for CDMA text file, IDOCNumber_GSM_Currentdate.txt)
    Here the IDOC number and the text GSM is not used in the ouput structure to use variable substitution method, when we use dynamic file naming configuration UDF then the files are getting overwritten with the first UDF.
    Please let me know how to proceed further..
    Thanks,
    --Kishore
    Edited by: Kishore Kumar N.T on Dec 10, 2010 11:33 AM
    Edited by: Kishore Kumar N.T on Dec 10, 2010 11:34 AM

Maybe you are looking for

  • How Can I report a Production Error

    When I want to report a Production error in Support portal, I got a error like this Currently you do not have authorization to use this function. To request the authorization, please contact one of the administrators at your company:      S0004554480

  • Character palette no longer works for me with Leopard

    I need to use the Character Palette frequently in my work, but since going to 10.5 it is not working. Only the bottom part appears, starting with the "View" drop-down menu, and under that the large character on the left and the "Related" scroll box n

  • How to debug the smart forms

    Hi All, Can any body guide me how to debug the smart forms. Thanks & Regards, Satish.

  • Scale cRIO NP Shared Variable AFTER Deploying an Executable

    I have a project coming up that has about 140 shared variables deployed on an RT target and sharing data at 1S/s over the network.  There is nothing else going on concerning the RT target, just dumping values.  I would like to scale these SV's in the

  • Safari Will NOT Launch- Please help!

    Hi- I have a clean install Leopard (all updates too) on my new Macbook Pro. Just started today: When I click on Safari the dot underneath the Safari on the dock shows and Safari shows at the top (menus), but no window comes up and when I put my mouse