Req Help on Query name

Hi All
I need a report where we can see the User Usage of queires,,
I Have installed Statistics also, but not able to find the exact query. If anybody worked please let me know.
Or let me know how to create a custom query
Appreciate your help
Regards,
Ashwin

Hi Varun,
If you have installed technical content then you can find Usage statistics by using below queries.
0TCT_MCA1_Q0141 - No.of BI Application Object Executions per User
0TCT_MCA1_Q0142 - No.of Executions per BI Application Object
0TCT_MCA1_Q0143 - No.of BI Application Executions per User
0TCT_MCA1_Q0144 - No.of Executions per BI Application
For more details check below link
http://help.sap.com/saphelp_em70/helpdata/en/cc/c28ef76cf247a2b221d8ec588cf35d/content.htm
Regards,
Ashish

Similar Messages

  • Help me query tunning

    Hi Guru's
    Can you please help me query tunning.
    Database Version : Oracle 11g - 11.2.0.3
    select  distinct  corporation_name custer_name,
            glog_util.remove_domain(SHIP_BUY.SERVPROV_GID ) SCAC,
            glog_util.remove_domain(ship_buy.shipment_gid) buy_shipment_gid,
            F_Get_SELL_ID_STRING(SHIP_BUY.SHIPMENT_GID) sell_shipment_gid,
            ship_buy.domain_name,    
            F_GET_ORDER_RELEASE_GID('B',SHIP_BUY.SHIPMENT_GID,0) ORDER_RELEASE_GID,
            f_get_refnum_string('SHIPMENT', ship_buy.shipment_gid, 'MBOL_NUMBER_CLEANSED')MBOL_NUMBER,
            F_GET_POD_RECEIVED_DATE (ship_BUY.SHIPMENT_GID) POD_RECEIVED_DATE,
            f_get_exp_accrue_amt(ship_buy.shipment_gid,'SHIPMENT') Total_accrual_amount    
    from shipment ship_buy,
            invoice inv,
            invoice_shipment si,
            --voucher v,
            corporation corp
    where corp.domain_name=ship_buy.domain_name
            and corp.is_domain_master='Y'
          and 1=1
          AND ship_buy.domain_name like 'UPS/CP/DFP/%'
          and F_GET_POD_RECEIVED_DATE (ship_BUY.SHIPMENT_GID)  <= to_char(to_date('31-JUL-2013', 'DD-MON-YYYY'), 'dd-mon-yyyy')
            --and V.INVOICE_GID(+) = inv.invoice_gid
            --and ship_buy.domain_name = 'UPS/CP/VZNB'
            and si.shipment_gid(+) = SHIP_BUY.SHIPMENT_GID
            AND SI.INVOICE_GID = INV.INVOICE_GID(+)
            and SHIP_BUY.INSERT_DATE > '1-JAN-2007'
            and SHIP_BUY.USER_DEFINED1_ICON_GID = 'ACCEPTED'
    UNION        
    select  distinct  corporation_name custer_name,
            glog_util.remove_domain(SHIP_BUY.SERVPROV_GID ) SCAC,
            glog_util.remove_domain(ship_buy.shipment_gid) buy_shipment_gid,
            F_GET_SELL_ID_STRING( SHIP_BUY.SHIPMENT_GID) sell_shipment_gid,
            ship_buy.domain_name,    
            F_GET_ORDER_RELEASE_GID('B',SHIP_BUY.SHIPMENT_GID,0) ORDER_RELEASE_GID,
            f_get_refnum_string('SHIPMENT', ship_buy.shipment_gid, 'MBOL_NUMBER_CLEANSED')MBOL_NUMBER,
            F_GET_POD_RECEIVED_DATE (ship_BUY.SHIPMENT_GID) POD_RECEIVED_DATE,
            f_get_exp_accrue_amt(inv.invoice_gid,'INVOICE') Total_accrual_amount  
    from shipment ship_buy,
            invoice inv,
            invoice_shipment si,
          -- voucher v,
            corporation corp
    where corp.domain_name=ship_buy.domain_name
            and corp.is_domain_master='Y'
            and 1=1
            AND ship_buy.domain_name like 'UPS/CP/DFP/%'
            and F_GET_POD_RECEIVED_DATE (ship_BUY.SHIPMENT_GID)  <= to_char(to_date('31-JUL-2013', 'DD-MON-YYYY'), 'dd-mon-yyyy')
          --AND INV.DOMAIN_NAME = 'UPS/CP/VZNB'
          --and V.INVOICE_GID(+) = inv.invoice_gid
            and si.shipment_gid(+) = SHIP_BUY.SHIPMENT_GID
            AND SI.INVOICE_GID = INV.INVOICE_GID(+)
            and SHIP_BUY.INSERT_DATE > '1-JAN-2007'
            and INV.USER_DEFINED1_ICON_GID = 'ACCEPTED'
    GROUP BY corporation_name,SHIP_BUY.SHIPMENT_GID,SHIP_BUY.SERVPROV_GID,ship_buy.domain_name,inv.invoice_gid
    ORDER BY CUSTER_NAME, BUY_SHIPMENT_GID;
    And I generated the execution plan :
    | Id  | Operation                          | Name                    | Rows  | Bytes | Cost (%CPU)| Time    |
    |  0 | SELECT STATEMENT                  |                        |    3 |  448 |  415  (2)| 00:00:05 |
    |  1 |  SORT UNIQUE                      |                        |    3 |  448 |  414  (87)| 00:00:05 |
    |  2 |  UNION-ALL                        |                        |      |      |            |          |
    |  3 |    NESTED LOOPS OUTER              |                        |    3 |  384 |    57  (0)| 00:00:01 |
    |*  4 |    HASH JOIN                      |                        |    3 |  294 |    54  (0)| 00:00:01 |
    |*  5 |      TABLE ACCESS BY INDEX ROWID  | SHIPMENT                |    3 |  195 |    40  (0)| 00:00:01 |
    |*  6 |      INDEX SKIP SCAN              | IND_SHIP_DOM_ICON      |    54 |      |    25  (0)| 00:00:01 |
    |*  7 |      TABLE ACCESS FULL            | CORPORATION            |    4 |  132 |    14  (0)| 00:00:01 |
    |*  8 |    INDEX RANGE SCAN              | IND_INVOICESHIP_SHP_GID |    1 |    30 |    1  (0)| 00:00:01 |
    |  9 |    HASH GROUP BY                  |                        |    1 |  192 |  356  (1)| 00:00:05 |
    |* 10 |    HASH JOIN                      |                        |    1 |  192 |  354  (1)| 00:00:05 |
    |  11 |      NESTED LOOPS                  |                        |      |      |            |          |
    |  12 |      NESTED LOOPS                |                        |    1 |  159 |  339  (0)| 00:00:05 |
    |  13 |        NESTED LOOPS                |                        |  145 | 13920 |  194  (0)| 00:00:03 |
    |  14 |        TABLE ACCESS BY INDEX ROWID| INVOICE                |  145 |  5220 |    49  (0)| 00:00:01 |
    |* 15 |          INDEX SKIP SCAN          | IDX_INV_TYP_ICON_NAM    |  145 |      |    17  (0)| 00:00:01 |
    |* 16 |        INDEX RANGE SCAN          | UK_INVOICE_SHIPMENT    |    1 |    60 |    1  (0)| 00:00:01 |
    |* 17 |        INDEX UNIQUE SCAN          | PK_SHIPMENT            |    1 |      |    1  (0)| 00:00:01 |
    |* 18 |      TABLE ACCESS BY INDEX ROWID  | SHIPMENT                |    1 |    63 |    1  (0)| 00:00:01 |
    |* 19 |      TABLE ACCESS FULL            | CORPORATION            |    4 |  132 |    14  (0)| 00:00:01 |
    Predicate Information (identified by operation id):
      4 - access("CORP"."DOMAIN_NAME"="SHIP_BUY"."DOMAIN_NAME")
      5 - filter("F_GET_POD_RECEIVED_DATE"("SHIP_BUY"."SHIPMENT_GID")<=TO_DATE(' 2013-07-31 00:00:00',
                  'syyyy-mm-dd hh24:mi:ss') AND "SHIP_BUY"."INSERT_DATE">TO_DATE(' 2007-01-01 00:00:00', 'syyyy-mm-dd
                  hh24:mi:ss'))
      6 - access("SHIP_BUY"."USER_DEFINED1_ICON_GID"='ACCEPTED' AND "SHIP_BUY"."DOMAIN_NAME" LIKE
                  'UPS/CP/DFP/%')
          filter("SHIP_BUY"."DOMAIN_NAME" LIKE 'UPS/CP/DFP/%' AND
                  "SHIP_BUY"."USER_DEFINED1_ICON_GID"='ACCEPTED')
      7 - filter("CORP"."IS_DOMAIN_MASTER"='Y' AND "CORP"."DOMAIN_NAME" LIKE 'UPS/CP/DFP/%')
      8 - access("SI"."SHIPMENT_GID"(+)="SHIP_BUY"."SHIPMENT_GID")
      10 - access("CORP"."DOMAIN_NAME"="SHIP_BUY"."DOMAIN_NAME")
      15 - access("INV"."USER_DEFINED1_ICON_GID"='ACCEPTED')
          filter("INV"."USER_DEFINED1_ICON_GID"='ACCEPTED')
      16 - access("SI"."INVOICE_GID"="INV"."INVOICE_GID")
      17 - access("SI"."SHIPMENT_GID"="SHIP_BUY"."SHIPMENT_GID")
          filter("F_GET_POD_RECEIVED_DATE"("SHIP_BUY"."SHIPMENT_GID")<=TO_DATE(' 2013-07-31 00:00:00',
                  'syyyy-mm-dd hh24:mi:ss'))
      18 - filter("SHIP_BUY"."DOMAIN_NAME" LIKE 'UPS/CP/DFP/%' AND "SHIP_BUY"."INSERT_DATE">TO_DATE('
                  2007-01-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
      19 - filter("CORP"."IS_DOMAIN_MASTER"='Y' AND "CORP"."DOMAIN_NAME" LIKE 'UPS/CP/DFP/%')
    Statistics
        246247  recursive calls
              2  db block gets
        1660067  consistent gets
          13839  physical reads
              0  redo size
        592054  bytes sent via SQL*Net to client
          6024  bytes received via SQL*Net from client
            502  SQL*Net roundtrips to/from client
          15296  sorts (memory)
              0  sorts (disk)
          7513  rows processed

    Hmmm...why does this look familiar?
    F_GET_POD_RECEIVED_DATE (ship_BUY.SHIPMENT_GID)  <= to_char(to_date('31-JUL-2013', 'DD-MON-YYYY'), 'dd-mon-yyyy')
    SHIP_BUY.INSERT_DATE > '1-JAN-2007'
    Like I said in your other thread about this, these two lines need to be fixed and your function needs to be fixed so the return statement doesn't do an implicit date conversion.
    Can't you see what that first line is doing?  You're taking a character string, turning it into a date, then back to a character string.
    If nothing else, these lines should be...
    F_GET_POD_RECEIVED_DATE (ship_BUY.SHIPMENT_GID)  <= to_date('31-JUL-2013', 'DD-MON-YYYY')
    SHIP_BUY.INSERT_DATE > to_date('01-JAN-2007','DD-MON-YYYY')
    (assuming insert_date is a proper date format, fingers crossed)

  • How to find Query Name from Report Name

    I am trying to find a the query name for program AQFKSYSTQV000045ZCHECKNUMBERLU I have looked in Standard Work Area under all of the user groups but no luck. It is currently only in our Production System. Please suggest any other places I can look.
    Thanks in advance for your help!

    I apologize for not seeming like I have a clue....I did search the Forum...and maybe I wasn't clear with my question....again I apologize.....I am somewhat familiar with query and I understand that the query name is probably ZCHECKNUMBERLU. My issue is that I cannot find the user group. I have broken It is not a user group under Global Area or Standard Area. For example....We have a query named ASETAQUISITION.  The program name is AQFKAM==========ASETAQUISITION...This query is located in the AM User Group....Easy Find. However, the program in question is AQFKSYSTQV000045ZCHECKNUMBERLU. I have broken this program name apart every way I can think of and I cannot find a user group in my global or standard Area. So I guess I should ask, by looking at that program name, how do you determine what the user group name is so I can find the actual query?

  • How to  find out  Query name if i have Program generated by Query

    Hi Gurus,
    Can you please let me know the Query Name if i have the Program name.
    The program name is : AQTQP2P=========INVENTORY_SUM=
    I thought P2P is the user group and either "INVENTORY_SUM"  or  "AQTQP2P"  is the
    Query name but both doesn't exists in the system.
    Is there any way to get the correct Query name and User Group from the Program name.
    I have an FM : RSAQ_DECODE_REPORT_NAME  to get Query name and User group name
    but the reults given by them are P2P as user group and  "INVENTORY_SUM"  as Query name.
    I did not find any one of them in SQ01.
    Can you please help me out.
    Thanks,
    Vinay.

    Hi ,
    Thank for the information.
    In have both the Function modules.
    1. To get Query name from report name
    2. To get Report name from Query name
    I did all that stuff, still i did not find the User group or alteast some where near to it..
    there is no User Group that starts with letter P.
    But The report name is there
    i could execute it in both foreground and in background and able to get the Output as well.
    May be it is deleted from Development system.
    I do not have auth in QA and in PRD to check it.
    Can you please let me know
    By any chance the Query can get deleted and the corresponding program exists for that Query and
    we can work with the report even if the Query is deleted.
    Any ways i am goind to give you points (Vinod/Atish) for your help.
    Thanks,
    Vinay,

  • In ST03 , how can i see the Query name, user id,how many times executed the

    HI Experts,
    In ST03 , how can i see the Query name, user id,how many times executed the query.
    these details how do i get from the above transaction.
    EX:-if there is one report name X,I want to know how many users had executed X report today,weekly,monthly.
    ex:-query userid total number of execution
    sales order 0000555 5 times
    custmer 05855 2 times
    fast reply will be appreciated,

    Hi,
    Look here:
    http://help.sap.com/saphelp_nw04/helpdata/en/3b/54df4204892a78e10000000a155106/frameset.htm
    Also check these:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2d/b8be3befaefc75e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/25/ece73a39e74d27e10000000a114084/frameset.htm
    Hope this helps..
    Bye
    Dinesh

  • In ST03 , how can i see the Query name, user id,how many times .

    HI Experts,
    In ST03 , how can i see the Query name, user id,how many times executed the query.
    these details how do i get from the above transaction.
    Points will be awarded.
    BR
    sivs

    Hi Siva,
    Reporting statistics data is only written to the database table if BW statistics have been manually activated for the corresponding InfoProvider first. If this has not been done, it is therefore not possible to display any reporting statistics in transaction ST03.
    Therefore activate the reporting statistics for all relevant InfoProviders. To do this, set the OLAP flag in the BW Administrator Workbench (transaction RSA1) in the area Tools ® BW Statistics for InfoProvider.
                    Check here...........
    http://help.sap.com/saphelp_nw04/helpdata/en/ca/86df4254d81e1fe10000000a155106/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c8c4d794-0501-0010-a693-918a17e663cc
    Hope this will help you shiva.........
    Regrads,
    Vijay

  • POWL 'Query Name is already open in another session'

    Hi there,
    Our users are constantly getting the following error message when using POWL's in the Portal.
    Query <Name> is already open in another session' (POWL 016)
    The error occurs when a user tries to refresh a query and the query is locked in another session (ENQUEUE_EPOWL_QUERY_EDIT Exception foreign_lock).
    There are various root causes to why this error happens, system, application, communication etc. The one I am seeking help on occurs when the user abruptly terminates the browser session (forced or unforced) and the orphaned session is unable to close properly leaving the POWL query locked.
    We are currently informing the users to
    1.) close all windows and reload the worklist.
    and in certain circumstances
    2.) log off and log on again
    The above workaround doesnt always solve the problem. We are reluctant to give users access to SM12.
    Has anybody encountered something similar, if so were their specific settings, notes, code etc. which needed to be implemented?
    Cheers
    John P

    Try the following steps
    Please implement the note 1836401 and the prerequisites 1873487,1902580 .
    Identify the POWL Query name and set the refresh type as: 'refresh on every LIST VISIT'.
    Important: Run the report POWL_D01 and remove the result list of your POWL
    Application ID, it#s very important because the cache would still contain the old refresh type and will not recognize the new refresh type, please run the report at first for one user ant test the behaviour, if it works run it for all other user
    Pass the application parameter REFRESHA with value X to your POWL application. After that retest your issue, it should work. if not implement the note 1975395 and its prerequisites and test again
    Best regards,
    Robert.

  • How can I get the query name/aggregationslevel in my planning function?

    Hi,
    is it possiable to get the query name/aggregationslevel in a planning fuction?
    thanks for your idea.
    hongwei

    Hi,
    The interface IF_RSPLFA_INFOPROV_DESC
    provides methods for retrieving the most important properties of an InfoProvider from the point of view of the implementation class of a planning function type.
    Methods GET_T_CHARNM and GET_T_KEYFNM return the names of the characteristics and key figures in the InfoProvider.
    You can get the properties of the InfoObjects and compound information by calling method GET_TAB_IOBJ_PRO and GET_TAB_IOBJ_CMP .
    Does this help?
    Best Regards
    Shyam

  • How to find out query name in customer exit for variables

    We use the same customer exit variable in different queries. In the customer exit we want to find out, which query has called the customer exit. With the technical query name we want to read a master data table entry.
    e.g. If we come from query ZG1_TEST1 we want to use selection sel1
    Query name  |  selection
    ZG1_TEST1   |  sel1
    ZG1_TEST2   |  sel2  
    How can we find out the query name in the customer exit for variables?
    Thanks for your help,
    Evi

    Hi Evi,
    check out the structure I_S_RKB1D in your exit. It contains the query.
    Siggi

  • How to access query name in MSAccess Database?

    <p>
    I am using MsAccess as Database.The driver is not supporting some of the features, then how can I retrieve information such as getting the query name, if any way pls do help.
    Thanx.
    </p>

    Not sure I understand the question, but MS Access has some system tables which contain some informaiton on queries.

  • Cube/query name is not available in trx MDXTEST

    Hi All
    I was trying to use a custom BI query on top of infocube 0CP_SLSC6 as a source for mdx queries. I have set the property Allow External Access To This Query in BEx for the custom BI query. But in trx mdxtest I cant see the cube name in CATALOG list or the query name in CUBE list; However if I select infoprovider for CATALOG then I can see the cube name in CUBE list. Any clue how to sort this out. Thanks in advance
    Thanks & Regards
    Sudip

    I just had the same problem ... this is how I did it:
    I don't think you need to enable the query for OLE DB access to use MDXTEST - MDXTEST is just an MDX Query writer helper tool.
    To text your query/report you can just use direct entry and paste in the technical name of the query or other object; using Shift+F4 or click on the edit button (the one with the notepad and pencil)... then paste the name.
    You can get the technical name of your query/report from the end of the execute string from Favourites e.g.
    <prt_protcl>://<prt_server>/<bi_launcher>?QUERY=REP_20100610164528
    So from your Favourites, pretend you are going to change your query/report and copy the technical name REP_xxxxx or whatever and paste it into MDXTEST...
    Then choose your syntax template and add your rows and columns etc.
    Unfortunately our MDXTEST doesn't seem to be working! as I get the  error message "during allocate / CPIC-CALL: 'ThSAPCMRCV'"
    Which is covered elsewhere ... so I will contact our Admin

  • Find query name

    Hi
    There is a query made earlier thru SQVI in QAS. I know the program name which got generated but don't know the query.
    Now i want to create a query in DEV which should be same as the one in QAS.
    How can i find out the query name through the program name generated. So that i can make a fresh query in DEV.
    Helpful answers will be rewarded.
    Regards
    varun mathur

    Can anyone help me in this case??
    I just want to see the query , which was created thru sqvi.
    USERGROUP      :          SYSTQV000008
    QUERY               :           ZFRC
    CLIENT                :            410
    Where can i find this usergroup in qas.

  • Error- Query Name ZQFIAP01B Exists Already

    I have deleted an old query named ZQFIAP01B and tried to save a new query using this technical name.
    Unfornately SAP BEx produces an error saying
    "Query Name ZQFIAP01B Exists Already".
    Have any of you encountered with this type of error before? Appreciate any help on this problem.
    Thanks.

    Hi A.H.P,
    Your reply has been very useful to me.
    I have performed a check on both RSZCOMPDIR and TADIR tables. I found the query is still there.
    Next I ran the ANALYZE_RSZ_TABLES program and performed deletion on this query in order to correct the inconsistency. However, it is still there in RSZCOMPDIR and TADIR tables even after I have taken this step.
    Is there other correct approach to delete this query because I dont think I can delete it directly from RSZCOMPDIR and TADIR  tables.
    Awaiting for your reply. Thanks.

  • Find query name based on workbook id and vice versa

    Hi,
      I need to developed a progarm in which user can enter Query name ( tech name ) and  it should display all workbooks releated to it  and vice versa .
    Is there any tables which stores this relationship.?
    Wating for response.
    Thx in advance .
    Regards
    Nilesh

    hi Nilesh,
    Table RSRWORKBOOK WORKBOOKID, GENUNIID is the query ID;
    goto RSRREPDIR for detail query properties
    (query belongs, in bex analyzer, right click cell 'properties', tab 'information' - query id)
    Queries in Work Book
    determine the workbooks
    table with list of work books
    hope this helps.

  • Query name not found

    Hi SDN,
    I have given a list of infoobjects to find out  the name of queries which is using these infoObject. I have tried using “where used list” for the infoobject but it does not shows the query name. Could any one help to me to find out how to get the query name?
    Thanks in advance,
    Mars

    It is very simple mars. You goto metadata repository and select the info Object and then it will list out all the queries which is using that specific info Object.
    Hope this will help you.
    Cheers,
    Sanjiv

Maybe you are looking for