Skip to Content

Mapping templet

Hi friends,

I have done one complex mapping..

Now i have to use same logic for other mapping which has same structure..

How to create mapping templet and how to make use of this ..

when i need to select 2 or more source fileds what is the procedure..

please help me i need to create entire mapping again..

I have used copy concept but at namespace conflit is comming.. as mt are not same name..it is refelct to source namespace and runtime error is comming..

Thanks and Regards

Vijay

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    Jul 02, 2008 at 01:13 PM

    How to create mapping template from message mapping?

    http://help.sap.com/saphelp_erp2004/helpdata/en/49/1ebc6111ea2f45a9946c702b685299/content.htm

    (Use Find for string "Create Template Based on Mapping")

    Regards,

    ravi

    Add comment
    10|10000 characters needed characters exceeded

    • hi

      Thanks a lot for all the replys..

      first i tried to create templet i got this error

      The selected target element must have either a data type or a complex type

      so i have created new data type of same structure and created a copy of mapping and replaced that externaldefention with newly created datatype after this i have created templet..

      now i make use of this templet and now the error is

      Cannot produce target element /ns1:MT_Claim_SAP_Req. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd

      what is the solution for this,,

      again i have to do all the mapping from the scratch.. or any way...

      Thanks and Regards

      Vijay

  • avatar image
    Former Member
    Jul 02, 2008 at 01:13 PM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 02, 2008 at 01:20 PM
    Add comment
    10|10000 characters needed characters exceeded

  • Jul 02, 2008 at 01:31 PM

    You can create mapping templates again and load the structures as usual by using input help in the mapping editor.

    You can save mapping templates in a message mapping:

    1.Select a type element in the source and target structure (the element must reference a non-built-in XSD data type).

    2.Choose Save Mapping Template from either the target structure context menu or from the object toolbar.

    3.Enter a name for the new mapping template and then create it.

    You can use mapping templates in message mappings from any software component version:

    1. In the mapping editor, select a type element in the source and target structure (the element must reference a non-built-in XSD data type).

    2. Choose Load Mapping Template from either the target structure context menu or from the object toolbar.

    3. If mapping templates are available for the types in the source and target fields, you can select them in the dialog window that is then displayed.

    Select the mapping for which you want to create the mapping template and choose the mapping and click the Create Template based on mapping.

    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50171256-1ee2-2a10-3f84-ddecf098f724

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 02, 2008 at 01:42 PM

    Hi,

    Defining Mapping Templates

    You can create mapping templates again and load the structures as usual by using input help in the mapping editor.

    · You can save mapping templates in a message mapping:

    a. Select a type element in the source and target structure (the element must reference a non-built-in XSD data type).

    b. Choose Save Mapping Template from either the target structure context menu or from the object toolbar.

    c. Enter a name for the new mapping template and then create it.

    Just saving the sub-structures of a message mapping as a mapping template in this way is not sufficient for the mapping editor to be able reference it (you would normally use the template in another message mapping). After you have saved the template you then need to load it into the message mapping (see below).

    Apart from multi-mappings, you have all the functions of a normal message mapping available to you for a mapping template.

    Using Mapping Templates

    You can use mapping templates in message mappings from any software component version:

    1. In the mapping editor, select a type element in the source and target structure (the element must reference a non-built-in XSD data type).

    2. Choose Load Mapping Template from either the target structure context menu or from the object toolbar.

    3. If mapping templates are available for the types in the source and target fields, you can select them in the dialog window that is then displayed.

    Displaying Mapping Templates Used

    To display all the mapping templates used in a particular message mapping, choose Message Mapping ® Mapping Templates Used.

    Regards,

    suresh

    Add comment
    10|10000 characters needed characters exceeded