Created on Date for Adhoc Query

Hi Everyone,
I have a requirement for creating a query which will list the adhoc queries created by the power users.
User - Query - Infocube - Created on - No of Navs - Last Used.
Is there a way to make the BW Stats system give me the 'Created on' Day. I know it has the Last changed date which can be either the day it was created on or enhanced on.
Also (just a thought I had) .... No of Navs - this number denoted the number of times the query requested data (executions and drilldowns). Is there key figure which can give only the no of times the query was executed and not the drilldowns it made.
Any suggestions will be greatly appreciated.
Thankx!
Kumar.
Edited by: kumar saurabh on Aug 18, 2008 5:34 PM

Hi..
Pls check below code to fetch the tesxt of historical org unit. hope it will help.
*//Internal table declaration.
DATA : lt_00  TYPE STANDARD TABLE OF pa0000,
       lt_psn TYPE STANDARD TABLE OF zhrpositions,
       lt_ret TYPE STANDARD TABLE OF bapiret2,
       lt_01  TYPE STANDARD TABLE OF pa0001,
       lw_01  TYPE pa0001,
       lw_psn TYPE zhrpositions,
       lt_comps  LIKE zstr_hr_comps,
       lt_return LIKE bapiret2.
Thanks,
kl
Edited by: Narayana on Aug 10, 2010 10:50 AM

