TO FIND TABLES USED IN PROGRAM ?

Hi
How to List all the Tables used in the Report or Module pool Program
I need to find all the tables which is declared and as well as  used in the program
any way
I used ST05 transaction , Se49 not available ......
Any Function module available to do this or any tools...........
Jude

Hi all
the Solution is given as a program
REPORT  ztesttables.
DATA line(100) TYPE c .
DATA:itab TYPE TABLE OF line,
     wa_tab LIKE LINE OF itab.
PARAMETER program TYPE sy-repid.
CALL FUNCTION 'GET_TABLES'
  EXPORTING
    progname   = program
  TABLES
    tables_tab = itab.
SORT itab BY line.
DELETE ADJACENT DUPLICATES FROM itab COMPARING line.
LOOP AT itab INTO wa_tab.
  WRITE wa_tab-line.
ENDLOOP.
Regards,
B.Jude

Similar Messages

  • Synchronizing Two Custom Z Tables Using Abap Program

    Hi,
        My requirement is Synchronizing two custom z tables using abap program me.
    I have vendors in two tables, i have to select the common vendors from first which are existing in second  table also.
    In first table each vendor can have more than one supplier types in one field only. In second table these supplier types are divided into
    different fields.
         My requirement is I have to check supplier types in first table and i have to pass X to corresponding supplier types in second table vendor.
    I have to pass X value for each depending in Second table depending upon supplier type in first table.
    . How to do it can any one suggest with code.
    Thanks in Advance,
    Vivek
    <subject edited by moderator>
    Message was edited by: Manish Kumar

    Hi,
    Imho, you need to get (meaning, extract into separate fields) the different supplier types from Table1 first. Your key for Table1 is the vendor no, which is also the key in Table2 (or the key for Table2 is Vendor no & Type).
    For better performance, better select multiple/all required entries from Table1 instead of doing a select endselect.
    Depending on the format of the vendortypes in Table1, put them in a new itab (for our purpose named Table1New where vendor no & type are the only 2 fields. For example, if the type length is fixed to 2 chars, or divided by space,... use your coding accordingly.
    Next step is to select all vendor no's in Table2 which you have selected in Table1. If in Table2, the vendor no is the only key (and the all vendor types are filled in a single record), then loop check the vendor types from Table1New against the types in Table2.
    If the key of Table2 is vendor no & vendor type, then do a read table for the key.
    The logic in pseudo-code:
    Select from Table1 into table. If you'd like to limit the selection size, add package size statement.
         extract the vendor types in to itab Table1New.
         Select the vendor & types from Table2 by using the for all entries option (better performance).
         loop at Table1New
              check in Table2:
                   if the unique key is vendor no: check all fields for the vendor type from Table1New
                   if the unique key combo is vendor no & type: check by using a read table.
              If not found => add entry to Table2
         endloop.
    endselect Table1 (when using package size)
    I guess the most difficult step is to extract the types from Table1 into separate fields, all the rest seems straight forward. Please keep in mind the itab type definitions for a better performance.
    Good luck!
    Best regards,
    Zhou

  • Access table using ABAP program in other database

    Dear SAP Expert,
    We have requirement that related to SAP interface.
    Our SAP system run on Oracle database 11g (Unix).
    Illustration: SAP system = A non SAP system = B
    We need to access a table using ABAP program (from SAP system A) in other database (system B) that are not necessarily SAP database. The non-SAP system using SQL Server 2008 (Windows).
    What is the best practice for this interface
    Do we need database link? If yes, please help to inform me the details step to configure it.
    Thanks and Regards

    Hi Friend,
    You try using an intermediate system..passing your input required to fetch the data..and PI should call the respective query to retrive record..once the full flow is completed you should get the return through some table in the calling program.
    else.
    ask the other system guy to write a function with select query and ask him to expose as RFC and that RFC we have to call it as RFC in our program to get the required values and only thing we need here is a proper connector in place.
    Regards
    S.Janagar

  • Exporting and importing table using R3trans program between 2 clients

    Hi,
    How to export and import a table between to clients in a same system using R3trans program?
    I need to copy a table from Client 020 in a system to client 040 of the same system using R3 trans. I need to know the procedure.
    Can any one advice
    Regards,
    Suresh

    This is how you do a export and import of table entries.
    Export:
    Open Notepad and type the following,
    export
    client = 020
    file = 'clone.export.<sid>.<client no>.data'
    select * from <client_dependent_tablename1>
    select * from <client_dependent_tablename2>
    select * from <client_dependent_tablenamen>
    Save the file as export.ctl
    Run R3trans export.ctl
    and the data of these files will be stored in a file called clone.export.<sid>.data in the directory from which you have called R3trans
    Import:
    Open Notepad,
    import
    client = 040
    file = clone.export.<sid>.<client no>.data
    buffersync = yes                                               
    Save the file as import.ctl
    Run R3trans import.ctl
    Cheers!
    Bidwan
    Message was edited by:
            Bidwan Baruah

  • How to find table used in java based forms

    In R12 how can i find table name used in Java Based forms.

    Record history for OAF / Selfservice pages is only available in R12.1.1 - pl see MOS Doc 565870.1 (Oracle Application Framework (OAF) Release Notes, Release 12.1.1) - it is not available in 11i and 12.0.x releases.
    HTH
    Srini

  • Transaction for table used by programs

    Hi All,
    I want to know the table TOA01 is used by program.
    Please let me know any transaction is theare for this.
    Thanks and regards,
    zubera

    Hi,
    follow these navigation steps,
    ->SE11
    ->Enter the Table name as TOA01
    ->Hit (CtrlShiftF3) or Click on Where-Used-List from Application toolbar
    ->Select Programs, Deselect Other options(if u want only program names)
    ->Click on Continue
    Bye,
    KC

  • Finding table used in CJI3 transaction

    Hi experts,
      I am creating a report to produce the output of cji3 transaction.Getting the input as project or WBS i have to calculate actual amount.
    For that i want to know the tables used in this transaction.Please help me..
    If any one can tell the tables used this "s_alr_87013558" trancaction is also ok.
    Thanks & Regards,
    Karthik.

    Hi,
    After going into any transaction press F1 where you usually enter the value and then you get performance assistant in that performance assistant press the tab technical information......
    it will give you the name of the table and also the fieldname of that particular field.
    for example :-
    In  transaction "s_alr_87013558" :-
                                      table                field name
    For  Database prof :-    TCNT              PROF_DB
    Reward if helpful.
    regards,
    Syed

  • 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

  • Locate Database table used in Program / Transaction

    Hi  Friends,
        I wanted to know that Is there any standard method which would show all the Database tables/query used in that program/Transaction.
       I heard there was Program in 4.6 version as i am unaware of that as well.
       Please if anybody can help me on this
    Thanks

    Hi,
    You can use SQLTrace.
    Check this link.
    How to know the List of Tables that are updated through a ABAP Program
    Kindly reward points by clicking the star on the left of reply if this is useful.

  • Finding tables used by transaction CM29

    Hi guys,
    I have to create a report with information from transaction CM29 (Planning table SAPPI_G001).
    The report must list all orders scheduled for a resource (orders in the 'Resources' area) in a period. My problem is to find the tables where that transaction saves the information. I have used ST05, looked for functions and tried debugging, with no success, so through tables I cannot know when the order is in the 'Resources' area or when it is in the 'Pool' area.
    Has anybody worked with it?
    I would appreciate any help.
    Thanks.

    Hi,
    Please check the following tables:
    crhd,            
    kbed,            
    kako,            
    einzkap,         
    afih,            
    afpo,            
    cyafvg,          
    cyauko,          
    iloa,            
    plaf,            
    pers,            
    sauf,            
    tj48,            
    cyfi2.           
    Hope this helps.
    Thanks,
    Srinivasa

  • How do i import my local csv files into HANA database as temporary tables  using java program?

    I want to import my local csv file into database for further apply Join with other tables programmatic in JAVA

    Hi Vivek,
    Please go through the following blogs and video to resolve your issue.
    Loading large CSV files to SAP HANA
    HANA Academy - Importing Data using CTL Method - YouTube
    Hope it helps.
    Regards
    Kumar

  • 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

  • Tables used in standard t-code

    Hi Experts,
    Can anyone tell me how to find tables used in standard transactions.
    Thanks,
    Swarna.

    hi,
    u can find all tables in DD02l table.
    check this program.it will give u all tables used in a program.
    so in ur standard transaction goto system - status - program name n execute tht in this report.
    *& AS : ALV report to display the dictionary objects
    *& (tables/structures/views of all types of delivery classes)
    *& used by a program.                                                  *
    REPORT  ZALV_TABLESPROG                                    .
    *ALV type pools declarations
    TYPE-POOLS : slis.
    *Internal table and work area declarations for dd02l and dd02t
    DATA :  it_dd02l TYPE STANDARD TABLE OF dd02l,
            wa_dd02l TYPE dd02l,
            it_dd02t TYPE STANDARD TABLE OF dd02t,
            wa_dd02t TYPE dd02t.
    *DATA DECLARATIONS FOR PROGRAM NAMES
    DATA : progname LIKE sy-repid.data : prognames(60) type c.
    *Structure for output
    TYPES : BEGIN OF ty_output,
           tabname LIKE dd02l-tabname,
           tabclass(20) TYPE c,
           contflag(80) TYPE c,
           text LIKE dd02t-ddtext,
           END OF ty_output.
    *Internal table and work area declarations for output
    DATA : it_output TYPE STANDARD TABLE OF ty_output,
            wa_output TYPE ty_output.
    *Structure for table names
    TYPES : BEGIN OF ty_names,
            name LIKE dd02l-tabname,
            END OF ty_names.
    *Internal table and work area declarations for table names
    DATA : it_names TYPE STANDARD TABLE OF ty_names.
    *data declarations for ALV
    DATA: it_layout TYPE slis_layout_alv,
          wa_fieldcat TYPE slis_fieldcat_alv,
          it_fieldcat TYPE slis_t_fieldcat_alv.
    SELECTION SCREEN ************************
    PARAMETERS : program LIKE sy-repid.
    INITIALIZATION **********************
    INITIALIZATION.
    START OF SELECTION.
    START-OF-SELECTION.
    *Select to check if the program exists
    select single name from trdir into prognames where name = program.
    *If Program does not exist message is thrown
      IF sy-subrc <> 0.    MESSAGE 'PROGRAM DOES NOT EXIST' TYPE 'I'.
      EXIT.
      ENDIF.
    *Calling FM to get the tables associated with the program
    progname = program.  CALL FUNCTION 'GET_TABLES'
        EXPORTING
          progname   = progname
        TABLES
          tables_tab = it_names.
    *Check if there are tables in the internal tabel
      IF it_names IS INITIAL.
      MESSAGE 'DATA DOES NOT EXIST' TYPE 'I'.
      EXIT.
      ELSE.
    *Subroutine to get the table details
        PERFORM TABLES_IN_PROGRAM.
        ENDIF.
    *output display
      PERFORM alv_output.
    *& Form TABLES_IN_PROGRAM
    text
    FORM TABLES_IN_PROGRAM.
    *To fetch Tables and their features
      IF it_names[] IS NOT INITIAL.
      SELECT tabname tabclass contflag FROM dd02l
        INTO CORRESPONDING FIELDS OF TABLE it_dd02l
        FOR ALL ENTRIES IN it_names
        WHERE tabname EQ it_names-name.
        ENDIF.
    *To fetch the texts for the table
      IF it_dd02l[] IS NOT INITIAL.
      SELECT tabname ddtext FROM dd02t INTO CORRESPONDING FIELDS OF TABLE it_dd02t
        FOR ALL ENTRIES IN it_dd02l WHERE tabname EQ it_dd02l-tabname AND ddlanguage = 'E'.
        ENDIF.
    *If no data is selected throw message
      IF sy-subrc <> 0.
      MESSAGE 'DATA DOES NOT EXIST' TYPE 'I'.
      EXIT.
      ENDIF.
    *Appending values to the output table
      LOOP AT it_dd02l INTO wa_dd02l.    wa_output-tabname = wa_dd02l-tabname.
        wa_output-tabclass = wa_dd02l-tabclass.
        wa_output-contflag = wa_dd02l-contflag.    READ TABLE it_dd02t INTO wa_dd02t WITH KEY tabname = wa_dd02l-tabname.
        wa_output-text = wa_dd02t-ddtext.
        APPEND wa_output TO it_output.
        CLEAR wa_output.  ENDLOOP.
    *modifying the values in the output table for texts
      LOOP AT it_output INTO wa_output.    AT NEW tabname.
          READ TABLE it_dd02l INTO wa_dd02l WITH KEY tabname = wa_output-tabname.      CASE wa_dd02l-contflag.
            WHEN 'A'.
              wa_output-contflag = 'Application table (master and transaction data)'.
            WHEN 'C'.
              wa_output-contflag = 'Customizing table, maintenance only by cust., not SAP import '.
            WHEN 'L'.
              wa_output-contflag = 'Table for storing temporary data, delivered empty'.
            WHEN 'G'.
              wa_output-contflag = 'Customizing table, protected against SAP Upd., only INS all'.
            WHEN 'E'.
              wa_output-contflag = 'Control table, SAP and customer have separate key areas '.
            WHEN 'S'.
              wa_output-contflag = 'System table, maint. only by SAP, change = modification'.
            WHEN 'W'.
              wa_output-contflag = 'System table, contents transportable via separate TR objects '.
            WHEN ' '.
              wa_output-contflag = 'Delivery class not available '.      ENDCASE.      CASE wa_dd02l-tabclass.
            WHEN 'TRANSP'.
              wa_output-tabclass = 'Transparent table'.
            WHEN 'INTTAB'.
              wa_output-tabclass = 'Structure'.
            WHEN 'CLUSTER'.
              wa_output-tabclass = 'Cluster table'.
            WHEN 'POOL'.
              wa_output-tabclass = 'Pooled table'.
            WHEN 'VIEW'.
              wa_output-tabclass = 'General view structure '.
            WHEN 'APPEND'.
              wa_output-tabclass = 'Append structure'.      ENDCASE.      MODIFY it_output FROM wa_output TRANSPORTING contflag
                                                       tabclass
                                                       WHERE tabname EQ wa_output-tabname.
          CLEAR : wa_output , wa_dd02l.    ENDAT.
      ENDLOOP.ENDFORM. " TABLES_IN_PROGRAM&----
    *&      Form  ALV_OUTPUT
          text
    FORM alv_output.
    *Fieldcatalogue
      PERFORM build_fieldcat.
    *Layout
      PERFORM build_layout.
    *Display
      PERFORM alv_display.ENDFORM.                    "ALV_OUTPUT
    *&      Form  build_fieldcat
          text
    *Field catalogue
    FORM build_fieldcat.  CLEAR wa_fieldcat.
      wa_fieldcat-row_pos   = '1'.
      wa_fieldcat-col_pos   = '1'.
      wa_fieldcat-fieldname = 'TABNAME'.
      wa_fieldcat-tabname   = 'IT_OUTPUT'.
      wa_fieldcat-seltext_m = 'TABLENAME'.
      APPEND wa_fieldcat TO it_fieldcat.  CLEAR wa_fieldcat.
      wa_fieldcat-row_pos   = '1'.
      wa_fieldcat-col_pos   = '2'.
      wa_fieldcat-fieldname = 'TABCLASS'.
      wa_fieldcat-tabname   = 'IT_OUTPUT'.
      wa_fieldcat-seltext_m = 'CATEGORY'.
      APPEND wa_fieldcat TO it_fieldcat.  CLEAR wa_fieldcat.
      wa_fieldcat-row_pos   = '1'.
      wa_fieldcat-col_pos   = '3'.
      wa_fieldcat-fieldname = 'TEXT'.
      wa_fieldcat-tabname   = 'IT_OUTPUT'.
      wa_fieldcat-seltext_m = 'DESCRIPTION'.
      APPEND wa_fieldcat TO it_fieldcat.  CLEAR wa_fieldcat.
      wa_fieldcat-row_pos   = '1'.
      wa_fieldcat-col_pos   = '4'.
      wa_fieldcat-fieldname = 'CONTFLAG'.
      wa_fieldcat-tabname   = 'IT_OUTPUT'.
      wa_fieldcat-seltext_m = 'Delivery Class'.
      APPEND wa_fieldcat TO it_fieldcat.ENDFORM.
    *&      Form  build_layout
          text
    *Layout
    FORM build_layout.  it_layout-zebra = 'X'.
      it_layout-colwidth_optimize = 'X'.ENDFORM.                     "build_layout
    *&      Form  alv_display
          text
    *ALV output
    FORM alv_display.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        exporting
          i_callback_program       = sy-repid
          i_callback_html_top_of_page  = 'HTML_TOP_OF_PAGE'
          it_fieldcat              = it_fieldcat
          is_layout                = it_layout
        TABLES
          t_outtab                 = it_output.
    ENDFORM.                    "alv_display
          FORM html_top_of_page                                     *
    FORM HTML_TOP_OF_PAGE USING top TYPE REF TO cl_dd_document.  data tstring type SDYDO_TEXT_ELEMENT.  tstring = program.  CALL METHOD top->add_text EXPORTING text = 'Tables used in the program'
                                          sap_style = 'heading' .
      CALL METHOD top->add_text EXPORTING text = tstring
                                          sap_style = 'Heading' .ENDFORM.
    r

  • Find all tables used in a set of programs

    I need to find a list of all tables used in all Z programs. Originally I was thinking of getting a list of programs from table TRDIR, using READ REPORT for each one and then using Regex to get a list of tables used in SQL statements. However getting the regex working appears to be more complicated than first expected so I'm looking for other possibilities.

    Use SAP standard program RPR_ABAP_SOURCE_SCAN and in the selection parameters
    Program Name = Z*
    Find String = SELECT
    and execute

  • I need help finding a workable web program that is not CSS based.  I tried IWeb and it just won't work for me.  Way too limiting.  I've been using a 12 year old copy of Macromedia Dreamweaver, but the new Dreamweaver is CSS

    Been building web pages for nearly 20 years, starting with GoLive.  Went to Dreamweaver about 12 years ago, the Macromedia version.  Tried going to iWeb when it came with a new Mac, but found it way too limiting with it's CSS template base.   Unknowlingly, I then bought a new copy of Dreamweaver.   Ooops, Adobe had bought Macromedia and Dreamweaver, too, is now CSS based, which for my money makes it useless to anyone who likes simplicity.   Now I find that even iWeb has been discontinued.  I was told yesterday that Apple doesn't have a web program any more.   At 12 years old, I just don't think it's practical to try to load my old Macromedia Dreamweaver into the new Mountain Lion (I'm getting a new Mac), though it is running, barely, in Snow Leopard.
    I need to find a web builder program that will permit simple construction of educational pages, nothing fancy, nothing artistic, just create a page, give it a color, type or drag in text, insert a table, insert pix in the table blocks, add text under the pix... done!    I should note that I am not looking to build traffic.  I teach simple things for free and people who want to learn those things (antique sewing machine repair, quilting, building longbows) find me.
    I've downloaded trial versions of half a dozen or so programs and looked at maybe 20 more, but all are either CSS based and drive me insane with requirments for constantly making rules and template models, and/or require that you base your web presence in their server.   Also, many will not work with pages built in other programs.  I maintian a volume of over 1000 web pages, many requiring regular updating, and they have been with the same server for more than 15 years.  I'm not about to change.
    So, anybody know a simple, old fashioned web builder that's happpy on a Mac platform?
    Captain Dick

    Although not supported anymore, iWeb does still function using Mountain Lion...
    http://www.iwebformusicians.com/iWeb/mountain-lion.html
    ... and you can purchase it from Amazon.
    Start with a blank page using the Black or WHite template.
    All modern websites use CSS and there are thousands of free templates to be had if you want to use a code entry style application. You will need to go this route if you want to create a site that is viewable on mobile devices although you can create an iPhone version using iWeb...
    http://www.iwebformusicians.com/iWeb/Mobile-iWeb.html
    Search this forum for numerous topics about iWeb alternatives.

Maybe you are looking for

  • Application Hang in Winword.exe v. 2010 running on Windows 8.1 Pro 64-bit - a standalone workstation

    For seven days WinWord.exe continues to crash. It hangs when I try to save an edited word document. This should have been solved with DOS 2.0, but Microsoft in its questionable wisdom is still having problems with this simple procedure. I have run An

  • Quicktime will not load any video streams

    Whenever I try to watch any Apple keynote presentations (e.g. from WWDC) Quicktime loads a window and then I wait... and wait. But nothing happens - only a blue bar flashing back and forth. This has happened ever since I moved from Panther on an iBoo

  • How do I know if the home button is too weak and/or sunken ?

    Hello, On Dec 22nd I purchased an IPT5 and while it works just fine, the home button seems to have a very short 'travel' behind it when pressing it. It does appear a little bit 'loose' also just by 'tapping lightly' on it you can feel it does not 'ho

  • Using iTunes credit on Apple TV

    When purchasing rentals on my Apple TV it asks for confirmation of my credit card details to pay for the purchase rather then using available iTunes credit through redeemed vouchers. Apart from deleting the details of my associated credt card, how ca

  • Add a button in javabean class

    hi how can i have an add button in my class, i what an action listener in my class which will allow me to have a button to add a record in my javabean,i what to have createInsert button,how can i create that in my class.am not yet connect to database