Formula variable for date calculations with date-characteristics (2004s)

Hi SDN,
I'd like to calculate the number of days between to date-characteristics. In 3.5, I was used to create 2 formula variables of the type 'replacement path', with 'date' as the dimension indicator. In my formula, I used the 'proces value as date' function for each variable, and I could perform calculations with them.
I'm trying to do the same in 2004s. However, I can't create replacement path's with 'date' as a dimension indicator. So I use 'number' instead, but it doesn't work: my query shows 'x'.
I can use the variables that I created using the 3.5 query designer as a workaround. But I hope there is a better solution.
If other people experience the same problem, please respond. Then I know it's probably a bug.
Kind regards,
Daniel

Daniel,
Try to look at the formula variables defined before the upgrade and see what is different to the newly defined. I am guessing just the terminology used is different.
If not the date value might be blank or something for one of the f-variables used. Try to display the formula variable values as KF in the query results and check what it is showing.
I hope this helps.
-Bala

Similar Messages

  • Formula variable for a user input DATE value

    Hi All,
    I want to create Formula variable for a user input DATE value as I need to use it in a formula to compare between user entry date & date in the DSO. Does any body has any idea about it?
    I tried to create formula variable with manual entry but then I am not getting DATE option.
    Regards,
    Sonal

    Hi ,
    You have to create a formula variable in the formula.
    The formula variable in the general tab would have the reference characteristic as your date characteristic on which you have created a user entry variable or on which you intend to create a date entry variable.
    Give the proceesing type as replacement path.
    Next in Replacement path mention you would replace the variable with value of another variable.
    Mention the variable name.(This is the actual varaible created on the selection screen),
    Also mention you would replace only from value/to value of the variable.
    Check the following help link
    [Replacement path type formula variable|http://help.sap.com/saphelp_nw70/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm]
    Hope this helps,
    Best regards,
    Sunmit.

  • Formula variable for date in report

    Hi All,
    I have to display the last date value of a particular date in the report.
    For a better understanding,
    I have Customer, Equipment, Service date, Amount
    In the report, I have to display
    Customer, Equipment, Last Service date, Last Service Amount.
    I have created a formula variable (Formula variable for Service date) for Service date with Replacement path.
    Replace Variable with Infoobject, Replace with Key, Dimension dates.
    And in Key figures, I have created a formula (Last Service date) with Last value in the Aggregation using the "Formula variable for Service date".
    The Last Service date is displayed as 'X' in the report since the Service date is not in the row. I cannot have the service date in the row either (not even by hiding the display).
    Kindly tell me how to rectify this problem.
    Thanks and Regards
    Adhira Anand.

    The X is appearing because, with the drill downs you have added, you have more than 1 date value to choose from when you attempt to aggregate.
    Have you tried using APD instead of exception aggregation?
    Have you built the exception aggregation calculated key figure globally or just locally (i.e. as a structure element)? It must be built globally to work properly.

  • Formula Variable for Date/year not possible

    Hi, I have a query where I want to create a formula variable for a year that I can use in a user exit to populate other variables.  When I go to create a formula variable there is not option for a date or year variable.  I only see Amount; Quantity; Price; Number.  Is it possible just to create a formula variable for a year input without having a year time characteristic in the query?
    Thanks!

    I just ended up creating a Formual Variable as a number.  Thank You

  • Formula variable to add three char. date value together?

    We've been struggling to use formula variable (Replacement Path), but never been sucessful!
    We have three row date type of char which are c1, c2, and c3.  Now users would like to see a summation of the three date char.  We believe we will have to use Replacement Path formula variable for each of the char., but somehow the formula variable always show "X" in column.
    Any idea?
    Thanks!

    Hello Kevin,
    you can not summ characteristics but only key figures.
    if you want to see the summ of a key figure for certain characteristic values you need a restricted key figure (with aggregation type sum) and a selection for your characteristic for the 3 values.
    regards
    Cornelia

  • Use a single variable value to compare with 2 characteristics

    Hi guys
        I need some advice on how to use a single variable value to compare with 2 characteristics in a Infocube.
    eg : I hv 2 characteristics in Infocube
           Launch date  &  Closing Date
       Now I want to display report where the variable date (inputted by user) is equal to Launch Date and Closing Date.
        with regards

    Bobby,
    if I right understood your situation, you have an input variable ZINPUT (related to a date 'A') and 2 others dates (yours Launch and Closing dates, 'B' and 'C').
    You want to display only the rows where A(user input)=B=C.
    Now you have to create 2 new variables (called ZB and ZC, related to B and C dates) NOT marked as 'ready for input' and set to 'mandatory variable entry'.
    Call Transaction CMOD for the definition of the customer exit (if not already existing!).
    Create a new project, maintain the short text, and assign a development class.
    Goto Enhancements Assignments and assign RSR00001. Press the button components to continue.
    Double-click on EXIT_SAPLRRS0_001. For documentation place the cursor on RSR00001 and use the menu Goto -> Display documentation. 
    Then double-click on ZXRSRU01. If the include doesn’t exist you have to create it; assign a development class and a transport request.
    Enter the coding:
    DATA: L_S_RANGE TYPE RSR_S_RANGESID.
    DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
    CASE I_VNAM.
    WHEN 'ZB'.
    (and you have to repeate the same code also for the variable 'ZC' !)
    IF I_STEP = 2.
    READ TABLE I_T_VAR_RANGE INTO LOC_VAR_RANGE
    WITH KEY vnam = 'ZINPUT'.
    if sy-subrc = 0.
    L_S_RANGE-LOW  = LOC_VAR_RANGE-LOW.
    endif.
    L_S_RANGE-sign = 'I'.
    L_S_RANGE-opt = 'EQ'.
    append L_S_RANGE to e_t_range.
    ENDIF.
    ENDCASE.
    Save and activate the coding and the project.
    Now go to your query and use these two new variables to restrict B and C....et voilà !!!
    Let me know if you need more help (and please assign points !!! be generous !!!)
    Bye,
    Roberto

  • Data Associtions not enabling  while i am  trying to do data mapping with data Associtions in BPM studio what is the reson?

    Data Associtions not enabling  while i am  trying to do data mapping with data Associtions in BPM studio what is the reson?

    Shouldn't @StartDate be an input parameter to the stored procedure? @RunDate also?
    Example for sp with parameters:
    http://www.sqlusa.com/bestpractices2008/stored-procedure-parameters/
    The last error will go away upon a successful sp compile.
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Formula variable for dates

    Hi gurus,
    I am trying to fill a formula variable of type date via manual entry, but I cannot find which is the correct way to do it. I can introduce any other type of data (amount, prices...) via manual entry but I can´t do the same with dates. Any help about this??
    Thanx.

    Hi Ortiz,
    You can do it like this:
    1. Create one variable based on any date field.
    2. In you query In column create 1 selection, restrict any key figure with this variable (created above). In display property set Hide.
    3. Create 1 formula variable with processing type customer exit and choose dimension as date.
    4. Now in CMOD, write the below code for your formula variable:
    Suppose the source variable name is ZDATE1,
    Forumla var name is ZFinal_date
    Code it like this:
    when 'ZFinal_date'.
    READ TABLE i_t_var_range INTO wa_value WITH KEY vnam = 'ZDATE1'.
            wa_range-low    = wa_value-low.
            wa_range-opt    = 'EQ'.
            wa_range-sign   = 'I'.
            APPEND wa_range TO e_t_range.
    Now u will get the date inputed value in your formula cariable.
    5. Create 1 CKF and do the subtraction in there:
    if ur key figure name is KF1 then type forumal as:
    KF1 - ZFinal_date.
    Hopefully u wil get the desired output.
    Thanks
    Dipika

  • Calculation with Dates

    I have one date called Registration Date which will be input into the planning as string in dd--mm-yyyy format. Now I am capturing current date which should pickup from system(By @Today Function).
    I know that these dates are now in different formats. I need to calculate difference between these two dates.. I have tried many ways using datediff functions etc. But its not working. please Help me out on this

    Hi
    Try using @HspDateDiff
    You will need to convert the current date into the planning version of the date. You can do this with this formula
    (@DATEPART(@TODAY(),DP_YEAR)*10000) + (@DATEPART(@TODAY(),DP_MONTH)*100) + (@DATEPART(@TODAY(),DP_DAY));
    This will take the current date and put it into the YYYYMMDD format.
    You can then use @HspDateDiff(NewCurrentDate,RegistrationDate);
    You can use this link to help you with the use of @HspDateDiff Calculating the difference between dates within Hyperion Planning - Absolute EPM
    In later versions of Hyperion Planning there are many more functions for Dates within Calculation Manager
    Hope that helps.
    Anthony
    Home - Absolute EPM

  • Calculations with date fields

    I'm trying to do a basic calculation with a CRM date form in BC.
    I have a form field 'dateJoined' (though this could easily be the standard DOB field for the sake of this exercies) and I need to use javascript to calculate how many days have passed between today's date and the date in 'dateJoined'.
    The {module_customerfield} outputs a string, not a date object, which would be fine but the format of the string is not compatible with the .date object.
    I started down the path of lengthy substrings > variables, then linked variables > date object but after lines and lines of code, wondered if there was a simpler way that I was overlooking??

    I'm trying to do a basic calculation with a CRM date form in BC.
    I have a form field 'dateJoined' (though this could easily be the standard DOB field for the sake of this exercies) and I need to use javascript to calculate how many days have passed between today's date and the date in 'dateJoined'.
    The {module_customerfield} outputs a string, not a date object, which would be fine but the format of the string is not compatible with the .date object.
    I started down the path of lengthy substrings > variables, then linked variables > date object but after lines and lines of code, wondered if there was a simpler way that I was overlooking??

  • Schedule Line Delivery Date Calculation with Transportation Scheduling

    Hi All,
    We are currently running into a problem where our Sales Order Schedule Line delivery dates are being pushed out too far into the future - because of the Calendar being used to determine the transit time.
    We have 'Delivery Scheduling' and 'Transportation Scheduling' activated for our Sales Document type
    We have Routes that are configured with a 'Transit Time' and a 'Factory Calendar'
    Order Scenario:
    'Factory Calendar' assigned to our 'Route' is setup with only one 'Workday' in a given week e.g. Wednesday
    Our 'Route' has a Transit Time of 2 days
    We create a Sales Order on Monday for a Material that is available in our Plant
    The 'Goods Issue' date is being determined correctly for the next Workday - being Wednesday
    The 'Delivery Date' is extending out over 15 days (2 Wednesdays into the future) - since it is working on 'Calendar Days' and not 'Actual Days'
    Does anyone know of a way (config or other) to only influence the 'Goods Issue' date with the 'Factory Calendar' assigned to the Route, and have the 'Delivery Date' calculated using the Transit Time on the Route and 'Actual Days' rather than Calendar days?
    All help greatly appreciated.
    Thanks,
    Ravelle<i></i>

    Hi Pathik,
    Thanks for your reply.  I have already maintained the Calendars I'm using for this business process in <SCAL> - same as <OY05>. 
    The problem I'm having though is that by assigning a Calendar directly to my route (which I doing to influence the goods issue date - using a 1 Working Day Calendar) it is also taking precedence in determining the Transit time - which in this case I don't want, as I want my Transit time to be determined using a 5 Working Day Calendar.
    I don't think this problem has a config option as a work around...I think the only possibility in this case is a development to achieve the results we need.
    Thanks,
    Ravelle

  • To date calculations with roling calendar

    Hello,I am relatively new to Essbase and we are in the middle of building an inventory analysis database. We have 5 dimensions:Accounts,Time,Version,Customer,ProductThe time dimension spans from Year-Season-Quarter-Month-Week. Includes annual totals for 4 years. I have a rolling calendar and I do not use a scenario member to designate the year. I also have an alternate roll-up representing a fiscal year.My time dim looks somthing like this:TIME..Y2001...Fall....Quarter1.....Jan01......WK 2003-10-13..Y2002...etc, etcI am trying to come up with a YTD, STD, and MTD number for base sales_unit data. I should be able to get that number no matter what period selected in a report. For example if I am looking at Week 10-13-2003, I need to see what my MTD, QTD, and YTD numbers are for that date-member, same goes for upper level members in time. I can't use DTS because it only (seems to) work for the generation it's assigned too. Furthermore with DTS, I need the date results for my average inventory calc too.So the only way I could get this to works was with a VERY long series of if statements for each time member.Here are a few examples: For Month: IF (@ISMBR(Month01-2001)) @SUMRANGE(Sales,WK2001-02-10:WK2001-03-03); ENDIFFor Quarter: IF (@ISMBR(Quarter1-2001)) @SUMRANGE(Sales,WK2001-02-10:WK2001-05-05); ENDIFFor Season: IF (@ISMBR(Fall-2001)) @SUMRANGE(Sales,WK2001-02-10:WK2001-08-04); ENDIFThis works but data retrieval times are too slow (16 minutes) for dynamic calcs and the calc script runs for more than 6 hours.It's obvious to me that this will give me the correct results but it will not work because of performance. Any suggestion on how to deal with a to date number with reasonable calc times using a rolling calendar would be graetly appreciated!Russell Krauss, VF Inc

    I've run into similar problems and one thing I have given into is that there is no one solution. What I have been using is multiple alternate roll-ups using shared members. My Time dimension will have three or four sub-roll-ups (i.e. "By Month", "By Week", etc.) I do this by sharing the base level members (daily data). I'm not sure if it would be possible to do what you are looking to do in one roll-up because weeks will inevitably over lap months. I will check back however to see if anyone else has suggestions. One more thing to consider, if your time dimension is sparse (which is probably not a good idea in this case) but if it is, you could use attribute dimension to group some of your dates, particularly the seasons. Good luck!

  • Report in MM for PO & PR with date

    HI,
    Can you tell me any report in MM where we can get PO and PR with their creation date..
    Thansk,
    Dharmveer

    hi,
    you can say document date as creation date..
    You can get it differently but not combined anywhere...
    this might be because one is internal doc(PR) and other is external doc(PO)...
    You can do one thing...Create your own SQVI query joining table EBAN, EKKO etc...
    Regards
    Priyanka.P

  • Implement check for File Names with data into TRG table

    hi,
    I am trying to load the Multiple files names & Autonumber to oracle table T1 which is further loaded the auto-number with data to target table TRG. My problem is when the same name file comes again due to size then load it again. & also don't insert Target (TRG) table rows with same data while insert the only those records/rows which are not in Target Table(TRG) .. Is this standard approach. becoz in this way I thing loading Performance speed will b down??
    Any other or best recommended approach???/
    Thanks
    Regards,
    AMSIII
    Edited by: AMSI on Dec 11, 2012 9:54 PM

    Hey Jason,
    Create a validation of type exists. in expression 1 put:
    SELECT 1
    FROM DUAL
    WHERE UPPER(:P9_FILE) LIKE '%TEST.HTML';
    {code}
    change P9_FILE to your file browse item name and change '%TEST.HTML' to '%YOUR_FILE_NAME'
    Hope this helps,
    Tyson                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Formula Variable for Current Time

    Friends,
    Is there any standard formula variable available to display Current Time in Report??..like we have 0F_ADAY to display current date..
    Thanks in advance..
    Regards,
    Yog

    I am not sure that standard fomula variable existed for the current time. But
    you can create a formula variable with customer exit processing type. Then write an exit with SY-UZEIT. you will get the current time.
    Hope it helps.
    Veerendra.

Maybe you are looking for

  • How to add the Match code object for the requisitioner field in TCODE ME51N

    Hi, How to add the search help (Match code object) for the requisitioner field in transaction ME51N. Please  do the needful to me. Regards Rajesh

  • Printing w/graphics and borders...

    I have one small problem, when I'm trying to print an invoice from a osCommerce interface the packing slip to print includes in the shipping boxes straight lines and rounded edges which are not lined up on the Mac. This is OS X 10.4.6 and I can dupli

  • Images shrink from Indesign CS4 to PDF

    I design ads at a set size in a frame in Indesign CS4. I just noticed that when I print them to PDF (regardless of the PDF distiller settings), they shrink. I have the print dialog box settings at 100%. Printing to a physical printer does not have th

  • New lot not appearing in qa32 - v urgent

    Hi all, I have an urgent issue to resolve. we have developed a report that shows those batches -for which UD has been done 8 days before but no despatch till date  OR -for which no UD has been done and date of production is 8 days before from today.

  • Wireless Projector and Macbook Air

    I have a Macbook Air and I will be giving a presentation next week. I was told that they have a wireless projector for me to use. What exactly do I need to use a wireless projector on my Macbook Air? I have the cord that is used to attach for wired p