Similar Messages

  • "Source not found" Error creating URL Data control with query parameters

    Hi,
    I have a restful service for which i want to create a URL data control. I am able to create the URL data control successfully when i am not passing any parameters in the Source field. But if i am specifying the parameters in the source field like this Department=##ParamName##, something weird is happening. After giving the param string in the Source field, it asks for default param value to test the url. It tests the url successfully. After that i select XML as the data format in which i am mentioning the xsd like this . "file:///C:/..../something.xsd" . And this is when i am getting the error. "Invalid Connection. The source is not found". I am giving exactly same path for xsd which i gave while creating URL data control without query parameters. Infact i was able to create the URL data control with query parameters successfully till afternoon. after that it started giving me this error all of a sudden. Infact as soon as i was able to create a URL data contol with query parameter successfully, i took a backup of the application before moving further. But even that backup is not working now.
    As far as i understand, i dont think there will be any change in xsd if query params are passed to a web service. Please correct me if i am wrong.
    Just dont know what could be the issue. Please help
    Thanks

    Hi,
    xsd is used for the URL service to know what the returned data structure is so it can create the ADF DC metadata
    Frank

  • Save Query - An error occurred while creating connection strings for the query

    A workbook trying to edit and reload I get the following error "Save Query - An error occurred while creating connection strings for the query" No Power Pivot data model or anything.

    I am getting the same error when editing a Power Query in an Excel spreadsheet. It happens when I change a Group By step to do a Sum instead of Count Rows.

  • Creating test data for a problem

    Hi,
    I've been using this forum for a few months and it has been extremely useful. The problem is that I actually have no idea how to create test data for a specific problem. I've tried googling but to no avail. I have had other users create test data for some of my problems using a 'WITH' statement but it would be great if someone could explain the logic behind it and how to approach a specific problem where in the query I use multiple tables.
    I know it's probably a stupid question and I'm relatively new to sql but it would help a lot if I understood the process.
    Banner:
    Oracle Database 11g Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    "CORE 11.2.0.2.0 Production"
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production

    Look at the point 3 and 4. You can also follow other points too.
    Please consider the following when you post a question. This would help us help you better
    1. New features keep coming in every oracle version so please provide Your Oracle DB Version to get the best possible answer.
    You can use the following query and do a copy past of the output.
    select * from v$version 2. This forum has a very good Search Feature. Please use that before posting your question. Because for most of the questions
    that are asked the answer is already there.
    3. We dont know your DB structure or How your Data is. So you need to let us know. The best way would be to give some sample data like this.
    I have the following table called sales
    with sales
    as
          select 1 sales_id, 1 prod_id, 1001 inv_num, 120 qty from dual
          union all
          select 2 sales_id, 1 prod_id, 1002 inv_num, 25 qty from dual
    select *
      from sales 4. Rather than telling what you want in words its more easier when you give your expected output.
    For example in the above sales table, I want to know the total quantity and number of invoice for each product.
    The output should look like this
    Prod_id   sum_qty   count_inv
    1         145       2 5. When ever you get an error message post the entire error message. With the Error Number, The message and the Line number.
    6. Next thing is a very important thing to remember. Please post only well formatted code. Unformatted code is very hard to read.
    Your code format gets lost when you post it in the Oracle Forum. So in order to preserve it you need to
    use the {noformat}{noformat} tags.
    The usage of the tag is like this.
    <place your code here>\
    7. If you are posting a *Performance Related Question*. Please read
       {thread:id=501834} and {thread:id=863295}.
       Following those guide will be very helpful.
    8. Please keep in mind that this is a public forum. Here No question is URGENT.
       So use of words like *URGENT* or *ASAP* (As Soon As Possible) are considered to be rude.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Creating View Objects for complex query

    Hi All,
    I am trying to create a VO for inner query, but i am not able understand what type of bind variable to select.
    PFB the scenario:
    I have 2 tables, say orders, products
    I am supposed to execute the following query:
    Select * from Orders o, Products p where o.order_id = 123 and p.product_id in (111,222,333.....)
    In the VO when I try to create, I need to create 2 bind variables
    1 for order id and other for product id
    the problem i am facing is selecting the type of the bind variable
    I am selecting "Integer" type for order id bind variable but i am able to understand what should be the bind variable type for the product id.
    I tried to use "Array" type, but in the query it is "= : bindvariable" operator instead of "in (: bindvariable)"
    Also, please note that, the number of product_id is not fixed and is dynamic.
    So my question is:
    what should be bind variable type that should be used (for product_id case)?
    Also, please advice if it is the same way to apply the criteria in AMImpl class.
    Thanks in advance.
    Thanks,
    Varun

    Varun,
    this will not work as you can't use bind variables in sql IN queries.
    Jobinesh has bloged a solution
    http://jobinesh.blogspot.com/2010/12/using-oraclejbodomainarray-with.html and http://jobinesh.blogspot.com/2011/07/tips-on-using-oraclejbodomainarray-as.html
    or my 'trick' explained here http://tompeez.wordpress.com/2011/08/21/extending-viewcriteria-to-use-sql-contains-4/ might help to solve this.
    Timo

  • Creating a bookmark for a query in web - which tables in this context ?

    Hi Experts,
    when I create a bookmark for a query processed in web , a record in tables RSZWVIEW and RSZWBOOKMARK as well  is generated.
    I'm searching for the link between this tables - i.e. where is the connection between BOOKMARKID of RSZWBOOKMARK
    and VIEWID of RSZWVIEW ?
    Thanks in advance
    Joe

    Hi Joe,
    i don't think there is a link.
    Judging by the timestamp for some of my bookmarks the entry in table RSZWVIEW gets created just before the entry in RSZWBOOKMARK.
    However, I do not see a link between the entries other than that they get created during the same activitiy: Creating a bookmark.
    Best,
    Ralf

  • Key date for a query

    Dear All,
    I have created a customer exit variable on key date of a query.
    With this input variable i am first asking user to input one particular date say he enters 31.12.2010 then i am trying to add 1 more day to it and making it 01.01.2011.
    I have put a break point in the code but it does not stop the processing there.. report executes directly taking the first user input.
    I want to add 1 more day to the user entered date and this modifiied date should be the input date for key date field.
    Below is my code.
      WHEN 'ZCAL_DAY_EXT'.
        IF I_STEP = 2. "after the popup
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
          WHERE VNAM = 'ZCAL_DAY_EXT'.
            CLEAR L_S_RANGE.
          ENDLOOP.
          DATA: v_temp like sy-datum.
          v_temp = loc_var_range-low.
          v_temp = v_temp + 1.
          L_S_RANGE-LOW = v_temp.
          L_S_RANGE-SIGN = 'I'.
          L_S_RANGE-OPT = 'EQ'.
          APPEND L_S_RANGE TO E_T_RANGE.
        ENDIF.
    Do let me know where am i going wrong? Or is it we cannot use customer exit with Key date.
    Thanks & Regards,
    Anup
    Edited by: Anup Chaudhari on Aug 2, 2011 7:16 AM

    Hi Anup,
    Basically I_STEP = 1 is used for populating the default value which will be shown on selection screen and I_STEP = 2 is the step in which you does the processing on variable values which are entered on selection screen.
    I am surprised that your internal table is empty, actually it is supposed to contain all the variable values which are entered in I_STEP = 1.
    Can you try to add some more variables along with the current variable and check whether their value is coming in the internal table or not?
    Finally what you can try is get the user input date in one variable and then create another customer exit variable in which you will calculate the new value and use this variable in Key date, the problem might be that we are trying to modify the same variable, actually it should not be the problem but I have no clue what is happening and you can just try this alternative.
    Regards,
    Durgesh.

  • Template for Adhoc Query

    Hi
    I need to create a role  so that user can create and execute adhoc query. Please let me know the template that can be copied in this regard in BI
    Thanks in advance

    Hi,
    with Regards to WebI you can create on Report based on a Universe....Design it as needed and save it. Afterwards copy it for each new created Report on the Universe.
    With Regards to CR you can create your template and save it in the Template directory on your PC where CR is installed.
    Regards
    -Seb.

  • Oracle Forms - How can I create a Data Block with query

    Dear friends I have a question, I couldn't do this..
    I have a sql query, I want to show the datas of the query.. How can I do this. ?
    Data Block Wizard wants a table, view or stored procedure, but I have a query, how can I create a data block with my query.. I m waiting your helps..? Please...
    Semih

    Hi,
    You have two options
    1. create a view and base the block on the view
    2. create a block with a query Data Source Type of 'FROM clause query'
    Hope this helps
    Neil

  • How to create a tcode for abap query

    how to create a transaction code for abap query,
    i used a single table , my requirment is as i enter the tcode i should get the selectioin screen of my query.

    Hi
    Follow this
    . Make a transaction with parameters transaction from se93 .
    2. Put START_REPORT in the transaction
    3. Check the skip intial screen checkbox
    4. in the table control in the end of screen put these values
    D_SREPOVARI-REPORTTYPE = AQ
    D_SREPOVARI-REPORT = <USER GROUP in WHICH THE QUERY IS CREATED> G
    (G stands for GLOBAL AREA:)(Entered after a space)(G should come after 9
    chanracters(8 char for user group,one space and then G)
    D_SREPOVARI-EXTDREPORT = <QUERY NAME>
    refer this:
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/how-to-assign-a-tcode-to-a-sap-query-579623
    Regards
    Shiva

  • Create min(date) for Customer in BMM layer

    Hi guys,
    I need help in creating a first order date for a customer. I want to do this in BMM layer and use directly in reports.
    How should i create this?
    Any help Appreciated.

    I think its you sent me email with samilar Q.
    If you are doing in BMM you need to understand the schema
    assuming you got fact,day, custmer tables
    and these joined as star.
    you need to create a metric on fact as min(day.date) and set content tab to customer level
    for this you might have to map day dim to fact using fact source properties add day table.
    once you done as I said:
    just pull mindate metric in answers run it and check physical sql that should be like
    select min(date),cust_name from
    fact,day,customer
    where 2 joins goes
    group by cust_name
    Hope this helps, if helps mark

  • Creating t.code for ABAP query and Transport  it TO Production and run it .

    Hi Friends
    Thanks for ur reply ,
    The requirement is that i want to create tcode for abap query and that query can be regenearted ,
    in case of regeneration programe name i got answer programame name will be change, i created and modified query but i saw the same programe name ,,, may be it changed when it is trasnported if so then what ??
    and also pls give me solution for asiging tcode for query which is going to be regenerated.
    thanks and regards
    farukh

    Dear Farukh,
    As we know,
    Query is created in Production server and a corresponding program is generated by System.
    What we have to do is just to assign the program to the desired transaction code in Development server and transport it.
    If you have any doubts please let me know.
    Kindly assign points if you find this info usefull.
    Regards,
    Lijo Joseph

  • BIA Test: Suggestion for creating enormousTest Data for Infocubes

    Hi,
    I need to create some enormous amount of data for infocube in order to test BIA.
    I don't think my basis team will allow me to load data from Production to Sandbox and moreover production has less than 250 millions records.
    Any suggestion for 250 million records?

    Hello,
    Just an idea. If you can load a minimum of data for your cube then it is easy.
    You just have to generate for your cube for instance a datasource and then create some update rules to loop on your data.
    a. generate export datasource
    b. map it to your infosource
    c. define some update rules to ensuere your data will be different. For example in the start routine.
    Hope it helps.
    Patrice

  • How to create custom folder for parameterized query

    Hi Gurus,
    I developed a query to generate report to " who is reporting to who in organization", when i am trying to create custom folder using this query but i am getting error like "The custom sql entered contains parameter and therefore invalid". Could you please help to parameterize the emp_key in query in Oracle Discoverer. Is there any way to pass the value using external procedure for this query.
    SELECT
    lpad(' ', 8 *(LEVEL -1)) || emp_last_name, emp_key, manager_id, emp_key, manager_key,
    mgr_last_name, mgr_first_name, empid,
    emp_last_name, emp_first_name, LEVEL FROM cmp_ppl1 START WITH emp_key = &emp_key
    CONNECT BY PRIOR emp_key = manager_key;
    Thanks & Regards
    Vikram

    I agree 100% that it's way easier to create a dataview or a custom folder - with no run time parameters being passed to the EUL - as is being done by Vikram.
    The only concern I would have is that I don't know if it would work - or at least ever come back in reasonable time - for Vikram and therefore the question about parameters (only Vikram can say).
    The reason I'm wondering is that I've created SQL similar to being shown (when used in an org chart report at a large client) and the start / connect by is used for going down the tree getting everyone on the way. And if it's not limited - that could be a huge undertaking - of records and/or time. Guess it depends on how many people work at the organization (and of course, levels).
    But otherwise, absolutely, I would try and bring back all logical records to the folder and then filter in Disco.
    Russ

  • Create list dates for spefic month

    I need to create function which i send two parameteres frist  for year (2013) and second prameter for month (09)
    to out list dates for this month

    You can do it with SQL like this...
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select 2013 as yr, 9 as mn from dual)
      2  --
      3  select trunc(to_date(to_char(mn)||'/'||to_char(yr),'mm/yyyy'),'mm')+level-1 as dt
      4  from   t
      5* connect by level <= extract(day from last_day(to_date(to_char(mn)||'/'||to_char(yr),'mm/yyyy')))
    SQL> /
    DT
    01-SEP-2013 00:00:00
    02-SEP-2013 00:00:00
    03-SEP-2013 00:00:00
    04-SEP-2013 00:00:00
    05-SEP-2013 00:00:00
    06-SEP-2013 00:00:00
    07-SEP-2013 00:00:00
    08-SEP-2013 00:00:00
    09-SEP-2013 00:00:00
    10-SEP-2013 00:00:00
    11-SEP-2013 00:00:00
    12-SEP-2013 00:00:00
    13-SEP-2013 00:00:00
    14-SEP-2013 00:00:00
    15-SEP-2013 00:00:00
    16-SEP-2013 00:00:00
    17-SEP-2013 00:00:00
    18-SEP-2013 00:00:00
    19-SEP-2013 00:00:00
    20-SEP-2013 00:00:00
    21-SEP-2013 00:00:00
    22-SEP-2013 00:00:00
    23-SEP-2013 00:00:00
    24-SEP-2013 00:00:00
    25-SEP-2013 00:00:00
    26-SEP-2013 00:00:00
    27-SEP-2013 00:00:00
    28-SEP-2013 00:00:00
    29-SEP-2013 00:00:00
    30-SEP-2013 00:00:00
    30 rows selected.
    So turning that into a function is easy enough

Maybe you are looking for