10-26-2007 10:16 AM
Hi,
Is there any table that stores the field label of a data element, language wise ?
For example, the field 'kunnr' has label as 'Customer' in EN
and 'Client' in FR .
I need to know this FR label where i am given only the field and language .
How to know ?
( In SE16 i get these field names language specific, I need the same info, where it is fetched )
Answers will be suitably rewarded !
Thanks,
Lively
10-26-2007 10:18 AM
Hi
every Text/description table in SAP is maintained with a Language field
check T002T or MAKt etc
field for language is SPRAS
Regards
Anji
10-26-2007 10:18 AM
10-26-2007 10:19 AM
Hi,
Just search the table starting with DD*
I think it is DD04T
regards,
Atish
10-26-2007 10:33 AM
Thanks for the response but none of the above table serves the purpose .
Take 'Kunnr' and give me the French Label .
any table, object or method !
thanks!
10-26-2007 10:50 AM
try this sample code it may help you
DATA : V_REPTEXT TYPE REPTEXT,
V_SCRTEXT_S TYPE SCRTEXT_S,
V_SCRTEXT_M TYPE SCRTEXT_M,
V_SCRTEXT_L TYPE SCRTEXT_L.
DATA : LANG TYPE DDLANGUAGE.
LANG = 'FR'.
CALL FUNCTION 'WCGW_DATA_ELEMENT_TEXT_GET'
EXPORTING
I_DATA_ELEMENT = 'KUNNR'
I_LANGUAGE = LANG
IMPORTING
E_REPTEXT = V_REPTEXT
E_SCRTEXT_S = V_SCRTEXT_S
E_SCRTEXT_M = V_SCRTEXT_M
E_SCRTEXT_L = V_SCRTEXT_L
EXCEPTIONS
ERROR = 1
OTHERS = 2
.
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 : / V_REPTEXT.
WRITE : / V_SCRTEXT_S.
WRITE : / V_SCRTEXT_M.
WRITE : / V_SCRTEXT_L.
regards
shiba dutta
10-26-2007 10:56 AM
Hi
Please check FM DDIF_FIELDINFO_GET
Pass the language as FR you get the desc.
Regards,
Arun