Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Function module for field attributes

Former Member
0 Likes
510

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
421

FYI

the information is also available in Transparent table DD04L

2 REPLIES 2
Read only

former_member745780
Active Participant
0 Likes
421

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

Read only

Former Member
0 Likes
422

FYI

the information is also available in Transparent table DD04L