List of infoobject used in queries

hello!
can someone tell me how to find the list of the infoObjects (fields) that are being used in all queries based on some set of infoProviders?
I would like to know what tables I should be looking for.
What I'm trying to find is  the list of infoObjects used by all my users, from the genereal list of infoObjects found in the infoProviders they use.
thank you very much,
Roman

Function Modules RSZ_I_BASIC_CHA_WHERE_USED and RSZ_DB_KEYFIG_WHERE_USED will be able to tell you which queries an InfoObject is used in. You can use the RSDIOBJ table to get a list of the InfoObjects that are active in your BW system.
Create an ABAP program that does the following:
1) SELECT all of the InfoObjects in RSDIOBJ into an ITAB where the RSDIOBJ-OBVERS = 'A' (Active) and RSDIOBJ-IOBJTP = 'CHA' or 'KYF' (Character and Key Figure respectively).
2) Copy ITAB into another ITAB.
3) Delete all records with InfoObject type of Key Figure in the first ITAB, so that you only have Characteristics in the ITAB.
4) Delete all records with InfoObject type of Characteristics in the second ITAB, so that you only have Key Figures in that ITAB.
5) LOOP through the Characteristics ITAB and call the RSZ_I_BASIC_CHA_WHERE_USED FM, for each row in the ITAB, with the Import Parameters of I_OBJNM being the InfoObject being processed, I_OBJVERS always equal to 'A' and I_QUERIES_ONLY always equal to 'X'. LOOP through the structure returned and populate to a third ITAB.
6) After all Characteristics have been processed, LOOP through the Key Figures ITAB and call the RSZ_DB_KEYFIG_WHERE_USED FM, for each row in the ITAB, with the Import Parameters of I_OBJNM being the InfoObject being processed, I_OBJVERS always equal to 'A'. LOOP through the structure returned and populate to the third ITAB.
Edited by: Dennis Scoville on Nov 3, 2009 3:34 PM

