‎2008 Aug 08 7:22 AM
HI
is there any Function Module which will return the table attributes.
Eg Table - MARA
Field Matnr
I need datatype, field length, decimal etc.
Thanks
Sridhar
‎2008 Aug 08 10:24 AM
FYI
the information is also available in Transparent table DD04L
‎2008 Aug 08 7:28 AM
Hello
Check this
FM "DDIF_TABL_GET"
CALL FUNCTION 'DDIF_TABL_GET'
EXPORTING
name = tablename
state = 'A'
langu = pmlang
IMPORTING
gotstate = gotstate
* dd09l_wa = it_dd09l
TABLES
dd03p_tab = definition
dd05m_tab = it_dd05m
dd35v_tab = it_dd35v
EXCEPTIONS
illegal_input = 1
OTHERS = 2.
here it_dd05m will return the fields of table 'table name'
define it_dd05m like
DATA: it_dd05m TYPE STANDARD TABLE OF dd05m WITH HEADER LINE.
Thanks
Anirudh Saini
‎2008 Aug 08 10:24 AM
FYI
the information is also available in Transparent table DD04L