Formula is showing wrong values for dates

Hi i have document date and clear date
number of days is clear date -doc date
my doc date : 10/28/2008
my clear date : 11/24/2008
i have create 2 formula variabes ( at columns i want bring my characters)
nexti have written formula ( variable for clear date- variable for doc date)
but this variable are shwoing data format like
c1 (variable for clear date)  : 20,081,124
c2 ( variable for doc date) : 20,081,028
formula c1-c2 is shwoing 96 days actaully  original date format (11/24/2008-10/28/2008) i will get less than 30 days.
please let me know how to solve this issues

Hi Suneel,
I m giving you the detailed steps here so as to clear any doubts...
1. In the new formula window right click on Formula Variable and choose New Variable
2. Enter the Variable Name, Description and select Replacement Path in the Processing by field.
Click the Next Button
3. In the Characteristic screen, select the date characteristic that represents the first date to use in the calculation
4. In the Replacement Path screen select Key in the Replace Variable with field. Leave all the other options as they are (The offset values will be set automatically).
5. In the Currencies and Units screen select Date as the Dimension ID
Repeat the same steps to create a formula variable for second date and use them in the calculation.
Follow these steps and your problem will be solved for sure.
Regards,
Yogesh

Similar Messages

  • Need to raise an error if Users puts wrong value for date datatype in Forms

    Hi all,
    I've created a new form using Template.fmb in forms 10g having some text item with data type as DATE.
    and now i wanted to raise an error if users inputs any wrong data rather than DATE format.
    Please help me if anyone knows how to do this...

    b_kapsy wrote:
    As of now i am not looking for validation, i know the validation will automatically done but if you see by default it will not raise any error message if you fill any wrong value in text item with date data type. It will freeze the cursor to the text item.That is NOT the default. The default is to issue various FRM-nnnnn messages, between 50002 and 50026. From notes I have:
    -- 50002: Month must be between 1 and 12.
    -- 50003: Year must be 00-99 or 1000-4712
    -- 50004: Day must be between 1 and last of month.
    -- 50012: Date must be entered in a format like <fxMMDDRR>
    -- 50017,18,19: Hour,Min,Sec must be between 0 and 23,59,59.
    -- 50025: Date/time must be entered in a format like <xxyytttt>
    -- 50026: same as 50012 and 50025 with <yyyy> year.
    And from my old, dusty copy of the Oracle Developer/2000 "Messages and Codes Manual", those messages have an error level = 15.
    If you are not seeing those messages, then you have done one of two things:
    1. Set your System.Message_Level to a value of 15 or higher. You should NEVER set it above zero, since all that does is hides error messages like these. If you want to bypass or prevent an error message, it should be handled in the Re: FRM-40735:Pre_Insert trigger raised unhandled exception ORA-20011.
    2. You have some bad code in an On-Error trigger that fails to handle errors correctly.

  • HFM 11.1.1.3 ICP Report showing wrong value for Entity Currency Total

    Here is the situation.
    There are transactions on a ICP account (Entity Currency) 3.305.080
    A journal is posted to the same account with the same POV. 307.205
    When I run my ICP report on Entity currency i get the correct figure. 3.305.080
    When I rum my ICP report on Entity Currency Total I get a wrong figure 307.205 (Equalt Entity Currency Adjustment) where it should have been 3.612.285
    Any clues anybody?

    There is no limit. In reality there has not been a limit to the volume of data in a single subcube since paging was added in the 4.0 release. Certainly since 64 bit HFM was introduced there really is no limit to the amount of data in a subcube, or the database for that matter.
    Now that I've said that, 850,000 records in a single subcube is a lot of data. Prior to 4.0, the development team added an warning message when a subcube exceeded 100,000 records, but this was purely informational. You should still heed the notice. Most applications have a largest-cube size somewhere between 35,000 and 100,000 records (the top entity usually). While I've seen as many as a million records, you may experience performance problems at that point. Make sure you give the database and HFM app servers a lot of memory to handle this.
    Since HFM 11.1.2.2 with its configurable dimensions, data can be spread across many more intersections. In your example you have seven custom dimensions, so I can understand how you might have a normal amount of data in each base entity (a few hundred to maybe a couple thousand), but balloon to hundreds of thousands when you get to the top entity. HFM can process a lot of data very quickly, but be careful if you have rules that cycle through all those intersections, such as allocations or maybe cash flow by product.
    But there is no hard limit in HFM.

  • Creation of a Query to show the values for the current month and the last 12 months data.

    Dear All,
    Good day!
    I have to create a Query with the below requirement.
    I have to create a Query to show the values for the current month and the last 12 months data.
    Can you please guide me how to achieve this ??
    thank you,
    Regards,
    Hema

    Hema
    explain the exact problem..? as you mentioned you want to create query to show values for current month and last 12 months.. so I think you want to show values for 12 months from current data.. you can achive this by multiple way..
    you can have selection screen and field with date .. and restrict based on system current date and 12 months before or you can handle this at your target.. .. I mean there are multiple ways to restrict data by date range..
    for some more hints..
    http://www.forumtopics.com/busobj/viewtopic.php?t=34393&sid=7fba465d0463bf7ff5ec46c128754ed6
    http://businessintelligence.ittoolbox.com/groups/technical-functional/cognos8-l/how-to-display-last-12-months-in-report-based-on-todays-date-3231850
    http://scn.sap.com/thread/3217381
    search on SDN you will get many other ways..
    Thanks,
    Bhupesh

  • Updated CODE1 is showing wrong values in 2LIS_05_QE1

    Hi all,
    I'm using 2LIS_05_QE1 extractor to report over qualitative data in BW. When the code of the characteristics is updated, the extractor takes 2 records, before and after images. The extractor is gathering wrong values for the CODE1 field  in the before image.
    REQUEST     DATAPAKID     RECORD     ROCANCEL     PPLNKN     MERKNR     CODE1     GRUPPE1     ZHLNSTAT
    REQU_4KVR0APSV0RSZ7N70IOR0F95L     1     5120          5     40     0     CIBAU038     1
    REQU_4KPIA4UG5G1IKN6DE3XFWKIS9             3     4045     X     5     40     0     CIBAU038     -1
    REQU_4KPIA4UG5G1IKN6DE3XFWKIS9             3     4046          5     40     75     CIBAU038     1
    REQU_4KYF8YNIEMXNZI7P2Y5BM21W9     3     4045     X     5     40     0     CIBAU038     -1
    REQU_4KYF8YNIEMXNZI7P2Y5BM21W9     3     4046          5     40     75     CIBAU038     1
    We have changed the characteristic two times, now we can see two of the before images with the ROCANCEL field marked with = 'X'. The problem appears in the second before image which is not taking the actual value of the CODE1 field (75), instead is showing the value in zero. Then, when I report over the key figure in the table above ZHLNSTAT (quantity of values) the results are showing 2 values for CODE1=75 and -1 values for CODE1=0.
    Any ideas?

    I have checked Datasource and CODE1 is not a hidden field...apart from this field there are other fields too which I can see in Datasource in R/3 about dont see them in BW ....
    Please let me know what could be wrong.
    Thanks,
    Murtuza.
    Edited by: Murtuza Morwala on Jun 27, 2009 7:36 AM

  • Issue: - FBL1N - is showing wrong values

    Issue: - FBL1N - is showing wrong values    
    Hi SAP experts,
    We are executing T Code FBL1N and selecting all open enteries, and select all items like special normal items, G/L Transaction, noted items, parked items and customer items, we found that the balance is showing wrong for intercompany vendors.
    For Ex, if vendor is not created in company Code A and customer items are available in Company Code A then that items are coming for some line items and for some line items it is not?
    I have attached one example for the same. for all vendors data is coming properly but for indivisual vendor is it not.
    Please suggest why?
    Regards,
    Vijay

    Example :
    Vendor number 99 ans for the same  customer nO is C12 is created in company code ABC but vendor is not created and customer C12 is in PQR, now i am executing fbl1n for Company Code PQR for open item selecting all options like normal items, special G/L transaction, customer items  noted items and parked items, the line items related to Vendor number 99 for company Code PQR should not display, as vendor is not created but customer items are there, please let me know for some cases it is showing result and in same cases it is not why?
    Regards,
    Vijay

  • "Invoice History Report "show wrong balance for supplier invoice with USD

    Invoice History Report show wrong balance for supplier invoice with USD Currency
    After I run this report i see in the last of this report there is difference between the supplier total
    USD (Currency ) and the open Balance USD , it is decreased the open balance
    for supplier with 2300 USD with out any reasons
    bellow is some data copy of the report
    ======================================================
    Supplier Site Total: SAR 34,700.00
    Supplier Site Total: USD 39,000.00
    Supplier Total: SAR 34,700.00
    Supplier Total: USD 39,000.00
    Open Balance: SAR 34,700.00
    Open Balance: USD 36,700.00
    *** End of Report ***
    ==============================================
    please advise me from where can this differenc ( 39000 - 36,700=2300 )COMMING
    or it is bug in this report , becuase i compare this report with other report in account payable like
    -supplier open balance letter
    -invoice register report
    -invoice aging report
    all this report give me the amount for supplier USD =39000
    BUT AGIN FROM WHERE THE SYSTEM DECREASED THE AMOUNT TO 36,700
    thanks

    Can you try running Create Accounting For payments just before you run the Invoice History Report and re-check .
    Thanks

  • Default value for date

    Hi experts,
    I want to set default value for dates..
    My screen has : date_from & date_to.
    date_to : will be current date(today's date) if Eg: 27.08.2007 (here i used NOW())
    then date_from must be 01.06.2007 (3 months logic)
    similarly : if date_to is 01.01.2007
    then date_from must be 01.11.2006
    kindly help...
    Thanks a lot!!!
    Regards,
    Bijal

    Hi Bijal
    (DGET(NOW(),'D'))-1) returns number which is 0 incase of 01.08.2007, so DADD(NOW(),-0,'D') is again ideally same day 01.08.2007 .
    So, DADD(DADD(NOW(),-0,'D'),-2,'M') should give you 01.06.2007.
    <b> IT WORKS!!! -
    I have tested it now.</b>
    Please check and revert.
    The IF formula which sent actually returns String, so use DVAL(IF(DGET(NOW(),'D')!=1,DADD(DADD(NOW(),-((DGET(NOW(),'D'))-1),'D'),-2,'M'),DADD(NOW(),-2,'M')))
    Message was edited by:
            Navneet Giria

  • After casting double to float debugger shows wrong value

    Hi,
    My colleaque found an interesting behaviour with Java debugger. I have made some tests and here are the results:
    Test code:
    double dNum = 43.680659;
    float fNum = (float) dNum;
    System.out.println("double number = " + dNum);
    System.out.println("float number = " + fNum);This is tested in Eclipse IDE 3.4.2 with following Java JRE versions:
    - 1.4.2_19
    - 1.5.0_14
    - 1.6.0_10
    And following JDK:
    - jdk1.5.0_16
    Eclipse IDE will show following values for variables in all platforms:
    dNum = 43.680659
    fNum = 43.74316Console will print:
    double number = 43.680659
    float number = 43.68066Testing also with command line debugger jdb. Java JRE version:
    - 1.4.2_19
    And following JDK:
    - jdk1.5.0_16
    Results are the same as in Eclipse IDE. Is there a bug in debugger environment?

    I managed to find bug report of this issue:
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6807341
    Information:
    Bug ID : 6807341
    Synopsis : JDWP: float value reported incorrectly
    Category : java:debugger
    State : 3-Accepted, bug
    Priority : 4-Low
    Submit Date: 19-FEB-2009

  • CALCULATE_TAX_ITEM gives wrong values for Scess and HScess in PO Print

    Dear Friends,
    I am working with PO Print in smartforms hare the Fm CALCULATE_TAX_ITEM is gives wrong values for Scess and HEcess if I put the Gate pass (Basic Excise Duty) Manually.
    And one more Issue is as if I check any line item condition taxes than imediatly when I see the print the all line items Scee and HEcess displays same which I have saw.
    If there is a single line item in PO than there is no issue any way.
    kindly suggest to resolve the issue.
    Regards,
    D Tarun Kumar

    Hi,
    I had the same issue, that taxes on invoice tab of PO was not printed correctly on PO form by calling CALCULATE_TAX_ITEM.
    If you want to have the same tax value as komp-mwsbp, that use following form routine call before FB CALCULATE_TAX_ITEM.
    perform j_1b_save_tax_fields(saplmepo) using ekko ekpo lfa1.
    This is used in transaction me23n also.
    Kind regards,
    Tülay

  • ORA-01841 Error when value for date col is NULL in .dat (using SQL Loader)

    Hello Gurus,
    I have some data in .dat file which needs to be loaded into oracle table. I am using SQL * Loader to do the job. Although "NULLIF col_name =BLANKS" works for character datatype, but when value for date col is NULL then I get ORA-01841 error. I have to make NULL for all rows withour value for date column
    Early reply will be highly appreciated
    Farooq

    Hi,
    May be this problem is not with the NULLIF. The value for the date column is not in proper date format.
    create table:
    create table kk (empno number, ename varchar2(20), deptno number, hiredate date)
    Control file:
    LOAD DATA
    INFILE 'd:\kk\empdata.dat'
    insert into TABLE kk ( empno position (1:2) integer external,
    ename position(4:5) char NULLIF ename=BLANKS,
    deptno position (7:8) integer external NULLIF deptno=BLANKS,
    hiredate position (10:20) date NULLIF hiredate=BLANKS)
    data file:
    10 KK 01-jan-2005
    20 10
    SELECT * FROM KK;
    EMPNO ENAME DEPTNO HIREDATE
    10 KK 01-JAN-05
    20 10
    Verify the data file.
    Hope it will help

  • Printer shows wrong cartidge for my hp allin one

    Printer shows wrong cartidge for my hp allin one printer.It was working 4 /5 days ago?if noone can help me is there a toll free number i canc all hp without having to pay for it,I posred this 4 times now and nobody has helped me,,,,,,,,I have windows vista and a DX series gateway computer about 7 nonths old now...Well i cant do anything with my printer now??????????

    call 1-800-474-6836.

  • Calendar...list function shows only events for date select instead of events from that date forward.

    Calendar list function shows only events for date selected....instead of events for date selected and events forward from that date.  Is there a setting change needed?  Help!

    Hi,
    Did you check that your universe object referring "Date of Completion" has Date data type?
    Can you also provide the BOE verson you are using?
    I remembered that the calendars were not displayed in XIR2 version.
    Didier

  • EPMWorkstatus() - Retrieving wrong values for status

    Dear community,
    I have a very special problem concerning the EPMWorkstatus() formula within the EPM-Client. This issue only appears on our quality ensurance system (QS) and productive system (PS), not on our development System (DS).
    ------ Setup is as follows:
    workstatus is defined for three dimensions:
    project (user defined dimension with owner attribute)
    the project itsself is always a node
    there is only one level of several workpackages below
    measure/value (user defined dimension)
    several Input values such as RF or budget etc.pp.
    on node above them to organize all measures/values that are shown within the planning layout
    time (time dimension)standard time dimension (years, quarters, months) with one adjustment
    there is a top node ALL above all years
    there is element NONE which is not in the hierarchy
    All dimensions only have one hierarchy in use (PARENTH1)
    ------ Problem is as follows:
    I have designed a workstatus report that shows the status for:
    one workpackage
    one month of the year (e.g.: 2015.01) as representative for the status of the whole year, because the controllers only enter data on year level which will be disaggregated by a code fragment
    one measure / value
    The EPMWorkstatus formula looks is embedded in an Excel formula which does some checks but the EPM part looks like that:
    EPMWorkstatus(,0,EPMMemberID(cell-for-project-reference),EPMMemberID(cell-for-measure-reference),EPMMemberID(cell-for-time-refence))
    Situation is now a follows:
    I have a simple project with 3 workpackages. All of them have no explicit status, so they are in DEFAULT WORKSTATEon refresh the workstatus report shows empty cells which is perfectly fine
    I chose one workpackage and open the workstatus Dialog
    the project selection stays as it is (e.g. one workpackage)
    for the measure / value dimension I chose one element or the node above those elements
    for the time dimension I chose one year node or the top node ALL for all years
    I set the status to "closed"
    On refreshing the workstatus report all other workpackages seem to inherit the same status - so all formulas show the value "closed". Sometimes one element combination stays empty which would be the correct status.
    The table which stores the workstatus looks fine (SE38 >> UJW_WS_TEST) and only has entries for the formerly selected workpackage.
    The only way to get around this issue is to first set an explicit Status for the whole project to "open" and then do the same steps mentioned above. But this is no good solution because a master data update could bring new workpackages to the project.
    Anyways I am trying to find out why it works on the DS and not on the QS / PS.
    Could it a be a transportation problem? - As far as I checked via the web admin surface it looks the same on every System
    The owner dimension project and the Attribute values for owner look the same on every system
    It cannot be a client problem due to fact that we use one client version for all systems.
    So where could I look where the problem comes from? Any help would be really appreciated.
    Cheers,
    Gernot

    Hi Dinesh,
    thank you for your reply. The results are as follows (please see the picture):
    the development system seems to have another status ID for "open" and "closed" than the quality and productive system
    but if I set a workpackage status to "closed" (e.g. "gesperrt" in screenshot) it seems to be consistent within the workstatus table as you can see in the screenshot
    So I am not sure why that would have an impact on the workstatus...
    Cheers,
    Gernot

  • DatePicker shows wrong value on initial loading

    I have a column with a date picker, to make the content of the column editable.
    oCdColumn = new sap.ui.table.Column({
                label: "Übergabe",
                template: new sap.ui.commons.DatePicker({
                    value: {
                        path: "CD",
                        formatter: function (sDate) {
                            var date = new Date(parseInt(sDate));
                            console.log(date)
                            return date;
                    locale: "de",
                    change: [oController.onDateFieldChange, oController]
                sortProperty: "CD"
    The value I get from the path CD is in the format you get when you call .getTime() on a Date.
    On initial loading the datepicker displays some dates that are like 6 years after the date that should be displayed. When i navigate to another table page/ change the sort order and then navigate back/change the order to initial value the date is displayed correctly.
    How is this possible?

    Hi Frank,
    as you can see I logged the Formatter Output. It never showed me an incorrect date. I think parseInt of null returns NaN. When NaN was the Output of theFormatter the  DatePicker showed the current Date.
    I stepped through and for the first 5 lines (which is the default value for a table page) it put a correct Date in the table, the other values i can't see because the table page was full, but the console showed a correct date. After it finished running through all the formatters the
    visibleRowCountMode: sap.ui.table.VisibleRowCountMode.Auto
    was triggered and the dates were wrong.
    Thanks for the link with the type system. I tried it yesterday, but it gave me an undefined is not a function error. My mistake was that i just set the pattern and not the source pattern. When I set the source pattern to "timestamp" it worked. Thank you.
    For anyone who runs in the same problem: i would also recommend this link: sap.ui.model.Date
    Regards,
    Judith

Maybe you are looking for

  • HT4623 iOS7 downloaded and now my screen is all white

    I downloaded iOS7 and now all of a sudden my screen is all white, nothing happened to the phone during installation it literally sat right next to me the whole time. What do I do? My lock button is broken so I can't reset it.

  • Sample content instal in LP9

    I have all my logic/garage band samples on a seperate HD. When Logic 9 in installed will I need to move all the content again to the seperate HD? Anyone know of a fast way to move all the sample content? Does LP9 work well with Native Instruments? Wi

  • Remove Split Valuation in Material Master

    Hi, We need to remove the Batch Management & Split Valuation Type from Material Masters. I already got notes to guide me in the removal of Batch Management, but i can't seem to find any for removal or split valuation. How do I do this? Thanks, Jograd

  • HTML in a JAVA application

    Hello all I have a JAVA program and i have to display an HTML document (with tags and e.t.c.) in the way Internet explorer displays it (with the colors and all that stuff) Can i convert the plain text: <HTML>sdfsdf <h1>sdfsdf to a colored one? Thanks

  • ICS update - Xperia GO - performance issues

    Hi, I am from INDIA, I got the ICS update for my Xperia GO and I feel that the performance and the speed of the phone has come down a litte... I tried stopping some of the apps which are running in the background but still it lags a little. I am faci