Similar Messages

  • List of infoobjects used in a Query

    Hello All,
    Is there a way to know the list of infoobjects used in a query. i know i can note it down manually by opening the query in interface and the noting down maunally but i have to do the same operation for almost more than 50 queries and every query is having a good no of infoobjects used.
    i don't even find it in MetaData Repository. if there is some transaction or some place which give me the list of all infoobjects used in a query so i can simply copy paste the list in my excel report then noting down every infobject name manually.
    Thanks in advance for the help, it can save some precious time of mine.
    Regards
    Sonal

    tables may useful : RSZCOMPDIR RSZELTXREF RSZELTDIR
    RSZCOMPIC RSZELTPRIO RSZELTPROP RSZELTATTR RSZELTTXT
    RSZRANGE RSZCALC RSZCEL RSZGLOBV
    code :
    report zio_query.
    tables: RSZELTTXT,
    rszeltdir,
    rszeltxref,
    rszrange,
    RSZSELECT.
    data : begin of it_result occurs 0,
             iobjnm like rszselect-iobjnm,
           end of it_result,
           lv_iobjnm like rszselect-iobjnm.
    select-options:
    s_query for rszeltdir-mapname.
    start-of-selection.
    select * from rszeltdir where mapname in s_query
    and objvers = 'A'.
      select single * from RSZELTTXT where eltuid = rszeltdir-eltuid
      and objvers = 'A' and langu = 'N'.
      write: / rszeltdir-mapname, rszelttxt-txtlg.
    refresh it_result.
      select * from rszeltxref where seltuid = rszeltdir-eltuid
      and objvers = 'A'.
    *characteristics
      select iobjnm into lv_iobjnm
      from RSZSELECT where eltuid = rszeltxref-teltuid and objvers = 'A'
      and iobjnm <> '1KYFNM'.
        it_result-iobjnm = lv_iobjnm.
        append it_result.
      endselect.
    *keyfigures
      select low into lv_iobjnm
      from rszrange where eltuid = rszeltxref-teltuid and objvers = 'A'
      and iobjnm = '1KYFNM'.
        it_result-iobjnm = lv_iobjnm.
        append it_result.
      endselect.
      endselect.
      sort it_result by IOBJNM.
    delete adjacent duplicates from it_result comparing mapname IOBJNM.
      loop at it_result.
        write: / it_result-IOBJNM.
      endloop.
      uline.
    endselect.

  • InfoObjects used in Queries

    In BW 3.0B, is there an easy way to determine which InfoObjects are used in queries?  The ‘Where Used’ list for individual objects does not include queries.  I’m really looking for a way of determining which objects are actually used for reporting.
    Thanks in advance,
    Mike

    Hi Mike,
    You can see all queries in table RSRREPDIR , which will have some compressed name of the query in COMPUID field. This field will link it to a cross reference table which lists all the columns and rows of the report (table RSZELTXREF).
    The infoobject is stored in this table (RSZELTXREF) in a compressed format, I am not sure where to find the link to the infoobject technical name, but you can find the infoobject description in RSZELTDIR.
    This way (RSRREPDIR>RSZELTXREF>RSZELTDIR) you should get close to what you want.
    cheers,
    Ajay

  • InfoObject used

    Hi,
    I have InfoObject Cost Center defined in the InfoCube.
    I know that this InfoObject used in many Query that we created. We have use "restriction/filter" on this InfoObject in the Query i.e. Cost Center = 500100, and some query we dont.
    Question:
    1) is there a quick way to find out what Query is using this InfoObject?
    2) is there a quick way to out if the restriction/filter is used on those Query?
    Please advise, thank you.

    Try checking in tcode RSOR and RSORMDR.
    You can also follow the steps given in this thread : [Infoobject where-used list in Queries;

  • Parsing query and getting list of tables used

    Hi All,
       I require to parse sql query (simple & complex as well) and to get the list of tables used in the query.
       And need to validate that, the list of tables against a whitelist to maintained in the file.
      I tried to write my own parser, since there are lots possible ways to write complex queries, i am unable to cover all the scenarios.
      I require a help, Is there any other ways to get the list of tables used in a query?
    Thanks,
    Mahendran..

    user10279893 wrote:
    Hi All,
       I require to parse sql query (simple & complex as well) and to get the list of tables used in the query.
       And need to validate that, the list of tables against a whitelist to maintained in the file.
      I tried to write my own parser, since there are lots possible ways to write complex queries, i am unable to cover all the scenarios.
      I require a help, Is there any other ways to get the list of tables used in a query?
    Thanks,
    Mahendran..
    You'll never cover all scenarios by trying to parse a query.
    For example, what about a query that queries views and those views query pipelined functions, and those pipelined functions query other views or tables or pipelined functions etc.
    And what about a query that dynamically obtains the table names, such as...
    SQL> select
      2    table_name,
      3    to_number(
      4      extractvalue(
      5        xmltype(
      6 dbms_xmlgen.getxml('select count(*) c from '||table_name))
      7        ,'/ROWSET/ROW/C')) count
      8  from user_tables
      9 where iot_type != 'IOT_OVERFLOW'
    10 or    iot_type is null;
    TABLE_NAME                      COUNT
    DEPT                                4
    EMP                                14
    BONUS                               0
    SALGRADE                            5
    .. in this case the tables being accessed (to count their rows) are not even known within the code, they are dynamically generated queries at run-time, so the only way to know what tables are accessed is to actually run the query.
    Of course, a well designed system, with proper documentation and version control would allow you to take any database object and know where and what is using it, and whether it's even being used.

  • Infoobject used in structure stru_

    Hi guys,
    I want to delete an infoobject which should not be used any longer. I removed it from all cubs, DSO and other obejcts. Where-used list of infoobject is empty. But if I try to delete the infoobject it tells me that it is still used in structure stru_.... In the structure I found the data element of my infoobject as a member. But if I try to find out where this structure is used in SE11 with where-used list, result is empty. Because it's in the SAP namespace I can'T delete it. Any hints where this structure could be used and how I can delete it? Maybe a query?
    Regards,
    Juergen

    Hi Edwin,
    infoobject can not be found in both tables. The problem is with table/structure /bic/oizhzberabg. This data element is used in the structure stru_..... and I don'T know why has been created this structure or where it is still used and can not be found in where-used list. Because it does not start with Z or Y, I assume it was created by system. Maybe planning?
    Regards,
    Juergen

  • Finding hierarchy use in queries

    Hi BWExperts,
    We have Four Hiearchies on one Infoobject and the Infoobject is using several Queries.The requirement is, we would like to know which hiearchy is using in which query.Please advice is there any program or backend table exists for this.
    Thanks in advance.
    Regards,
    Preetham

    Hello,
    Have a look at this
    Identifying where a hierarchy is used
    Also
    https://wiki.sdn.sap.com/wiki/display/BI/ImportantTablesinSAPBI%28NW2004%29
    https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=35458&focusedCommentId=45993#comment-45993

  • Can we use multiple queries on one template

    Can we use multiple queries on one template

    Hi,
    if you're using data templates for your data set, you
    can put multiple queries in the XML data template.
    The queries may then be linked (or not) by the "link
    name" tag ...
    Grtz.Following you answer here...do you know eventually how/if possible to preview a report (with XMLP Desktop) that is using data templates for the data set?
    Thanks,
    Liviu

  • How do I select a cell in a multicolum​n list box and use scroll horizontal on th

    From an event structure, how do I select a cell in a multicolumn list box and use scroll horizontal on the front panel at the same time.  I can select a cell from the multicolumn in an event structure, but I cannot move the scroll bar on the front panel when the program is running.
    Solved!
    Go to Solution.

    I'm assuming you're referring to the scrollbar in the multicolumn listbox. What is your code doing when you select a cell? Can you please post your code so we can see the behavior you're describing? It's possible that you're blocking the event structure, as in performing some long operation in the event that's handling the cell selection. In this case the event structure has to wait until the event completes before being able to respond to the next event. You can configure the event to not lock the front panel while waiting for the event to complete.

  • How to find the list of un used table names in a schema?

    Hi,
    I have a doubt in Oracle. The doubt is that If we are using any tables in Function Or Proc.... Then...We can list all those used table names from USER_DEPENDENCIES system table. Right...
    But, If the table is used with Execute Immediate Statement, then, those table names are not coming out with USER_DEPENDENCIES system table. Because they are identified at run time and not compile time.
    It is fine. And I agree.. But, If I want to list out those tables also...then...How to do? Any idea?
    I think ‘USER_SOURCE’ system table may not be the right one. If there is any other system table avails for this purpose...then..it would be very grateful to extract right...
    So I am wanting that exact system table.
    Please let me know about this, if you have any idea or check with your friends if they have any idea.
    Regards,
    Subramanian G

    Hi Guys,
    Thanks for all your answers.
    Yes....You are all right. We can list out the used tables upto certain extent. Anyhow, I have done some R&D to derive the SQL's which is given below:
    SELECT TABLE_NAME FROM USER_TABLES
    MINUS
    SELECT DISTINCT UPPER(REFERENCED_NAME)
    FROM user_dependencies
    where
    referenced_type='TABLE' and UPPER(NAME) in
    select distinct UPPER(object_name) from user_objects where UPPER(object_type) in
    'MATERIALIZED VIEW',
    'PACKAGE',
    'PACKAGE BODY',
    'PROCEDURE',
    'TRIGGER',
    'VIEW',
    'FUNCTION'
    UNION
    SELECT UT.TABLE_NAME FROM
    SELECT TABLE_NAME FROM USER_TABLES
    MINUS
    SELECT DISTINCT UPPER(REFERENCED_NAME)
    FROM user_dependencies
    where
    referenced_type='TABLE' and UPPER(NAME) in
    select distinct UPPER(object_name) from user_objects where UPPER(object_type) in
    'MATERIALIZED VIEW',
    'PACKAGE',
    'PACKAGE BODY',
    'PROCEDURE',
    'TRIGGER',
    'VIEW',
    'FUNCTION'
    AND REFERENCED_OWNER=(SELECT sys_context('USERENV', 'CURRENT_SCHEMA') FROM dual)
    ) UT,
    ( SELECT * FROM USER_SOURCE
    WHERE NAME IN
    ( SELECT DISTINCT NAME FROM USER_SOURCE
    WHERE TYPE NOT IN ('TYPE')
    AND
    UPPER(TEXT) LIKE '%EXECUTE IMMEDIATE%'
    ) US
    WHERE
    UPPER(US.TEXT) LIKE '%'||UPPER(UT.TABLE_NAME)||'%'
    AND
    (UPPER(US.TEXT) NOT LIKE '%--%')
    The above SQL Query can list out unused tables by checking the Dynamic SQL Statement also upto some level only.
    Once we extracted the list of unused tables, having a manual check would be also greater to verify as it is should not impact the business applications.
    Regards,
    Subramanian G

  • How to find the list of users  used  transcation from last 2 days plz urgen

    hi friendd
                   i am in need of  knowing the list of users used transcation in last 2 days
    can any one help me . how to find out the list of  users and used trancation in detail or step by step
    thanks in advance .i know that i can see in st03 but i dont find any user list or trancations .
    apart from that so we have any other transcation to see the user in sap abap box
    regards
    raja

    This info has been posted before but here you go (this is an alternative way to Bernhards):
    ST03N, make sure you are in Expert Mode (not Service Engineer)
    Expand Workload
    Expand Total
    Double Click on the day you want to analyse
    You can see transaction details under Transaction Profile -> Standard
    You can see what tx a user has started under User & Settlement Statistics -> User Profile
    If you are not seeing any data then speak to your Basis administrator about what they are doing with the log files.

  • Query to find out the list of tables used in a package

    hello,
    can anyone please help me out with a query; i want to find out the list of tables used by a particular package.
    thanks,
    orton

    orton607 wrote:
    thanks for replying guys. But the thing is i am using dynamic sql execute immediate in my package, so i want those tables also and the schema name.
    thanks,
    ortonThis is not possible. The best you could do is to have a good guess.
    Or how would you parse some dynamic statement as this:
       v_suffix := 'loyees';
       v_sql := 'Select count(*) from (select ''nonsense'' col1 from emp'||v_suffix||') where col1 = ''Y'''';
       execute_immediate(v_sql);
    ...What is the table name? How do you want to parse that?
    Better rewrite all dynamic SQL statements into non dynamic ones. Or do the source control logic for those dynamic parts in an extra module. For example implement your own dependency table and force every developer to add there all dynamic parts.

  • List of Tables used in IS Retail

    Hi ,
    I am currently desingning an adapter to integrate IS Retail and non SAP BI Solution. I need your help on the complete list of tables used in IS-Retails. It would be great if you could provide me the tcodes as well.
    Expecting a prompt reply from experts.
    Regards,
    Raghu.
    SAP Adapter Specialist.

    Dear Raghavendra,
    There are lot of SAP tables in IS Retail.
    You can search all tables using transaction code SE16 or SE16N
    For which transaction, you need SAP Table details?
    Bye,
    Muralidhara

  • List of tables used in Custom Forms

    Hi All,
    I am working on forms . There are nearly 100 forms, I need to find all the tables used in these forms.
    Is there any way I can know the list of tables used in each form from backend.
    Or do I need to open each form and analyze the forms one by one?
    Thanks,
    Raj Kumar

    I am working on forms . There are nearly 100 forms, I need to find all the tables used in these forms.
    Is there any way I can know the list of tables used in each form from backend.
    Or do I need to open each form and analyze the forms one by one?You cannot get the list from the backend.
    You have 3 options here.
    Option 1) Open each form using Forms Builder and get the list of objects
    Option 2) Use Record History and LAST_QUERY
    Option 3) Enable trace
    How To Determine Table and Column Name from a Field in a Form in 11i [ID 259722.1]
    FAQ: Common Tracing Techniques within the Oracle Applications 11i/R12 [ID 296559.1]
    Thanks,
    Hussein

  • Programmatically list the fonts used in a PDF

    Hello.
    I want to make a list of all the fonts used in a PDF. After reading (again) the ISO-32000 standard, I tend to think that the only way is to cycle through the pages and list the fonts used in each one.
    Is there any other (and faster) way to do this?

    Nope - that's the only way.
    And don't forget, that you can NOT just look at the Page's Resource dict.  You need to do a full recursive walk down the content stream finding all graphic objects that themselves have resources.  Oh, and don't forget Annotations!

Maybe you are looking for

  • Cannot delete file from trash - tried EVERYTHING

    Wow. I have an incredibly stubborn file (named :VBL followed by a bunch of non English symbols) in the trash that I cannot get rid of. I have tried all the usual methods of deleting, secure deleting, using Cocktail, and literally _EVERY SINGLE METHOD

  • Unable to add Action for table - throwing Fatal error while rendering the table after adding

    Hi, I am not able to add action to the table i created. when i click on events and then Create Action for "onFilter" event, it is giving me Internal Error. The message details is: eclipse.buildId=@qualifier@ java.version=1.6.0_45 java.vendor=Sun Micr

  • BW System settings: After SAP R/3 implementaion at addtional Companys

    Currently we have gone SAP R/3 Go-Live for 2 more additional companies. And I want to know what are the basic settings has to be done in BW System for soomth upload of data from R/3 to BW System, mainly towards Fiscal Variant/Fiscal Year/Fiscal Perio

  • Ipad 2 ios 6 map issue

    I have upgraded my ipad 2 with ios6 After that they are not able to search any places in India as previously in ios 5.1.1 it was working fine. Is is possible to go back to ios 5.1.1. thanks Ajeet

  • 10.7.4 update stuck

    Hi all, Doing the safari update (i think, didnt really look as I knew it was an official update) and its been going for ages now! If I click the SOFTWARE UPDATE doc icon it brings up the update progress bar but its been right at the end now for ages!