Help in understanding the logic!

Can anyone help me with the following?
Can anyone explain how the below logic works if it has the following Input values:
Input values:
GLOBAL1_CURR_CODE ='LOC'
DOC_CURR_CODE ='USD'
LOC_CURR_CODE ='USD'
IIF(ISNULL(GLOBAL1_CURR_CODE), NULL,
IIF(GLOBAL1_CURR_CODE = DOC_CURR_CODE, 1.0,
IIF(DOC_CURR_CODE = 'STAT', 1.0,
IIF(GLOBAL1_CURR_CODE = LOC_CURR_CODE, DOC_TO_LOC_EXCH_RATE_VAR,
:LKP.LKP_W_EXCH_RATE(DOC_CURR_CODE, GLOBAL1_CURR_CODE, EXCH_DT,GLOBAL1_RATE_TYPE, DATASOURCE_NUM_ID)))))
I am not able to find the :LKP.LKP_W_EXCH_RATE in either SDE or SIL transformations.
Thanks in advance.
Nikki.

Hi again Nikki, I see you have two Oracle.com user accounts!
This appears to relate to several issues you are having in understanding how global currencies work with the BI Applications. For the benefit of others, related threads are:-
Informatica Logic for Balance_Global1_Amt column in W_GL_BALANCE_F table
Informatica Logic for Balance_Global1_Amt column in W_GL_BALANCE_F table.
Insert records into W_EXCH_RATE_G table
Re: Insert records into W_EXCH_RATE_G table.
Modify SIL_GLBalanceFact to populate Balance_Global1_Amt column
Modify SIL_GLBalanceFact to populate Balance_Global1_Amt column.
With regards to your latest question, I recognise that the SQL you have populated below has been taken from the MPLT_CURCY_CONVERSION_RATES1 mapplet in the SIL_GLBalanceFact mapping.
To understand the logic, you need to understand the SQL used by Informatica, as well as Informatica lookup notation. Going through your example line by line:-
GLOBAL1_CURR_CODE ='LOC'
DOC_CURR_CODE ='USD'
LOC_CURR_CODE ='USD'
IIF(ISNULL(GLOBAL1_CURR_CODE), NULL,
-- So if the GLOBAL1_CURR_CODE is null, then return NULL else...
IIF(GLOBAL1_CURR_CODE = DOC_CURR_CODE, 1.0,
-- if the GLOBAL1_CURR_CODE is equal to the DOC_CURR_CODE then return 1.0 else...
IIF(DOC_CURR_CODE = 'STAT', 1.0,
-- if the DOC_CURR_CODE is equal to 'STAT' (for statistical journals) then return 1.0 else...
IIF(GLOBAL1_CURR_CODE = LOC_CURR_CODE, DOC_TO_LOC_EXCH_RATE_VAR,
-- if the GLOBAL1_CURR_CODE is equal to the LOC_CURR_CODE then return the column DOC_TO_LOC_EXCH_RATE_VAR else...
:LKP.LKP_W_EXCH_RATE(DOC_CURR_CODE, GLOBAL1_CURR_CODE, EXCH_DT,GLOBAL1_RATE_TYPE, DATASOURCE_NUM_ID)))))
-- perform a lookup using the LKP_W_EXCH_RATE transformation (you will see this lookup on it's own in the mapplet; the colon notation above is another way to reference a lookup transformation, instead of using connectors). The five columns in the brackets are used as inputs for the lookup, if a matching record is found in the lookup table then the EXCH_RATE column is returned (check out the LKP_W_EXCH_RATE transformation for the port marked as Output).
Please mark if helpful / correct,
Andy
www.project.eu.com

Similar Messages

  • Could you please help me understand the logic behind certain things in OSX?

    Ok, so I try to be an open-minded guy, and I bear no particular allegiance to either OS. I own a Sony TZ and a Mac mini, and my wife has a MacBook Pro. I use both Oses.
    There are certain things I have trouble understanding in th Mac OS, so what I'd really like to understand the logic behind certain design decisions in the OS, and why these might be better ways of accomplishing things. I know how to get around all of the things I mention, so I'm not looking for instructions; rather I'm looking for well-thought out explanations for why these features are the way they are.
    *1. Programs don't quit when you close the window.*
    - This totally puzzles me. Why design it so that program windows are independent are from the running program itself? There must be a reason, cold someone explain how this is more efficient? To me, it's simpler to click an X on the window you are working on to completely shut down a program, rather than to either mouse through menus to select quit, or be obligated to using Command Q keyboard shortcut.
    *2. Menu bars are on the desktop.*
    - Related to the first point, why make the main thing framing your desktop be something which is always changing depending on the program? Why have file menus outside the main window of the program. Having the menu bar on the desktop then necessitates an additional area, the dock, which has to be used as a launch bar and to tell you what programs are currently running. That obligates you to having 3 different areas of screen: 1 for program menus, 1 for running programs, and the program window itself. This seems very inefficient to me. Not to mention all the messy-looking floating palettes all over the place, again because everything is separated and not nicely contained in a single program window.
    - Really, having a changing menu bar that frames the desktop isn't even consistent wth the whole desktop metaphor, which is that you place things on a desktop, like programs, files, etc. Are you changing the whole desk everytime you load a new program, yet the wallpaper stays the same? Doesn't seem to be logically consistent to me.
    *3. No delete key.*
    - This one really gets me. Why make such a commonly used key be a function key (Fn + Backspace)? Why make the user press a secondary key for a major function?
    *4. No Cut command.*
    - I read something about how Cut doesn't actually make sense when moving files around, but I obviously didn't fully understand it. Why make the user command drag, when you can just do Ctrl X??.
    *5. Launching Apps from the Finder.*
    - This seems weird to me, that you find and launch applications from the same thing you use to view files. Program icons in the finder are placeholders for the entire program, not files, yet they are found in the file viewer. Again, to me this seems logically mixed. I really dislike scrolling through Finder to look for apps. I know there is Spotlight and the dock (used as a quicklauncher), but these are really just workarounds for a setup which seems inherently illogical. To me at least, a menu of applications make more sense, ie, the start menu.
    Anyway, those are all I can think of now, although there are other things aout OSX that don't make sense to me.
    Thanks in advance! If I can understand Apple's reasoning and it is convincingly better, that will go a long way towards making me more comfortable with this OS.

    1. Programs don't quit when you close the window.
    That's really more a matter of what you're used to. It comes down to a programming decision as to what Apple and Microsoft considered to make sense. MS thinks that if there are no open windows, you're done using the app. Apple thinks you aren't necessarily done yet, as others have mentioned. I certainly wouldn't want Photoshop to quit every time I closed the last open image I was working on. Would be nice though if Safari would quit when I close the last open browser window. It's quick to relaunch if you really weren't done with it, so wouldn't be much of a bother to have it shut down with the last window.
    2. Menu bars are on the desktop.
    Makes way more sense the Microsoft's approach of repeating the same file menu on every open document in a program. How many places do you need to see File, Options and other common menu headings?
    2. Menu bars are on the desktop.
    Related to number two. The forward app is the only one you can directly work in, so why not have the menu bar change to reflect the choices for that application? When you go back to the previous app you were in, the menu bar changes back. So what loss of functionality is there? It comes back to not having menu bars on every single open window. There's no need or purpose for it.
    3. No delete key.
    Backspace does the same thing.
    4. No Cut command.
    Command+X, not Ctrl+X. This is Mac, not Windows. There's also very little need to ever do this from the keyboard. If you're moving files that are on the same drive/partition, then just drag and drop from the target folder window to the source. It's automatically a move. If going from one physical drive or partition to another, it's automatically a copy. Press and hold the Command key during the drag to make it a move.
    Besides, you don't really think Windows cuts the entire folder or file contents into RAM, do you? If your computer has 4 GB of RAM, and you cut 12 GB of data, it of course can't possibly fit in the clipboard. All Windows does when you do a cut is visually remove the files and folders from the screen. If the items are going to a location on the same drive/partition, it does the same thing as if you did a drag and drop move. The file table is simply updated to reflect the new file or folder locations. If it's to a different drive/partition, it then performs a copy then delete action, same as OS X.
    5. Launching Apps from the Finder.
    A program is just as much a file as any other file. It takes up space on the drive. The OS of course knows what to do with it when you double click an app. Same as it knows what to do when you double click a document related to an app. Windows is no different. An .exe file is also just as much a file as a .doc file. The .exe extension tells Windows to try and treat it as a program to load into RAM. It's not just a simple placeholder. The program has to be made up of something.

  • Need help in understanding the logic

    i've been told to develop the mail application for sending the messages.the clients should automatically receive the mail.since the clients have the browser to handle all mails,do u think there is no need to code on the receiving end.Also give me an idea as to how i should retrieve the client details from the huge database

    hai Shanu my job is i'm not worried about the receiving side.i'm just sending the message.all that is left for me is to figure out the clients to whom i hav to send mail.middleware in the sense i don't exactly understand it.so can u plz give me a detailed picture about it
    regards
    coded

  • Error Posting IDOC: need help in understanding the following error

    Hi ALL
    Can you please, help me understand the following error encountered while the message was trying to post a IDOC.
    where SAP_050 is the RFC destination created to post IDOCs
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_IDOC_RUNTIME</SAP:Code>
      <SAP:P1>FM NLS_GET_LANGU_CP_TAB: Could not determine code page with SAP_050 Operation successfully executed FM NLS_GET_LANGU_CP_TAB</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error: FM NLS_GET_LANGU_CP_TAB: Could not determine code page with SAP_050 Operation successfully executed FM NLS_GET_LANGU_CP_TAB</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Your help is greatly appreciated.............Thank you!

    Hi Patrick,
      Check the authorizations assigned to the user which you used in the RFC destinations, If there is no enough authorizations then it is not possible to post the idocs.
    Also Refer this Note 747322
    Regards,
    Prakash

  • Can you help me understand the use of the word POSITION in TR and CFM?

    Hi,
    I am trying to have a view of typical BI reports in TR and TM/CFM so through my research I came to the following link:.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/62/08193c38f98e1ce10000000a11405a/frameset.htm
    My problem on this link and other postings on this site seem to be the same. Can you help me understand the use of the word POSITIONS in these context:
    1. Our client has asked for financial transaction reports in BW, such as position of Borrowings, Investments and Hedge Operations (TM data).
    2. I have a requirement on, some reports related to Money Market (Fixed Term Deposits, Deposits at Notice) something on FSCM-Treasury and Risk Manager. These reports will be similar to that of Loans, i.e. Position statement, flow statement, etc.
    3. The set of position values for a single position or a limited amount of positions can be reported by transactions TPM12 and TPM13 in R3.
    4. 0CFM_C10 (Financial Positions Cube)
    Do you have some simple report outputs to help clarify how the word POSITION is used in such environments?
    Thanks
    Edited by: AmandaBaah on Feb 15, 2010 4:39 PM

    If I future buy 10 shares in company at £1 per share - at the end of the day my potential value is £10
    The next day the shares drop tp £0.9 per share - I have a negative position - my shares are only worth £9
    I haven;t bought them yet - but I have a negative position - ie if things stayed as they are - I am going to realise (ie end up with)  a loss
    Now you can use this for loans and foreign exchange banks as well...

  • Need help for understanding the behaviour of these 2 queries....

    Hi,
    I need your help for understanding the behaviour of following two queries.
    The requirement is to repeat the values of the column in a table random no of times.
    Eg. A table xyz is like -
    create table xyz as
    select 'A' || rownum my_col
    from all_objects
    where rownum < 6;
    my_col
    A1
    A2
    A3
    A4
    A5
    I want to repeat each of these values (A1, A2,...A5) multiple times - randomly decide. I have written the following query..
    with x as (select my_col, trunc(dbms_random.value(1,6)) repeat from xyz),
    y as (select level lvl from dual connect by level < 6)
    select my_col, lvl
    from x, y
    where lvl <= repeat
    order by my_col, lvl
    It gives output like
    my_col lvl
    A1     1
    A1     3
    A1     5
    A2     1
    A2     3
    A2     5
    A3     1
    A3     3
    A3     5
    A4     1
    A4     3
    A4     5
    A5     1
    A5     3
    A5     5
    Here in the output, I am not getting rows like
    A1     2
    A1     4
    A2     2
    A2     4
    Also, it has generated the same set of records for all the values (A1, A2,...,A5).
    Now, if I store the randomly-decided value in the table like ---
    create table xyz as
    select 'A' || rownum my_col, trunc(dbms_random.value(1,6)) repeat
    from all_objects
    where rownum < 6;
    my_col repeat
    A1     4
    A2     1
    A3     5
    A4     2
    A5     2
    And then run the query,
    with x as (select my_col, repeat from xyz),
    y as (select level lvl from dual connect by level < 6)
    select my_col, lvl
    from x, y
    where lvl <= repeat
    order by my_col, lvl
    I will get the output, exactly what I want ---
    my_col ....lvl
    A1     1
    A1     2
    A1     3
    A1     4
    A2     1
    A3     1
    A3     2
    A3     3
    A3     4
    A3     5
    A4     1
    A4     2
    A5     1
    A5     2
    Why the first approach do not generate such output?
    How can I get such a result without storing the repeat values?

    If I've understood your requirement, the below will achieve it:
    SQL> create table test(test varchar2(10));
    Table created.
    SQL> insert into test values('&test');
    Enter value for test: bob
    old   1: insert into test values('&test')
    new   1: insert into test values('bob')
    1 row created.
    SQL> insert into test values('&test');
    Enter value for test: terry
    old   1: insert into test values('&test')
    new   1: insert into test values('terry')
    1 row created.
    SQL> insert into test values('&test');
    Enter value for test: steve
    old   1: insert into test values('&test')
    new   1: insert into test values('steve')
    1 row created.
    SQL> insert into test values('&test');
    Enter value for test: roger
    old   1: insert into test values('&test')
    new   1: insert into test values('roger')
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select lpad(test,(ceil(dbms_random.value*10))*length(test),test) from test;
    LPAD(TEST,(CEIL(DBMS_RANDOM.VALUE*10))*LENGTH(TEST),TEST)
    bobbobbobbobbobbobbobbobbobbob
    terryterry
    stevestevesteve
    rogerrogerrogerrogerrogerrogerrogerrogerrogerYou can alter the value of 10 in the SQL if you want the potential for a higher number of names.
    Andy

  • Need help in understanding the error ORA-01843: not a valid month - ECX_ACT

    Hello All,
    We need help in understanding the Transaction Monitor -> Processing Message (error "ORA-01843: not a valid month - ECX_ACTIONS.GET_CONVERTED_DATE").
    And how to enable the log for Transaction Monitor -> Processing Logfile.
    Actually we are trying to import the Purchase Order XML (OAG) into eBusiness Suite via BPEL Process Manager using the Oracle Applications Adapter. The process is working fine with expected payload until it reaches the XML Gateway Transaction Monitor, where we are getting this error.
    thanks
    muthu.

    Hello All,
    We need help in understanding the Transaction Monitor -> Processing Message (error "ORA-01843: not a valid month - ECX_ACTIONS.GET_CONVERTED_DATE").
    And how to enable the log for Transaction Monitor -> Processing Logfile.
    Actually we are trying to import the Purchase Order XML (OAG) into eBusiness Suite via BPEL Process Manager using the Oracle Applications Adapter. The process is working fine with expected payload until it reaches the XML Gateway Transaction Monitor, where we are getting this error.
    thanks
    muthu.

  • I need help in understanding the customization of Landscape in R/3.

    I need help in understanding the customization of Landscape in R/3. Setup of SAP Landscape from an SAP SD point of view. Being as SAP SD consultant what would be my role in customizing the Landscape server. Help needed. Thx

    Hi,
    In a standard SAP project implementation, the 3 standard transport procedures are:
    Development System (DEV) --> QA System (QAS) --> Production System (PRD)
    In the above structure, the Training Client (TRN) could be made from the copy of PRD (after when real-time master data has been available) or from QA system (where configuration has been tested in DEV client, and the master data is uploaded manually for training purposes)
    Sandbox (standalone): This can be refreshed with Golden Client to reflect the latest configuration performed to facilitate the development/testing purposes.
    -Development (DEV): Where all system configurations and development activities are carried out.
    -Quality Assurance (QAS): Where functional testing is carried out. The System Integration Testing (carried out by the -Development Team) and the User Acceptance Testing (carried out by XXX appointed personnel) is carried out in this server.
    -Training (TRN): End Users are trained on this server.
    -Production (PRD): After the System is commissioned all data entry and administrative functions will be carried out in this server.
    This is by far the standard landscape architecture that is adopted and practiced in most implementations.
    Hope the above helps.
    Thanks.

  • Please help to understand the Service parts planning,we r tring to do poc for project

    Hi
    Please help to understand the Service parts planning,we r tring to do poc for project
    1)How the sales history flow from cube to Interactive forecasting screen(like dp in apo there is no Planning area to store data and no load planning area from cube,so please let me know how it will load data?)
    2)How the Final demand will flow to DRP for further planning?
    3)What is the exact purpose of BOD?
    4)What is the leading indicator forecasting and the purpose?
    5)Where data will store in SPP (forecasting and other data like liveache in dp)?
    6)Product interchangeability and use?
    6)Can you please forward the process document to understand the flow as i am not able understand the help document
    Thanks for advance help
    Regards
    kkk

    Hi,
    Please check Service Part Supply Plan - Enterprise Services in SAP Advanced Planning and Optimization - SAP Library
    BR

  • Please help to understand the Service parts planning doubts/clarifications

    Please help to understand the Service parts planning,we r tring to do poc for project
    1)How the sales history flow from cube to Interactive forecasting screen(in spp,like dp in apo there is no Planning area to store data and no load planning area from cube,so please let me know how it will sales history load data?)
    2)Does Sales History of the child location will agregated to entry level ? if so like that we need to run statistical forecats at entry location?
    3)where we will create the from and To Product(eg:Maping Product A to Product B ) to do the Relignment /Phase in profile/Interchangebility
    4)What is the leading indicator forecasting and the purpose?
    5)Where data will store in SPP (forecasting and other data like liveache in dp)? Mpos and Planning area is not there in SPP?
    6)Can you please forward the process document to understand the flow as i am not able understand completely by the help document
    Thanks for advance help
    Regards
    KKK

    Hi,
    Please check Service Parts Planning - Enterprise Services in SAP Advanced Planning and Optimization - SAP Library
    BR

  • Help needed on the logic used to display ERP Sales order in CRM WEB UI

    Hi,
    I have a requirement where i need to trigger an activity/workflow in CRM for orders that are created through ERP Salesorder functionality. In the workflow list, we need to give the order description and provide an hyperlink to the order number. on selection of order number, it should display the ERP sales order. To achive this in workflow, i am trying to understand the as-is standard functionality which is available in Agent Inbox search on ERP sales order.This search is getting the ERP orders and on selecting the order it is opening the ERO sales order page. I tried debugging the method GET_MAINCATAEGORY available in the component iccmp_inbox and in the view Inboxsearch.But couldnt really able to crack the logic how it is retrieving the ERP sales order from inbox search. Any pointers on how this is achieved will be of great help.
    Thanks,
    Udaya

    Hi Denis,
    very good idea. I thougt myself about that workaround, but it is not really that for what I searched.
    I mean the "SAP Query" is a really good standard tool, that are used by many customers. That is why think there must be a standard way to display the SAP Query in the Web UI without using Transaction Launcher.
    But it seems that there is no way, except of the transaction launcher or by using an additional analyse system like SAP BI.
    By the way do you know a Web UI compoment which enable the user to start reports like SE38?
    Regards
    Fabian

  • Help with understanding the Home Folder plus User Accounts

    I just got the IMac (replacing an ageing...that is an understatement...Grape iMac from long ago) and this is my first go at the OSX. My previous iMac had OS9.2
    I am having a problem understanding the Home folder and the Users to a point. The concepts are fine, it is the changing of names that is the problem. When I first started the iMac and went through the set-up and finally looked at the file structure, there was the Home Folder with a name, which i guess was pre-entered during set-up since I did not enter it (lets call it JOE). There was also 1 User, JOE with all the iLife folders. Since I did not like the name, i went to the Systems Preferences, into Accounts and found that JOE is an Admin. So, I changed the name to, lets say BILL, who still is an Admin. I also changed some settings and made BILL the auto log account. OK so far I am happy. I go back to the HD and find that now there are 2 users (folders), BILL and JOE, and that the Home Folder is still named JOE butall the iLife files are now under BILL.
    So I went and also renamed the Home Folder to BILL, so everything looks fine. But when I restarted the iMac latter it lost all the settings (mouse, etc.) This is really getting confusing.
    Here is what I want to do (after some reasearch):
    I want to change the Short Name (JOE) but so far I have read that you can not do that. Where did this name come from (basically my first initial and my last name) because I don't want my Home Folder to be named that. I found somewhere that the only way to do that is an Erase and Install. I am willing to do that since I have a backup of all the iLife files on an external disk anyways and I have not put anything new yet.
    Can someone enlighten me as to what would be the best course of action....this Short Name thing is frustrating.
    iMac 20" 2.33MHz   Mac OS X (10.4.9)  

    Welcome To Discussions kapklo!
    First you need to sort out the extra Home folder issue, that was created by changing the Short Names.
    The info in one or more of the articles linked to below, will help you with that.
    Return to Default Desktop, Apparent "Loss" of Home Directory
    My home folder and desktop are different than before
    Recover from renaming your Home folder, authored by Dr Smoke
    Then you can change the Short Name using this Change Short Name The Easy Way.
    Or you could do an Erase & Install, making sure you enter your preferred Short Name, during the setup process.
    ali b

  • Help in understanding the MouseRotate Source code.(Source code attached)

    Hi
    I am trying to understand the code here in the class below. The description says MouseTranslate is a Java3D behavior object that lets users control the
    translation (X, Y) of an object via a mouse drag motion with the third mouse button (alt-click on PC). See MouseRotate for similar usage info I was able to locate the isAltDown() and isMetaDown conditions. But could not figure out where is the condition (evt.getButton() == MouseEvent.Button1) is being checked.
    I have spent too much time on this, any help is greatly appreciated.
    Thanking you
    Venkat
    package com.sun.j3d.utils.behaviors.mouse;
    * MouseTranslate is a Java3D behavior object that lets users control the
    * translation (X, Y) of an object via a mouse drag motion with the third
    * mouse button (alt-click on PC). See MouseRotate for similar usage info.
    public class MouseTranslate extends MouseBehavior {
        double x_factor = .02;
        double y_factor = .02;
        Vector3d translation = new Vector3d();
        private MouseBehaviorCallback callback = null;
         * Creates a mouse translate behavior given the transform group.
         * @param transformGroup The transformGroup to operate on.
        public MouseTranslate(TransformGroup transformGroup) {
         super(transformGroup);
         * Creates a default translate behavior.
        public MouseTranslate(){
         super(0);
         * Creates a translate behavior.
         * Note that this behavior still needs a transform
         * group to work on (use setTransformGroup(tg)) and
         * the transform group must add this behavior.
         * @param flags
        public MouseTranslate(int flags) {
         super(flags);
         * Creates a translate behavior that uses AWT listeners and behavior
         * posts rather than WakeupOnAWTEvent.  The behavior is added to the
         * specified Component. A null component can be passed to specify
         * the behavior should use listeners.  Components can then be added
         * to the behavior with the addListener(Component c) method.
         * @param c The Component to add the MouseListener
         * and MouseMotionListener to.
         * @since Java 3D 1.2.1
        public MouseTranslate(Component c) {
         super(c, 0);
         * Creates a translate behavior that uses AWT listeners and behavior
         * posts rather than WakeupOnAWTEvent.  The behaviors is added to
         * the specified Component and works on the given TransformGroup.
         * A null component can be passed to specify the behavior should use
         * listeners.  Components can then be added to the behavior with the
         * addListener(Component c) method.
         * @param c The Component to add the MouseListener and
         * MouseMotionListener to.
         * @param transformGroup The TransformGroup to operate on.
         * @since Java 3D 1.2.1
        public MouseTranslate(Component c, TransformGroup transformGroup) {
         super(c, transformGroup);
         * Creates a translate behavior that uses AWT listeners and behavior
         * posts rather than WakeupOnAWTEvent.  The behavior is added to the
         * specified Component.  A null component can be passed to specify
         * the behavior should use listeners.  Components can then be added to
         * the behavior with the addListener(Component c) method.
         * Note that this behavior still needs a transform
         * group to work on (use setTransformGroup(tg)) and the transform
         * group must add this behavior.
         * @param flags interesting flags (wakeup conditions).
         * @since Java 3D 1.2.1
        public MouseTranslate(Component c, int flags) {
         super(c, flags);
        }Rest of the code follows in the next post

        public void initialize() {
         super.initialize();
         if ((flags & INVERT_INPUT) == INVERT_INPUT) {
             invert = true;
             x_factor *= -1;
             y_factor *= -1;
         * Return the x-axis movement multipler.
        public double getXFactor() {
         return x_factor;
         * Return the y-axis movement multipler.
        public double getYFactor() {
         return y_factor;
         * Set the x-axis amd y-axis movement multipler with factor.
        public void setFactor( double factor) {
         x_factor = y_factor = factor;
         * Set the x-axis amd y-axis movement multipler with xFactor and yFactor
         * respectively.
        public void setFactor( double xFactor, double yFactor) {
         x_factor = xFactor;
         y_factor = yFactor;   
        public void processStimulus (Enumeration criteria) {
         WakeupCriterion wakeup;
         AWTEvent[] events;
         MouseEvent evt;
    //      int id;
    //      int dx, dy;
         while (criteria.hasMoreElements()) {
             wakeup = (WakeupCriterion) criteria.nextElement();
             if (wakeup instanceof WakeupOnAWTEvent) {
              events = ((WakeupOnAWTEvent)wakeup).getAWTEvent();
              if (events.length > 0) {
                  evt = (MouseEvent) events[events.length-1];
                  doProcess(evt);
             else if (wakeup instanceof WakeupOnBehaviorPost) {
              while (true) {
                  // access to the queue must be synchronized
                  synchronized (mouseq) {
                   if (mouseq.isEmpty()) break;
                   evt = (MouseEvent)mouseq.remove(0);
                   // consolodate MOUSE_DRAG events
                   while ((evt.getID() == MouseEvent.MOUSE_DRAGGED) &&
                          !mouseq.isEmpty() &&
                          (((MouseEvent)mouseq.get(0)).getID() ==
                        MouseEvent.MOUSE_DRAGGED)) {
                       evt = (MouseEvent)mouseq.remove(0);
                  doProcess(evt);
         wakeupOn(mouseCriterion);
        void doProcess(MouseEvent evt) {
         int id;
         int dx, dy;
         processMouseEvent(evt);
         if (((buttonPress)&&((flags & MANUAL_WAKEUP) == 0)) ||
             ((wakeUp)&&((flags & MANUAL_WAKEUP) != 0))){
             id = evt.getID();
    *         if ((id == MouseEvent.MOUSE_DRAGGED) && !evt.isAltDown() && evt.isMetaDown()) { *
              x = evt.getX();
              y = evt.getY();
              dx = x - x_last;
              dy = y - y_last;
              if ((!reset) && ((Math.abs(dy) < 50) && (Math.abs(dx) < 50))) {
                  //System.out.println("dx " + dx + " dy " + dy);
                  transformGroup.getTransform(currXform);
                  translation.x = dx*x_factor;
                  translation.y = -dy*y_factor;
                  transformX.set(translation);
                  if (invert) {
                   currXform.mul(currXform, transformX);
                  } else {
                   currXform.mul(transformX, currXform);
                  transformGroup.setTransform(currXform);
                  transformChanged( currXform );
                  if (callback!=null)
                   callback.transformChanged( MouseBehaviorCallback.TRANSLATE,
                                     currXform );
              else {
                  reset = false;
              x_last = x;
              y_last = y;
             else if (id == MouseEvent.MOUSE_PRESSED) {
              x_last = evt.getX();
              y_last = evt.getY();
         * Users can overload this method  which is called every time
         * the Behavior updates the transform
         * Default implementation does nothing
        public void transformChanged( Transform3D transform ) {
         * The transformChanged method in the callback class will
         * be called every time the transform is updated
        public void setupCallback( MouseBehaviorCallback callback ) {
         this.callback = callback;
    }

  • Please help me on the logic.

    Hi,
      Please help me the logic below my requirement.I found one function module to calculate the age
    HR_RU_AGE_YEARS.But iam not able to implement the logic.Please help me.
    If the value in table P0021-SUBTY = 1 send 'SP'
    If the value in table P0021-SUBTY = 2 send 'CH'
    Also use Condition Logic to check the age of Child in IT0021-FGBDT. If FGBDT =21 years or greater then Check the Student indicator on IT0021 if it is checked then set 'ST' on full file else set 'CH'.
    For Disabled Dependent check to see if the indicator in P0106-DISAB is set to X i.e. yes. If its Yes then set 'DD' on full file.
    DD takes precendence over 'CH'.  Send termination record for students on their 26th Birthday.
    Regards,
    Sujan

    Hi,
    You can use function module HR_HK_DIFF_BT_2_DATES with date1 as sy-datum and date2 as DOB from pa0002 to calculate age.
    Regards,
    Kanupriya

  • Need help to understand the MEMORY output on WLC

    Hi All,
    Will be glad if someone can help me to understand the below output from WLC. Actually i want to know the FLASH & RAM size of my WLC so what i did. I run the command '' show memory statistics'' and below is what i have got. Can someone elaborate this
    System Memory Statistics:
    Total System Memory............: 259112960 bytes  (i believe this is the flash size 256Mb ???)
    Used System Memory.............: 154288128 bytes
    Free System Memory.............: 104824832 bytes
    Bytes allocated from RTOS......: 13717504 bytes
    Chunks Free....................: 24 bytes
    Number of mmapped regions......: 37
    Total space in mmapped regions.: 23429120 bytes
    Total allocated space..........: 13399760 bytes
    Total non-inuse space..........: 317744 bytes
    Top-most releasable space......: 61832 bytes
    Total allocated (incl mmap)....: 37146624 bytes
    Total used (incl mmap).........: 36828880 bytes
    Total free (incl mmap).........: 317744 bytes

    Hi Salman,
    Yes, that value give the RAM size of your WLC.
    259112960 bytes  valued correlated to ( or 23040 KB or ~248 MB ) dividing by 1024. So I think it is 256MB RAM.
    I do not think flash size can be determine by this output.
    Refer this post as it relate to your query as well
    https://supportforums.cisco.com/discussion/12023396/ram-size-5508-and-5760-wireless-lan-controllers
    HTH
    Rasika
    *** Pls rate all useful responses ****

Maybe you are looking for

  • Export thousands of entries to separate files

    I don't know scripting. But I would sure like to find a script to do this little thing for me! Some background is necessary: Years ago, I was a dedicated HyperCard user. (If you know what I mean then you know my pain). I had a rolodex phone book with

  • Iris blur shows black picture

    Hi everbody, I have been looking around the forums and other webpages but haven't found a soluten yet - maybe you can help me. In Photoshops CS6 when applying an Iris blur the picture turns black. When I move the pins around I see the picture but thi

  • Express, motorola sbg900 and g3

    1. can't use airport express assistant. i receive this error: this computer does not have a wireless card installed 2. itunes (6.0.1) does not recognize the express. express is connected to my receiver about 15 ft. away 3. express does nt recognize m

  • Hard disk of what brand is used in MacBook by default?

    Maybe someone can call me the brands or even the models of HDD, that is used in MacBooks?

  • Creating a sitemap late in the game

    I've created an entire site using a single template and about 7 pages. I've been told that the site map is how search engines find your site info. What is the best way to create one for an existing site? Is there a better way to make sure search engi