Current Date in query

Hi guys,
I would that at the opening of a query in BEx, my characteristic "ZDAY" will be allways equal to todays'date.
I'm working on Infoset and so I can't use virtual characteristic...
Do you know how to do that in BW or in BEx ?
For sure, points will be assigned.
Cheers,
Vince.

I want that in my BEx report we can see :
Offer : 1        Zdat : 2007.11.23          Other_char : A ........
Offer : 2        Zdat : 2007.11.23          Other_char : B ........
Offer : 3        Zdat : 2007.11.23          Other_char : B ........
Offer : 4        Zdat : 2007.11.23          Other_char : C ........
But Zdat contains just the current date. All records have their Zdat with today's date...
It seems it doesn't work with step = 1 or 2.

Similar Messages

  • How to display current date in query header?

    Hi,
    How to display current date in query header?
    I use Query Designer for development.
    Thanks,
    Arun KK

    Hi Arun,
    You can define fixed header lines and footer lines so that when you generate the query list, they can receive current values of certain fields. When you define a header line or a footer line, you must specify a character string of the type &field, where field is the short name of a field.
    This function allows you (for example) to place a sort criterion in the header line.
    You can include the following fields as variables in the headers directly:
    %NAME
    Name of the user processing the query
    %DATE
    Current date
    %TIME
    Current time
    %PAGE
    Current page number (6 characters)
    %P
    Current page number (3 characters)
    These fields can be used in the short forms N,D,T and P. If you want to use these letters as short names for query fields, the field values from the query are used.
    You can also see the link
    [http://help.sap.com/saphelp_nw70/helpdata/EN/6e/dd68721faf11d6b1d500508b6b8b11/frameset.htm]
    Regards,
    NR

  • OWL with Default Set containting Current Date as query parameter

    Hello Everybody,
    I have a custom BO which mainly consists of a name and a time period (start and end date).
    Now I'd like to create a Default set like
    "Give me all objects with today between start and end date."
    I already tried the following:
    Filling a field using UI-Scripting:
    $data.UIState.Today = $controller.DateTimeUtils.DateNow;
    Copy the field into the search parameter
    executing the query with this search parameter.
    However, I using this approach, I only managed to search for objects matching exactly todays date, but not using greater/lower comparators.
    Furthermore I also searched for a field transformation giving me the current date but did not succeed.
    Does anyone have any ideas how to achieve this or how to get one of the above ideas to work?
    Best regards,
    Ludger

    Hello Ludger,
    That`s what I expected: The fields do not define the interval.
    Therefore you need to define it by yourself via this "less or equal".
    What you can do in the UI Designer at the query definition is to provide an interval
    For the field "CurrentDate" provide
    - SelectOption = "between"
    - Low Value = your start date
    - High Value = your end date
    - Select Option = "include"
    HTH,
        Horst

  • BI Integrated Planning - Most Current Data in Query

    Hi Experts,
    I have a small question about Integrated Planning, for a better understanding.
    in a workbook I have a reporting query and a button. the button triggers a planning function that is executed at another query (which is not displayed in the workbook).
    Both query's are built upon the same aggregate of a real time InfoProvider.
    Now when I execute the planning function, the new data (that is in the open request in the infoProvider) made by the planning function, is immediately displayed in the reporting query.
    But I did not inserted a 'most current data' infoobject in the reporting query.
    So how come that the data in the open request is displayed in my reporting query?
    Is this a new functionality of IP?
    Gr,
    K
    Edited by: Koen V on Feb 12, 2008 8:22 AM

    Thanks for the fast reply.
    Two times yes:
    - I meant the variable 'most current data'.
    - the queries are built on the same aggregate.
    So when you built a query on an aggregate on which a function is executed, it reads automatically the most current data.
    How does this happens? Is this a filter that is automatically set on the aggregate?
    I will assign points.
    Gr,
    K

  • How to suppress a row based on current date -  at query level?

    In an Bex query report i have suppress rows based on current date.
    There is no current date available in query.
    there is a date field in the query.
    If by chance the date in that field is lesser than current date, I have to suppress that row.
    How can this be achieved?

    What is the code ofr creating a variable to get values >= to current date?
    I have implemented the following code which is not working.
    data L_S_range like line of E_T_range[].
    CLEAR L_S_RANGE.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'GE'.
    L_S_RANGE-LOW = SY-DATUM.
    APPEND L_S_RANGE TO E_T_RANGE[].
    Actually i have written in class, which will be inherited in superclass.
    Edited by: akshara20 on Feb 2, 2011 1:21 PM

  • In JDBC Sender Adapter , the server is Microsoft SQL .I need to pass current date as the input column while Executing stored procedure, which will get me 10 Output Columns. Kindly suggest me the SQL Query String

    In JDBC Sender Adapter , the server is Microsoft SQL .I need to pass current date as the input column while Executing stored procedure, which will get me 10 Output Columns. Kindly suggest me the SQL Query String , for executing the Stored Procedure with Current date as the input .

    Hi Srinath,
    The below blog might be useful
    http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/03/06/executing-stored-procedure-from-sender-adapter-in-sap-pi-71
    PI/XI: Sender JDBC adapter for Oracle stored procedures in 5 days
    regards,
    Harish

  • How to assign current date/time to a formula variable in Query Designer

    How do I assign the current date to a formula variable in Query Designer? I need to use current data in a calculation and just need the date the report was run.
    Thanks

    Hi Philip,
    There is an SAP formula variable to supply the current date in a formula. I think it is 0F_ADAY...install it from business content if you cannot see it in the query designer (formula box, under formula variables) and try using it.
    Hope this helps...

  • Current Date in Olap Universe basead in Bex Query

    Hi All!
    I'm having some problems as the current date in the universe.
    I need the report that runs in background and a filter has the current date, I mean current month and year. The universe is based on a query Bex, and the query have a variable with the current month and year.
    I canu2019t filter int the query because it always bring the current month, and a only need that for a few reports, the others it gonna be filter by date choosen by the user.
    To resolve this I made this filter:
    <FILTER KEY="[0CALMONTH].[LEVEL01]">
    <CONDITION OPERATORCONDITION="Equal">
    <CONSTANT CAPTION ="Dec 2010"/>
    </CONDITION>
    </FILTER>
    And to my surprise it worked!
    I wonder if there is any way to make a filter with the current date dynamic?
    I tried in the constant caption : "[0CALMONTH].CurrentMember" or "[0CALMONTH].DefaultMember", but didnu2019t work, the query returns blank. Is there any way to do this? Is there any variable that the BW understand that I want the current month and year?
    Tks a lot!
    Livia

    Sorry! I didn't see that, but i already posted in the right forum.
    In the Universe.
    But it could be done with a filter in web i report also.
    Any ideas?
    Tks!
    Livia

  • Current date in the query

    Hi Experts,
    I want to display current date in the query in one of the time characterstic which i am including in the data target but i don't want to load anything in the data target but still i want to display the current date in the query only.
    how can i achieve this.
    thanks and regards

    Hi,
    It's a real fcahllenge or a non ABAPer.You have to create  a project in cmod and to assign enhancement RSR00002.
    In component EXIT_SAPMRSRU_001 you will find a couple of includes.
    Please add attached code. Replace  YOURCUBE by the name of your info provider and  YOURIO by the name of desired info object.
    *&  Include           ZXRSRTOP
    DATA: G_POS_YOURCUBE_ YOURIO TYPE I.   
    *&  Include           ZXRSRU02
    DATA: L_S_CHANM TYPE RRKE_S_CHANM.
    DATA: L_SUBRC1 TYPE SY-SUBRC. "execute only, if key figure really used
    CASE I_S_RKB1D-INFOCUBE.
      WHEN 'YOURCUBE'.
        L_S_CHANM-CHANM = 'YOURIO'.
        L_S_CHANM-MODE  = RRKE_C_MODE-NO_SELECTION.
        APPEND L_S_CHANM TO E_T_CHANM.
      ENDCASE.
    *&  Include           ZXRSRZZZ
    FORM USER_YOURCUBE USING I_S_RKB1D TYPE RSR_S_RKB1D
            CHANGING C_S_DATA  TYPE ANY.
    FIELD-SYMBOLS <L_YOURIO>.
    ASSIGN COMPONENT G_POS_YOURCUBE_YOURIO  OF STRUCTURE C_S_DATA TO  <L_YOURIO >.
    <L_YOURIO >.= SY-DATUM.
    ENDFRORM.
    Hope it works.
    Good Luck
    Joe

  • Mdx query to get the last date of every month if the month is current month need current date..

    i have a scenario where i need the data of last date of every month and if the month is current month need current date data...
    is it possible using MDX...

    Hi Shashi,
    According to your description, you want to return the last day for each month except current month, right?
    In MDX, we can use ClosingPeriod function to return the member that is the last sibling among the descendants of a specified member at a specified level, here is a sample query for you reference.
    with member [measures].[a]
    as
    ClosingPeriod ([Date].[Calendar].[Date],[Date].[Calendar].currentmember).name
    select {[measures].[a]} on 0,
    [Date].[Calendar].[Month].members on 1
    from
    [Adventure Works]
    And then use the IIF function to evaluate if the month is current month. Please refer to the links below.
    http://msdn.microsoft.com/en-us/library/ms145584.aspxhttp://msdn.microsoft.com/en-IN/library/ms145994.aspx
    Regards,
    Charlie Liao
    TechNet Community Support

  • Planning query donu2019t show current data

    Hello,
    I have an input ready query over an aggregation level of a real time cube. Whenever the yellow request is closed and a new request is opened, the input ready query does not show the old data. And sometimes it shows incorrect data. We found that the issue is with the Cache.
    In RSRT when opening the input ready query in debug mode with "Do not use cache setting", the query returns correct data. But the surprise thing is that, the input ready query has Cache setting as inactive (0) in RSRT. So we had to generate the Delta buffer query <infoprovider>/!!1<infoprovider> in RSRT where <infoprovider> is the name of the real time cube.
    This solved our problem and the query brought in correct data. But again when I close the second request, the input ready query again shows me no data or shows me wrong data. So again we need to generate the delta buffer query in RSRT <infoprovider>/!!1<infoprovider>.
    This is very annoying when considering the fact that you have to generate the delta buffer query every time the request is closed. This could be a overhead in maintenance and will not go well with people.
    Does anybody have any solutions for solving this issue. Is there any setting by which we can turn off cache altogether or delete cache when a request is closed etc? or worst conditions how to automate the generation of delta buffer queries every time the request is closed?
    Any help is really appreciated.
    Regards,
    Anand

    please check the below;
    Delta buffer query in RSRT for BI-IP ("<infoprovider>/!!1<infoprovider>)
    Planning query donu2019t show the current data
    Edited by: Hymavathi Yanamadala on Sep 9, 2009 5:47 AM

  • Caching Query in Portal - Variable set to System Current Date

    Hi,
    I am facing issue on caching for query in portal in Production. I have query called ABC in production with variable Master valid on for user to chooce the date. This variable is hardcoded value in General Precalculation in variable assigment session. Eg. If i run OLAP Cache today then it will hardcoded to 18.9.2008. I cannot change the production query to set to System current date unless I use new technical name for any changes eg XYZ.
    Can i use different technical name for query in portal eg. XYZ in order to capture master valid default to today date ? I will do Broadcaster - OLA Cache for XYZ and does it also cache for ABC (query in portal)
    The purpose of caching is to happen to query ABC in portal. Please advise.
    PY

    name_in gets the value of the item. So you should use copy.
    copy('',:system.current_block||'.'||:system.current_item)

  • How to get the query output depending on the current date

    i created a region of type "query",inside it created region using wizard of type "table" . in the query i filter the data depending on the current date (taken from dual table) . but still it showing no output on the page. i run the same query in the toad and its showing the 2-3 rows.
    If anybody know where the problem is then do inform me.
    thanks in advance.

    i got the answer by trying out in OAF

  • Query to deduct the time from current date and time

    I want to get the query to deduct time(180 mins) from the current date and time.
    Regards
    Pavan

    SQL> select to_char(sysdate,'dd.mm.yyyy hh24:mi:ss') curr,
      2         to_char(sysdate - interval '180' minute,'dd.mm.yyyy hh24:mi:ss') past from dual
      3  /
    CURR                PAST
    24.08.2007 16:18:37 24.08.2007 13:18:37
    SQL> 

  • Option to show values up to last closed fiscal period or up to current date

    Hello,
    How would I create a query that would ask if I want it to calculate values 'up to the current date' or for the 'latest closed fiscal period'.
    Currently I have setup a report, within which, has restricted key figures that will give the 'Period to date', 'Year to Date', and 'Last Year Year to Date' values for some RKFs, however, it would be very helpful if this report could be setup so that the user could choose whether the report provides:
    1. Values only through the last closed fiscal period
    or
    2. Values up to the current date.
    <b>For example</b> if we are in period 7 of 2006, the user could have the report show all values up to the last closed fiscal period, which in this case would be period 6 of 2006.
    Or the user could have the report show all the values up to the current date.
    Hopefully I have been clear,
    Thanks,
    Nick
    Message was edited by:
            Nick Bertz

    Nick,
        What is the problem you are facing? As San mentioned you can only report till Last Fiscal Period using Customer Exit Variables(Calculate Current Fiscal Period using Current Month and Fiscal Year Variant).
    Or as you mentioned you can create restricted Key Figures using Date or month (YTD etc)
    If i miss your requirement, please guide me.
    Regards,
    Nagesh Ganisetti.
    *Assign Points if it helps.

Maybe you are looking for

  • Bi publisher cluster on weblogic 10.3

    I'm trying to setup a BI publisher cluster on weblogic server. I managed to do it on on one physical machine. I deployed war application as an exploded archive and selected "I will make the deployment accessible from the following location C:\apps\xm

  • Saving a pdf without a "save" icon in the toolbar.

    I'm using Adobe Reader and Windows XP.  Most times I locate a pdf document on the web, I can save it by clicking the save icon (the one that looks like a floppy disc).  But, sometimes, I'm presented with a version of a pdf that allows me to print it,

  • No video on our end

    Just tried skype on xbox one. We could see them but they could not see us. The lower right hand mini screen is completely green. When I go into kinect settings, it works in there. Thoughts?

  • I just killed my Mini !

    Tonight I plugged in my USB2 pocket HDD to my Intel mini and it just shut down ! now the HDD will not power up tried on another machine but worst of all my beloved Mini has pegged out too ! What I've already tried : Unplug everthing from Mini and lea

  • Reports for MM/Projects/PM

    Hi Sap Gurus Please help i would like to get a report that will show me PR number/ PO number/ Priject spent per plant our company is a manufacturing industry, they have new projects erc Regards Susan