Which Mapping to use??

Hi ALL,
  I have the following input to be reformated to the below specfied output format. Can I acheive this using Graphical mapping or Do I have to go for XSLT/Java mapping?? Which one will be better choice for this scenario??
<u>Example Input:</u>
Period 1 | Material A | Plant A | Volume 50
Period 1 | Material B | Plant A | Volume 75
Period 3 | Material A | Plant A | Volume 25
Period 3 | Material C | Plant A | Volume 60
Period 3 | Material C | Plant B | Volume 30
<u>Example output:</u>
Plant A | Material A |Volume 50 |  00 |Volume 25| 00 | 00 | …..
Plant A | Material B |Volume 75 |  00 | 00 | 00 | 00 | …..
Plant A | Material C |  00 |  00 |Volume 60| 00 | 00 | …..
Plant B | Material C |  00 |  00 |Volume 30| 00 | 00 | …..
   XI has to accumulate all matching records by plant, material and period. And have to slot the quantities into 13 period buckets... and write one output record for each unique plant and material combination.
Regards,
Raks

Hi,
a) Please create a class with three fields and should implement interface Comparable than implement method equals
b) compile it
c) zip it or create jar file
d) import it to repository now you will be able to use it in your mapping
e) in user define function import this class (use the same packge in which it is)
f) use hashMap (http://java.sun.com/j2se/1.4.2/docs/api/java/util/HashMap.html)
Regards,
wojtek

Similar Messages

  • XI 3.0 Which mapping to used when ? If choice is given to me...

    Hi
        Out of all mappings (Graphical message mapping ,Java Mapping,XSLT mapping,
         ABAP mapping).
         If choice is given which mapping i need to use? What are the conditions to
         go any specific mapping ?
         <u>Pls...expalin me all in detail</u>
    Adv thanx to all res...
    Regards
    Prasad

    Hi Prasad,
    There is no hard and fast rule for using the mapping techniques.
    <b>
    Graphical Mapping </b>is used for simple mapping cases. When, the logic for your mapping is simple and straight forward and it does not involve any complex logic.
    <b>
    Java and XSLT mapping</b> are used when graphical mapping cannot help you and you have multilevel hierarchy structure data.
    When the choice is between Java and XSLT, XSLT is simpler than java mapping and easier. But, it has its drawbacks. One among them being that you cannot use Java APIs and Classes in it. There might be cases in your mapping when you will have to perform something like a properties file look up or a DB lookup, such scenarios are not possible in XSLT and so, when you want to use some specific Java API's you will have to go for Java Mapping.
    Java Mapping uses 2 types of parsers. DOM and SAX. DOM is easier to use with lots of classes to help you create nodes and elements, but, DOM is very processor intensive.
    SAX parser is something that parses your XML one after the other, and so is not processor intensive. But, it is not exactly easy to develop either.
    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
    http://help.sap.com/saphelp_nw04/helpdata/en/6d/aadd3e6ecb1f39e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
    /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
    http://www.w3.org/TR/xslt20/
    JAVA mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm
    DOM parser API
    http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/package-frame.html
    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.
    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,
    Pooja

  • Which tools can use for XSLT mapping?

    which tools can use for XSLT mapping?

    Hi,
    Altova map force tool , u will get it for 1month trial.and later you can create xslt mapping in notepad itself.
    reg,
    avinash M

  • Maps - which do you use?

    Google Maps vs. Yahoo Maps vs. MapQuest vs. Microsoft Live
    API's
    Which do you prefer and why?
    Dan

    I built a "locator" application for the hobby I'm heavily
    involved with
    (flying model helicopters) that utilises map technology and
    the decision
    there was based on which maps looked the best for my own
    location...
    I went with Microsoft Maps (Virtual Earth) because the level
    of detail was
    better at the time of my choice.
    It may still be - I can't be bothered checking right now :)
    I found the online documentation to be very good - easy to
    follow, copy
    paste and tweak code, play for a while then launch the app
    pretty quickly.
    I agree with Patty on the directions thing though - it might
    not be the best
    set of directions you can get, but that really applies to all
    direction
    software IMO...
    You can see my app in action here:
    http://www.tenzeroten.com/locator/index.asp
    Select a location from the list, click the button and wait
    for the next page
    to oad - this is my only gripe... the JS powering the map API
    is obviously
    quite large, so it can take a while to load in. I'm not sure
    if there's a
    workaround for that either. (Note: this "club locator" does
    not contain all
    available clubs - just those that have bothered to add their
    details to the
    system so far).
    I learned what I needed to build that app from the live docs:
    http://dev.live.com/virtualearth/sdk/
    Cheers,
    Rob
    http://robgt.com

  • Which CKM is used for moving data from Oracle to delimited file ?

    Hi All
    Please let me know Which CKM is used for moving data from Oracle to delimited file ?
    Also is there need of defining each columns before hand in target datastore. Cant ODI take it from the oracle table itself ?

    Addy,
    A CKM is a Check KM which is used to validate data and log errors. It is not going to assist you in data movement. You will need an LKM SQL to File append as answered in another thread.
    Assuming that you have a one to one mapping, to make things simpler you can duplicate the Oracle based model and create a file based model. This will take all the column definitions from the Oracle based model.
    Alternatively, you can also use an ODI tool odiSQLUnload to dump the data to a file
    HTH

  • How to know which map is failed in a process flow if we have more than 2

    Hi All,
    I Created ProcessFlows and by using email notification, I can send SUCCESS / ERROR / WARNING notification.
    In process flows I have 3 maps.
    When there is any error or warnings in any of the map execution, I am getting only message which I put in my email subject body, but I am not getting exactly which map got error or warnings.
    Is there any way to send the execution details of the map through mail notification.
    Or Please suggest me any configurations.
    Regards,
    Kumar

    Hi Frnd,
    All these i want to do throug mail notification.
    I am not clear about what you said.
    Can you please explain me clearly, because I am new and that too this is my 1st project in OWB.
    My Process flow is as follows
    Start -->Fork -->from fork to map1 and map2
    from map1 and map2 to And Activity.
    From And Activity to Email Success.
    From Email success to End Success.
    In the same way for Warning:
    from map1 and map2 to Or Activity.
    From And Activity to Email Warning.
    From Email success to End Warning.
    In the same way for Error:
    from map1 and map2 to another Or Activity.
    From And Activity to Email Error.
    From Email success to End Error.
    From Above, I am getting message success and warning and error.
    What is the best way to show to the user, that all the mapping execution details, if so how to show execution details.
    OR
    to send only error and warinig messages .
    All these i want to do throug mail notification.
    Kindly reply to this.

  • Mapping drive using GPO does not obey to Item-level targeting

    Dear all,
    We are mapping drive using Item-level targeting based on security group (User Configuration > Preferences > Windows Settings > Drive Maps) with the following settings:
    Action: Replace
    Run in logged-on user's security context: <Checked>
    Item-level targeting: <Checked>
    So if user is member of Group_X then he/she will have drive X mapped on his computer.
    Problem now is that (even if reconnect is unchecked), drive will stay mapped when we remove a user from this group.
    Is this the normal behavior ? did I missed something ?
    or even worst, imho, should I add a new drive properties which would say to delete the drive if user does not belong to the relevant group ?
    -> double targeting query for a single drive
    -> what's the point of Replace / Reconnect then ?
    Thanks in advance for your opinions!
    /behd
    [EDIT: Forgot to specify Win2008R2 AD, Win7 Pro clients but doubt that it'll be of any interest for this case]

    Drive mapping should not remain after you remove the user from the group.
    What I suspect is, that at first, the "reconnect" was checked then the user got the policy and tattooed the reconnect value. after that it doesn't matter that "reconnect" was removed.
    Try the following:
    Logon with test user, make sure no drive mapping exist (disconnect if necessary).
    Create a new policy with drive map - make sure reconnect is not checked, and apply it for the test user.
    Make sure no other drive mapping policy exist for that user.
    Login with the test user, make sure drive was mapped.
    Log off that user, remove it from the group, wait for AD replication and log on again (sometimes another log off \ log on required).  
    Please take a moment to Vote as Helpful and/or Mark as Answer where applicable. Thanks.

  • Two Message Mappings in one Interface Mapping without using BPM

    Hello Experts,
    I have this scenario, please help me
    I have to execute two mappings of which one is a java mapping and then the other is a message mapping sequentially.
    The mapping is something like below
    Message1  -> (java Mapping) -> Message2
    Message2
    Message1 -> (Message Mapping) -> Message3
    Based on the value in Message2 I have to map Message1 to Message3
    I am not an expert in java so please give me options that doesn't involve changing of java code.
    The above 2 mappings have to be implemented in only one interface mapping.
    Suggestions please.

    Hi Ravi!
    You say message2 dependes on message1 and message3 is mapped from message1 but using also values from message2? But this means, that whole mapping dependes only on message1!
    So change your mapping and use the one not based on message2, but message1. Put these as a condition in interface determination and based on these values use the correct mapping.
    Peter
    p.s. I'm not sure, if I got your requirement correctly, but your target message dependes only on message1 (since message2 dependes on it too), so this whole mapping can be done as 1. Unfortunately, you'll probably have to change your java part. Bur definetely, Raj is right.
    Edited by: Peter Jarunek on Feb 20, 2008 5:36 PM

  • How to tell which maps are the latest?

    I have Maps v3.01 loaded on my 6710 Navigator (came with free worldwide licence) and Map Loader v3.0.28 on my PC.
    How do I tell which maps are loaded on my Nokia and what version/date the maps availalble on Map Loader are?
    Map Loader does not state which maps are already on my phone, nor does it state the date or version of the maps which can be uploaded.
    Obviously, I'd like to install newer versions of my country map if and when it is available, but how do I know which version is available and which I already have?
    Ovi.com does not seem to be the answer either as all maps were downloaded using Map Loader.
    Solved!
    Go to Solution.

    If you already have a free worldwide license and V 3.01 is working well for you then you are right to leave it for the moment. I hear of problems  searching for addresses etc with V3.03.  Can always update later when everything is sorted.
    I believe if you delete all your maps and then use Ovi Suite to download new maps, Ovi Suite will at least tell you what maps you have on your phone. I haven;t tried it myself because I can't stand Ovi Suite.
    Speed warning is available for Ireland but just like you I have to import the speed camera locations as landmarks. Hopefully, we will see these as new features in future updates.

  • Which mapping populates W_INVOICE_FS in Oracle EBS Adaptor?

    Which mapping populates W_INVOICE_FS in Oracle EBS Adaptor?
    I was not able to find any mapping that populates W_INVOICE_FS staging table.
    Thanks
    Eric

    Also, another useful tool I've found is this:
    Open DAC Client.
    Design.
    Select the Tasks tab (in the top region).
    Right click any of the tasks, select Output Task Description.
    This creates an .html file (e.g. C:\OracleBI\DAC\log\tasks\tasks.html) that lists a lot of useful information, if you're looking to review/identify source/target tables.
    Chris.

  • Problem in updating fa_additions SQL Error: ORA-01779: cannot modify a column which maps to a non key-preserved table

    Hi,
    After using sql loader to import informations in the table fa_mass_additions and after the functionnal uses a treatment to imputate this assets, it asks me to do an update on the table fa_additions to change the value of attribute1 but i get an error
    Error report:
    ORA-01779: cannot modify a column which maps to a non key-preserved table
    ORA-06512: at line 11
    01779. 00000 -  "cannot modify a column which maps to a non key-preserved table"
    *Cause:    An attempt was made to insert or update columns of a join view which
               map to a non-key-preserved table.
    *Action:   Modify the underlying base tables directly.
    please how can i do this update?

    Hi,
    The "fa_additions" is a view, not a table.
    You should update the base table "fa_additions_b".
    Regards,
    Bashar

  • How to enhance the length of standard UI element which maps to DDIC structure?

    Dear Webdynpro Expert,
    I got a requirement to enhance the length of UI element which maps to DDIC structure attribute. I have tried by using
    View Enhancement by hiding the standard UI element,
    Adding the required field in the standard structure through append structure,
    mapping the appended structure field to the UI element.
    But it shows error as data compatibility.
    Can you please share some light on it.
    Thanks.

    Hi Mohsin,
    When and where are you getting this data compatibility error???
    Try to create a new context attribute and add your new DE.
    BR,
    RAM.

  • ORA-01779: cannot modify a column which maps to a non key-preserved table

    define cusname='GEORGE';
    INSERT INTO (select s.prd_id, s.cus_id, s.qty_sold, s.price from sales s, customers c where s.cus_id=c.cus_id)
    VALUES (102,(select cus_id from customers where upper(c_name) like '%GEORGE%'),14,(select price from product where prd_id = 102)*14)
    I am getting the following error when I am trying to run the above query.
    SQL Error: ORA-01779: cannot modify a column which maps to a non key-preserved table
    01779. 00000 -  "cannot modify a column which maps to a non key-preserved table"
    *Cause:    An attempt was made to insert or update columns of a join view which map to a non-key-preserved table.
    *Action:   Modify the underlying base tables directly.
    CUSTOMERS TABLE
    Name   
    Null   
    Type        
    CUS_ID 
    NOT NULL
    NUMBER      
    C_NAME         
    VARCHAR2(50)
    C_LIMIT         
    NUMBER      
    CITY           
    VARCHAR2(20)
    PRODUCT TABLE
    Name 
    Null   
    Type        
    PRD_ID
    NOT NULL
    NUMBER      
    PRICE         
    NUMBER      
    COST           
    NUMBER      
    SALES TABLE
    Name   
    Null   
    Type  
    PRD_ID 
    NOT NULL
    NUMBER
    CUS_ID 
    NOT NULL
    NUMBER
    QTY_SOLD         
    NUMBER
    PRICE             
    NUMBER

    Hi,
    As the error message sugggested, INSERT directly into the sales table.  You can get the values from a sub-query that joins whatever tables are needed, including sales itself.  MERGE might be simpler and more efficient than INSERT.
    I hope this answers your question.
    If not, post  a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    If you're asking about a DML statement, such as INSERT, the sample data will be the contents of the table(s) before the DML, and the results will be state of the changed table(s) when everything is finished.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • DM_Mappings.csv which maps logical names to relational names is blank

    Hi,
    I have created a data model (both logical and relational) using OSDM 3.1.4.710. I am trying to generate a csv report (go to File -> Export -> To CSV option in OSDM) which maps the logical names to physical names (physical names are abbreviated as I am using a glossary for abbreviations). This information was present in the csv named DM_Mappings.csv in version 3.0.0-665 of OSDM which maps the logical component of the model to the physical component. However when I use OSDM 3.1.1-703 or OSDM 3.1.1-704 or OSDM 3.1.4.710, the csv file DM_Mappings.csv is generated but its blank. I am not sure if there is some hidden option somewhere which will help me generate this mapping information which was a default option in OSDM 3.0.0-665. I would appreciate it if someone could help me in getting this logical to physical mapping in csv format using OSDM.
    Let me know if you need any other information.
    Regards,
    Ashok

    Hi Ashok,
    thanks for reporting the problem. Fix will be available in next release.
    Philip

  • Hi I am searching for a app which i can use to protect games or other apps from my childs. not to protect all only a few

    hi im searchingg for an app which i can use to protect games or other apps from my childs. not to protect all only a few

    Sorry, but you will not find any such app.  The iOS itself is set up such that 3rd parth apps can have almost no interaction with any other app (exceptions being the ability of some to read data from some of the OS included feautures, like Maps reading location information from iOS location services).  So there is no way to design an app that would interfere with or restrict how another app works - the iOS simply precludes that.

Maybe you are looking for

  • Physical disk space after ORACLE reorganization with brtools

    Hi all! . I perform reorganization after arсhiving with brtools. In db02 shows that free size in tablespace are increased but physical disk space not changed. Can i make changes in online with brtools to increase physical disk space in reorganized ta

  • Robohook.wll and Word 2007

    Is RoboHook.wll necessary for Word 2007? Is RoboHook.wll necessary for RoboHelp 8 HTML or is it a leftover from earlier versions of RoboHelp? I am using RoboHelp 8 HTML to generate WebHelp. My Word 2007 documents (totally unrelated to my RoboHelp pro

  • ChaRM in QA system after QA refresh with production

    Hi, After deploying ChaRM, if we refresh QA system with production server, would the projects be overwritten? or Is there a way to perform system refresh without affecting CTS projects in QA? Thanks and Regards, Jamuna Nithyanandam

  • My CC Cloud files directory is empty but Creative Cloud says 17GB used of 20GB

    My CC Cloud files directory is empty but Creative Cloud says 17GB used of 20GB How can i get my unused space back. Regards Matthijs

  • Adobe reader XI does not close after a right click to print.

    We have upgraded from 9.3.3 to 11.0.3 and since then we can no longer right mouse click to print single or multiple documents without leaving Adobe reader open afterwards. Our company prints multiple PDFs everyday and it's very frustrating for our us