Mapping different types

After Making some tests(Message Mapping) , Ive realized that is possible to map data-fields of different types (char v/s int) without error exists.
is this possible for that it happens to this?
Did I make any mistakes on steps?

Hi Ximena,
The Mapping does not care about types. Inside the XML structure almost all types are represented by string values. Therefore you can map each element to another element without caring about types.
The problem with the types occurs when you want to transform the XML to another structure for example in an inbound processing of RFC adapter or proxy. If the value of an element is not conform to the underlying type, a parsing error will occur. So you have to assure inside the mapping, that this will not happen.
regards
Stefan

Similar Messages

  • Different types of Mapping in XI

    Hi All,
    I am new to XI, I know different types of Mapping in XI.
    when we are using this mapping?
    1. Graphical Mapping
    2. Java Mapping
    3. XSLT Mapping and
    4. ABAP Mapping
    Please give detail.. it's helpful to me...
    Thanks & Regards
    SReddy,

    Hi Reddy,
    I thought i will start of from scratch.Mapping is basically done to convert one form of xml into another form. This can be done using either of them mentioned below.
    - Graphical mapping
    - XSLT mapping
    - JAVA mapping
    - ABAP mapping
    To know more about each of them please go thru the following links. And if you ask me your which is better, it depends basically on the scenario you implementing and the complexity involved. Anyways please go thru the following links:
    Graphical mapping
    /people/bhanu.thirumala/blog/2006/02/02/graphical-message-mapping-150-text-preview
    http://www.sapgenie.com/netweaver/xi/mapping1.htm
    /people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
    XSLT mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
    JAVA mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm
    ABAP mapping
    /people/r.eijpe/blog
    To know more about the value mapping tools for the SAP Exchange Infrastructure (XI), please go thru the following link:
    http://www.applicon.dk/fileadmin/filer/XI_Tools/ValueMappingTool.pdf
    To get an idea as to what value mapping is, please go thru the following links:
    http://help.sap.com/saphelp_nw04/helpdata/en/13/ba20dd7beb14438bc7b04b5b6ca300/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/f2/dfae3d47afd652e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/content.htm
    most of the links that I have provided also helps you get the step by step procedure of doing the same. And also involves the procedure to implement certain advanced features.
    Hope this clears your doubt fully.
    Regards,
    Abhy
    PS: AWARD POINTS FOR HELPUL ANSWERS.

  • Mapping a message in different types of messages depending field value

    Hi gurus!
    I need your help!, I need to create a scenario where I receive a message with a JMS adapter, for which I define an outbound service interface type, but depending on the value of a field (interface) to map in order to create different service inbound interface type.
    For example, I get the MT that is associated with a Service Interface SI_OUT:
    <MT_TRX>
       <interface> 101 </ Interface>
       <message>
             nombre="AVISO"> <campo 8500070609 </ field>
             nombre="ESTADO"> <campo PCDS </ field>
       </ MESSAGE>
    </ MT_TRX>
    As the interface has the value 101 with a Message Mapping I want to create the Service Interface SI_IN_101 whit message type MT_101.
    If interface = 102, the Service Interface should be SI_IN_102 and message type_102... etc.
    Can be mapped to different types of Service Interface, need different Operations?
    Thank you very much for your help, I don't know how to solve the problem!

    Hi Veronica,
    There are two clear options to approach the solution: be it 7.11 or earlier
    1. Go for 1..Onbounded Operation mapping. In your operation mapping on the target side add the different inbound interfaces. You have to define seperate message mappings for each of your target message types and use them in the operation mapping.
    2. The rather simplistic solution would be to go for conditional interface determination. A well know approach, if you have multiple interfaces to be mapped from a single interface for the same receiver system. Define seperate Message and Operation mappings for each of your Inbound Interfaces and then in Integration Directory use conditional Interface determination to call the appropriate operation mapping based on the condition checking on input payload (XPath).
    I will strongly suggest the second option for better maintainability and monitoring of your interface.
    You certainly dont need multiple operations, that's for different purpose altoghether
    Regards,
    Suddhasatta

  • Problem using different Map key types in one class

    I'm running Kodo 2.3.3. It seems I can only have one Map key types for all
    maps in a class. For example, if I have two maps in a class, their keys
    must be of the same type.
    Is there a plan to remove this limitation soon?
    Thanks,

    Abe White wrote:
    Kodo should generate a separate table for each Map. We have internal tests
    that use classes with Map fields using a lot of different key/value type
    combinations, so there shouldn\'t be a problem.It looks like two maps (keyValues and versions) are sharing the same
    table. Here is the table generated by schematool (db: Oracle 8.1.7):
    desc persistentmotiveresourcebean_x;
    Name Null? Type
    ID_JDOIDX VARCHAR2(255)
    JDOKEYX NUMBER
    KEYVALUESX VARCHAR2(255)
    VERSIONSX VARCHAR2(255)
    ==========================================================================
    Following is the simplified code I run:
    -----------internal.jdo--------------------------------------
    <?xml version=\"1.0\"?>
    <jdo>
    <package
    name=\"com.motive.services.resourceManagementService.internal\">
    <class name=\"PersistentMotiveResourceBean\"
    identity-type=\"application\"
    objectid-class=\"com.motive.model.PrimaryKey\">
    <field name=\"id\" primary-key=\"true\"/>
    <field name=\"versions\">
    <map key-type=\"java.lang.Float\"
    embedded-key=\"true\" value-type=\"java.lang.String\"
    embedded-value=\"true\"/>
    </field>
    <field name=\"keyValues\">
    <map key-type=\"java.lang.String\"
    embedded-key=\"true\" value-type=\"java.lang.String\"
    embedded-value=\"true\"/>
    </field>
    </class>
    </package>
    </jdo>
    Java source:
    -----------PersistentMotiveResourceBean.java---------
    package com.motive.services.resourceManagementService.internal;
    import java.util.HashMap;
    public class PersistentMotiveResourceBean
    private String id;
    private String name;
    private HashMap versions;
    private HashMap keyValues;
    public PersistentMotiveResourceBean()
    public String getId() { return id; }
    public void setId(String id) { this.id = id; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    public HashMap getVersions() { return versions; }
    public void setVersions(HashMap versions) { this.versions = versions; }
    public HashMap getKeyValues() { return keyValues; }
    public void setKeyValues(HashMap keyValues) { this.keyValues =
    keyValues; }
    ----------------PrimaryKey.java-------------------------------------
    package com.motive.model;
    import java.io.Serializable;
    public class PrimaryKey implements Serializable
    public String id;
    public PrimaryKey ()
    public PrimaryKey (String id)
    this.id = id;
    public boolean equals (Object ob)
    if (this == ob) return true;
    if (!(ob instanceof PrimaryKey)) return false;
    PrimaryKey o = (PrimaryKey) ob;
    return (this.id == o.id);
    public int hashCode ()
    return id.hashCode();
    public String toString ()
    return id;

  • Different types of mapping techics

    hi expects,
       please provide some mapping technics.

    Rohit,
    It depends upon the requirements. So after going through your requirements you will decide which type of mapping you want to use. Subsequently you will develop the mapping.
    Check this threads for different types of mappings and their advantages and disadvantages:
    Differences between the Mapping types.
    Re: Types of Mappings and their Use
    ---Satish

  • How to map Boolean Types in Import Manager

    Hi,
    I have a issue in Import Manager for mapping Boolean Types.
    I have a field which has a single KEY and multilple values(for different languages).
    I want to map it to a field in a Tuple.
    I can map the Key to field name.
    But the values, I am not able to map. Could you help me here please.
    Thanks a lot in advance.
    Regards,
    Rashmi

    Hi Anton
    Format your GM Time source as YYYY:MM:DD:HH:NN:SS:TTT (e.g. 2010:02:19:14:34:28:000). Deviations from this format seem to confuse the IM.
    HTH,
    Mark

  • Xslt: mapping different elements onto instances of an unbounded element

    How can you map different elements onto sequential elements of an unbounded type? For example:
    <record>
    <tag1>abc</tag1>
    <tag2>def</tag2>
    <tag3>ghi</tag3>
    </record>
    onto
    <properties>
    <property name="tag1" seq="1">abc</property>
    <property name="tag2" seq="2">def</property>
    <property name="tag3" seq="3">ghi</property>
    </properties>
    The mapping onto the first property will always be from tag1, etc. However, in the schema for <properties>, <property> only appears once:
    <xsd:element name="property" type="NormalizedString" minOccurs="0" maxOccurs="unbounded">
    Can this be mapped using JDeveloper? Can it be mapped by hand?
    If so, how?
    Thanks!

    Hello user,
    I think you will have to do this manually. It's been way too long since I was doing any serious XSLT hacking, and I don't have your schemas, but this may give you a starting point for your transformation;
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsl:stylesheet version="1.0"
    xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions"
    xmlns:ns0="http://www.w3.org/2001/XMLSchema"
    xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
    xmlns:ns1="http://xmlns.oracle.com/Transformation"
    exclude-result-prefixes="xsl ns0 ns1 xref xp20 bpws ora ehdr orcl ids hwf">
    <xsl:template match="/ns1:TransformationProcessRequest/ns1:record">
    <xsl:for-each select="*">
    <xsl:element name="ns1:property">
    <xsl:attribute name="name"><xsl:value-of select="name()"/></xsl:attribute>
    <xsl:attribute name="seq"><xsl:value-of select="position()"/></xsl:attribute>
    <xsl:value-of select="current()"/>
    </xsl:element>
    </xsl:for-each>
    </xsl:template>
    <xsl:template match="/ns1:TransformationProcessRequest">
    <ns1:properties>
    <xsl:apply-templates select="/ns1:TransformationProcessRequest/ns1:record"/>
    </ns1:properties>
    </xsl:template>
    <xsl:template match="/">
    <ns1:TransformationProcessResponse>
    <xsl:apply-templates select="/ns1:TransformationProcessRequest"/>
    </ns1:TransformationProcessResponse>
    </xsl:template>
    </xsl:stylesheet>
    Regarding validation to XSD, I guess that's just a matter of specifying the right namespaces and elements...?
    Regards,
    Rune

  • FPINTM1 - Interest calculation on different types of items

    We need to separate or differentiate the interest and posting them using 3 differerent subtransactions as they need to be identified separately. This is because the nature of the items the interest is calculated on are different. So far the system is using the internal transaction of 0040 (Main trans) and 0030 (subtransaction) and we have mapped it to an external transaction. But this appears to be the only option available currently. Is there a way to get the system to differentiate the interest into 3 different subtransactions depending on the nature of the item? Will using different interest key at item level help? Thanks.

    I had a look at the table V_TFKIVV where the internal transactions are stored. So far only the single main transaction 0040 and subtrans 0030 is used for interest calculation in FPI1 and FPINTM1. We need to pay 3 types of interest and indentify them separately depending on the types of items (they have  3 different subtransactions) the interest in calculated on. So far our tests shows that interest on using FPINTM is consolidated under the main trans 0040 and subtrans 0030. Is it possible to split the interest up into 3  the different types or subtrans?
    Eg, we have 3 types of receipts where we have to pay interest on, they are employer contribution, employee contribution and adhoc contribution. We need to calculate interest on these 3 types of contributions. Trans FPINTM1 consolidates interest for these 3 types into main trans 0040 and sub trans 0030 ie, only one type of interest and therefore one GL account. Is it possible to split the interest  into the 3 different types, perhaps into different subtrans to differentiate them? Thanks.

  • Message Mapping of type ABAP Class not being shown

    Hi all,
    I have been trying to follow the given blog:
    /people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi
    Even after doing the changes mentioned in the blog, i do not see the ABAP Class in the list of Message Mapping types.
    Do i need to do anyother configuration. Pls guide.
    Regards
    Neetu

    Hi Neetu,
    You will have to enable your ABAP mapping first.
    Do the following steps, pay carefull attention to the values you enter,
    In
    IntegrationBuilder ->IntegrationBuilder.Repository -> com.sap.aii.repository.mapping.additionaltypes
    enter the value of
    R3_ABAP|Abapclass;R3_XSLT|XSL (ABAP Engine)
    If the above doesnt work, try Abap-class instead of Abapclass in the above line.
    And then follow the remaining steps, make sure that the above value is correct. Your ABAP mapping should appear in your Integration Repository.'
    I suggest you go through these links:
    https://websmp101.sap-ag.de/~sapdownload/011000358700003082332004E/HowToABAPMapping.pdf
    /people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi
    ABAP Mapping Vs Java Mapping.
    Refer to following SDN Demo which explains the need and how to do the ABAP mapping.
    https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/110ff05d-0501-0010-a19d-958247c9f798#jdi [original link is broken]
    This document will help you to create ABAP Mapping.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/3.0/how%20to%20use%20abap-mapping%20in%20xi%203.0.pdf
    Regards,
    Abhy

  • How load different types of file in SSIS

    could you please suggest how can we load different types of file in SSIS. The file metadata is not defined . So the SSIS
    package will read the files palced in a defined shared location or folder where based on the column value will determine the datatype on runtime and load the data.

    Hi SubhadipRoy,
    SSIS doesn’t support dynamic data access provider or metadata. That means that we need to use different source adapters for flat files (.csv and .txt) and Excel files. So, in the Control Flow, you can use three Foreach Loop Container: one to loop through
    .txt files, one to loop through .csv files, and the last one to loop through Excel files. In each Foreach Loop Container, you use a Data Flow Task to extract data from the corresponding source files. 
    If the source files have different structures, you need to use Script Component in the Data Flow Task to parse the first row of the source files and create destination table dynamically. Here are two script examples for your reference:
    http://www.citagus.com/citagus/blog/importing-from-flat-file-with-dynamic-columns/ 
    http://stackoverflow.com/questions/21672064/ssis-dynamic-column-mapping-in-excel-source-and-destination-sql-server-table 
    Regards,
    Mike Yin
    TechNet Community Support

  • Problems working with different types of aggregation in two facts table

    Hello every Body!! Greetings from Brazil..
    At fisrt I'd like to say that I've tried to find some thead with the same problem, but I've foud no answere. That is why I'm typing this new post.
    Here we go ...
    I've a Fact table with one metric and two degenerate dimensions..
    For exemple:
    Invoice_number
    Puschase_Date
    Purchase_Value$
    When I model it at Business Model Mapping, I used the Aggregation's type below:
    Invoice_number - None
    Puschase_Date - None
    Purchase_Value - Sum
    So far it works fine at Answeres area.. Since I use only values from this Fact..
    But... if I try to join values from two different Facts Table (both of them sharing the same Dimensions) and the Second Fact has an aggregated value, it does'nt work... I get 'null' as values (metrics) of the second Fact Table...
    I think that it is caused because I'm working whith different types of aggregation, but I don't know the solution.
    By the wat, the second Fact I've told has only one metric, aggregated whith 'SUM'.
    Is there a solution? Any hint?
    Tks.
    Vettore

    int x = (int)(7 + 3.0 / 4.0 * 2); //the variable will do the math bracket first. then the va type will still be an int because int was never changed.
    Following the standard order of operations, 3.0/4.0 will result in a double, then 2 will be converted to a double before being multiplied to the result, then 7 is converted to a double before being added to the result, and then the (int) cast will force a conversion
    back to an int.
    Console.WriteLine((1 + 1) / 2 * 3); // 1 + 1 will be done first then 1 / 2 then * by 3
    Correct.
    I THINK THATS ALL WRONG ^ =/ like the comments
    Why?

  • The workflow could not update the item, possibly because one or more columns for the item require a different type of information. Outcome: Unknown Error

    Received this error (The workflow could not update the item, possibly because one or more columns for the item require a different type of information.) recently on a workflow that was
    working fine and no changes were made to the workflow.
    I have tried a few suggestions, i.e. adding a pause before any ‘Update’ action (which didn’t help because the workflow past this action without incident); checked the data type being written
    to the fields (the correct data types are being written); and we even checked the list schema to ensure the list names and the internal names are aligned (they
    are), but we still cannot figure out why the workflow is still throwing this error.
    We located the area within the workflow step where it is failing and we inserted a logging action to determine if the workflow would execute the logging action but it did not, but wrote the same error message.
    The workflow is a Reusable Approval workflow designed in SharePoint Designer 2010 and attached to a content type. 
    The form associated with the list was modified in InfoPath 2010. 
    Approvers would provide their approval in the InfoPath form which is then read by the workflow.
    Side note - items created after the workflow throws this Unknown Error some seem to be working fine. 
    We have deleted the item in question and re-added it with no effect. 
    Based on what we were able to determine there don’t seem to be any consistency with how this issue is behaving.
    Any suggestions on how to further investigate this issue in order to find the root cause would be greatly appreciated?
    Cheers

    Hi,
    I understand that the reusable workflow doesn’t work properly now. Have you tried to remove the Update list item action to see whether the workflow can run without issue?
    If the workflow runs perfectly when the Update list item action is removed, then you need to check whether there are errors in the update action. Check whether the values have been changed.
    Thanks,
    Entan Ming
    Entan Ming
    TechNet Community Support

  • The workflow could not update the item, possibly because one or more columns for the item require a different type of information using Update Item action

       I got error  "The workflow could not update the item, possibly because one or more columns for the item require a different type of information "I  found out the cause is  Update Item action       
    I need to update item in another List call Customer Report ,the field call "Issues"  with data type  "Choice"   to yes
    then the error arise .   please help..

    Thanks for the quick response Nikhil.
    Our SPF 2010 server is relatively small to many setups I am sure. The list with the issue only has 4456 items and there are a few associated lists, eg lookups, Tasks, etc see below for count.
    Site Lists
    Engagements = 4456 (Errors on this list, primary list for activity)
    Tasks = 7711  (All workflow tasks from all site lists)
    Clients = 4396  (Lookup from Engagements, Tslips, etc)
    Workflow History = 584930 (I periodically run a cleanup on this and try to keep it under 400k)
    Tslips = 3522 (Engagements list can create items here, but overall not much interaction between lists)
    A few other lists that are used by workflows to lookup associations that are fairly static and under 50 items, eg "Parters Admin" used to lookup a partners executive admin to assign a task.
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

  • Mini-DVI to DVI Adapter issues (2 different types, no info from Apple)

    as you can see below, I have an iBook G4 1.2GHz
    three weeks ago I got a Mini-DVI to Video Adapter
    there were two different types in the Apple Store because there are two generations of Mini-DVI outputs, therefore some close inspection and it was easy to get the right part.
    Now, three weeks later, all that stuff is off the shelf so it looks like they only have up the more recent size plug. Thus, I cannot find the slightly smaller Mini-DVI to DVI Adapter. (typical Apple, probably just wants me to spend more money on a new machine)
    Anyone have a line on where to buy the older type of adapter?
    be very careful out there. They are pimping the heck out of the newer generations. I'm looking for the older one.
    (if not, I'll probably just stop buying Apple stuff. No need for the headache any more since they are no longer really different products. Just fashion)

    I have both an iBook G4 and a MacBook, which use each of the adaptors you have described. I found the information on the Apple site by identifying the Model iBook I had, Dual USB, and looking at he detailed views of each model to identify the type of 'video output port'. I obtained a '2 input' VGA switch from Tiger Direct to be able to switch my monitor from iBook to MacBook.
    Hope this helps!

  • Convert different types of files and merged them into one pdf

    Hi, everyone. I'm girl from China.
    There is folder containing severl files of different types, like doc, msg, jpeg etc.   And I want to convert and merge them into one pdf following a certain order. I know that PDFmaker can do that nicely, but the problem is that I have like 3000+ fodlders that requires the same work.
    I want to do it with VBA and Acrobat. I have a Acrobat XI Standard Version and a perfect license, by the way
    And I have got the code(Thanks, Karl Heinz Kremer) of merging two pdfs into one, but how can I convert them into pdf first?
    Thank you very much.
    If I can finish this, I would like to publish my code on this forum.

    Wow, that's great news. But how should I add the Action?
    1. There is no action named "Covert files into Pdf" in the tools panel....
    And if I write Javascript code to do this action. How should I write it?
    app.openDoc({
    cPath: "/c/temp/myPic.jpg",
    bUseConv: true
    These code only works when I specify the path of the file.
    If you know how, pls tell me..........

Maybe you are looking for

  • Sub screen: Handling the Radio button selection?

    Hi, Scenario: I have a Main screen and a sub screen. From the main screen I am calling the sub screen. On the Sub screen, I have 2 radio button. On the selection of the Radio buttons, I am activating/deactivating few of the screen elements on the sub

  • Why don't Digital Signatures hold up is a browser based PDF workflow

    Hello, I am trying to set up with my company the possibility of routing a PDF file via the upload Browser option. The comments seem to upload and show the changes, but when someone signs the document, it says its going to make a copy and if I just cl

  • Sharing contacts with entire family

    Hi, since the latest update my entire family is able to see my contact details. Everybody has their own apple ID, however we all use the same email address for it. Can anyone tell me what happened and whether I can change this?

  • How to Add this Plug in

    i want to develop a new java project. as far as the tutorial i got i shows that i have create a new project under JBossIDE -> JBoss(version). i have JBoss in my System. but i couldn't find this option in the new project wizard that i open in my syste

  • PE9 crashing on startup, cannot proceed (Mac)

    My son has been using a new iMac 3.2 since Christmas running a newly installed PE9.  He has been editing a variety of short videos, experimenting with effects and so on.  He has been experiencing crashes in PE several times each day but now, after th