MOD not giving up correct values

Hi everyone,
I am having problem on using MOD in Director, i wrote the
following in director:
put (3054452055 mod 16)
-----giving result "-9"
The value/result it gives me is not correct. It should be
"7". But director is giving me "-9".
So, the same thing i did in FLash by just simply putting the
following:
trace(3054452054445%16);
and it gives me correct answere.
So, i want to know why Director is mis calculating the simple
calculations ??
Amir

If I'm remembering correctly, the cause of your problem is
that lingo ends up returning strange negative numbers if the result
of your equation is greater than a certain number (Often it's
-2147483647 but I suppose it could return -9 because of the MOD
part of the equation) You can find more information on this
here.
Best of luck,
Johnathon

Similar Messages

  • Report not giving Output correctly

    hi all
    The problem is about Pending invoice report. But this report is not giving output correctly.
    Plz help me to solve the problem.
    Thanks
    Subhasish

    Hi Mishra,
    Invoice output is coming correctly- assuming you have calculation error then check the print program assigned to your invoice output condition type. It must be having some logic error.
    If the issue is with improper formatting then check the layout assigned to your invoice output conditon. You can check both the program and layout assingment to ouput condition at NACE transaction.
    This is regular task which abapers can do with ease. so please take their help. They can just do a simple debug to understand the issue.
    regards
    sadhu kishore

  • COPA Derivation Rules are not assigning the correct values

    COPA Derivation Rules are not assigning the correct values when we process billing documents in batch.  We currently have derivation rules defined to take the ship to country and refer to custom tables were we identify custom geographic groups (INT/DOM and EAM, AP, etc.).  The derivation rules work accurately when the billing documents are created individually, and more than 75% of them are accurate when generated in batch, but in some circumstances, it populates the derived values with the wrong field and we can not identify where or why that's happening.  It looks like it may have something to do when the ship to customer number account group is different, but that's not consistent..  Does anyone know how or where these values get populated, or have any ideas why incorrect values are appearing sporadically throughout the billing run?  Thanks!!!

    Leigh,
    Apparently the function module is changing the values for some billing docs. Check one of the following user exits, if it gets triggered and the values are changed:
    COPA0001  Enhancement for derivation in Profitability Analysis (CO-PA)
    Function Module: EXIT_SAPLKEDRCOPA_001
    COPA0002  Enhancement for valuation in Profitability Analysis (CO-PA)
    Function Module: EXIT_SAPLKEAB_001
    COPA0003  Enhancement for assignment to profitability segment (CO-PA)
    Function Module: EXIT_SAPLKEAK_001
    COPA0005  Enhancement for actual data update (CO-PA)
    Function Module: EXIT_SAPLKEII_001
    Function Module: EXIT_SAPLKEII_002
    Award suitable points if the above helps. You can also reach me at [email protected]
    Thanks
    Ajay

  • J_1IRG23D Table was not updated With Correct Values While Doing MIGO

    Hi Friends,
    I am new to the Excise duty , facing a proble in CIN -While doing MIGO, the Excise Calculation are coming correct values (i.e 10% ),but in the table it was not updated correctly (J_1IRG23D) only one entry is showing wrong ,the other entries in the table are correct.
    In table -J_1IEXCDTL the EXBED it was with correct value 10% of the Base value
    But In table -J_1IRG23D the EXBED,ADE,CESS It was updated with 0.06% on the base value .its gives wrong value
    Kindly help in this issue.
    Regards
    Siva

    Hi,
    Go to T Code - J2I5 (not 215 it is j 2 i 5) enter details and select register PLA Check box and execute. This can be extracted many times - no problem.
    After J2i5 balance will update in registers including tables.
    Ramesh

  • Query not giving the correct result

    select Project_id, contractno
    from elf_transactions
    where(rtrim(contractno),rtrim(project_id)) not in
    (select rtrim(contractno),rtrim(projectid)
    from contract_proj
    where report_month='1-May-2007' )
    when I m firing this query, it is not giving correct result to me, it also select the recorts which are matches in both the table
    i want to fine out those contract, with projectid which are not in contract_proj table
    Please help me in this regard

    CREATE TABLE ELF_TRANSACTIONS
    VENDOR_ORDER_REF VARCHAR2(60 BYTE),
    BT_SUB_CON_REF VARCHAR2(10 BYTE),
    PR_NO VARCHAR2(15 BYTE),
    PO_NO VARCHAR2(15 BYTE),
    PR_PO_DESCR VARCHAR2(200 BYTE),
    ONE_IT_PROG VARCHAR2(50 BYTE),
    BT_DEL_MANAGER_NAME VARCHAR2(40 BYTE),
    DELIVERY_TYPE VARCHAR2(5 BYTE),
    ACTUAL_DEP_DATE DATE,
    ASSOC_ASG_BR_QUE VARCHAR2(50 BYTE),
    PRE_AVG_P1_P2_INC_CNT NUMBER(3),
    POST_P1_P2_INC NUMBER(3),
    PERC_GROWTH_POST_REL NUMBER(3),
    VENDOR_DEL_MANAGER VARCHAR2(50 BYTE),
    REPORT_MONTH DATE,
    COMMENTS VARCHAR2(200 BYTE),
    PROJECT_ID VARCHAR2(20 BYTE),
    CONTRACTNO VARCHAR2(15 BYTE),
    CONTRACT_TYPE NVARCHAR2(15),
    IDUNO VARCHAR2(10 BYTE),
    STATUS VARCHAR2(10 BYTE),
    DESCRIPTIONCODEDELIVERABLE VARCHAR2(255 BYTE),
    UNIQUEID VARCHAR2(255 BYTE),
    LOCK_RECORD CHAR(1 BYTE),
    VERIFIED CHAR(1 BYTE),
    VERIFIED_BY VARCHAR2(40 BYTE),
    BT_VERIFIED CHAR(1 BYTE),
    BT_VERIFIED_BY VARCHAR2(40 BYTE)
    CREATE TABLE CONTRACT_PROJ
    CONTRACTNO VARCHAR2(10 BYTE),
    PROJECTID VARCHAR2(20 BYTE),
    IDUNO VARCHAR2(10 BYTE),
    CH_EMPID VARCHAR2(8 BYTE),
    CHNAME VARCHAR2(40 BYTE),
    GH_EMPID VARCHAR2(8 BYTE),
    GHNAME VARCHAR2(40 BYTE),
    PM_EMPID VARCHAR2(8 BYTE),
    PMNAME VARCHAR2(40 BYTE),
    SPM_EMPID VARCHAR2(8 BYTE),
    SPMNAME VARCHAR2(40 BYTE),
    PRJ_MONTH DATE,
    BT_CONTRACT CHAR(1 BYTE)
    REPORT_MONTH     COMMENTS     PROJECT_ID     CONTRACTNO     CONTRACT_TYPE     IDUNO     STATUS     DESCRIPTIONCODEDELIVERABLE     UNIQUEID
    06/01/2007 00:00:00          1287     TML007452               OPEN     Delivery of CRs DM CD and NSI     N/A
    06/01/2007 00:00:00          1280     TML007452               OPEN     Delivery of CRs H&W OOR and WLTO     N/A
    06/01/2007 00:00:00          1231     TML007452               OPEN     Delivery of CRs H&W OOR WLTO     
    06/01/2007 00:00:00          1097     TML007679               OPEN     High Level Roadmap for Global Services and Wholesale with Feasibility study into BTR access to Switc     N/A
    06/01/2007 00:00:00          405     TML007942               OPEN     RTRCC DEVELOPMENT -Q107     
    06/01/2007 00:00:00          405     TML007919               OPEN     WLR3 DEVELOPMENT-Q107     
    06/01/2007 00:00:00          1170     TML008439               OPEN     R-510     
    CONTRACTNO     PROJECTID     IDUNO     CH_EMPID     CHNAME     GH_EMPID     GHNAME     PM_EMPID     PMNAME     SPM_EMPID     SPMNAME     PRJ_MONTH     BT_CONTRACT
    MBT003060     176     BT06     8694     Soman Sameer Surendra     1054     Bhadti Shripad Shivram     1054     Bhadti Shripad Shivram     1420     Rao Darbhamulla Kameswara     05/01/2007 00:00:00     N
    MBT003842     1156     BT12     19992     Kalle Ajit Ashutosh     1539     Padgaonkar Shailesh Vishwanath     13948     Khunte Milind Vasant     16426     Kulkarni Vinay     05/01/2007 00:00:00     Y
    MBT004677     458     BT09     20275     Mundassery George     5044     Kamalapurkar Leena Shrinivas     12849     Dave Ajay Yogeshchandra     2017     KIRKIRE SONAL MADHUKAR     05/01/2007 00:00:00     N
    MBT004695     362     BT13     20276     Ghosh Sankar     2624     Avachat Jagdish Vasantrao     13592     Pal Sudipta     2624     Avachat Jagdish Vasantrao     05/01/2007 00:00:00     N
    MBT004826     VITRIA     BT09     20275     Mundassery George     26099     Saha Debendra Kumar     28134     Hinge Anand Sharad     12777     Karandikar Sumedh Vidyadhar     05/01/2007 00:00:00     Y
    MBT004924     1027     BT03     1451     Tillu Ashirwad     15693     Devaraj Daniel G     6867     Jadhav Satyajit Ramesh     15693     Devaraj Daniel G     05/01/2007 00:00:00     N
    MBT004927     1025     BT05     4436     Kelkar Subhash Manohar     20379     Gore Sujeet Narayan     13704     Vignesh Chandrasekaran     4347     BIJNORI REHANA GULAMWARIS     05/01/2007 00:00:00     N
    MBT004927     1092     BT05     4436     Kelkar Subhash Manohar     15094     Jain Jitendra     13350     Bokil Shripad Raghunath     9511     Markande Balchandra Narayan     05/01/2007 00:00:00     N
    MBT004927     1213     BT09     20275     Mundassery George     19996     Vege Sridhar     16401     Sibgathulla Mohammed     19996     Vege Sridhar     05/01/2007 00:00:00     N

  • Control not outputting the correct value

    Hello,
    I have a producer consumer architecture with a queue to pass values. I want to push a new value onto the array using "Insert into Array" when a button is pressed, but when I do the previous value is being read the first time and the correct value on the second press.
    I'm self taught and it's my first time using the queue so maybe something I'm not seeing/thinking about there?
    Version 8 VI Attached.
    Do this to see the problem:
    1. Run
    2. Click "Master Read"
    3. Change "Value"
    4. Click "Master Read"
    5. Click "Master Read"
    Any help is appreciated including block diagram critique.
    Thanks!
    Solved!
    Go to Solution.
    Attachments:
    Untitled 1.vi ‏16 KB

    It all depends on how you change the value of "Value". If you use the increment and decrement buttons it works as you expected.
    If however, you type in a new value and click the button without clicking somewhere else first, it doesn't work - and here's why:
    When you type in a value that modified value doesn't show up in the code untill the control loses "key focus". The problem is that clicking the button does cause the numeric input to lose key focus but only after the code has responded to the mouse up event.
    To fix the problem put a property node in the mouse down event to set the numeric's KeyFocus property to false before the value is enqueued.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • CUIT is not giving name property value for VB combo boxes

    Hi Everyone,
    We are testing simple Vb6 controls using CUIT. Using CUIT we can get name property value of Vb6 button control. But for simple Vb6 combo box, CUIT is not showing name property value.
    I want to add CUIT assertion for combo box name property value. how can I add ?
    For more details please see the image
    Regards,
    Rajendar..

    Hi Rajendar,
    Do you record a coded UI test with the coded UI test builder? If so, which item did you record?
    >>How can I get combobox.SelectedItem without identifying combo box?
    It doesn't mean that we don't identify the control. Generally we use the unique property as the search property to find/capture the control.
    Like this blog here:
    http://blogs.msdn.com/b/visualstudioalm/archive/2012/02/01/guidelines-on-improving-performance-of-coded-ui-test-playback.aspx
    SelectedItems versus
    SelectedIndices property
    For large number of items, it is preferable to use SelectedItems. SelectedIndices essentially does an Instance search internally, which is slower compared to unique automation property based search. Use SelectedIndices only when
    the items don’t have unique Automation properties. And of course exercise caution over changes to the list content.
    I think you could get a useful sample here:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/a32bc4a6-f562-436d-96a4-a3409b1b3e73/codedui-and-combobox-i-want-to-go-to-the-next-nonselected-item-in-combobox?forum=vstest
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • V$session prev_hash_value not returning the correct value?

    Hello,
    I am executing a plsql package (which has the following query) in two modes: through Toad and through a deployed web application. I get two results.
    SELECT sa.sql_text,
    sa.sql_id,
    ss.sid
    FROM v$session ss,
    v$sqlarea sa
    WHERE ss.status = 'ACTIVE'
    AND sa.hash_value = ss.prev_hash_value
    AND ss.username = USER;
    Toad gives me the correct result. The query above pulls the correct SQL statement. But when running through the web application it gives me
    some random SQL statement executed during that session. I thought it might have something to do with pooled JDBC connections so I made sure for that
    execution I created a new dedicated JDBC connection. Still did not work. I used the function SYS_CONTEXT('USERENV', 'SID') to report the session id
    from my java program and from the query above. Both return the same SID. I've tried different variations of that query above (removing status = ACTIVE, removing username = USER, etc...)
    and I still get the same result.
    So any thoughts on what's going on?
    Thanks,
    Piyush

    I believe I figured it out. My testing was flawed. The testing in Toad was directly calling my package (e.g., pkg_b). The web app doesn't do that. It calls pkg_a which does a bunch of setup and then calls the target package (pkg_b) using EXECUTE IMMEDIATE. Apparently the v$session stops collecting info at that point. The current statement always shows as 'BEGIN :b1 := pkg_b; END;'. But it's still confusing why it would do that. Is there another way to access SQL statements from within that dynamic block?

  • Check boxes not retaining their correct value

    Hello, I have a perplexing issue going on. I have a simple, two checkbox form for updating two values in my login table. The row type is enum('y','n') so naturally a check box is my preferred way to set the value. Even though the value in the table is set to 'y', the check box in the form is never checked. I check it, click the submit button, and the update occurs in the table but the check box remains unchecked on the form. My code for the form is below. Any idea what I'm missing here?
    <form method="post" id="form4" action="<?php echo KT_escapeAttribute(KT_getFullUri()); ?>">
                <table cellpadding="4" cellspacing="0">
                  <tr><td><input  <?php if (!(strcmp(KT_escapeAttribute($row_rslogin['show_profile']),"y"))) {echo "checked";} ?> type="checkbox" name="show_profile" id="show_profile" value="y" /></td>
                    <td><label for="show_profile">Show my profile to other myJoy members.</label></td>
                  </tr>
                  <tr>
                  <td><input  <?php if (!(strcmp(KT_escapeAttribute($row_rslogin['get_mail']),"y"))) {echo "checked";} ?> type="checkbox" name="myjoymail_optout" id="myjoymail_optout" value="y" /></td>
                    <td><label for="myjoymail_optout">Send me myJoy email and notifications.</label></td>
                  </tr>
                  <tr>
                    <td></td><td><input type="submit" name="KT_Update3" id="KT_Update3" value="Save Prefs" /></td>
                  </tr>
                </table>
              </form>

    Hi,
    Well I took your code and changed it to:
    <?php if (!(strcmp("y","y"))) {echo "checked";} ?>
    Getting rid of the KT_escapeAttribute() and manually entered the y. It worked fine. And even with the KT_escapeAttribute() it will probably work fine. Have you doubled checked that the database is not storing a Captial Y or a 0 or 1? Your using varchar correct, not char?

  • Non-ascii, jsp-struts, not reciveing the correct value in the server

    Hi,
    I am developing JSP-Struts based application using tomcat server. In JSP struts form, when I put nonascii charater in the text field or text area, on the server side I recived twice of that non-ascii character..
    for example, in the text field I entered following string:
    ------> This is text in tex field �&#131;
    On the server side, I get the following:
    ------> This is text in tex field �&#131;�&#131;
    Please notice, twice non ascii character.. :(
    I don't know how to resolve this.. Any help will be greatly appricated..
    Thanks,
    Ajay

    I changed the <form> in the jsp to div and its working fine. I do not need to have comments in JavaScript funcion() anymore. I don't know why that made the difference though? According to:
    http://www.w3schools.com/tags/tag_form.asp
    The <form> tag is used to create an HTML form for user input.
    The <form> element can contain one or more of the following form elements:
    <input>
    <textarea>
    <button>
    <select>
    <option>
    <optgroup>
    <fieldset>
    <label>
    An HTML form is used to pass data to a server.
    I do have <button> and also send the data - the value of checkboxes - to server. So I think it should also work with <form>.
    Please let me know if you have any idea. Thanks.

  • Query does not retrieves the correct values

    Hi,
    pls look into the code.
    clear: wf_etenr,
             vbep.
    To get the Scheduled Loading date and Scheduled Arrival Date.
        SELECT MAX( etenr ) FROM  vbep INTO wf_etenr
                            WHERE vbeln = tvbdpl-vgbel
                            AND   posnr = wl_posnr.
        IF sy-subrc EQ 0.
          clear vbep.
          SELECT SINGLE * FROM vbep         "R02
                 WHERE vbeln = tvbdpl-vgbel "R02
                  AND posnr = tvbdpl-vgpos  "R02
                  AND etenr = wf_etenr.
          IF sy-subrc EQ 0.
    when i see the values at dictionary level using the same wher conditions are mismatching with the query excution result in the program.
    here in the second query ( SELECT SINGLE * ) it giving the wrong results .
    if i compare the results at table level ,some of the field values are missing after excuting the above second query.
    pls can any one give me ur suggestion on this !
    rgds
    sanjay reddy

    Hi,
    are these the same?
    wl_posnr and tvbdpl-vgpos
    try
    SELECT SINGLE * FROM vbep
    WHERE vbeln = tvbdpl-vgbel
    AND posnr = wl_posnr
    AND etenr = wf_etenr.
    IF sy-subrc EQ 0.
    to make somewhat consistent querys.
    regards
    Message was edited by: Zlatko
            Zlatko Stracenski

  • Vector did not retrun the correct values.

    in my class the vector use BigDecimal not bigInteger. but my problem now is that my vector retruns the first value stored in vector until the loop completed.
    the following is print statment while I add to the vector:
    while (rs.next())
         CustNum=rs.getBigDecimal("CustNum");
         CType = rs.getString("TYPE");
         row.addElement(CustNum);
         row.addElement(CType);
         ret.addElement(row);
         System.out.println(CustNum);
    ***********1119
    ***********2220
    ***********3331
    but in my JSP:
    Vector v = new getNumber().getCustNumber();
    Iterator i = v.iterator();
    while (i.hasNext()) {
    Vector row = (Vector)i.next();
    Object CustNum = row.get(0);
    Object name = row.get(1);
    system.out.println(CustNum);
    that retrun the wrong result:
    ***********1119
    ***********1119
    ***********1119

    As warnerja said, you apparently only have multiple references to the same 'row' in your 'ret' Vector.
    If your code in your post is exactly your actual code, then you are adding the same Vector to 'ret' multiple times. That Vector will have two values (CustNum and CType) for each row.
    So, your 'ret' will have three elements, each with six elements (I separated the elements with commas):
    ret.get(0):   ******1119, Type1, ******2220, Type2, ******3331, Type1
    ret.get(1):   ******1119, Type1, ******2220, Type2, ******3331, Type1
    ret.get(2):   ******1119, Type1, ******2220, Type2, ******3331, Type1Each element of 'ret' is identical--you have three copies of the same Vector.
    In your loop to populate 'ret', initialize 'row' to a new Vector at the beginning of each loop iteration. Also, you may want to try using ArrayList instead of Vector. You probably don't need the synchronization that Vector gives. Even if you do need synchronization, use Collections.synchronizedList(new ArrayList()).

  • GR amount is not showing the correct value

    Hi ,
    there are is a GR with for quantity 100 and movement type 101.
    agian there is one more GR with mvtype 122 with quantity 20.the amount in the PO is 1 INR for each quantity.So, for the GR with mvtype 122 the amount should be 20 but it is showing lesser amount than 20.
    I see there are several Invoices and credit memos posted for the PO but the quantity and price are OK for them.
    Note that there are no subsequent credit memos.
    what could be the problem?
    Please provide detialed explanation/solution as i am quite new in this area !!!
    Regards,
    Saurav

    hi,
    Please check if the price type of the material is MAP.
    Please check if the 122 moment material document is with any price differrance .
    Please check the postings of invoices is before the GR.
    In general if the invoice is posted before the GR and the price is differrant in the PO and in the MAP of material, system changes to new MAP.and accordingly the postings will take place.
    Please carefully go through the PO history and write down the postings happened in the chronalogical order.so that for the analysis it will be easy.
    Please check the accounting documents created for MIRO/MIGO so that if there exists any price differance, to which account it posted ( to stock account or PRD account)If it posts to the stock accounts definitly the MAP changes.
    Please post the postings happened so that a better anaysis can be given.
    Regards,

  • Battery indicator on my G4 not giving me correct reading

    My intention was to calibrate the battery, so i let it run down to 0%, but has been on for over 1/2 hour, and hasn't shut down yet....

    Once it does run down, finishing the calibration procedure will, hopefully, make the battery indicator more precise. That's actually one of the reasons to calibrate the battery.
    From http://support.apple.com/kb/ht1490 :
    The battery has an internal microprocessor that provides an estimate of the amount of energy in the battery as it charges and discharges. The battery needs to be recalibrated from time to time to keep the onscreen battery time and percent display accurate and to keep the battery operating at maximum efficiency.
    If you never see the low battery warning, you may want to try resetting the PMU.

  • Case condition is not giving the correct result in Union query

    Hello PL/SQL Gurus,
    I am using Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production version
    I have a table in following format -
    drop table TT2;
    create table TT2(FeeDate,Clerk,ClrComm,ExComm,TagComm) as select
    20120102,'Mathews',25,56,245 from dual union all select
    20120102,'Lika',0,56,245 from dual union all select
    20120102,'Ram',0,0,245 from dual union all select
    20120102,'Angilo',NULL,NULL,245 from dual union all select
    20120102,'Nikki',225,NULL,245 from dual union all select
    20120103,'Ram',NULL,556,2345 from dual union all select
    20120103,'Lika',NULL,NULL,245 from dual union all select
    20120103,'Mathews',25,56,245 from dual;DML Used -
    SELECT FEEDATE,CLERK,SUM(ClrComm) ClrComm,null ExComm,null TagComm,sum(case when ClrComm>0 then ClrComm end) Comm
    from tt2
    group by FEEDATE,CLERK
    UNION
    SELECT FEEDATE,CLERK,null ClrComm,sum(ExComm) ExComm,null TagComm,sum(case when ExComm>0 then ExComm end) Comm
    from tt2
    group by FEEDATE,CLERK
    UNION
    SELECT FEEDATE,CLERK,null ClrComm,null ExComm,sum(TagComm) TagComm,sum(case when ClrComm=0 or ClrComm is NULL and ExComm=0 or ExComm is NULL then TagComm end) Comm
    from tt2
    group by FEEDATE,CLERKResult Output -
      FEEDATE CLERK      CLRCOMM     EXCOMM    TAGCOMM       COMM
    20120102 Angilo                               245        245
    20120102 Angilo
    20120102 Lika             0
    20120102 Lika                       56                    56
    20120102 Lika                                 245        245
    20120102 Mathews         25                               25
    20120102 Mathews                    56                    56
    20120102 Mathews                              245
    20120102 Ram            225                              225
    20120102 Ram                         0
    20120102 Ram                                  490        490
      FEEDATE CLERK      CLRCOMM     EXCOMM    TAGCOMM       COMM
    20120103 Lika                                 245        245
    20120103 Lika
    20120103 Mathews         25                               25
    20120103 Mathews                    56                    56
    20120103 Mathews                              245
    20120103 Ram                       556                   556
    20120103 Ram                                 2345
    20120103 Ram
    Output expected -
    FEEDATE          CLERK     CLRCOMM     EXCOMM     TAGCOMM     Comm
    20120102     Mathews     25     56     245     81
    20120102     Lika     0     56     245     56
    20120102     Ram     0     0     245     245
    20120102     Angilo               245     245
    20120102     Nikki     225          245     225
    20120103     Ram          556     2345     556
    20120103     Lika               245     245
    20120103     Mathews     25     56     245     81I sincerely thanks to all of you for your effort in advance.

    This way:
    select feedate, clerk, clrcomm, excomm, tagcomm,
           sum(decode(nvl(clrcomm, 0) + nvl(excomm, 0), 0, tagcomm, nvl(clrcomm, 0) + nvl(excomm, 0))) over (partition by feedate, clerk) comm
      from tt2
    order by feedate, clerk;
    FEEDATE                CLERK   CLRCOMM                EXCOMM                 TAGCOMM                COMM                    
    20120102               Angilo                                                245                    245                   
    20120102               Lika    0                      56                     245                    56                    
    20120102               Mathews 25                     56                     245                    81                    
    20120102               Nikki   225                                           245                    225                   
    20120102               Ram     0                      0                      245                    245                   
    20120103               Lika                                                  245                    245                   
    20120103               Mathews 25                     56                     245                    81                    
    20120103               Ram                            556                    2345                   556                   
    8 rows selected

Maybe you are looking for