Copy first source context to target field

Hi,
As I have not worked with the manipulation od contexts very much, I currently have the following problem.
Source message has 5 contexts of a segment <Partner> and the information in the first context needs to go into target field 1 as it is related to a specific type of partner and the other remaining contexts need to go into target field 2.
Therefore my question (albeit a pretty simple one I hope) is how do I detect the first context and move it into target field 1 ??
Thanks
Colin.

you can use the function "count" to compare:
       count
             equalS 
constant(1) /        
                       ifWithoutElse
              partner /

Similar Messages

  • 2 Source to 1 Target Field

    Hi Experts,
    I have a requirement where I have two different messages on the source side one target message. One node in the Target structure should repeat as many times as one node from each of the source messages.
    Eg:
    <SourceMessage1>
       <DocList>
       <DocList>
    </SourceMessage1>
    <SourceMessage2>
       <DocList>
       <DocList>
    </SourceMessage2>
    Target Structure should be:
    <Target>
       <Msg1DocList>
       <Msg1DocList>
       <Msg2DocList>
       <Msg2DocList>
    </Target>
    Please provide solution to the above query.
    Thanks,
    Abhishek.

    Hi,
    I have included the two source messages on source side in Message Mapping. My only doubt was that other than "duplicating the subtree" is there any other option to do it.
    Thanks,
    Abhishek.

  • Derivation rule CO-PA, number of target fields

    Hi all,
    is there a possibility to have more than 6 target fields in a CO-PA derivation rule or is the only way to handle more fields with a separate rule based on the same source field?
    thanks for your help
    kind regards
    Adrian

    Dear Adrian,
    If you want to update more than 6 target field in one derivation step, as for I know is not possible but create a new derivation step with same source and additonal target fields, otherwise use exits.
    Regards
    Ravi

  • Message Mapping: Map value from the first element in a context in target el

    Hi experts,
    I have a problem with a message mapping in XI. I hope you can help me. At first I will give you a source and a target structure. Then I will explain the problem.
    <u>Source structure:</u>
    <E1EDP01>
       <E1EDPT1>
          <TDID> ... </TDID>
          <E1EDPT2>
             <TDLINE> ... </TDLINE>
          </E1EDPT2>
       </E1EDPT1>
    </E1EDP01>
    The structure can contain more than one E1EDP01-Elements, more than one E1EDPT1-Elements and more than one E1EDPT2-Elements.
    <u>target structure:</u>
    <LineItem>
       <vendmemo> ... </vendmemo>
    </LineItem>
    For every E1EDP01-Element my mapping creates one LineItem-Element in the target structure. To fill the element <vendmemo> the mapping should do the following steps:
    The mapping should search in E1EDP01 for a E1EDPT1 with the TDID = Z505. And from this E1EDPT1-Element (with the TDID=Z505) the mapping should take the value <TDLINE> from the first E1EDPT2-Element in the context of the E1EDPT1-Element (the E1EDPT1 with the TDID=Z505) and put this value in <vendmemo>.
    The mapping should do this action for every E1EDP01 -> so for every LineItem.
    I tried it with UDF but I didn't found a solution. Can anybody help me?
    best regards
    Christopher

    Hello experts,
    i was wrong ... my mapping isn't still working. I had created a test instance. and only for this test instance the mapping (see above) works.
    Can anybody help me? I'm trying the whole day but I can't find a solution. Here a second description of my problem:
    <u>Source Structure:</u>
    <E1EDP01>
       <E1EDPT1>
          <TDID> ... </TDID>
          <E1EDPT2>
             <TDLINE> ... </TDLINE>
          </E1EDPT2>
          <E1EDPT2>
             <TDLINE> ... </TDLINE>
          </E1EDPT2>
          <E1EDPT2>
             <TDLINE> ... </TDLINE>
          </E1EDPT2>
       </E1EDPT1>
    </E1EDP01>
    <E1EDP01>
       <E1EDPT1>
          <TDID> ... </TDID>
          <E1EDPT2>
             <TDLINE> ... </TDLINE>
          </E1EDPT2>
          <E1EDPT2>
             <TDLINE> ... </TDLINE>
          </E1EDPT2>
          <E1EDPT2>
             <TDLINE> ... </TDLINE>
          </E1EDPT2>
       </E1EDPT1>
    </E1EDP01>
    <u>Target Structure:</u>
    <LineItem>
       <vendmemo> ... </vendmemo>
    </LineItem>
    <LineItem>
       <vendmemo> ... </vendmemo>
    </LineItem>
    <u>Description of my Problem:</u>
    For each E1EDP01 in the source structure the mapping creates one LineItem in the target structure.
    The element "vendmemo" should be created in any case ... also if it will be empty.
    To fill the element "vendmemo" the mapping should search in E1EDP01 for a E1EDPT1 with the TDID=Z505. If there is an element E1EDPT1 with the TDID=Z505, the mapping should write the TDLINE from the first E1EDPT2 (under the element E1EDPT1 with the TDID=Z505) in the target field "vendmemo".
    The Problem is that TDLINE an TDID are not in the same context. I tried it with setting the context of both to E1EDP01. But it was not working ... have you any idea oder suggestion?
    Thank you very much
    best regards
    Christopher

  • Picking up required Characteristics from my Source field to Target field!!

    Hi ,
    I need to pick up data from  a source field that is 35 characters long to a target field in my Cube that is only 4 char long. But the data that will be fed into this source field will be 4 char long only, so can anyone help me with picking up only the 4 char I need into my target field.
    Is this possible, If yes kindly post the routine that will allow me to concatenate the remaining characteristics and pick up only the 4 char I need.
    Thanks,
    Guru.

    Also, if this is the behaviour of the infoObject at all the places it is to be used, you can created Global Transfer Routine at infoObject level.
    Otherwise you can write the routine in transformations, rule type "Routine" and then the avaiable source field can be used.
    A simple example:
    I needed to build a character date field for a cross-platform integration project I was working on. First, I defined the date field:
    data: datechar(10).
    To build the date lets use sy-datum, which has the current system date.
      write SY-DATUM+4(2) to datechar+0(2).
      write '/' datechar+2(1).
      write SY-DATUM+6(2) to datechar+3(2).
      write '/' TO datechar+5(1).
      write SY-DATUM+0(4) to datechar+6(4).
    Value of SY-DATUM 20010616
    Here's how the field changes with the execution of each line.
    06________
    06/_______
    06/16_____
    06/16/____
    06/16/2001
    Hope this helps.
    Cheers,
    Sumit

  • Looking for a 'view link target source' context menu item

    I'm looking for a 'view link target source' context menu item.
    I often open listings of servers' directories; they can include direct links to code files (*.py , *.pl, etc). When I click them directly, I'm asked to open them with an external editor which is not what I want to do; I want to view those files source inside of Firefox. I currently have to
    # right-click those links,
    # copy link location,
    # type "view-source:" in the Location bar,
    # paste the copied URL,
    # click Go.
    This gets time-consuming with the large amount of URLs I need to open.
    It's not a native feature for Firefox and a search at [http://addons.mozilla.org AMO] didn't come up with anything useful, for me at least.

    Hello,
    particularly, I performed the following steps:
    1. I created a SC in the local repository, which matches the SC of the track.
    2. I moved the exisiting DCs to the SC created in step 1.
    3. Now, I created new DCs in the SC in the track.
    4. I deleted all .project files from the local DCs.
    5. I copied all source files from the local DCs to the new track DCs.
    6. I checked-in these changes to the track.
    Kind regards
    Alexander

  • Is it possible to have duplicate columns from source List to target List while copying data items by Site Content and Structure Tool in SharePoint 2010

    Hi everyone,
    Recently ,I have one publishing site template that has a lot of sub sites which  contain a large amount of  content. 
    On root publishing site, I have created custom list including many custom fields 
    and saved it as  template  in order that 
    any sub sites will be able to reuse it later on .  My scenario describe as follows.
    I need to apply Site Content and Structure Tool to copy   a lot of items
     from  one list to another. Both lists were created from same template
    I  use Site Content and Structure Tool to copy data from source list 
    to target list  as figure below.
    Once copied  ,  all items are completed.
     But many columns in target list have been duplicated from source list such as  PublishDate ,NumOrder, Detail  as  
    figure below  .
    What is the huge impact from this duplication?
    User  can input data into this list successfully  
    but several values of some columns like  “Link column” 
    won't  display on “AllItems.aspx” page 
    .  despite that they show on edit item form page and view item form page.
    In addition ,user  can input data into this list  as above but 
    any newly added item  won't appear on 
    on “AllItems.aspx” page
    at all  despite that actually, these 
    item are existing on  database(I try querying by power shell).
    Please recommend how to resolve this column duplication problem.

    Hi,
    According to your description, my understanding is that it displayed many repeated columns after you copy items from one list to another list in Site Content and Structure Tool.
    I have tested in my environment and it worked fine. I created a listA and created several columns in it. Then I saved it as template and created a listB from this template. Then I copied items from listA to listB in Site Content and Structure Tool and it
    worked fine.
    Please create a new list and save it as template. Then create a list from this template and test whether this issue occurs.
    Please operate in other site collections and test whether this issue occurs.
    As a workaround, you could copy items from one list to another list by coding using SharePoint Object Model.
    More information about SharePoint Object Model:
    http://msdn.microsoft.com/en-us/library/ms473633.ASPX
    A demo about copying list items using SharePoint Object Model:
    http://www.c-sharpcorner.com/UploadFile/40e97e/sharepoint-copy-list-items-in-a-generic-way/
    Best Regards,
    Dean Wang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Question: map the whole source message into one field in the target.

    Hi Friends,
    Is there a way to populate the whole source message into one of the fields in the target message?
    I am trying to do this in message mapping. Guide if this could be done in any other way or is there a way to do it in message mapping.
    Waiting for your valuable guidance,
    Regards,
    Lakshmi

    Hi Friends,
    I tried to convert the source message into a string using XSLT mapping. It was successful, however i need to have the source message in XML format and not in any other format. This is because, I am mapping the source XML into a field in a WSDL. The webservice requires the entire source message be inside a field called "Request" in the WSDL (it is like XML inside another XML).
    Is there any way to do this? Please suggest.. (Im not good at java programming... may be i dont know)

  • Message mapping - Map 2 source contexts into one target context

    Hi,
    I have an issue as follows:
    Source context 1 (defined as 1.....unbounded)
    Source context 2 (defined as 1.....unbounded)
    Target context 1 (defined as 1.....unbounded)
    I need to map both source contexts into the single target contexts.
    For example....
    Source context 1 has 3 entries
    Source context 2 has 2 entries
    Target context would have 5 entries in total (Source context 1 and Source context 2)
    I have only limited knowledge of working with multiple contexts so need a bit of advice.
    Can someone provide an easy way to do this ? I'm sure there is.
    Cheers
    Colin.

    The answer is quite simple.
    Right-click on the target node in the mapping editor and select the option "duplicate subtree".
    You will then have two destination nodes.
    Now you can map source1 to target1 and source2 to target2

  • Issue in mapping the same source and target fields

    Hi All,
    I am working on PI 7.0 and currently I am connecting to PI 7.0 via citrix desktop . Problem here is : in the mapping , direct mapping option that is available to map the same source and target fields is disabled . I do know that this is due to some java version issue .
    What I want to know is there any possibilty of solving this issue without installing an updated java version ?
    Regards
    Vinay P.

    I've faced the same for many times and all of that were due to Java version.
    1st of all, you have to check the authorizations you have. If you have enough (DEVELOPER_J2EE, CONTENT_ORGANIZER_J2EE, and so), and - obvious but very often forgotten - you have to assure you're trying to change it in the message mapping change mode On.
    Then, last shot should be downgrade your Java version.
    The 1.4.2 JRE version allow you to use not only the Mapp the Identical field but also Dependencies, Clear Mapping and some other tools/buttons. As mentioned above, if there's a fix in the new Java releases, I do not know (hope so) and would appreciate if you could let us know.
    Tks.

  • Routine for Updating a field in the source ODS to target ODS

    Dear BW Users,
    I have a source and a target ODSu2019s, letu2019s say ODS1 and ODS2. ODS1 updates Field1 to Field2 in ODS2. Those fields have the same information but Field1, InfoObject1, is defined as CHAR whereas Field2, InfoObject2, is defined as NUMC. Since the data types are different I cannot map directly. I need an update routine to populate the InfoObject2/Field2 whose data type is NUMC. Thanks in advance.
    Best Regards,
    John Bartheimer

    In the Update routine of that particular Infoobject (Field2) add the following code:
    result = comm_structure-/bic/"Field1".
    Hope it helps...
    thanks
    Kumar

  • Datacopy command copied [0] source data blocks to [1073] target data blocks

    Hi,
    When I ran this particular script, datacopy command executed successfully but the values did not copied (Plan1 has values). Can you please suggest.
    Datacopy command copied [0] source data blocks to [10736] target data blocks
    SET UPDATECALC OFF;
    SET CREATEBLOCKONEQ ON;
    FIX("")
    DATACOPY "Plan1" TO "Plan2";
    EndFIX
    Thanks, UB

    FIX("")
    DATACOPY "Plan1" TO "Plan2";
    EndFIX^^^Did you mean to have your FIX statement blank?
    FWIW, you don't need the CREATEBLOCKONEQ setting at all for the purposes of the DATACOPY.
    I'm a little puzzled by the log file message -- 0 blocks to 1073 (or is it 10736?). That seems somewhat unlikely -- how could you copy nothing to something. Unless it is somehow triggered by the CREATEBLOCKONEQ setting but I don't believe that has any impact beyond block creation in formulas.
    Do you see an actual increase in the number of blocks in database statistics?
    Regards,
    Cameron Lackpour

  • Source selection derived from target field Cons Chart of Accts is empty

    Dear,
    When I run the LDS, The system issues this error message :
    "Source selection derived from target field Cons Chart of Accts is empty"
    Although, mapping of Cons Chart of Accts   in LDS for this method is defined as constant value.
    I can't load data from raw data cube. What can be the reason ?
    Thanks,

    Source selection derived from target field Cons Chart of Accts is empty
    Message no. UCT8257
    Diagnosis
    The system derives the source selection from the selection for target field Cons Chart of Accts. The resulting source selection is empty.
    System Response
    The system cannot read any source data.
    Procedure
    Examine the mapping rule for field Cons Chart of Accts. Make sure that the inversion of the mapping rule does not produce an empty selection or lead to conflicting values.

  • LSMW - The source field is longer than the target field in MEK2

    Hi,
    I tried to create a simple LSMW script to end date condition records using MEK2 transaction.
    I provide Condition type, Plant, Material, Start Date and default Valid from and Valid to dates.
    When the program is generated, it defines just 1 character for Start date and when I try to map the date field from source, it gives following error message.
    Attention: The source field is longer than the target field.
    Message no. /SAPDMC/LSMW_OBJ_040013.
    Not sure why it is happening. I am on 46C.
    Please let me know if anybody come across such situation. I have checked all aspects, tried recreating in different systems but ended up with the same problem.
    You help in this regard will be highly appreciated.
    Regards
    Kasi

    It is a standard error, and I have not found any OSS note to fix it. In order to solve it, you can use this workaround:
    - Export the recording into a txt file
    - Edit the file, and modify the information correspondent to domain, data element and lengths (internal and external) fields, and save it
    - Import the recording
    For example, I had problems in a recording with the field SEL_DATE of the transaction VB02. Then, I changed these values:
    Values before changes:
    /SAPDMC/LSGBDC                ZTEST          ZVB02_ZA01     0018                                        0000 SEL_DATE                                                                                DATE_ON                       Valid on                                                    CHAR1                         CHAR1                          SEL_DATE                                                    0000000000                              000001000001000001CHARC
    Values after changes:
    /SAPDMC/LSGBDC                ZTEST          ZVB02_ZA01     0018                                        0000 SEL_DATE                                                                                DATE_ON                       Valid on                                                    DATUM                         DATAM                          SEL_DATE                                                    0000000000                              000010000010000010CHARC
    (values 01 has been replaced by values 10)
    The values changed correspond to fields:
    /SAPDMC/LSGBDC-PARDOMAIN
    /SAPDMC/LSGBDC-PARDATAELEMENT
    /SAPDMC/LSGBDC-LENG
    /SAPDMC/LSGBDC-INTLEN
    /SAPDMC/LSGBDC-OUTPUTLEN
    The information that you have changed should be updated in table /SAPDMC/LSGBDC, where all the information of the recordings is stored. Check this information has been updated after recording import.
    I hope this solution be useful for anyone...
    Regards.

  • SAP System copy without shutting down the source and the target system

    Hi,
    We need to need to System refresh without shutting down both the source and the target system, i read the docs from SAP looks like we need to shutdown the source system during export and import phase, is there any way to do the system refresh without shutting down the system.
    Sathish

    Hi,
    Think a little bit about what is a database and you'll get the answer that what you "need to need" is impossible.
    Of course it is possible to keep the source running (hopefully, because ususally it is the production system !) by using an online backup, but you need to stop the target system because you will restore a backup on it.
    If you use the export/import way, you have to stop both source and target system.
    Regards,
    Olivier

