Tables used in all my reports

I've got about 120 reports that are using Tables. views, or stored procedures(SQL Server).
I need to make a list of all tables that these reports are using. Is there an easier way to get this info then opening each report up in design view and listing them down?

Hi Mike,
Opening the reports then going into Show SQL Query and copying the From clause from the query and pasting into your documentation would work.  Again you do have to open each report. 
If you're bold, you could create a small app in VB that will open the report for you and retrieve the tables, then you could do with them whatever you want.
Good luck,
Brian

Similar Messages

  • How to find a cloumn or table used in all the reports

    Hi ,
    Suppose I have like 15 to 20 reports and i want search a particular column or table where it has been used in all the reports.Is there any easy way ?
    Thanks,

    Well "used in reports" can mean different things. Column used for display or columns used for filtering for example.
    For a filter column you could literally search for
    MyTable."Sales Rep"Whereas for a display column you'd need to search for
    MyTable.&quot ;Sales Rep&quot ; (without the blank space after quot
    That's simply due to how stuff gets stored in the webcat:
    <saw:column formula="MyTable.&quot;Sales Rep&quot;" columnID="c3">PS: How can you correctly escape the string &quot so it doesn't become " in here?

  • What r all the tables  used for the following report

    hai
    what r all the tables  used for the following report
    report:
    <b>
    •     Report that displays all the late shipments in a particular period of time</b>
    send important fields for this tables also
    thanks in advance.

    Hi,
       Imp table are vttk,vttp,vtts.
    Regards
    Amole

  • What are the main tables using in vendor performance report.

    what are the main tables using in vendor performance report.
    how many select statements are in ABAP reports.

    Refer the links -
    vendor performance report !!!
    vendor performance report
    vendor performance report
    I need standard vendor performance report
    Regards,
    Amit
    Reward all helpful replies.

  • Join 3 tables using FOR ALL ENTRIES

    Hi,
    I want to join 3 tables and show their result in a text file delimited by comma.
    ITs a download program.Can someone tell me how to how to join the three table using for all entires instead of inner join.please give step  by step illustration

    Hi,
    Please check below code which downloads records from 3 tables into excel file.
    if you want other file means you can specify other file type in the fm parameter
    REPORT zstemp_qty2_  LINE-SIZE 255 .
    DATA:it_vbak LIKE vbak OCCURS 0 WITH HEADER LINE.
    DATA:v_file1 LIKE rlgrap-filename.
    DATA:v_file2(80) TYPE c.
    DATA:it_vbap LIKE vbap OCCURS 0 WITH HEADER LINE.
    DATA:it_mara LIKE mara OCCURS 0 WITH HEADER LINE.
    START-OF-SELECTION.
      SELECT * FROM vbak INTO TABLE it_vbak UP TO 100 ROWS.
      IF NOT it_vbak[] IS INITIAL.
        SELECT * FROM vbap INTO TABLE it_vbap
        FOR ALL ENTRIES IN it_vbak
        WHERE vbeln = it_vbak-vbeln.
      ENDIF.
      LOOP AT it_vbap.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
             EXPORTING
                  input  = it_vbap-matnr
             IMPORTING
                  output = it_vbap-matnr.
        MODIFY it_vbap TRANSPORTING matnr.CLEAR it_vbap.
      ENDLOOP.
      IF NOT it_vbap[] IS INITIAL.
        SELECT * FROM mara INTO TABLE it_mara
        FOR ALL ENTRIES IN it_vbap
        WHERE matnr = it_vbap-matnr.
      ENDIF.
      CALL FUNCTION 'F4_FILENAME'
       EXPORTING
         program_name        = sy-cprog
         dynpro_number       = sy-dynnr
      FIELD_NAME          = ' '
       IMPORTING
         file_name           = v_file1          .
      v_file2 = v_file1.
      CALL FUNCTION 'WS_DOWNLOAD'
       EXPORTING
      BIN_FILESIZE                  = ' '
      CODEPAGE                      = ' '
         filename                      = v_file2
         filetype                      = 'WK1'
      MODE                          = ' '
      WK1_N_FORMAT                  = ' '
      WK1_N_SIZE                    = ' '
      WK1_T_FORMAT                  = ' '
      WK1_T_SIZE                    = ' '
         col_select                    = '1'
      COL_SELECTMASK                = ' '
      NO_AUTH_CHECK                 = ' '
    IMPORTING
      FILELENGTH                    =
        TABLES
          data_tab                      = it_mara
      FIELDNAMES                    =
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_WRITE_ERROR              = 2
      INVALID_FILESIZE              = 3
      INVALID_TYPE                  = 4
      NO_BATCH                      = 5
      UNKNOWN_ERROR                 = 6
      INVALID_TABLE_WIDTH           = 7
      GUI_REFUSE_FILETRANSFER       = 8
      CUSTOMER_ERROR                = 9
      OTHERS                        = 10
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      LOOP AT it_mara.
        WRITE:/ it_mara-matnr.
      ENDLOOP.
    Regds
    Sivaparvathi
    Please reward points if helpful.....

  • I am unabel to select all rows in advance table using Select All option

    Hi all ,
    I am unable to select all the rows in advance table . Select All option in advance table selects all rows present in working page but doesnt select the rows which we get by clicking next button ... i am having a requirement to select all the rows with a single click on select all , is it possible ..
    Plz help
    Thanking you all

    Hi,
    I'm using an adf table but i don't want to have the "Select All" and "Select None" options above the table. Does someone know how i have to remove those links?
    Or is there indeed a solution to override the methodes of those links?
    Message was edited by:
    Alexander

  • Populating Empty Fields for Existing Internal Table Using For All Entries

    I have an internal table called itab_extract that populates without any issues in SELECT A and SELECT B below. Trying to avoid looping, I am using select DB table 'for all entries' in itab_extract. I want the empty fields in itab_extract to populate from the values in the database. However, about 200,000 entries are being appended to the table, and, the values that existed for the already populated fields in itab_extract are gone, and the new fields are populated.
    I've played with the syntax and cannot seem to get it to work. My next option is a time consuming loop.
    How should the for all entries syntax look to accomplish filling the empty fields in the itab?   Thank-You
    *read ekko
        select ebeln lifnr aedat bsart from ekko                                                     *SELECT A*
               into  CORRESPONDING FIELDS OF TABLE me->itab_extract
               where aedat in r_aedat.
        select ebeln lifnr aedat BSART from ekko                                                  *SELECT B*
               appending CORRESPONDING FIELDS OF TABLE me->itab_extract
               where aedat in S_DATE2 AND
                     BSART IN S_BSART.
          select ebelp werks matnr                                                                           *SELECT C*
            into CORRESPONDING FIELDS OF TABLE itab_extract
            from ekpo
            FOR ALL ENTRIES IN itab_extract
            where ebeln = itab_extract-ebeln.

    Hi Tom,
               This SQL statement will be time consuming, Do not use a loop.
    There are two options.
    1. Select EKKO and EKPO details based on standard SAP view. (You can type EKKO in se11 view to find the correct view).
        also use one range table populate r_aedat and s_date2 in the same. So you where condition will have r_newrange and   
        s_bsart. Also do not use into corresponding fields, it is not a good idea. It will increase your performance. Maintain the proper 
        sequence (Based on database structure of EKKO and EKPO)
    2. If you are keen to use for all entries, then first select ekko then after your sy-subrc check get the data from EKPO.
    Should be like this.
    select ebeln bsart aedat lifnr from ekko into table gt_ekko where aedat in r_newrange and bsart in s_bsart.
    if sy-subrc eq 0.
    sort gt_ekko by ebeln ascending.
    select ebeln ebelp werks matnr  into table gt_ekpo for all entries in gt_ekko where ebeln eq gt_ekko-ebeln.
    endif.
    Hope it helps,
    Best Regards,
    Tapodipta Khan.

  • CREATE MV ON PREBUILT TABLE uses up all UNDO; why?

    Hi,
    We have a DW application with star schemas and a few MVs. Our MVs are on top of prebuilt tables as we "manually" manage the aggregations. Creation of most of the MV definitions over the prebuilt tables is OK: they take just a few hundred milliseconds as expected when only the data dictionary is updated. But there is one MV which takes a lot of time (hours) to create and eventually it fails when it used up all UNDO (no matter how much we extend UNDO). This does not make sense at all.
    The facts and my observations:
    - 10gR2 EE with Partitioning
    - The problematic prebuilt table is range partitioned (by calendar week), no indexes. The problem-free prebuilt tables are also range partitioned (same logic) and have a bitmap index on the partition key column (DATE datatype).
    - Base table is range partitioned (by calendar week) with indexes and an MV log that is used by a single Oracle-managed MV. MV log is assumed to be OK.
    - Adding a bitmap index on the partition key column of the problematic table did not fix the issue.
    - In schemas with the same application installed but with a small amount of data, the creation of this MV takes longer than the expected few hundred milliseconds, but it is under 10 minutes (mostly under 3 minutes). After the successful creation only the expected objects (table (partitions) and MV) can be seen in user_objects.
    - MV creation worked for a while until amount of data in prebuilt table reached a certain size.
    - The MV definition is correct: same object name and same column structure as prebuilt table, MV is then used in queries producing correct results.
    - When the CREATE MV ON PREBUILT TABLE is being executed, all available UNDO is allocated until there is no more space in tablespace.
    - TEMP does not seem to be used
    - No new object or segment can be seen.
    - Execution of CREATE MV is done in parallel (32 PXs); all I could observe is that there was a "+db file sequential read+" from the data tablespace and 32 "+PX Deq Credit: send blkd+" operations
    - Execution plan is not available
    - Nothing related is in v$session_longops
    Using UNDO would suggest some DML operation, most likely INSERTs but there is no need for those. All data is ready/available, all we need is the MV definition on the top of the prebuilt table.
    So, why does CREATE MV ON PREBUILT TABLE needs UNDO ? What does it do and why?
    Thank you for your help,
    Szilard
    PS: I am not sure if this category is the best place for this thread, but the categories in BI/DW were too specific.

    Got the below error ORA-10980 in the tkprof output file
    The following statement encountered a error during parse:
    SELECT --+ STAR_TRANSFORMATION FACT( f_on_portal_churn )
    c.brand_name
    , c.subportal_name
    , c.date_id
    , c.msisdn
    , c.personalized
    , c.device_id
    , c.activity_status_id
    FROM AMXBIM23_MX.f_on_portal_churn c
    WHERE c.activity_status_changed = 'Y'
    Error encountered: ORA-10980
    =======================================

  • Trying to create table using Union All Clause with multiple Select stmts

    The purpose of the query is to get the Substring from the value for eg.
    if the value is *2 ASA* then it should come as ASA
    where as if the value is *1.5 TST* the it sholud come as TST like wise for others too.
    I am trying to execute the below written SQL stmt but getting error as:
    *"ORA-00998 must name this expression with the column alias 00998.00000 - Must name this expression with the column alias"*
    CREATE TABLE TEST_CARE AS
    SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3), len FROM test_care_lvl
    WHERE LENGTH(old_care_lvl) =5
    UNION ALL
    SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3), len FROM test_care_lvl
    WHERE LENGTH(old_care_lvl) =7
    UNION ALL
    SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3), len FROM test_care_lvl
    WHERE LENGTH(old_care_lvl) =14
    UNION ALL
    SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3),LEN FROM test_care_lvl
    WHERE LENGTH(old_care_lvl) =7 AND old_care_lvl ='Regular'
    I want to create the table using the above given multiple select using the Union ALL clause but when trying to create run the query getting error as "ORA-00998 must name this expression with the column alias 00998.00000 - Must name this expression with the column alias"
    Please guide me how to approach to resolve this problem.
    Thanks in advance.

    When you create a table using a SELECT statement the column names are derived from the SELECT list.
    Your problem is that one of your columns is an expression that does not work as a column name SUBSTR(old_care_lvl,3)What you need to do is alias this expression and the CREATE will pick up the alias as the column name, like this:
    CREATE TABLE TEST_CARE AS
    SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3) column3, len FROM test_care_lvl
    WHERE LENGTH(old_care_lvl) =5
    UNION ALL
    SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3), len FROM test_care_lvl
    WHERE LENGTH(old_care_lvl) =7
    UNION ALL
    SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3), len FROM test_care_lvl
    WHERE LENGTH(old_care_lvl) =14
    UNION ALL
    SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3),LEN FROM test_care_lvl
    WHERE LENGTH(old_care_lvl) =7 AND old_care_lvl ='Regular'
    );You may not like the name "column3" so use something appropriate.

  • Finding tables used for all modules t code

    hi Gurus
    I just come accross to one answer that enter T.Code se49 & in that screen enter the T.Codes you want to see teh tables used for that t code.
    But when i enter t code se49 the system says it does not exists.
    Does it have any varsion problem ? I m working on ECC 6.0
    Please let me know if any t code is there for the same.
    Thanking u
    Santosh Rothe

    Hi
    i dont think there is a tcode se49, and what exactly are you trying to see here to view tables we have SE12 and SE16
    go and put the tables in and it will dispaly...
    here is the link which gives you an idea of tables in SAP
    http://www.erpgenie.com/abap/tables.htm
    hope this helps you
    if it helps you, please do assign points
    regards
    Jay

  • Tables used for Devloping Customer Reports Of solution manager report

    Dear All,
    Kindkly Suggest Some Tables,which i can use in developing the solution manager report.
    key fields i m using From results of Tcode      CRM_DNO_MONITOR
    ID
    PERSON RESPONSIBLE
    TEAM SUPPORT
    POSTING DATE
    PRIORITY
    THANKS IN ADVANCE.

    Update my question my deadline is up to complete,
    Regards,
    Thiru. R

  • Search Help for field of standard table used on non standar report

    Hi all.
    I need to know whether is posible to set up a "Search Help" / "Matchcode" for one standard field (LFBK-BKTVP) of a standard table (LFBK) that is going to be used on the selection screen of one new non standard report ZFK01.
    I was wondering if this could be posible under any special attributes, set up, ... for this field in the corresponding screen, but do not really know nor if that would work neither what to set up. Any other workaround would also be welcome.
    Could somebodly help?
    Thanks in advance. Regards,
    Abdali

    Hi ,
    Please try this code .It is working as per your requirement.
    *& Report  ZTESTPRO4                                      *
    REPORT  ztestpro4.
    TYPES:BEGIN OF ty_lfbk,
          bvtyp TYPE lfbk-bvtyp,
          END OF ty_lfbk.
    DATA:gt_lfbk TYPE STANDARD TABLE OF ty_lfbk,
         gs_lfbk TYPE ty_lfbk.
    PARAMETERS:bank TYPE lfbk-bvtyp.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR bank.
      SELECT bvtyp
         FROM lfbk
         INTO TABLE gt_lfbk.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield    = 'BVTYP'
          dynpprog    = sy-repid
          dynpnr      = sy-dynnr
          dynprofield = 'bank'
          value_org   = 'S'
        TABLES
          value_tab   = gt_lfbk.

  • Using (Select All) for report parameter

    Hi there,
    I am Looking for assistance in making the the (Select All) option work for a particular report. The parameter is for product families (which there are about 47 unique results for). The report is also influenced by two other parameters, one being a date type
    i.e 'MTD' 'YTD' 'MAT'. When a long date type such as MAT is selected, selecting all families causes the report to get stuck in an endless loop.
    I've tried creating my own <Select All'> item in the parameter dataset, then I have the opposite issue, the <Select All> selection works perfectly but when I try and tick two or more product families I recieve the following error:
    "An expressions of non-boolean type specified in a context where a condition is expected, near ',' "
    Parameter Dataset:
    SELECT '<Select All>' AS family_description, '<Select All>' AS family_code
    UNION ALL
    SELECT DISTINCT family_description, family_code
    FROM dim_item AS item
    ORDER BY family_description
    Snippet From Main Report Dataset:
    Where
    sales.oe_branch_code IN (@Branch)
    And
    sales.order_status <> 'X' and sales.line_status <> 'X'
    AND (item.family_code IN (@Family) OR @Family = '<Select All>')
    Any help is appreciated
    Thanks Kindly
    SQL Novice

    Hi KCBA,
    I have check the query you have provided the issue cause by the query "
    AND (item.family_code
    IN (@Family)
    OR @Family =
    '<Select All>')" you are using which is incorrect.
    If the parameter @Family have set as "Allow multiple values" then you don't need to add new label "Select All" for the multiple value parameter already have this section, if the parameter @Family is not the multiple values
    parameter and you want to select all the values or just select one, you can modify the query as below which will works fine:
    "AND (item.family_code =
    (@Family) OR
    @Family = '<Select All>'
    If you are using the stored procedure and have issue about add multiple value parameter in the where clause, you are take reference to below similar case about how to create an function to make it work:
    Passing multi-value parameter in stored procedure ssrs
    If I have some misunderstanding, please try to provide more details information about the relationship of all the parameters (Cascading or not ), current result  you have got and expect result you want(Snapshot).
    Any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Finding tables used in all the procedure.

    Hi,
    We have around 2000 procedures in our oracle 9i database.
    I want to know which procedures are calling few of the tables eg: emp or dept.
    Is there any way I can findout or Is there any tool.
    Regards
    MMU

    Make a list of all the packages and procedures and then make a sql file with the following procedure to check their definitions
    dbms_metadata.get_ddl
    Spool the output in one file and grep for hints. Keep teh track of which packages you want to modify and then modify them.
    Hope this Helps
    Regards

  • What are all the tables used for this report ? please reply

    hai
    i have practcing reports,
    so any one give me the name of the tables used for the below report
    <b>Created report for invoice details, shipping details and partner function.</b>
    thanks in advance.
    by
    ashok

    Hi Ashok,
      I am sending you the code which will display tables present in SAP with the description and jump to datadic or SE16 by selecting plus F2 or F8.
    REPORT ZZBGS044 MESSAGE-ID Z1 LINE-COUNT 65 LINE-SIZE 132
                    NO STANDARD PAGE HEADING.
    Description: This program list all tables in        regards to the   *
                 selection criteria.                                     *
    Customizing: You need not to make any customizing to use this program*
    Change of    You only have to check that tables, functions and       *
    release:     includes till exists. Bedst just to check and run the   *
                 program.                                                *
    Programmer:  Benny G. Sørensen                                       *
    Date:        July 1995                                               *
    SAP R/3      2.2F                                                    *
    Corrections----
    Date        Userid     Correction                                    *
    xx-xx-xxxx  xxxxxxxxx  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx *
    TABLES: DD02V                "SAP tables view
    DATA: BEGIN OF DYNTAB OCCURS 2000.
            INCLUDE STRUCTURE BDCDATA.
    DATA: END OF DYNTAB.
    DATA: BEGIN OF TABLES OCCURS 100.
            INCLUDE STRUCTURE DD02V.
    DATA: END OF TABLES.
    DATA: L        TYPE I,
          REPL(30) TYPE C VALUE '????????????????????????????'.
    FIELD-SYMBOLS:
    PARAMETERS:
    TABLE(30) TYPE C,
    TITLE(74) TYPE C LOWER CASE DEFAULT ' ',
    DOWNLOAD(1) TYPE C DEFAULT ' ',
    FILENAME(65) TYPE C DEFAULT 'c:SAPDOC?',
    EXCEPT(30) TYPE C DEFAULT ' '.
    START-OF-SELECTION.
    IF TABLE = ''.
    TABLE = '*' .
    ENDIF.
    IF TITLE = ''.
    TITLE = '*' .
    ENDIF.
    TRANSLATE TABLE USING '*%'.
    TRANSLATE TITLE USING '*%'.
    CONDENSE EXCEPT NO-GAPS.
    L = STRLEN( EXCEPT ).
    IF L > 0.
    ASSIGN REPL(L) TO
    ENDIF.
    SELECT * FROM DD02V INTO TABLES
    WHERE DDLANGUAGE = SY-LANGU
    AND TABNAME LIKE TABLE
    AND DDTEXT LIKE TITLE.
    HIDE DD02V-TABNAME.
    IF EXCEPT NE ''.
    REPLACE EXCEPT LENGTH L WITH
    INTO TABLES-TABNAME.
    ENDIF.
    TRANSLATE TABLE USING '% '.
    CONDENSE TABLE NO-GAPS.
    IF TABLES-TABNAME CS TABLE.
    WRITE:/ TABLES-TABNAME, ' ', TABLES-DDTEXT.
    APPEND TABLES.
    ENDIF.
    ENDSELECT.
    IF DOWNLOAD NE ''.
    CALL FUNCTION 'WS_DOWNLOAD'
    EXPORTING
    FILENAME = FILENAME
    FILETYPE = 'WK1' "ASC, WK1, DBF, DAT, bin
    TABLES
    DATA_TAB = TABLES.
    ENDIF.
    AT LINE-SELECTION.
    SET PARAMETER ID 'DOB' FIELD SY-LISEL(30) .
    CALL TRANSACTION 'SE12' AND SKIP FIRST SCREEN.
    AT PF8.
    CHECK SY-LISEL <>
      SET PARAMETER ID 'DTB' FIELD SY-LISEL(10) .
      REFRESH  DYNTAB.
      PERFORM DYNPRO USING:
         'X'  'SAPMSTAZ'     '0100'        "Selection screen
        ,' '  'DD02V-TABNAME'  SY-LISEL(10).
      CALL TRANSACTION 'SE16' USING DYNTAB MODE 'A' .
    FORM DYNPRO USING DYNBEGIN NAME VALUE.
      IF DYNBEGIN = 'X'.
        CLEAR DYNTAB.
        MOVE :  NAME TO DYNTAB-PROGRAM,
                VALUE TO DYNTAB-DYNPRO,
                DYNBEGIN TO DYNTAB-DYNBEGIN.
        APPEND DYNTAB.
      ELSE.
        CLEAR DYNTAB.
        MOVE:  NAME TO DYNTAB-FNAM,
               VALUE TO DYNTAB-FVAL.
        APPEND DYNTAB.
      ENDIF.
    ENDFORM.
    Regards,
    Azaz Ali.

