Application Development 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: 

Field description

Former Member
0 Kudos

Hi,

Is there any Function Module/Method to get the description of a field knowing only the fieldname.

Ex: Field = matnr

Giving the input as matnr and getting the description

'Material Number'.

Thanks,

Bharadwaj

7 REPLIES 7

suresh_datti
Active Contributor
0 Kudos

DD_GET_FIELD_INFO or rv_field_read

You have to give the Tablename also as SAP uses te same field witha diff name ina diff table

Regards,

Suresh Datti

0 Kudos

Try FM if you have table name/structure name/type name & the field name..

DDIF_FIELDINFO_GET

See the FM documentation in SE37...

This function module reads the runtime information of a table or in

general of any type of the ABAP Dictionary.

Former Member
0 Kudos

U can use table DD03T

former_member188685
Active Contributor
0 Kudos

Hi,

You can get the field info using the FM <b>

<b>DD_DTEL_GET</b>

inputs..

  
  Import parameters               Value                                                                                
GET_STATE                          MXX                   
  LANGU                           *                        
  PRID                            0                        
  WITHTEXT                        X                        
  ROLL_NAME                       MATNR                                                                                
Tables                          Value                                                                                
DD04T_TAB_A                        0 Entries             
  DD04T_TAB_N                        0 Entries            

OUTPUT

                                                       
  Tables                          Value                
                                                       
  DD04T_TAB_A                        0 Entries         
                   Result:           2 Entries         
  DD04T_TAB_N                        0 Entries         
                   Result:           2 Entries         
                                                 

the data inside them is ...

ROLLNAME DD A AS4V DDTEXT

 MATNR                          DE A 0000 Materialnummer                                   
 MATNR                          EN A 0000 Material Number                                  
           

Regards

vijay

Former Member
0 Kudos

hi,

<b>TB_DATAELEMENT_GET_TEXTS</b> is the function module u r looking for b'coz the description of Field is attached to Dataelement of that particular field..

vinod_gunaware2
Active Contributor
0 Kudos

hi

use table DD04L DESC: Data elements

DD04T R/3 DD: Data element texts

DD01L Domains

use select query. U will get ur solution.

regard

vinod

Former Member
0 Kudos

Hello ...

use the following code...

data: wa_a like DD01V,

wa_n like DD01V,

stat like DCDOMAGET.

data: begin of taba occurs 0.

include structure dd07v.

data : end of taba.

data: begin of tabn occurs 0.

include structure dd07v.

data : end of tabn.

parameters: p_doma like DD01L-DOMNAME.

CALL FUNCTION 'DD_DOMA_GET'

EXPORTING

DOMAIN_NAME = p_doma

  • GET_STATE = 'M '

  • LANGU = SY-LANGU

  • PRID = 0

  • WITHTEXT = 'X'

IMPORTING

DD01V_WA_A = wa_a

DD01V_WA_N = wa_n

GOT_STATE = stat

TABLES

dd07v_tab_a = taba

dd07v_tab_n = tabn

EXCEPTIONS

ILLEGAL_VALUE = 1

OP_FAILURE = 2

OTHERS = 3

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

write : / wa_a-ddtext.