Maybe you are looking for

  • Acrobat SDK C# Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)

    Hi, Here I want to known one thing clearly, that is I was developed one application in C# with Acrobat SDK. In my application I am using Acrobat AxAcroPDFLib.AxAcroPDF and  also some other acrobat class. In my development system i am using Acrobat 7.

  • Mouse will wake not wake up mac mini

    Just purchased and hooked up a Gyration cordless optical air mouse and keyboard to my mac mini. The mini is connected to my television. When I put the mini to sleep I can not wake it back up with these devices. The light on the RF receiver hooked in

  • I cannot hear guitar in tracks view - only in amp view

    Newbie here... I can't hear my guitar in tracks view. I can hear it fine in amp view. Any ideas what is wrong? Thanks!

  • Aperture and iPhoto Events

    Just wondering if I do decide to switch to Aperture 3, how does it handle importing all my iPhoto events? Do they become "Projects" and behave the same way? I know the app just came out but any help would be great. Thanks in advance.

  • ADMINISTRATION tab missing from Home Page of Web Admin 10.1 .

    Hi All ,For one of our Users , the ADMINISTRATION tab is missing from the Home Page. They can only see tab for LIBRARY and DOCUMENTS. We have given the following roles to the user : /POA/BUI_FLEX_CLIENT /POA/BUI_UM_USER SAP_BPC_SERVICE ZM_BPC_END_USE