Professional Documents
Culture Documents
Getting Field Label (Field Description) For A Data Element Using Abap Code
Getting Field Label (Field Description) For A Data Element Using Abap Code
Getting Field Label (Field Description) For A Data Element Using Abap Code
Hi all,
Please let me know how to get field label(field description ) for a data element using abap
code.
Tags: abap
(https://people.sap.com/deepali.n)
Deepali N (https://people.sap.com/deepali.n)
June 19, 2008 at 14:12 PM
1 Likes
Correct Answer
(https://people.sap.com/sourav.bhaduri)
Copy Code
1. REPORT ztest_sourav14.
2. , DATA: wa_dd04t TYPE dd04t.
3. ,
4. , PARAMETERS: p_name TYPE rollname DEFAULT 'MATNR' OBLIGATORY.
5. ,
6. , SELECT SINGLE * FROM dd04t
7. , INTO wa_dd04t
8. , WHERE rollname = p_name AND
9. , ddlanguage = sy-langu AND
10. , as4local = 'A'.
11. ,
12. , IF sy-subrc = 0.
13. , WRITE: /1 wa_dd04t-rollname, 31 wa_dd04t-ddtext.
14. , ENDIF.
15. ,
1
View this answer in context (/discussions/message/5635113#5635113)
sap.com/questions/ask.html?primaryTagId=833755570260738661924709785639136)
6 replies
(https://people.sap.com/sandipan.das2)
0
likes
(https://people.sap.com/jagadish.avidi)
TABLES: DFIES,
X030L.
exporting
tabname = TABLENM
FIELDNAME = FIELDNM
LANGU = SY-LANGU
IMPORTING
X030L_WA = WATAB
DDOBJTYPE =
DFIES_WA =
LINES_DESCR =
TABLES
DFIES_TAB = INTTAB
FIXED_VALUES =
EXCEPTIONS
NOT_FOUND = 1
INTERNAL_ERROR = 2
OTHERS = 3.
if sy-subrc <> 0.
WRITE:/ 'Field name not found'.
endif.
LOOP AT INTTAB.
ENDLOOP.
End of Program
OR
Step 1.
Step 2.
Regards,
Jagadish
1
likes
(https://people.sap.com/kiran.bobbala)
Deepali,
Use function module RSD_DTEL_GET to get the field labels for a data
element.
Regards,
Kiran Bobbala
0
likes
(https://people.sap.com/deepali.n)
Hi,
I tried using this FM.But itsays that this FM doesn't exist.Pl check and let
me know,
0
likes
Correct Answer
(https://people.sap.com/sourav.bhaduri)
Copy Code
1. REPORT ztest_sourav14.
2. DATA: wa_dd04t TYPE dd04t.
3.
4. PARAMETERS: p_name TYPE rollname DEF
5.
6. SELECT SINGLE * FROM dd04t
7. INTO wa_dd04t
8. WHERE rollname = p_name AND
9. ddlanguage = sy-langu AND
10. as4local = 'A'.
11.
12. IF sy-subrc = 0.
13. WRITE: /1 wa_dd04t-rollname, 31 wa
14. ENDIF.
15.
1
likes
The message was moderated