Hi,
I am looking for a table that contains a list of table and column description for example, MARA and its columns.
I would appreciate if anyone can tell me.
Sunny
Request clarification before answering.
Use table DD03L.
Regards,
Carlos.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Carlos,
Thank you for your help.
I am sorry I should have been more clear on my question. I know that I can get the list of columns for a table from DD03L. What I am looking for is the textual description for table and its columns. For example, where is the description for table MARA? I also looked in DD02T and DD03T but I don't find this information.
Appreciate your help.
Sunny
Hi
Table description can be extracted from DD02T
( Or using FM TXW_GET_TEXT_FROM_DDIC )
<b>TABLES : DD02T.
PARAMETERS PTABLE LIKE DD02T-TABNAME.
SELECT SINGLE * FROM DD02T WHERE DDLANGUAGE = SY-LANGU
AND TABNAME = PTABLE .
WRITE 😕 DD02T-TABNAME , DD02T-DDTEXT.</b>
Field descrition you can get from DD03T if the fields are direct type entry and have no dataelement . For fields having dataelemnt the text can be retrived from DD04T.
Cheers
Use table DD03L to get the data element, hit this table with your tablename, for each field, there should be a data element assigned to it, you need to link to DD04L and DD04T to get the text of the data element. If there is not data element for that field, then you need to go to DD03T to get the text. In this table this is the text that is assigned to the field when a data element is not used.
Regards,
Rich Heilman
Message was edited by: Rich Heilman
Here is a sample program. Of course, this could be cleaned up a bit, but you get the idea.
report zrich_0002
no standard page heading.
parameters: p_table(30) type c.
data: begin of itab occurs 0,
tabname type dd03l-tabname,
fieldname type dd03l-fieldname,
rollname type dd03l-rollname,
ddtext(50) type c,
end of itab.
data: xdd04l type dd04l.
data: xdd04t type dd04t.
data: xdd03t type dd03t.
select * into corresponding fields of table itab
from dd03l
where tabname = p_table.
loop at itab.
select single * from dd04l into xdd04l
where rollname = itab-rollname.
select single * from dd04t into xdd04t
where rollname = itab-rollname
and ddlanguage = sy-langu.
if sy-subrc = 0.
itab-ddtext = xdd04t-ddtext.
modify itab.
continue.
endif.
select single * from dd03t into xdd03t
where tabname = itab-tabname
and fieldname = itab-fieldname
and ddlanguage = sy-langu..
if sy-subrc = 0.
itab-ddtext = xdd03t-ddtext.
modify itab.
continue.
endif.
endloop.
loop at itab.
write:/ itab-tabname, itab-fieldname, itab-rollname, itab-ddtext.
endloop.
Regards,
Rich Heilman
Use DDIF_FIELDINFO_GET. This will give all the information about the fields of the table including data elements, domains, check table, and the descriptions.
Now if that is not what you are looking for, please let us know exactly what you need with the example of MARA as you mentioned.
Srinivas
Hi Sunny,
better use view DD03<b>M</b>
regards Andreas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.