Maybe you are looking for

  • Urgent help needed!! Layout table and Draw layout cell dissapeared.

    I need some urgent help. I'm using CS3 but for a while my Layout Table and Draw Layout Cell icons appear greyed and can't use them at all. Is there any kind soul out there who knows how to fix this? I'm going nuts trying all the possible options but

  • 2 analog output channels with different frequencies

    Hi, hope that somebody can help me: I created two physical tasks, analog output channels. I should give signals (triangle signals) to a scanner. The problem ist that I need these triangle signals with two different frequencies. I can create the signa

  • How to get one users meetings via admin login

    I need to get a list of meeting rooms that the user is a participant/host/presenter in. In all the documentation I look at, it always suggest to use "report-my-meetings" while logged in as the user. This really isn't an option for the system that I'm

  • How can I Find/Replace a word on all cast members together rather than one at a time?

    I currently use Director 11.5.9 with Windows 7 64 bit I have some director movies I programmed years ago.  I included the file extension .dir when I used "go to movie" statements (I didn't know any better at that time).  For example, I would write, g

  • Add multiple SMTP addressee to a single mailbox

    Here is what I tried to do. we are using exchange 2007. 1. remove secondary SMTP email address for every user, for example [email protected], [email protected],etc should be removed from mailboxes of user1 and user2. their primary SMTP is @domain1.co