One (src)to many(target) field mapping

Hi,
I am new to XI.Is one to many field mapping possible in XI?
Plz send me the links with examples.

Hi,
Yes it should be possible.
Follow this links
http://help.sap.com/saphelp_nw2004s/helpdata/en/0e/56373f7853494fe10000000a114084/content.htm

Similar Messages

  • 6 IF-THEN and OR conditions for one target field mapping

    Hi Mapping experts,
    I have a validation condition involving 2 source fields and 1 target field only, however the number of conditions is 6 (OR)
    Source Fields:
    TYPE
    PONUM
    Target Field:
    BELNR
    If TYPE = 1st value   then   BELNR = PONUM substring (0, 8)  0=start position, 8=character count
    OR
    If TYPE = 2nd value   then   BELNR = PONUM substring (2, 8)
    OR
    if TYPE = 3rd value  then  BELNR = PONUM substring (4, 8) ..........  up to the 6th Validation Condition.
    When I do this using graphical mapping only (multiple IF-THEN and OR's) the validation is successful only on the 1st IF-THEN statement, then it passes the substringed value to the 1st OR function.....    When I "Display Queue" the 1st OR function the substringed value is taken as null (or:in1 <null>)  Is this because OR function is expecting Input as "True or False" value only and not a string value?
    For my requirement above, can I achieve this using graphical mapping only?    or do I have to use UDF for this?
    If it's better to use UDF for this, would anyone give me a jumpstart on the code?  (I have no experience yet in UDFs)
    Thanks, and hoping that somebody will respond accurately and completely.

    Create UDF with two inputs as TYPE & PONUM and use bleow code there..
    String out = "";
    if( TYPE.equals("1"))
    out = PONUM.substring(0,8);
    return out;
    else if( TYPE.equals("2"))
    out = PONUM.substring (2,8);
    return out;
    else if( TYPE.equals("3"))
    out = PONUM.substring (4,8);
    return out;
    else if( TYPE.equals("4"))
    out = PONUM.substring (4,8);
    return out;
    else if( TYPE.equals("5"))
    out = PONUM.substring (4,8);
    return out;
    else if( TYPE.equals("6"))
    out = PONUM.substring (4,8);
    return out;
    return "";
    Note: change the substring range as per your need in above code.
    Now do your mapping as shown below
    TYPE ------>|
                | -----> UDF ---> BELNR
    PONUM----->|

  • Target Field Mapping E1EDK03

    Hi Mapping Gurus,
    my scenario is flat file (fixed length) to IDoc (inbound)
    Source Structure is
    - Recordset (1..unbounded)
         -- POHeader (1.1)
              --- Date1
              --- Date2
    I need to map the Date1 and Date2 fields to 2 occurrences of E1EDK03 segment each having different qualifiers
    Target Field:
    IDOC (1..unbounded)
    E1EDK03
    --IDDAT ("022")    --> Date1
    E1EDK03
    --IDDAT ("002")   ---> Date2
    How can I achieve this using graphical mapping only?
    I searched the forums and i'm still a little confused with context handling, so kindly help me out

    I need to map the Date1 and Date2 fields to 2 occurrences of E1EDK03 segment each having different qualifiers
    IDOC (1..unbounded)
    E1EDK03
    --IDDAT ("022") --> Date1
    E1EDK03
    --IDDAT ("002") ---> Date2
    You may even need to implement a if-logic to map Date1 to 022 and Date2 to 002.

  • One integration scenario Many target system and Outgoing compressed data

    I have some theoretical questions about XI usage.
    At first, I'm not quite sure about the following thing: for example we have a corporate system and a lot of mobile computers (let's name them "clients") with installed small databases. Number of clients is not constant, but integration scenario is one for all of them. Next, if we add new client we must add new technical system, business system, communication channel, configure scenario, add required receiver and interface determination, and so on and so on. If we remove client we also must do all these steps. In this case, is it possible in XI (anywhere) to automate these procedures of scenario configuration? For example create something like business system template with communication channels or have one business system and a lot of communication channels in one integration scenario (in this way I suppose that message will be delivered to target system on the message content-based routing) and quickly activate/deactivate this channels (in fact receiver determination).
    At second, we know that XI can receive and send compressed data if client initiates communication with XI. Anybody know about reverse functionality, when XI initiates communication with target system and compresses data (on the understanding that target system is able to receive and handle compressed data). If anybody know that is possible - can you navigate me to this information?
    Thank you for help,
    Best regards.

    Hi Maxim,
    You dont need to create techn and bus systems in SLD for your clients as you can use business services. Of course you have to create a comm channel for every client (receiver address is individual!). Receiver determination and interface determination can be configured dynmamicly with wild cards (*). You can find receivers by condition of payload content.
    If you want to change this conditions very quickly (with a customizing table) you can use following trick: Use a ABAP mapping which is reading that table. Unfortunately the message is first routed and then mapped. So you have to send the message over http adapter back to XI, where the changed message is now routed by a condition. Of course a quite complex scenario, the monitoring is even more complex bcoz doubled no of messages (no performance problem - http adapter is never a bottleneck).
    Regards,
    Udo

  • Target Field Mapping error

    i am having a source structure like
    <a>
    <b></b>
    <c>
       <1></1>
    </c>
    </a>
    and target structure like
    <x>
    <y></y>
    <z>
       <9></9>
    </z>
    </x>
    with
    1. ofcourse the roots mapped to each other
    2. an the element b is mapped to element y
    3. element c is mapped to z
    4. sub element 1 is mapped to sub element 9.
    The minOccurs for c, z, 1 and 9 =0.
    However, while execution of this mapping with the source element c missing in the payload a 'Cannot produce target element' error is encountered.
    Can any one help find out why is this error being encountered when both the source and target feilds along with their subfields are optional (i.e. with minOccurs=0)?

    ok there seems to be some confusion
    my source structure is like
    <a>
    <b></b>
    <c>
    <1></1>
    </c>
    </a>
    and target structure is like
    <x>
    <y></y>
    <z>
    <9></9>
    </z>
    </x>
    and the mapping is as follows
    a is mapped to x
    a>b is mapped to x>y
    a>c is mapped to x>z
    a>c>1 is mapped to x>z>9
    and both c and z have cardinatlity 0 to unbounded.
    In this case if my source message does not have the element c, its processing leads to the said mapping error.
    Edited by: diptee s on Mar 14, 2010 4:51 PM

  • EMIGALL Field Mapping

    Hi,
    I am new to using EMIGALL. I have one query:
    Where does the field mapping takes place in EMIGALL? Like in LSMW, we maintain the field mapping by mapping source and target fields. How is the same done in EMIGALL?
    Thanks,
    Sachin.

    Hi,
    please see the very detailed description of the auto-structure and the migration object. The process differs for each structure, but in most cases it is quite similiar to the LSWM. You can defibe pre- and postprocessing code where additional conversion might be done, the fields which will be expected in the input file by the EMIGALL are listed when you click on the auto-structure.
    KR
    Uwe

  • LSMW Source and Field Mapping

    Hi,
      I'm trying to use the LSMW.  What is the fastest way to maintain the source field and relationship?? Is it possible to define the source field and length in a text file and load it in the LSMW??
    Regards,
    Kit

    Hi Kit,
            u can create source fields in faster way.
    menupath
    In the 3rd step i.e., Maintain source fields
    source fields -> table maintenance
    here u can fill all the fields at a time.
    u can also maintain the fields in a file and copy and paste them in the Table maintenance .
    In 5th step i.e.,  Maintain Field Mapping and Conversion Rules
    Extras -> Auto field Mapping
    Now u get the auto field mapping setting pop-up.
    click ok.
    Now u Get the auto field mapping proposel pop-up.
    Here check Target field and Source field and click on Accept proposel push button for all the fields.
    with this the source and target field mapping are done automatically.
    reward if helpfull
    raam

  • In XI Mapping multiple fields mapping to single target field.

    Hi Friends,
    In XI Mapping multiple fields mapping to single target field.
    For example my requirement is :
    Source Fields:(This RFC BAPI Structure)
    Empno                0-1
    EmpName           0-1
    Address             0-1
    Taget Field is:
    Details               0-1
    The above three fields passed to the Details Field. Here i am using Concat function
    But i have one query on that on,Every field having "line Break" required.
    Can you please help me out above this requirement.
    Thanks in Advance,
    Sateesh N.

    If you want a line break between the three fields, then try
    passing a,b,c to the udf and in the udf you would have
    return a+"\n"+b+"\n"+c;

  • 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.

  • Message mapping not generating target fields

    hi
    iam doing jdbc--->rfc (bpm) created a one2one message mapping to import rfc table.
    thanks in advance
    sri

    Hi Sri Rao,
    Since you have created a one to one mapping, it would be required to map all the fields in your target message to ur source fields. In case there r some target fields which do not relate to your source field, map it onto a constant. This is all that is required to be done from what i understand from your query. In case there r further problems send the source n target data structure n i will be able to help you out better.
    Cheers,
    Christina

  • Send Multiple field values to Single Target field in Message Mapping

    Hi,
    My  Requirement is to Map Multiple fields to Single field in Target side.I have to send all the values concatenated and pass the same to target Field in Message Mapping.
    We can use Concat function,but more that 15 fields are there.If using concat,the mapping will be complex.
    Is there any way to simplify this requirement or we can use any UDF for this,kindly suggest.
    Regards,
    Madhu

    >>>We can use Concat function,but more that 15 fields are there.If using concat,the mapping will be complex.
    I don't think it's complex but  just that it occupies more mapping area
    Just write a simple UDF - a one line code and pass all your input variables.
    return var1+var2+var3+var4+...+var15;

  • Display queue for Target field in Message Mapping

    Hi Folks,
    If i check my Target Field (DT_Req) (Display queue) in Message Mapping, I am getting 2 values like ie [] that means ....in my test result in MM, i should get 2 times DT_Req field.
    Is it right?
    Plz give some idea how this display queue works on each field?
    Thanks
    Prabaharan
    Edited by: Prabaharan on Sep 10, 2008 12:22 AM
    Edited by: Prabaharan on Sep 10, 2008 12:24 AM

    Hi,
    In my scenario occurrence of that
    target field is    0...unbounded
    and in my display queue.. Initially it is
    suppress, [], suppress, suppress, suppress,suppress,suppress,suppress,suppress,suppress, [],suppress
    in my result i could get only one DT_req field.
    Plz throw some idea on this?
    thanks

  • Reading Target field Values in Mapping Runtime

    Hi all,
    I have a requirement ,
    source                target
    A                           X
    B                           Y=X+Z+W
    C                           Z=X+Y
    D                           W
    Kindly can some one help me,how this can be achived in mapping?

    Hi,
    are you sure about that ?
    B                           Y=X+Z+W
    C                           Z=X+Y..... so Z=X+X+Z+W    !!!!!    so 2X = -W... (in mathematic) 
    does "+" is "add" or "concatenate"?
    Else as X comes from A, W comes from D... in your mapping use the sources A and D, and do not try to use your targets... Or if you have have to the same value, reuse the rule ! and point it to two target fields
    regards
    Mickael

  • I have  a iphn 3gs running on ios 6.1.3  i buy it frm my frnd ..........n it has one prblm that safari mail n maps does't wrk it crashes all time when i try to run these ......plzzz help me what shoud i do ......i have tried reset many times bt it does't

    i have  a iphn 3gs running on ios 6.1.3  i buy it frm my frnd ..........n it has one prblm that safari mail n maps does't wrk it crashes all time when i try to run these ......plzzz help me what shoud i do ......i have tried reset many times bt it does't

    use a computer and restore the phone http://support.apple.com/kb/ht1414

  • Message-Mapping: Use same RFC lookup for different target fields

    Hello,
    I need to apply an RFC Lookup which delivers a boolean flag back (true or false). This RFC lookup should be used for different target fields.
    Is there a way to execute the RFC lookup just once and then store the result in an internediate variable that I can use for all futher checks for different target fields?
    If this is not possible and I have to apply the RFC lookup for all necessary target fields is it then executed for each target field ? This is exactly what I want to avoid in order not to slow down performance.
    The input parameter (=source field value) would be the same.
    Thank you for your advice!

    Exactly.
    Here is a UDF example I have that you could adapt to your needs.
    Set
    public String setCounter(String a,String b,Container container){
    /* Store values in global datacontainer
    a: mapping value and return valueparameter
    b: name for stored value parameter
    GlobalContainer myGlobalContainer;
    myGlobalContainer = container.getGlobalContainer();
    myGlobalContainer.setParameter(b.toUpperCase(), a);
    return a;
    Get
    public String getCounter(String a,Container container){
       //write your code here
    GlobalContainer gc = container.getGlobalContainer();
    if (gc.getParameter(a) != null) {
      return String.valueOf(gc.getParameter(a));
    } else {
    return "1";

Maybe you are looking for

  • Mac Pro Kernel Panics

    I've been having more kernel panics, they never seen to go away. Sometimes if gives me the kernel panics message, other times it'll just shut off without any message. Here's the error log Interval Since Last Panic Report:  2749 sec Panics Since Last

  • Why no sound when exporting movie?

    Pretty new to Quicktime Pro. When I try to export a .Mov file for email purposes (or any other setting) the sound option is greyed out and the movie exports with no sound? Quicktime Pro 7.04

  • Info about Japanese iPlanet Directory server

    I am evaluating Japanese localized version of directory server. I am not able to find any document which can tell me about the localization of this product. I have following questions: 1. What level of localization is done. Has console localized ? Do

  • Invoking Perl module from Apex

    I am developing an application using Apex that needs to be integrated with some other modules written in different languages. In my application I need to invoke a perl module/API based on some button action. Please suggest me the ways how I can do th

  • Massive Stability/Usage Issues With New Update [1.0.9.113] on Mac

    Hello! So I'm new here, but a longtime Spotify user.  Honestly, I have been left unimpressed and in fact quite annoyed with recent updates.  Today, however, marked the first update that has rendered Spotify essentially useless on my Mac. Beyond featu