How to get the field descriptions of a table
2013-07-17 13:53
579 查看
I need to get the associated data element descriptions of all the fields in a table. I think there's a way to do that using the SELECT statement.
Can you please give me in detail, the various steps and methods to find the corresponding SAP tables and fields for a particular transaction code, for example (CS03).
Do the following 2 steps. Then create your ABAP program accordingly with the SELECT statement.
1. From table DD03L, give your tablename and get all of its field names and corresponding data element names.
2. From table DD03T, get the description of each data element you have got in step 1.
Then Use Function Module DDIF_FIELDINFO_GET
The sample program will look like this:
OR
Step 1.
Run the transaction and click on System -> Status. Note the program name shown under the transaction code.
Step 2.
Run SE49 and enter the program name you identified in step 1 (SAPLCSDI) and then press enter.
This will identify the tables used, however, as you want to know the fields used as well then you may have to resort to looking at the actual code (get a developer involved if you're not one) using transaction
SE80.
In this case the transaction CS03 is assigned to a screen with a function group so it's a slightly tricker process, hence the need for a developers service.
For all the tables, descriptions and fields you can refer to these tables:
DD02L : ALL SAP TABLE NAMES
DD02T : DESCRIPTION OF TABLE NAMES
DD03L : FIELDS IN A TABLE.
http://www.erpgreat.com/abap/how-to-get-the-field-descriptions-of-a-table.htm
Can you please give me in detail, the various steps and methods to find the corresponding SAP tables and fields for a particular transaction code, for example (CS03).
Do the following 2 steps. Then create your ABAP program accordingly with the SELECT statement.
1. From table DD03L, give your tablename and get all of its field names and corresponding data element names.
2. From table DD03T, get the description of each data element you have got in step 1.
Then Use Function Module DDIF_FIELDINFO_GET
The sample program will look like this:
REPORT ZTABLEFIELDNAME. TABLES: DFIES, X030L. DATA: BEGIN OF INTTAB OCCURS 100. INCLUDE STRUCTURE DFIES. DATA: END OF INTTAB. PARAMETERS: TABLENM TYPE DDOBJNAME DEFAULT 'MSEG', FIELDNM TYPE DFIES-FIELDNAME DEFAULT 'MENGE'. call function 'DDIF_FIELDINFO_GET' exporting tabname = TABLENM FIELDNAME = FIELDNM LANGU = SY-LANGU * LFIELDNAME = ' ' * ALL_TYPES = ' ' * IMPORTING * X030L_WA = WATAB * DDOBJTYPE = * DFIES_WA = * LINES_DESCR = TABLES DFIES_TAB = INTTAB * FIXED_VALUES = EXCEPTIONS NOT_FOUND = 1 INTERNAL_ERROR = 2 OTHERS = 3. if sy-subrc <> 0. WRITE:/ 'Field name not found'. endif. LOOP AT INTTAB. WRITE:/ INTTAB-TABNAME, INTTAB-FIELDNAME, INTTAB-FIELDTEXT. ENDLOOP. *** End of Program
OR
Step 1.
Run the transaction and click on System -> Status. Note the program name shown under the transaction code.
Step 2.
Run SE49 and enter the program name you identified in step 1 (SAPLCSDI) and then press enter.
This will identify the tables used, however, as you want to know the fields used as well then you may have to resort to looking at the actual code (get a developer involved if you're not one) using transaction
SE80.
In this case the transaction CS03 is assigned to a screen with a function group so it's a slightly tricker process, hence the need for a developers service.
For all the tables, descriptions and fields you can refer to these tables:
DD02L : ALL SAP TABLE NAMES
DD02T : DESCRIPTION OF TABLE NAMES
DD03L : FIELDS IN A TABLE.
http://www.erpgreat.com/abap/how-to-get-the-field-descriptions-of-a-table.htm
相关文章推荐
- How to get the field descriptions of a table?
- How to get the field descriptions of a table?
- Here's an example that shows how to enumerate through the features of a selection set, returning the value of each field in the attribute table except for the geometry colum.
- Oracle table fragmentation how to calculate or get the actual used blocks of the table
- How to Get the Frequency Table of a Categorical Variable as a Data Frame in R
- How to get the root permission of android
- How to get the source code of the chromium of the specified revision
- How To Change the Partition Column Of A Partitioned Table Using DBMS_Redefinition [ID 846405.1]
- C# How to get the system drive of remote server
- [笔记] How to get the versionCode and versionName of your app
- [Drupal] How to get the real path of a node, no matter it is a path or a url alias
- the diary of how to get a random word within a file
- How to get the Values of Selected Row from a Gridview using ASP.NET
- How to get value of the person or group type via CAML Query js
- How to get the tables of one schema?
- flex/in the datagrid,how to get the new value of cell in the datagrid after edit
- How to get the data from a cell when I click on the GridButtonColumn of the same row
- uiview 某点返回 色值 How to get the color of a pixel in an UIView?
- 转:How to submit the rows of a repeating table in InfoPath to a SharePoint list
- How to get the length of array of strings in C? - Yahoo! Answers