Http://it.toolbox.com/wiki/index.php/Find_where_the_data_is_stored_in_SAP
Introduction
This howto will give the steps you need to find where the data is stored in SAP when you want to create an ABAP query or ABAP report using fields that you can find on transaction screens.
[Edit]
Steps
-
- The first step is always to find out the table and field name of the screen field. With the cursor in the field you want, Press F1 or click on "? ".
-
- The initial help screen will give you descriptions and information about the field.
-
- From there press F9 or click on [Technical info].
-
- Here you can get names of the table, field and the data element.
- If you are lucky the system gives you a transparent table name. If you're not lucky you'll get a structure name.
-
- DoubleClick on the data element and search via the where used of the dictionary.
-
- Failing abve you can set up the tcode or a portion of it just before screen where the field exists and then switch on SQL trace, run the screen, turn Off SQL trace and then list the trace log following which tables/views were hit. obviusly it is best to turn on and off the trace in the smallest time-window possible to lessen the number of trace log entries you have to look through.
-
- Another thing to try is: Run program rssdoctb. This gives you a list with info about the table such as fields, check tables ....
- Or try transaction se84 (repository info system) -Select in the tree ABAP dictionary-> fields-> table fields-insert in the select-option "field name" The Name Of The files (E. g. carrid and connid) and execute it-now you will get a list of all tables which have one or both of this fields-it's easy to identify the tables which contain both fields in the list.
-
- Or start an SQL trace and look at the tables that are read
-
- Last Resort, find the program name (click on the triangle icon at botton right to expand information and click on the icon right of client number) and look at the ABAP code with tcode se38
- Run se30 against your transaction. when you 've done what you needed to do and returned, hit analyze. click the hits list. you get all of the modules, tables, forms, FMS ,... that were called. look for interesting names. (eg. read_structure_name [bearbeiten means "work on", ermitteln means "determine", pruefen means "examine or check", aufbauen means "construct ", lesen means "vintages" But (aren't we Germans sneaky, just kidding) gelesen means "read" so we'll use lesen instead of gelesen... and http://babelfish.altavista.com/does a passable job of translating])
All of these solutions will fail you from time to time. At this point, keep on digging:
- Look for other screens that contain the same data. If you change it in screen A and the change is duplicated in screen B then you have found another data location to apply the above steps in.
- Look for the data point in canned reports and apply the above steps. also note that it is much harder for the access mode to be hidden when you are doing reporting.