Mapping 2-3 receivers based on type.

Hi experts
My source message is as below:
<?xml version="1.0" encoding="utf-8" ?>
<ns:testdata xmlns:ns="http://mytest.com/dotcom/test">
<row>
<Type>D</Type>
<ACCT>111001</ACCT>
<AMT>1000</AMt>
</row>
<row>
<Type>D</Type>
<ACCT>111001</ACCT>
<AMT>5500</AMt>
</row>
<row>
<Type>C</Type>
<ACCT>111001</ACCT>
<AMT>100000</AMt>
</row>
<row>
<Type>D</Type>
<ACCT>1561001</ACCT>
<AMT>905</AMt>
</row>
<row>
<Type>C</Type>
<ACCT>1561001</ACCT>
<AMT>10</AMt>
</row>
</ns:testdata>
and the rest for other channel.
Pls advice on how to achieve this.

HI Chaku,
I did following and it worked for me.
You need 2 message mapping and 2 interface mapping.
Map SOurce row to target row with following conditions
Constant(C) equals(Text Functions) row-Type(Change context to testdata)  --->if
row----
>then -
>row.
Use if then boolean function.
Same way do the 2nd mapping for D.
Put this in 2 different interface mapping and it should work.
Thanks,
Tuhin

Similar Messages

  • Different receivers based on a condition

    Hello experts,
    I have a scenario File to IDOC . The file has the structure : Many transactions( codes starting from 111 to 999)and one Footer record. The footer record will have the total number of lines, and the total number of 111 codes .
    The file has to be read by XI and if the total number of lines or the total number of 111 trasactions does not match with that of the numbers in the footer record, then an email has to be sent to a distribution list (external partners) saying that the bumner of lines or the number of 111 trnsactions do not match with that of the numbers mentioned in the footer record.
    If the numbers match , then the file has to be mapped to idoc .
    This is kind of one file to multple receivers but not exactly multiple recievers, of the mail adapter s triggered, then the idoc adapter should not be triggered.
    I tried it with multimapping: 1 message for Mail and the other for IDOC, and tried giving the condition createif  for mail node but it is throws out error:
    Cannot produce target element /ns0:Messages/ns0:Message1/ns2:Mail.
    Can you please help me in acheiving this scenario.
    thank you.

    Hello all,
    thank you for your replies.
    I have tried the option of enhanced receiver determination.
    There is no need of multimapping. Here are the steps that i followed to achieve the required result:
    Used the Receviver determination as my message interface  and in the mapping of the Server,
    the Message type -->Receivers -->http://sap.com/xi/XI/System
    the Message Interface --> ReceiverDetermination -->http://sap.com/xi/XI/System of swcv SAP BASIS 7.00
    I have given the condition for the Receiver Services for the Field Service.
    and in the configuration part there is no change in the usual Sender agreements, Recevier agreemants and Interface determinations. But in the receiver determination , i have selected the Enhanced radio button and selected the interface mapping for the receiver determiantion .
    This works.
    Regards,
    Lakshmi.

  • Quantity based condition type for excise duty  calculation in tax procedure

    Hi,
    If any one has worked on the issue of excise duty  calculation on Quantity of items purchased Quantity based condition type.
    [<b>For a formula based calculation procedure TAXAU]</b>
    Example : If quantity purchased = 10 units
              Duty to be calculated @ Rs.3 per unit
              Duty on the 10 units = Rs.30
    Other than SAP Note 816835 any help is appreciable.
    Thanks a lot,
    Uma
    Message was edited by: Uma

    I could not find this condition type/Tcode  in our client system.
    Even we are on 4.6c.
    Thanks,
    Message was edited by: Uma

  • Inserting a row in a schema-based xml type column

    i have problems while inserting a row in a schema-based xml type column
    it reports an error(schema and elemnt do not match)
    although they are matching if anyone can try it
    and if it worked plz send me the example

    SQL> DESC XML_TAB;
    Name Null? Type
    XML XMLTYPE
    SQL> INSERT INTO XML_TAB
    2 VALUES
    3 (xmltype('<request>
    4 <filter>(extshortname=bhagat)</filter>
    5 <attributes>dn</attributes>
    6 <context/>
    7 <scope>subtree</scope>
    8 </request>'));
    1 row created.
    If your problem persists,post ur lines of code..
    Good luck!!!
    Bhagat

  • Mapping with Scd operator set to type 2 reading source records two times

    Mapping with Scd operator set to type 2 reading source records two times.Records selected count being displayed at the end of execution is double the source record count.This possibly is affecting the performance of the mapping.
    Is this a bug in scd type 2 operagtor in OWB 11gR2.How to rectify this umwamted double loop through the source data selectiom?

    Hi Roelant,
    I think it is important to be aware that although Paris - 10gR2 - is not actually buggy (in this respect!), it is really quite idiosyncratic in exactly how it processes SCDs.
    I followed up on your and Mark's comments, and did an in depth analysis of this topic. It is at http://www.donnapkelly.pwp.blueyonder.co.uk/documents/OWB_10gR2_SCD.pdf
    My conclusions are perhaps of interest to anyone considering doing SCD processing with Paris.
    I'll be doing a follow-up this weekend, and publishing a sort of 'how-to-do-it' guide.
    Cheers,
    Donna
    Message was edited to add the words: "in this respect"

  • BPM Multi Mapping to diffrend receivers

    Hello All,
    i have to deploy an bpm process with 1:N mapping and different receivers
    i have an receive step an  transformation step for the mapping and
    two send steps each in an block to send single messages to the receivers.
    my problem is:
    say the input Message has 4 Subtrees so after the Mapping i have 4 Messages for receiver1 and 4 Messages for receiver2
    BMP send all 4 Messages to receiver1 and then all 4 messages to receiver2
    but i want to send message1 tor receiver1 , then message 1 to receiver2
    so that the pattern is like this:
    MSG1Rec1, MSG1Rec2
    MSG2Rec1, MSG2Rec2
    MSG3Rec1, MSG3Rec2
    is this possible with bpm.
    Multi Mapping without bpm is not possible
    regards ralf

    Hi  Marshal  
    receiver is abap proxy and not adapter engine
    operation mapping is like this
    source_operation1   => target_Operation1   0..unboundet
                                     => target_Operation2   0..unboundet
    in message mapping
    source_Message1    => target_Message1  0.. unbound
                                      => target_Message2  0..unbound
    all work fine but in bpm i need two blocks pareach to send the messages to target.
    and bpm will work first block1 and then block 2
    i need a block for both sender steps but ???

  • Mapping webservice result to a Data Type

    Hi,
    I receive an array of String objects as a result of a webservice call. These String Objects are XML documents (but as String Object...). How can I take each element of the array and extract all tags values to be mapped to a pre-defined Data Type? Have I to implement a parser in an UDF? How can I do the same mapping for each array cell automatically?
    Thanks!

    Use a simple XSLT to extract the xml document from a particular string.
    Suppose the response XML is like:
    <OutputMessage>
    <string></string>
    </OutputMessage>
    Your xslt would be something like:
    <xsl:template match="/OutputMessage/string">
    <xsl:value-of select="." disable-output-escaping="yes"/>
    </xsl:template>
    If you have more than 1 string, create a root tag and extract all of them inside that tag.
    Regards,
    Henrique.

  • Is CS6 capable of 'Data Mapping' from an excel based database?

    I have CS6 and want to know if it is capable of data mapping from an excel based database.
    Basically i am using inDesign to create new Organisational Charts for my company. i have 23 seperate documents created, all of which conatin; 1 image box and 2 text boxes per each employee in that particular department.
    I want each document from inDesign to point at the database and pull in the correct details to each box within that document.
    I am aware of the 'place' feature but all this does is allow to you to select a range of cells and dump that in the document randomly.
    i have tried ringing adobe and they ponted me to here.
    I am a man on the edge with this... someone please help. Even if its to say 'NO' inDesign does not support this feature.
    Thanks in advance, Danny.

    Danity7 wrote:
    My companies views, much like my own (something which seems to be frowned upon in this forum 'opinions/views') when we have spent a considerable amount of money on the software, we belived the answer to using certain features or at least the answer to 'know' if the software is capable of doing a particular commend wouldnt come at an extra cost.
    Well, without more information on your data, the layout in ID, and how you expect to connect them, as Mike has already said, it's pretty hard to tell you what out of the box capabilities ID has that will work, if any, or where to point you to other commercial add-on products if they exist, or even to suggest a scripted solution, though my current reaction is that you are looking at some sort of XML workflow, which is well outside my own comfort zone.
    ID is a very complex program that has many more capabilities than what are "built-in" in the standard release versions. One of it's greatest features is the ability to expand what you can do through scripts or plugins. This forum is full of free advice, but very few participants are willing to to spend more than an hour designing a custom solution that will not be useful to anyone else unless they are compensated. The people who respond here are professionals, like you, who need to make a living. If I were paid for the time I spend here handing out free solutions and advice I wouldn't need my regular design business anymore.
    If you feel a feature should be included in the general release at no additional cost, please ask Adobe to do so: Adobe - Feature Request/Bug Report Form
    You need to understand, though, that Adobe is a big corporation that budgets the time that developers can spend on new features, and most new things that are added are features that many users have asked for, and usually over the course of several versions (long document users are still waiting for improved footnotes, unchanged since they were introduced), so unless this is a "killer" new idea that will benefit thousands of users you are unlikely to see Adobe add it any time soon, if at all.

  • Create multiple idoc with multiple receivers based on value mapping table

    Hi,
    Scenario: 
    Step1 : sender sends a finance doc iin the form of an idoc. This idoc will have multiple line items based on profit center. Do determine the value of receiving comp code(header field) n receiving system(logical sys name) value mapping table has to be used.
    Solution so far: I can put an rfc lookup for fetching receiving comp code from mapping table with i/p paraameter as profit center . And split the incoming idoc based on comp code value by using split by value. Now I need your advise 2 take this further.
    Issue 1 : say the incoming idoc has 4  line seg wid 4 diff profit center
    Profit center.       Rec comp code.   Recv sys
    P1.                       C1.                        R1
    P2.                       C2.                        R1
    PS.                       C2.                        R1
    P3.                       C3.                        R2
    Nw using this info, I want 3 diff idocs to be created for each unique comp code.
    Idoc 1 : for C1 wid one line item + 1 for reconsilation ( to be generated additionally)
    Idoc2 : for C2 wid 2 line items + 1 for reconsilation
    Idoc 3: for C3 wid 1 line item + 1 for reconsilation
    Idoc 1 and idoc 2 shud be sent to R1.
    Idoc 3 shud be sent to R2.
    Kindly advise on this

    Hi experts,
    U all r pretty close, but let me put this more clearly.
    Step1: create multiple idocs based on unique comp code - I'm able to do this using rfc lookup n split by value. So I get 3 idocs each for c1, c2 n c3.
    Nw as per the values from value mapping table.
    Idoc for c1 contains 1 line seg.
    Idoc for c2 contains 2 line segs.
    N idoc for c3 contains 1 line seg.
    steps2 n 3,  where I do not have a confirmed solution yet n need ur advise.
    Step 2 : for each idoc generated I need 2 create n additional segment, mapping 4 which will be based on the values in the original segments for that idoc.
    In d above scenario, idoc for c1 contains 1 line seg, nw I want 2 add one more seg to it. The amount and pisting key values in this segment wud be calculated based on the values of the amount and posting key belonging to the original segment in this idoc.
    Similarly for idoc for c2 there are 2 segs, nw I need one more, means 3 in allm
    Hence for idoc for c3, 1 orig already present + 1 more. = total 2.
    Nw I need ur advise on how 2 generate this additional seg in each idocm
    Step 3: when all dese 3 idocs are generated, ( in this case itz 3, in real time it can be n), I need to find their respective receivers using rfc lookup n then based on the receiver send 2 resp recvng systm
    Nw how do I do this?
    Please explain with examples if possible 4 bettr understanding.
    u2020ђąu03B7kўu03C3u03C5 in advance.

  • One source File should be sent to Receivers based on Message type

    Hi All,
    I am facing with a problem, the scenario is File to IDOC...
    The file which comes has different message types if Message type is VERIFY then IDOC <b>_-AFS_-DELVRY03</b> has to be triggered and if Message type is MIGO101 then IDOC <b>_-AFS_-WMMBID02</b> has to be triggered,
    Source message is same for both the idocs and mapping is different...
    SO please any one can suggest how to proceed in Integration Directory configuration...
    Thanks and Regards,
    sridhar

    Hi,
    Your query is a little ambiguous.
    You say, that the message type can be either VERIFY or MIGO101.
    You also say that the source message is same for both the idocs. This is not very clear.
    In case, you have the same message type, and VERIFY and MIGO101 are two fields/segments in this message type, then all you need to do is check if these segments exist, in interface determination.
    Click the + symbol in the inbound interfaces section.Enter the following:
    Condition: MT/VERIFY ex   If so, call IMapping which maps message to idoc AFS_-DELVRY03. Inbound interface for this would be idoc AFS_-DELVRY03
    Condition: MT/MIGO101 ex If so, call IMapping which maps message to idoc -AFS-WMMBID02. Inbound interface for this would be idoc. -AFS-WMMBID02.
    In case you have two different message types(which means you have two different source messages), you could create two different scenarios.
    Regards,
    Smitha.

  • IDOC -XI-SOAP one sender different  receivers based on condition

    Hi All,
    I have an IDOC to SOAP scenario.
    For each record based on the input flag XI has to send the  any one of the request ...like either create or update or delete request. All these message types are a part of single WSDL.
    How can i do it?
    Thanks in Advance
    Jyothsna

    hi There are two ways you can do this:
    1. Without BPM - Since you have to create all the target messages adn you want either the 1st and second, or the first and third: create two multi-mapping with one and two, and one and three. In the receiver determination check the condtion based on which you decide the second or the third message has to be created and route it to the correct mapping accordingly.
    2. with BPM, create all the target mapping. In the BPM check the condtion in the switch and do a send accordingly.
    You can do this either on Receievr Determination or on Interface Determination.
    Add multiple Receievrs/ Interfaces and then add the conditons on which the target should be choosen
    to use Xpath for your receiver det. ref these blogs;
    a combination of logics should help you in this case ...
    /people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination
    /people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers
    pls reward points if solution found helpfull
    regards
    chandra.k

  • 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

  • Multi Mapping with IDoc receivers

    Hi,
    I want to use an Interface Mapping in Enhanced Interface determination. The Interface Mapping includes two Message Mappings and should create either  IDoc Type WPUWBW01 or IDoc Type WVINVE03, depending on the values of the Source Message.
    In SAP Help I read the following about developing Multi-Mappings for Message Splits: "Messages that result from the split in a mapping-based message split are sent using one Adapter Engine. For this reason, only those adapters that run on the Adapter Engine are supported. "
    Does this mean my scenario will not work?
    Thanks in advance.
    Alex

    Yes correct. you will have to do two separate message mappings and interface mappings to achieve your goal.
    The IDoc adapter is on the ABAp stack and therefor does not allowing you to use some of the functionality which you get on from the adapter engine on the java stack.
    let me know if you need anything else...
    Edited by: Alex on Jul 21, 2008 5:37 PM

  • Duplicate material entry at the time of PO creation based order type

    How Restrict duplicate material entry at the time of PO creation based on define order type.
    Moderator message: please do some research before asking.
    Edited by: Thomas Zloch on Mar 11, 2011 1:45 PM

    Hi Rahul,
    try with This Badi  ME_PROCESS_PO , Method Open or Process item,
    Implemente it and use a break-point to test it i.e it is triggred or nt , before processing it.
    Regards,
    Abhisek

  • Rebate Issue: Qty Based Cond Type

    Hi All,
    I need to know only functional way (cant use update in pricing routine due to issues in business approvals) to tackle following Rebate requirement.
    Background of issue:
    User has created credit memo because the logistic discount was not correctly invoiced.
    However in this case the Rebate Accrual got reduced
    Reason:
    System must have thought that total amount of cases was returned physically and thatu2019s why rebate accruals are reduced).
    This is not correct because the Materials are not returned. The materials are still with the customer. Hence the rebate accruals should not be reduced in this case. The credit note is only written because of price differences and not because of returns.
    Example: to understand the issue better:
    Suppose we have Invoice with 100 CV and an invoice value of 100 u20AC.
    Rebate 1.) Shows an amount of 100 u20AC * 4% = 4 u20AC accruals
    Rebate 2.) Shows an amount of 100 CV * 0,20 u20AC = 20 u20AC
    Now we came to know that the 100 u20AC net invoice was wrong because of a wrong on-invoice discount. Hence the invoice should not be 100 u20AC, but 80 u20AC. However the 100 CV still remain (NO CHANGE IN QTY).
    The credit note should affect the rebates in the following way:
    Rebate 1.) Should show after the credit note: 80 u20AC * 4% = 3,20 e accruals
    Rebate 2.) Remains 20 u20AC accruals (100 CV * 0,20 u20AC)
    Requirement:
    We want that whenever credit notes are issued which that just price related (e.g. wrong logistic discount) and which do not have a material movement, the Qty-related rebate conditions should not be affected in that invoice.
    This requirement must have been used/tackled in all projects where rebate functionally is used.
    If anybody has still some confusion in understanding the requirement please let me know so that I can discuss it over the phone.
    With Regards,
    Tushar Gawande

    Hello,
    actually the rebate basis can be updated for the quantity scale and/or value scale based on the document category assigned to the sales document type in customizing.
    I mean that except if you configured differently, actually are used the standard program for rebate calculation and settlement. Using the standard, a key field is the document category of the document type in customizing (table TVAK field VBTYP).
    For the below list of standard document category:
    A  Inquiry
    B  Quotation
    C  Order
    D  Item proposal
    E  Scheduling agreement
    F  Scheduling agreement with external service
    G  Contract
    H  Returns
    I  Order w/o charge
    K  Credit memo request
    L  Debit memo request
    W  Independent reqts plan
    0  Master contract
    For example, document type with document category C or H update both: quantity and value rebate basis; document type with document category K or L update only value rebate basis.
    If I understand properly, in your case when the user adjust the price via credit note, once posted to accounting, the reflect in the R.A. was in both direction: update of both quantity and value.
    Personal feeling is that the document type used to adjust the price was not correct and that this document type (as per customizing) is configured to reduce both: quantity and value.
    Did you check the customizing of the document type used to adjust the wrong discount?
    Which category did you find?
    Regards,

Maybe you are looking for

  • Will my MacBook Pro from 2008 work with the Thunderbolt Display? Or will I need an adapter?

    Will my MacBook Pro from 2008 work with the Thunderbolt Display? Or will I need an adapter? I like to have two monitors and currently using an Cinema Display from 2005. Thanks

  • Macbook Pro Youtube Problems

    So I have a 15" Macbook Pro, and everything has been running fine... up until recently. When watching Youtube videos, my Mac has had no problems loading the videos and going fullscreen into HD mode. Recently, when clicking on a video, and going fulls

  • HT201263 dropped iphone4 in water and turned off by itself

    dropped iphone4 in water and turned off by itself and now cant turn on, plugged it to itunes and was asking to restor, when i did restore it it would not turn on when i try to restart it was still the same and now keeps on asking to restore would not

  • Service Battery and no apple care

    So if my 15" Mac Book Pro (2010) is 4 years old and I dont have apple care, when it says service battery does anyone know how much it would be to replace, and how long I have to replace it.

  • Query cost is low but the time taken is high

    Hi, I have tuned the queries which now are costing the CPU low.  But the time taken is still higher (of order of 999,999,999.0) What is scope of improvement ? Regards, Chitwanjit