Duplicate subtree for source message

Hi,
What do I do if I need to duplicate the source tag?
For example Left occurs 0 thru 4, however system will always pass two occurrences, say,
Left(0) = 100
Left(1) = 200
I need to map these to different fields in the target for example..
Rightfirst = 100
Rightsomeotherfield = 200
If I right click on the source tag, I cannot duplicate subtree to do the mapping. Any ideas?

Hi,
You will need to use an user-function, with the context of Left as input.  In the user-function you can send the specific occurance of Left as output.
In the user-function, Left is an array.
Example:
result.addValue(Left[0]);  // to send the 1st value
or
result.addValue(Left[1]);  // to send the 2nd value
Then, assign the the output of the user-function to Rightfirst, or Rightsomeotherfield.
Regards,
Bill

Similar Messages

  • Duplicate notifications for encrypted messages

    Hi all,
    We're using our C150 to quarantine emails that arrive with some form of encryption (e.g. a password-protected .zip).  When a matching email first arrives, it's correctly quarantined and sends an "Encrypted message detected" notification to the relevant recipient, as expected.  However, after releasing the email to the recipient, another "Encrypted message detected" notification is sent related to the same email, even though the recipient receives the released version too.  It's causing some people a bit of confusion to get this second notification at the same time they get the email it's complaining about.
    We have the following setup under Mail Policies:Anti-Virus -> Anti-Virus Settings -> Encrypted Messages:
    Action applied to message = Quarantine
    Archive original message = No
    Modify message subject = Prepend the text "[WARNING :  MESSAGE ENCRYPTED]"  (Interestingly, the first notification generated doesn't include this prepended text as part of the subject, but the second one does; not sure if this is a clue to what's happening)
    Under Advanced:
    Add custom header to message = No
    Container notification = System Generated
    Other Notification = Recipient + Others (admins)
    Modify message recipient = No
    Send message to alternate destination host = No
    If anyone can shed some light on why this is happening or if you've seen it before, please let me know.
    Kind regards,
    Dan

    Hi Steven,
    Thanks for the tip.  I've traced the logs as suggested, and they really only seem to confirm the symptoms.  There's the initial message getting quarantined based on the encrypted content, followed by two notifications sent out (one to the affected user, and one to an admin email address.)  Then, after release, there are two more notification messages generated based on the original message, and delivery of the released message.  They all seem to relate back to the original message; in brief:
    Initial arrival:
    Fri Mar 26 10:55:59 2010 Info: MID 3222427 matched all recipients for per-recipient policy DEFAULT in the inbound table
    Fri Mar 26 10:55:59 2010 Info: MID 3222427 interim verdict using engine: CASE spam negative
    Fri Mar 26 10:55:59 2010 Info: MID 3222427 using engine: CASE spam negative
    Fri Mar 26 10:55:59 2010 Info: MID 3222427 interim AV verdict using McAfee ENCRYPTED
    Fri Mar 26 10:55:59 2010 Info: MID 3222427 interim AV verdict using Sophos ENCRYPTED
    Fri Mar 26 10:55:59 2010 Info: MID 3222427 antivirus encrypted
    Fri Mar 26 10:55:59 2010 Info: MID 3222428 was generated based on MID 3222427 by antivirus ## Notification to user
    Fri Mar 26 10:55:59 2010 Info: MID 3222429 was generated based on MID 3222427 by antivirus ## Notification to admin
    Fri Mar 26 10:55:59 2010 Info: MID 3222427 quarantined to "Virus" (a/v verdict:ENCRYPTED)
    After release:
    Fri Mar 26 11:00:26 2010 Info: MID 3222471 was generated based on MID 3222427 by antivirus ## Duplicate notification to user
    Fri Mar 26 11:00:26 2010 Info: MID 3222472 was generated based on MID 3222427 by antivirus ## Duplicate notification to admin
    Fri Mar 26 11:00:29 2010 Info: Message finished MID 3222471 done
    Fri Mar 26 11:00:30 2010 Info: Message finished MID 3222427 done ## Original mail that is being released
    Fri Mar 26 11:00:30 2010 Info: Message finished MID 3222472 done
    Nothing I've omitted to save space seems to indicate anything other than regular delivery behaviour.
    cheers,
    -dan

  • Step by step procedure on how to duplicate subtree on the target side

    I have a requirement where i have two types 'A' and 'B'. On the target side i have 6 fields out of which 2 have to repeat for type 'A' and remaining 4 for type 'B'. I have to sort my records such that all type 'A' records come above and all type 'B' come below that.
    I had written a UDF for that initially and even used sort by key. I got to know that i can duplicate subtree on the target side thus i can have one subtree for type 'A' and one for type 'B'.
    If i get 10 records which can either 'A' or 'B' randomly arranged, how should i go with Duplicate Subtree for that. Please explain with a scenario.

    Hi Jaya,
    You just right click your node which you want to duplicate then you can choose the option Duplicate subtree. Now you mapped with you source element A twice and simlarly you just duplicate another type for 4 times and map with source element B.
    Your problem will be solved.
    Best Regards,
    vijay

  • Unable to duplicate subtree E1EDK14 for ORDERS05

    Hi,
    For File to Idoc flow, my mapping requirement is
    For E1EDK14,
    ORGID/QUALF=012           ORGID = ORDERTYPE
    ORGID/QUALF=008           ORGID = SALESORG
    For that, I have to duplicate subtree E1EDK14 and map it from the source field.
    But when I save it the second node of of E1EDK14 is deleted with message.
    Target structure has no such path:
    /ORDERS05/IDOC/E1EDK14[1]/ORGID. Skipping mapping
    Note that the occurance of E1EDK14 is 0..12
    Is there any way to achieve this?
    regards,
    Anirudh.

    Hi Anirudh,
    You can achieve the above condition by checking the conditon of source filed which is mapped to Qualifier field of idoc and with check you can map it to OrderType. like
    if --->SourceField -->Equals --> 012 then ---> ORDERTYPE --->OrgID
    and foe second case
    if --->SourceField -->Equals --> 008 then ---> SALESORG --->OrgID
    Otherwise if you want to duplicate Create New mapping and first duplicate the Segment and then proceed with the mapping.
    Thanks!

  • Message mapping - Duplicate subtree

    Hi Experts,
    I am working on 7.0 server.
    In the existing message mapping I found that target nodes are duplicated.
    For example
    /ns0:FiletoFile_ib_mt/Record/Emp[1]
    /ns0:FiletoFile_ib_mt/Record/Emp
    And the order for the node in the target message structure is same as above.
    And in the output, the order is reversed as below
    /ns0:FiletoFile_ib_mt/Record/Emp
    /ns0:FiletoFile_ib_mt/Record/Emp[1]
    But when am duplicating one more node in the existsing mapping the order is
    /ns0:FiletoFile_ib_mt/Record/Emp[2]
    /ns0:FiletoFile_ib_mt/Record/Emp[1]
    /ns0:FiletoFile_ib_mt/Record/Emp
    And now the output is
    /ns0:FiletoFile_ib_mt/Record/Emp[2]
    /ns0:FiletoFile_ib_mt/Record/Emp[1]
    /ns0:FiletoFile_ib_mt/Record/Emp
    But I need the output as
    /ns0:FiletoFile_ib_mt/Record/Emp
    /ns0:FiletoFile_ib_mt/Record/Emp[1]
    /ns0:FiletoFile_ib_mt/Record/Emp[2]
    Please let me know if you have faced similar issue.
    If am creating a new message mapping and duplicating the subtrees the order is given below
    /ns0:FiletoFile_ib_mt/Record/Emp
    /ns0:FiletoFile_ib_mt/Record/Emp[1]
    Why in the existing mapping duplicate subtree is going in the top order and for new message mapping duplicate subtree is going in the bottom. Please advice
    Thanks
    Suma S

    Hi Lucas
    I checked this sap note but I used PI 7.0.
    This happens from 7.10 onwards and this is primarily due to the reason that the occurence of the duplicated node was not remembered when the mapping program gets executed. So, the mapping program was expecting data from the payload for the duplicated node and hence the error

  • HT204350 Why does the"Looking for source..." message go on FOREVER? The macbook doesn't seem to recognize my hard drive!

    I'm migrating a new 15" Macbook Pro  with retina display - using Time Machine.
    I've started Migration Assistant on the new mac and selected to transfer info from Time Machine.
    After I click continue, I get a "Looking for source..." message that goes on FOREVER.
    My hard drive is connected to my new macbook with a USB cable.
    (I'm migrating this way because I don't have a Thunderbolt adapter.)
    What am I doing wrong? Has this happened to anyone else?
    L

    I'm having the same problem.  I checked the hard drive and it shows backups done earlier today but Migration Assistant just shows the spinning gear with "Looking for source . . ."
    Anybody have suggestions?

  • Used "Duplicate Cleaner for iPhoto" now my video files in iPhoto have an error message "A necessary data reference could not be resolved."

    As the title states, I used the app "Duplicate Cleaner for iPhoto" to get rid of 6 GB of duplicate pictures.  However, now when I go to view a video in iPhoto, I get the error message "A necessary data reference could not be resolved."  I am able to view the video clips (with sound, etc.) in Finder.  However, I want to know if there is a way to restore them in iPhoto?????
    Thanks,
    Leslie
    I see that the suggested solution is to restore from back-up... is there anyway to do that without bringing in ALL of the duplicate photos I just deleted?

    Try going back to QuickTime 7.4, we've seen the same problem occur with the 7.5 update. How did you make the .mov file that plays all of the files? For us, the problem shows up with reference movies (such as that .mov) made on a Mac, but works fine if it is created on Windows.

  • Duplicate subtree in PI 7.11(EHP1) not working as it works in XI 3.0

    Hi Friends,
    I've exported a mapping program(graphical) from XI 3.0 to PI 7.1 as we are upgrading from old version to new one.
    The mapping consists of the following target structure:
    Item(Occ->0..1) Node
          Err(Occ->0..1)Subnode under Item
                 Errtext0(Occ->0..1)Field under Err--->field being duplicated
                 Errtext0[1](duplicated field of Errtext0)--->field after duplication
                 Errtext0[2]](duplicated field of Errtext0)--->field after duplication
                 Errtext0[3]](duplicated field of Errtext0)--->field after duplication
    In XI 3.0 when the duplicate fields are populated with values during mapping the fields appear at the target but in PI 7.1 the duplicate fields are not appearing even after values being populated.
    One more observation is, In XI 3.0 when I duplicate a field its type(eg: String) and occurrence gets copied or is visible once the field is duplicated but in PI 7.1 the attributes are not visible.
    Ultimately only the value of the field being duplicated is occuring after mapping transformation but not the values of duplicated fields.
    Please let me know the answer if anyone of you have come across similar problem
    Many thanks.

    Hi
    We are using PI7.1 EHP1. our issue is, we have create one data type, message type in PI7.1 EHP1.
    Now whenever we are using the Message type in message mapping & whenever we are trying to duplicate any of the field using the duplicate subtree option in  context menu, it is generating the duplicate subtree field without the occurence and the data type of field.
    Now if we will do the mapping for the duplicate field, the field is not coming in the target structure, if we are testing our mapping using test option.
    The issue we are facing with Pi7.1 EHP1. we already tried the same in XI3.0and PI7.1  and it is working fine.
    could you please suggest if it is any service pack issue or any technical issue with mapping?
    Thanks

  • Issue in mapping.. Source message expect with prefix ns0 in input message!

    Issue in mapping.. Source message expect with prefix ns0 in input message
    Hi All,
    I used the XSD structure which I got from partner which starts like below.
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xxxx.com/DirectSales/CustomerData" xmlns:prodata="urn:schemas-progress-com:xml-prodata:0001" xmlns="">
    <xsd:element name="CustomerRequest" prodata:proDataSet="true">
    I'm receiving the messages through SOAP adapter and the message looks like below.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?><!-- Technical Routing --> <CustomerRequest xmlns='http://XXXX.com/DirectSales/CustomerData' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:SE='http://schemas.xmlsoap.org/soap/encoding/'>
    The message is failing during mapping. When i checked in message mapping, I found that the input source message is expecting with prefix "ns0" like <ns0:CustomerRequest...
    how I can solve this issue? Is there anyway I can add the prefix "ns0" before it comes to mapping step.?
    Thanks
    Deepthi

    Hi Guys,
    I tried to use the below paramter.
    anonymizer.acceptNamespaces         'http://XXXX.com/DirectSales/CustomerData  ns0
    The ns0 is coming in all the tags including segments and fields. I just want ns0 to come only at the root level ie <ns0:customerReq..>
    it is coming like below...
    - <ns0:CustomerRequest xmlns:ns0="http://XXXXXX.com/DirectSales/CustomerData">
    - <ns0:ttCustomer>
      <ns0:branch-num>1424</ns0:branch-num>
      <ns0:cust-num>121</ns0:cust-num>
      <ns0:contact-code>3</ns0:contact-code> 
       </ns0:ttCustomer>
      </ns0:CustomerRequest>
    I want the message to come as
    - <ns0:CustomerRequest xmlns:ns0="http://XXXXXX.com/DirectSales/CustomerData">
    - <ttCustomer>
      <branch-num>1424</branch-num>
      <cust-num>121</cust-num>
      <contact-code>3</contact-code> 
       </ttCustomer>
      </CustomerRequest>
    Kindly help me with the paramater value  to be passed for anonymizer.acceptNamespaces.
    Thanks
    Deepthi

  • How to Delete duplicate contacts in the messaging app?

    I set up a new email account, and was trying to send my contacts to the new account. In doing so I did not get the contacts to sync with the new account, but they did duplicate in my contacts app and my messaging contacts app. I can not find a means to delete the duplicate contacts in the messaging app. I stopped by Verizon at Best Buy, and they told me that there is no way to delete the contacts once they are in the messaging app. I can't believe that.
    There must be a way to remove the contacts from the messaging app. Please help.

    Hi Tidbits,
    I ended up going to Best Buy, where I got my LG G3 Verizon phone. The Tech tried everything to correct the duplication, but could not find how to do it. He deleted everything, and went back to factory settings. Darn if the duplicates didn't come back.
    He went to my Verizon account, and went to the Verizon Cloud. Clicked on Contacts, and there were all the duplicate contacts. He deleted the duplications, leaving the original for each contact. BINGO the problem was solved.
    I am using the Standard Messaging instead of Verizon messaging Plus. The Tech said that if I had been using Using Verizon Messaging Plus this may not of happened. I just down want the added cost of Messaging Plus.
    Thanks for the response.

  • RSAR238 : IDoc type for source system T90CLNT090 is not available

    Hi all,
    I am working on ECC 6.0. Have created a ODS object using RSA1OLD. While activating the ODS, am getting this error:
    1. Error:
    R7I028
    Object could not be activated
    2. Error:
    RSAR238
    IDoc type for source system T90CLNT090 is not available
    Error when creating the export datasource and dependent objects
    Kindly help me with this error.
    Thanks and regards,
    Dhanapal

    Hi,
    Check the same in SDN..
    Object ZDUMMY could not be activatedMessage no. R7I028
    Re: DSO Activation problem
    http://sap.ittoolbox.com/groups/technical-functional/sap-bw/test-cases-for-module-human-capital-management-1425016
    http://sap.ittoolbox.com/groups/technical-functional/sap-bw/idoc-type-for-source-system-t90clnt090-is-not-available-message-no-rsar238-1431565
    Thanks
    Reddy

  • Error while deleting data source : Message RSO414

    Hello Guys,
    We have activated data source 2LIS_04_PKKANBAN and entire standard BI content . When i tried to extract data, i got 0 records initially and after that i came to know that some functions needs to be activated in ECC to extract KANBAN data.
    We activated some function and deleted & filled setup tables for KANBAN and i can see data in RSA3 (368 Records). Then i tried to extract data into SAP BI. it took  me 20 minutes but ended with error. "Data Source needs to be activated again as it was changed (We just activated one function only) nothing changed to data source" I activated data source again in ECC and replicate on SAP BI side but i am not able to get it in activated mode.
    I tried to activate it manually and it takes 20-25 minutes but i am not able to activate it and getting error "Error when activating DataSource : MESSAGE NO  RSO414 " "Error when resetting DataSource 2LIS_04_PKKANBAN to the active version". i also can't delete data source as when i try to delete it, i get the error "ERROR WHEN DELETING DATA SOURCE : MESSAGE NO RSO414" .  What to do in this situation ?
    Regards,
    Komik Shah

    Hi Rahul,
    I tried it but it didn't help me.
    Also there is no FM in SAP BI called RS_DATASOURCE_ACTIVATE_ALL. I have activated  data source in my ERP system  and replicated same on BI side as we don't have standard Transfer Rules or Transformation, i can't use RS_TRANSTRU_ACTIVATE_ALL .
    Regards,
    Komik Shah

  • ESRfor PI 7.1) source message idoc does not exist in software componet

    Hi ,
    When using the sap predelivered integration content in the repository the above error (ESR ( for PI 7.1)  error : source message idoc does not exist in software component version id) is coming while opening the message mapping interface. Is it due to some content missing or a sp level mismatch ?
    Thanks
    Sri

    Hi,
    I'd say you need to import some other SWCV which has all the IDOC typos you use in your scenario
    probably this is a prerequisite for importing your SWCV
    I don't think this is related to sp level or anything like that
    it's just that SWCV is missing
    Regards,
    Michal Krawczyk

  • What's the reason for this message, "A server with the specified host name could not be found" ? I'm using iPhone 4s, 16gB, iOS 7.0.4

    I get a pop-up message saying "A server with the specified host name could not be found", whenever I try to access any streaming websites/apps or even WhatApp over Wi-Fi and I cannot access the specific THING for that moment, and I've tried switching Wi-Fi On and Off both in my Phone and also in the Router. I got an internet connection and a Wi-Fi router just before two days, and it's happening since. I got the internet speed around 80kbps and i can easily stream YouTube videos except sometimes, I receive that annoying message. I can't even browse the internet in Safari, which says "No Internet Connection"(Even though the Wi-Fi is connected), and I can access it after somewhile (say 10 minutes, it'll be perfectly alright). I use iPhone 4s. And everything about the internet connection is totally fine in my Computer, but not in my iPhone, as I've explained the issues, above. If there are any technical settings that I should change/modify, either on my computer(Windows 7 OS) or in my iPhone(iOS 7.0.4), PLEASE let me know
    I hope I've provided enough information for the reader to understand my point. (I apologize for my verbal mistakes, if there are )
    THANKS

    Hello Paneesh,
    Thank you for the details of the issue you are experiencing with Wi-Fi on your iPhone 4s.  I recommend the following steps:
    Be sure you're in range of your Wi-Fi router (access point).
    Tap Settings > Wi-Fi and turn Wi-Fi off and on. If your W-Fi setting is dimmed, follow these steps.
    Confirm that your Wi-Fi router and cable or DSL modem are connected to power, turned on, and connected to the Internet. If not, refer to your network administrator or Internet service provider (ISP) for assistance.
    Restart your iOS device.
    Tap Settings > Wi-Fi and locate the Wi-Fi network to which you're connected.
    Tap and Forget this Network.
    Try to connect to your desired Wi-Fi network.
    Note: You may need to enter your Wi-Fi password again if your network requires one.
    Turn your Wi-Fi router off and on2. If your ISP also provides cable or phone service, check with them before attempting this step to avoid interruption of service.
    Update your device to the latest version of software.
    Update your Wi-Fi router to the latest firmware2. For AirPort Base Stations, install updates using the AirPort Utility.
    If the issue is still unresolved Wi-Fi disconnects or signal strength is less than expected
    Move closer to the Wi-Fi router (access point).
    Check for sources of potential interference.
    Remove any case, stand, or other accessories from your iOS device and see if signal strength improves.
    Reset network settings by tapping Settings > General > Reset > Reset Network Settings. Note: This will reset all network settings including
    previously connected Wi-Fi networks and passwords
    recently used Bluetooth accessories
    VPN and APN settings
    You can find the full article here:
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/ts1398
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Advanced selection for source file

    Hi,
    Requirement: One source directory, multiple file names. File needs to be picked up from source directory and send to target directory with same name as source file name.
    Source file name pattern sample: AP5_X_yyyyddmm, A35_X_yyyyddmm, AP5_Y_yyyyddmm, AP5_Y_yyyyddmm.
    Target file name should be :AP5_X_yyyyddmm, A35_X_yyyyddmm, AP5_Y_yyyyddmm, AP5_Y_yyyyddmm
    Can we define multiple place holders as :
    Directory    
    File Name Mask
    Exclusion Mask
    \\Source
    AP5_X*.txt, A35_X.txt, AP5_Y*.txt, AP5_Y*.txt
    When I tried for single place holder, the scenario was working but when I tried adding multiple place holders it was not working.
    How can we achieve the above scenario?
    Thanks,
    Vertika

    Hi Amit,
    Thanks for reply.
    Yes you understood it right.
    I am able to achieve this now. The only change that I did is instead of giving all the placeholders in same line I have given it in different lines and this is working now.
    Sender Adapter Configuration: Checked Advanced selection for source file and used Adapter specific message attributes to keep same file name as source file name.
    File Name Mask
    File Name Mask
    Exclusion Mask
    \\Source
    AP5_X*.txt
    \\Source
    A35_X*.txt
    \\Source
    AP5_Y*.txt
    \\Source
    A35_Y*.txt
    I am closing this thread now.
    Thanks,
    Vertika

Maybe you are looking for