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)

Similar Messages

  • Cache query in Portal

    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 varible 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 in portal. Please advise.
    PY

    Hi,
    Then looks like a problem with their user roles. Try to do the Root Cause. Meantime copy thier roles to new ones or change them slightly so they work.
    Cheers,
    Kedar

  • Auto populate system Current date in Info path form textbox

    Hi,
    I want to display system current date in info path when user opens new form.I have placed a text box and added now function and in format selected do not display time option.
    When i preview the form everything works as expected.the date is displaying like mm/dd/yyyy format without time :)
    But after publishing the same form to share point list when i open the form from browser the text box is not showing current date 
    Instead it is showing yesterday's date :(
    Can anyone help me to resolve the issue.
    Regards,
    Poovi

    Hi Poovi,
    According to your description, you want to enable the text box to show the current date when opening the form from browser. However, the date that your text box displayed
    in the SharePoint site page is different from the
    one in the InfoPath Designer.
    In InfoPath, the date displayed is the same as the system date. However, the date displayed in the SharePoint site
    page depends on the Regional
    settings of a site other
    than system date.
    As a solution, you could set the time zone in Regional settings of a site if needed.
    Here is a link about how to change the Regional settings of a site, you could use as a reference:
    http://office.microsoft.com/en-sg/sharepoint-foundation-help/change-regional-settings-for-a-site-HA102894666.aspx
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • How to set page number & current date in sqlplus result

    how to set page number & current date in sqlplus result

    Hi,
    Use the TTITLE command. For example:
    SET     PAGESIZE     15
    TTITLE     LEFT  &_date     RIGHT  "Page:" FORMAT 999 sql.pno     SKIP 2
    SELECT     ROWNUM
    ,     ename
    FROM     scott.emp
    ;Output:
    12-Jan-2011                    Page:   1
        ROWNUM ENAME
             1 SMITH
             2 ALLEN
             3 WARD
             4 JONES
             5 MARTIN
             6 BLAKE
             7 CLARK
             8 SCOTT
             9 KING
            10 TURNER
    12-Jan-2011                    Page:   2
        ROWNUM ENAME
            11 ADAMS
            12 JAMES
            13 FORD
            14 MILLER 
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and the results you want from that data. If your question is based on commonly available tables, like those in the scott schema, then you don't have to post any sample data: just post the output.
    Explain how you get those results from that data.
    Always say what version of Oracle (and other relevant softward, SQL*Plus in this case) you're using.

  • The date and time is not working after setting it to current date and goes back to may,26 2011

    the date and time is not working after setting it to current date and goes back to may,26 2011; 2 PM . I bought my ipod tocuh 4th gen on july 18th

    On the iPod, make sure your Calendar is set to Gregorian (Settings > General > International > Calendar).  Also make sure your date and time on your computer is correct as well as the Time Zones on both.

  • Query Error Information: Result set is too large; data retrieval ......

    Hi Experts,
    I got one problem with my query information. when Im executing my report and drill my info in my navigation panel, Instead of a table with values the message "Result set is too large; data retrieval restricted by configuration" appears. I already applied "Note 1127156 - Safety belt: Result set is too large". I imported Support Package 13 for SAP NetWeaver 7. 0 BI Java (BIIBC13_0.SCA / BIBASES13_0.SCA / BIWEBAPP13_0.SCA) and executed the program SAP_RSADMIN_MAINTAIN (in transaction SE38), with the object and the value like Note 1127156 says... but the problem still appears....
    what Should I be missing ??????  How can I fix this issue ????
    Thank you very much for helping me out..... (Any help would be rewarded)
    David Corté

    You may ask your basis guy to increase ESM buffer (rsdb/esm/buffersize_kb). Did you check the systems memory?
    Did you try to check the error dump using ST22 - Runtime error analysis?
    Edited by: ashok saha on Feb 27, 2008 10:27 PM

  • How To View An Item When Publish Date Is Set Greater Than Current Date

    Using Oracle Portal Version: 10.1.2.0.2 (Build: 139).
    The customer(content manager) uploads a document into the portal on 28-JUL-2006 07:08 AM.
    The publish date is change to 1-AUG-2006 00:01 AM.
    There is a portal user group needing to review the document prior to the publish date.
    I created an oracle procedure to display the links to the unpublished items.
    Unfortunately the links generate an item can not be found error.
    When the publish date is met the links function properly.
    How can provide a method to allow this user group to view the unpublished document without granting them the manage content privilege on the page?
    Thanks

    For anyone else struggling with this... In my case this was not working due to a bug in XI R2, XI 3.0, and XI 3.1. QueryService modifyDataProvider (tracking ADAPT01113234) has been fixed with XI Release 2 FixPack 4.5 and I've tested that it did work for me. No such fix is available for XI 3.0 or XI 3.1 as of this post but I was told that it would get a fix in the next SP (fingers crossed)

  • 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...

  • 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

  • Default current date in the variable

    Hi Friends,
                     I have developed an Ageing Query. Now the requirement is, as soon as the query is executed, by default the variable should have the current date. I have the restricted Keyfigures as 0-10, 11-25 etc in the Column. Can someone tell me, how to go about it.

    If u want to populate it through variable then-
    Create a formula variable
    In processing by give customer exit.
    Then goto T.code CMOD
    Create a project and assign the component RSR00001 to the project(Do not repeat if already done).
    Open components.
    Goto include of exit.
    Writ the code in include.
    Sample code
    CASE i_vnam.
      WHEN 'DEF_DATE'.
        IF i_step = 1.
          l_s_range-sign = 'I'.
          l_s_range-opt  = 'EQ'.
          l_s_range-low  = sy-datum.
          APPEND l_s_range TO e_t_range.
       End if
    ENDCASE.
    Then use this variable in the report.
    Assign points if usefull.
    regards,
    Rajendra

  • Date query doesn't show results for today's date

    Hello everyone. I use Jdeveloper 11.1.1.3.0 with ADF and I have a view named query with just one field, Date. The operator it is using is equal to a value written in the field. The problem is that when I insert a row into the table (the date is automatically set to the current date on insertion) and I look for today's date it returns nothing. However if I leave the field empty it will find me the row. I tried doing this with the timestamp option but it's not very user friendly as the user would have to type in the time the row was inserted in order to find it, or use the between operator for two fields which is something I want to avoid if at all possible
    The requirement is one field query that lets the user choose a date from a calendar and shows all rows inserted on that date (even if the date is today and the row was inserted a few minutes before).
    Edited by: Dino2dy on Apr 6, 2011 2:50 AM

    Dino2dy,
    My guess is that the data being stored in the DB has a time component associated with it (as it would if you were using something like SYSDATE to populate it). When you are trying to look for data with today's date, you are checking just for the date - which in Oracle is the equivalent of midnight on the start of the date. The dates don't match because the time is different.
    Either store the date with no time component (use TRUNC to remove the time), use a BETWEEN comparison, or TRUNC the date when comparing.
    John

  • Using Portal Variables in filter criteria of BEx Web App query string

    Our BI 7 instance is connected to a NW2004 portal, where we have created SAP BW Report iViews to access templates created with the Web Application Designer.  We would like to use some of the portal variables about the user to create filters for the BEx Web Application Query String.
    The query string would have a set of parameters at the end that looks something like:
    &FILTER_IOBJNM_1=0PLANT&FILTER_VALUE_1=<plant>
    Where <plant> is a value stored in a portal variable.
    Is it possible to do this in the SAP BW Report iView or will we have to code our own custom iView to pick up the variable values?
    Cheers,
    Lee Smith

    Any one?

  • 1.5 How to globally set the System Cache location

    FROM ANOTHER USER ON ANOTHER BOARD:
    This one did not get answered completely.
    ************************* Question:
    Hello,
    I want to deploy JWS on a client PC with Microsoft XP OS. This client have multiple users. JWS put a file deployment.properties in the directory "documents and setting" for the current user.
    How can I create a uniquely file deployment.properties for all users of this client (new and existing profiles) ?
    Create a directory "documents and setting/all users/application data/sun/java/deployment/" with the file deployment.properties don't work.
    Create a directory "documents and setting/default user/application data/sun/java/deployment/" with the file deployment.properties is working but is not good for the existing users. This is good uniquely for new users.
    is there a solution ?
    King regards,
    funchung
    ************************* ANSWER:
    For windows, the system config file is at:
    {Windows Directory}\Sun\Java\Deployment\
    The value of the {Windows Directory} is determined by using the Win32 API GetWindowsDirectory.
    So for example, on XP, the system config file is:
    c:\WINDOWS\Sun\Java\Deployment\deployment.properties
    The settings in this system config file will be used by all users on the system.
    ***************************** HIS REPLY
    I've tried this and it doesn't seem to work.
    I've also tried createing a deployment.config file as per the http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/properties.html article and this doesn't work for me.
    Has anyone done this successfully??
    ******************************** MY REPLY:
    This is true.
    I can get the system install to work if I add the parameter:
    deployment.system.cachedir=C\:\\testcache
    to the deployment.properties file found under:
    C:\Documents and Settings\username\Application Data\Sun\Java\Deployment
    but it will NOT work by adding it to the:
    C:\WINDOWS\Sun\Java\Deployment
    directory. It just creates a new default one in the user's folder.
    What am I doing wrong?
    If there is not a way to globally set the System Cache location, then this isn't much better than the user cache for being able to "install" the software once on the PC and let any user that signs in access that application.
    We had high hopes for this, since this functionality was taken away from us once the java cache started being stored in the user's folders.
    More details:
    I just tried setting the mandatory=true setting and it tells me that it is not allowed to start because it can't find the
    deployment.properties in the same folder (full path is displayed) but I know it is there, because it is the same folder. I even double checked the spelling.
    Maybe there is a bug in the way it finds that properties file, or maybe I need to include something in that file that I didn't find in documentation?
    All it has in it is the one line:
    deployment.system.cachedir=C\:\\testcache
    Can anybody help shed light on this?
    It seems to be a bug that it can't find the deployment.properties file in the 'system' folder.
    -Chris

    I now found more on another thread:
    http://forum.java.sun.com/thread.jspa?messageID=3500778&#3500778
    You can close this one.
    Sorry.

  • Set  Substitution Variables automaticaly with system time?

    does anyone know of a utility or a method to automatically update substitution variables with the system time?[email protected]

    Hi, another solution with maxl under NT, using environment variables:create a file test.msh:spool on to c:\test.out;login $1 $2 on $3; alter database $4 set variable $5 $6;echo "variable altered";spool off;exit;and launch via the command prompt:essmsh test.msh admin password localhost Demo.Basic datetime '%TIME%'for the date for instance:essmsh test.msh admin password localhost Demo.Basic datetime '\""%DATE%\""'Eric BelmonPartake Consulting.

  • Issue with variable screen while running query on portal or in a workbook

    Hello
    I have a peculiar problem. The query has a variable on a char which is a combination of date+time = 20100817 12:34:45.
    Now, when I give a range as selection, for ex: 08/01/2010 - 08/10/2010 the query incorporates it as 20100801 00:00:00 - 20100810 00:00:00 and it gives all the records for this range.
    1. Now, I save it as a workbook. Then if i open the workbook and run it, the output is 'No data found'. Its saying that it cant interpret 20100810 00:00:00 as a number.
    My question: I know there are no master data values specifically for 20100801 00:00:00 & 20100810 00:00:00.. but still the query works when i just give the dates. And it dosent work when i run the workbook.. why??
    Regards.

    Solved it myself.

Maybe you are looking for