2006 Feb 24 1:06 PM
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
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
2006 Feb 24 1:08 PM
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
2006 Feb 24 1:15 PM
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.
2006 Feb 24 1:13 PM
2006 Feb 24 1:20 PM
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
2006 Feb 24 1:22 PM
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..
2006 Feb 24 1:26 PM
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
2006 Feb 24 1:39 PM
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.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |