‎2013 Sep 27 5:12 AM
Dear Experts,
Is there any FM to get Data element from short description?
Ex : If for short description : Company code, It should return BUKRS.
Thanks
Katrice
‎2013 Sep 27 5:16 AM
‎2013 Sep 27 5:16 AM
‎2013 Sep 27 5:56 AM
‎2013 Sep 27 5:33 AM
HI Katrice,
you can use the function module DDIF_FIELDINFO_GET . But you have to pass the fieldname to get the dataelement of that particular field.
U can use the tables DD03l, DD04T-Contains all Data elements with description , u can search in se11 also if you want to search only with description.
Regards,
Sivaganesh.
‎2013 Sep 27 5:56 AM
‎2013 Sep 27 5:37 AM
Hi Katrice,
You could also use SWU_GET_ROLLNAME_TO_FIELDNAME .
You can pass the value as tablename-fieldname .
ex : Import parameter : zapt_book-status
Output Parameter : status ( DATA ELEMENT)
‎2013 Sep 27 5:49 AM
Hi,
please check the code
TYPES : BEGIN OF ty_fies.
INCLUDE STRUCTURE DFIES.
TYPES : END OF ty_fies.
parameters : p_table like dd02l-tabname,
p_string(60) type c.
data : it_fies type standard table of ty_fies initial size 0,
wa_fies type ty_fies.
CALL FUNCTION 'DDIF_FIELDINFO_GET'
EXPORTING
TABNAME = p_table
* FIELDNAME = ' '
* LANGU = SY-LANGU
* LFIELDNAME = ' '
* ALL_TYPES = ' '
* GROUP_NAMES = ' '
* UCLEN =
* IMPORTING
* X030L_WA =
* DDOBJTYPE =
* DFIES_WA =
* LINES_DESCR =
TABLES
DFIES_TAB = it_fies
* FIXED_VALUES =
EXCEPTIONS
NOT_FOUND = 1
INTERNAL_ERROR = 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.
loop at it_fies into wa_fies WHERE FIELDTEXT = p_string.
write:wa_fies-ROLLNAME.
CLEAR wa_fies.
endloop.
‎2013 Sep 27 5:56 AM