PI Message Mapping One Source to create two of the same Target Nodes.

Hi,
I have a source node that contacts the following.
"1234-5678".
When there is a "-" in the source node then I need to create two target nodes.
When there is no "-" in the source node then only create one node.
Since the source structure is a flat structure by on the target side as you can see I am trying to achieve a diep structure.
Please can you assist in how to do this with PI message mapping.
Regards
Willie Hugo

Hi,
"1234-5678" only occurs once in the source. There is no source xml node that will occur more that once. The whole structure only occurs once. But on the target side I need one of the node to occur more than once if a hyphen is found in the source field.
Source Message                      - Always only one data node.
==============
<root>
<OnceOnlyNode>1234-5678</OnceOnlyNode>                   [1..1]
</root>
Target Message                      - Only two text node when "-" in source, else only one text node.
=============
<msg>
<text>1234</text>
<text>6789</text>
</msg>
How can this be done using standard PI message mapping functions. Can it be done?
Regards
Willie Hugo

Similar Messages

  • Map several records to different elements in the same xml node

    Hi,
    I am trying to map data from relational tables to elements as per my xml schema. One of my tables has several records that I need to map to different elements in the same xml node.
    For example:
    Customer_Id | Param_Id |Param_Name
    212 | 1 |State
    212 | 2 |Country
    212 | 3 |ZipCode
    I can not change the structure of this existing table and need to work with it.
    How do I map the different params for a specific customer to my Customer node in the schema?
    One option is to join on the parameters table several times, but there ought to be a better way!
    PLEASE HELP!!!
    Thanks,

    First I question the design that contains/allows 600 attributes on an element. They sound like they really should be elements in the XML.
    Regardless, the following (NOT TESTED) should work for you (assuming you want to write one SQL with 600 columns)
    CREATE OR REPLACE VIEW APPLICATION_XML
    OF XMLTYPE
    Element "LOAN_APPLICATION"
    with object ID
    substr(extractValue(object_value,'/LOAN_APPLICATION/APPLICATION_DATA/@CallID'),1,5)
    AS
    WITH parm_tb AS
    SELECT MAX(DECODE(prv_valu, 1, prv_value)) BusinessType,
           MAX(DECODE(param_id, 2, prv_value)) Product,
           MAX(DECODE(param_id, 3, prv_value)) SomethingElse
      FROM parameter_details
    WHERE prv_pmh_header_id = 1
    SELECT xmlElement
       ("APPLICATION_DATA",
         xmlAttributes
          p.prv_detail_id as "CallID",
          p.PRV_PRM_PARAM_ID as "RandomID",
          p.prv_value as AppInitDate
         xmlElement
         ("PRODUCER_DATA",
           xmlAttributes
            parm_tb.BusinessType as "BusinessType" ,
            parm_tb.Product as "Product"
      FROM parameters_table p
    WHERE p.PRV_PMH_HEADER_ID = 1

  • Map one source elements to two different target elements

    Hi Gurus,
                In our scenario, we have single source. and we are mapping this single source to two different structures, based on condition in the source records on one field, we are mapping to either X structure or Y structure. in my case i have to generate only one file at a time based on condition.
              If condition is true, i have to mapp it for X structure, if its false i have to mapp it for Y structure. but in my case i getting a blank file for another mapping. i should stop this blank file.
             any suggestions and solutions will be rewarded. this is an urgent issue, please help me.
            Thanks in advance.... 
    Thanks & Regards,
    Anuj..

    I have already used an if-then construct and an enhanced ID.Thanks anyway.
    Let me explain using a source interface (s1) and target interfaces t1 and t2.
    Based on the condition, only one interface(lets say t1) will be selected, target mapping is done for this.
    But the problem is that the other interface (t2) also executes(having only the root node) and the end result is i have two files - one with the mapped payload and another empty one with only the root node.
    My requirement is to remove this empty file at the mapping stage itself , as -
    1) i only need a single file at the receiver.
    2) i do not want an extra payload for every record i send, creating unnecessary load on my IE.
    Also due to performance issues i do not want to move this to a BPM.
    I have attached the o/p screenshot at http://www.flickr.com/photos/14210232@N03/1550768802/
    In window 1 i have the correct output .i.e of the interface t1 which was mapped.
    In window 2 i have the unwanted output. i.e the interface t2 which is creating another file at the receiver.
    <b><b>Ques</b></b>: When using enhanced ID/multi-mapping, under Messages tab, if i set my target message type to 0..1, should it not work? I have tried this but it doesn't.
    Do let me know a way out! Thanks.
    Anuj.

  • My Messages app on my Mac has two of the same Apple ID, and I can't remove one of them without disabling iCloud?

         Hello everyone. As my title states, I am having trouble with my Messages application on my MacBook Pro (mid 2012).
         When I go to Messages and click Messages and then Preferences at the top, it shows I have to Yahoo! email accounts associated with my Mac (note that these are the same email addresses). For the first one, the description is my actual email adress ([email protected]). For the sedond one, the descrption is 'Yahoo!'. I can't disable one without disabling the other, and I don't know which one to use with Yahoo! Messenger.
         Thanks for reading, any help is appreciated.

    Obvious question, but have you got 'Find My iPhone' set on both devices?  Settings>iCloud>Find My iPhone.

  • PI 7.1 Operation mapping - Multiple message mapping - one to many issue

    Dear Experts,
    I am facing this issue in PI 7.1 and I beleive i did similar one in PI 7.0 successfully.
    I have an operation mapping with two message mappings.
    The occurence of source message of operation mapping is 1
    The occurence of target message of operation mapping is 0..unbounded
    Corresponding i configured two message mappings
    For message mapping-1
    Source message occurence = 1  and Target message occurence = 1
    For message mapping-2
    Source message occurence = 1  and Target message occurence = 0...unbounded
    When i test message mappings individually they are working good. But when i test it in operation mapping, the operation mapping is not working..as it is not able to convert single occurence output of message mapping -1 to the second message mapping-2.
    Any suggestions?
    Thanks.

    The message that i get when testing in operation mapping:
    Runtime Exception when executing application mapping program com/sap/xi/tf/_MM_MessageMapping_1_; Details: com.sap.aii.mappingtool.tf7.IllegalInstanceException; Cannot create target element /ns0:MT_MessageMapping_1_TargetMessageType/RECORDSET. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD
    My question is, has somebody mapped similar scenario in your environment? If yes, can you please provide details.
    Operation mapping :  1 to 0..unbounded
    Message Mapping1: 1 to 1
    Message Mapping2: 1 to 0...unbounded

  • Message mapping---1 source structure and n target structures

    I would like to know how many message mappings we need if we are mapping one source structure to 3 different target structures of a single receiver. I am assuming its just one message mapping.
    Depending on the above answer how many interface mappings do we need.

    Kalyan,
    you need multi-mapping that maps one source structure to multiple target structures. Just search multi mapping in SDN and you will find many good posts.
    Basically, in MM editor, go to signature tab and in the target messages add additional message types. Simple.  --> Only one MM and one IM
    Jayson

  • SLT - Splitting one source table into two tables in the destination

    Hi,
    I am wondering if we can split content of one source table into two different tables in the destination (HANA DB in my case) with SLT based on the codified mapping rules?
    We have the VBAK table in ERP which has the header information about various business objects (quote, sales order, invoice, outbound delivery to name a few). I want this to be replicated into tables specific to business object (like VBAK_QUOT, VBAK_SO, VBAK_INV, etc) based on document type column.
    There is one way to do it as far as i know - have multiple configurations and replicate to different schema. But we might have to be content with 4 different config at the max.
    Any help here will be highly appreciated
    Regards,
    Sesh

    Please take a look at these links related to your query.
    http://stackoverflow.com/questions/5145637/querying-data-by-joining-two-tables-in-two-database-on-different-servers
    http://stackoverflow.com/questions/7037228/joining-two-tables-together-in-one-database

  • In Final Cut Pro I was trying to move an Event Library from one hard drive to another as explained in the Help section.  After doing so, I received a message that my event is already open with the same identifier as the new one I just creat

    In Final Cut Pro I was trying to move an Event Library from one hard drive to another as explained in the Help section.  After doing so, I received a message that my event is already open with the same identifier as the new one I just created on the new disk.  It says the second document cannot be opened and to move one of these documents out of your Final Cut Events folder.  It also says to avoid this problem, copy events from within Final Cut Pro, but that is what I did in the first place.  What should I do to avoid the double opening conflict?

    What exactly are you doing and what version are you using with OS X 10.8?

  • How do we map one R3 field to two bw objects in BW 35?

    How do we map one R3 field to two infoobjects in an infosource at transfer structure level.
    For example: KUNNR field from R3 needs to be mapped to two different bw objects in transfer structure level.

    Nop you got it wrong :
    KUNNR --> 0CUSTOMER
    0SOLD_TO     <--- 0CUSTOMER
    0CUSTOMER <-- 0CUSTOMER
    or
    KUNNR --> 0SOLD_TO
    0SOLD_TO    <-- 0SOLD_TO
    0CUSTOMER <-- 0SOLD_TO
    This is the way.
    Hope this helps.
    Edited by: Praveen G on Sep 30, 2008 1:51 AM
    Edited by: Praveen G on Sep 30, 2008 1:52 AM

  • I can not transfer date from one hard drive to another, I keep getting an error because I have two of the same file names and one file name is in caps and I cant change the file name

    can not transfer date from one hard drive to another, I keep getting an error because I have two of the same file names and one file name is in caps and I cant change the file name. My original external has an error and needs to be reformatted but I dont want to lose this informations its my entire Itunes library.

    Sounds like the source drive is formatted as case sensitive and the destination drive is not. The preferred format for OS X is case insensitive unless there is a compelling reason to go case sensitive.
    Why can't you change the filename? Is it because the source drive is having problems?  If so is this happening with only one or two or a few files? If so the best thing would be to copy those over individually and then rename them on the destination drive.
    If it is more then you can do manually and you can't change the name on the source you will have to reformat the destination as case sensitive.
    Btw this group is for discussion of the Support Communities itself, you;d do better posting to Lion group. I'll see if a host will move it.

  • Can we start more than one user created database at the same time

    Hi.,
    Can we start/work more than one user created database at the same time ??
    --Shyam                                                                                                                                                                                       

    Hi Shyam,
    I really dont understand what you have asked?
    If your question is can we start more than one database at the same time then the answer to that is yes but provided to have enough resources on your server to support running of two or more different databases on the same machine.
    Ex Senior DBA

  • IBooks app thinks my two user created textbooks are the same!

    iBooks app thinks my two user created textbooks are the same file. Whichever I load first works just fine, but when I try to load the second, nothing happens and then my first book opens up again. I use drop copy to move files onto my class' iPads (20 of them), but I have to uninstall the first book in order to load the second. This only happens with my two textbooks. Other user created books work fine.
    My semester has already started and I'm not able to put my content into their hands. Please help!!

    Thank God somebody figured it out! This was driving me nuts. But I have to say this is a pretty stupid way to address the problem...I have a client that produces iBooks for corporate clients, customizing the book for each one. Having to start from scratch every time, then  copy and paste all the content in to a new instance of the template is really, REALLY stupid. There should be some field you fill in within the U/I that would allow you to specify the name of the book, so that the iBooks app would know if it's a new rev of an existing book, or a new book altogether. Kinda brain dead the way they do it now.

  • I bought an audio book on iTunes and it charged me for two of the same book and downloaded two.  How do I get my money back for one of them?

    I purchased an audio book on iTunes store and was charged for two and downloaded two of the same book.  How do I get my money back for the second one?

    Try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
    Note that audiobooks are currently a one-time only download from the store, so you may want to take a backup copy of it

  • If I already have a particular app under one apple Id and I purchase the same app under a different Id for the same device, will it overwrite or replace the previous or will I have two of the same app on the same device??

    If I already have a particular app under one apple Id and I purchase the same app under a different Id for the same device, will it overwrite or replace the previous or will I have two of the same app on the same device?? 
    I'm asking because I purchased an app with an id that has been cancelled so I cannot update that particular app. I can purchase the app with my new id but I don't want to do so if its going to erase all the data I have with the previous purchase...

    Figured it out. Thanks.

  • A friend gave me an iPad 1 last week. Messaging works one day and won't work the next. Any suggestions?

    A friend gave me an iPad 1 last week. Messaging works one day and won't work the next. Any suggestions?

    Hi,
    I have the same problem. I've been trying everything; opening ports, adjusting quicktime streaming preferences...everything discussed in other posts in this forum regarding error -8.
    I really hate iChat...I think it's unbeliveble that Apple claims to be so better that Windows, but I never had problems wits MSN video.
    But let's try to solve this irritating issue. What kind of messenging software do you have instaled/open when you try to use iChat?
    I have Skype installed. When I deinstalled it, everything was working fine (so I thought). Next day the same BS all over again.
    I could use skype to videochat, but I have an .mac account and I want to use iChat...the f&^%$*g .mac account is to expensive not to use...And do not forget that iChat AV quality is way better than Skype.
    I really hope Apple comes with a solution soon.
    Greets from an unhappy iChat user.
    MacBook C2D 2.0GHz, 2.0Gb, 200 Gb, Bluetooth Mightymouse   Mac OS X (10.4.8)   iMac CD 1.8GHz, 2.0Gb, 160Gb
    MacBook C2D 2.0GHz, 2.0Gb, 200 Gb, Bluetooth Mightymouse   Mac OS X (10.4.8)   iMac CD 1.8GHz, 2.0Gb, 160Gb

Maybe you are looking for