Skip to Content
avatar image
Former Member

Mapping more than 1 Element to only 1 element

Hi

As per my work scenario, i need to map more than 1 element on the Inbound Message type to only 1 Element on Outbound Message type in Integration Respository of XI 2.0 using Graphical Tool Editor. since I am new to the Technology

Can any one can suggest me. What would be the better option i.e Graphical Tool Editor or XSLT or Java Mapping.

If possible provide any urls for.

Thanks & Regards

Shailaja

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Jan 09, 2006 at 06:27 AM

    Hi Shailaja,

    In graphical mapping, you can use the concat operator to concat the 2 elements to be mapped into the destination element.

    it would be helpful if you could give your source and destination data types.

    regards,

    bhavesh

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 09, 2006 at 06:31 AM

    Hi Shailaja,

    Choosing between the different mappings available depends on the scenario you are working with.

    You can refer the following links:

    http://help.sap.com/saphelp_nw04/helpdata/en/d2/58cd3b11571962e10000000a11402f/frameset.htm

    XSLT Mapping:

    http://help.sap.com/saphelp_nw04/helpdata/en/d2/58cd3b11571962e10000000a11402f/frameset.htm

    java Mapping:

    http://help.sap.com/saphelp_nw04/helpdata/en/d2/58cd3b11571962e10000000a11402f/frameset.htm

    Cheers,

    Chandra

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 09, 2006 at 06:34 AM

    hi Shailaja

    If you want to map more than one field to one field by just cncatinating them, then you can use Gaphical Mapping->text element->concate tool. But if this is not the requirement and you want to map on the basis of certain condition then it will be better if you define your own user defined function in Java.

    Otherwise you can also do using graphical mapping with if then else statement...

    But i would Suggest, go for Java Mapping..

    Regards

    Mithlesh Kumar Jha

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 19, 2006 at 06:57 AM

    Hi Shailaja,

    I understand that you have only one element in the target message and you want to map more than one element from the source message to it, i.e; Lets assume the following as example,

    <b>SOURCE </b> -


    ><b> TARGET</b>

    A1 -


    >

    A2 -


    > X(0..unbounded)

    A3 -


    >

    Now right click the node "X" and choose "Duplicate Subtree".Do the same until node "X" gets duplicated for the desired no: of times.Now you will have the following structure.

    Now you can map the source structure directly to target structure.

    Have a look at this thread

    one-to-many-message-mapping

    Regards,

    Vinodh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 19, 2006 at 08:48 AM

    Hi Shailaja,

    If you have just 3 to 5 elements on the source to be mapped to your target element, you can use graphical mapping.

    But if it is more than that u will find the mapping process in graphical to be hard. In that case java mapping is better.

    Hope that helps.

    regards,

    Jesse.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 19, 2006 at 09:23 AM

    Hi Shailaja,

    as in your case since the scenario seems to be very simple i would suggest you to use graphical mapping itself in this case.but when the scenario becomes very complex,we can go for either java mapping or xslt mapping.

    for graphical mapping, go through this link:

    http://help.sap.com/saphelp_nw04/helpdata/en/ee/bf9640dc522f28e10000000a1550b0/frameset.htm

    for xslt mapping go through this link:

    http://help.sap.com/saphelp_nw04/helpdata/en/83/2200cb50d345c793336d9a1683163e/frameset.htm

    for java mapping go through this link:

    http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm

    concatenate two or more fields in the source and map it to one field in the destination.this can be done even based on conditions in graphical mapping.if you have a problem doing the same, please let me know.

    and please go through this link which clearly explains the 3 types of mappings.

    /people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi

    Regards,

    abhy

    PS: Do award points for useful answers.

    Add comment
    10|10000 characters needed characters exceeded