Hi Experts,
I have written the below mentioned code to create custom label in GET M method:-
CALL FUNCTION 'DDIF_FIELDINFO_GET'
EXPORTING
tabname = 'XXXXXXXXXX' "Data Element
langu = 'E'
all_types = 'X'
IMPORTING
dfies_wa = lv_dfies
EXCEPTIONS
not_found = 1
internal_error = 2
OTHERS = 3.
"Get field label values
lv_dfies-reptext = text-000.
lv_dfies-scrtext_s = text-000.
lv_dfies-scrtext_m = text-000.
lv_dfies-scrtext_l = text-000.
"Create metadata object
CREATE OBJECT metadata
TYPE
cl_bsp_metadata_simple
EXPORTING
info = lv_dfies.
But by default it is taking lv_dfies-scrtext_m values. No other values it is taking. I have to show more than 20 chars in the label. That's why it is not working with lv_dfies-scrtext_m = text-000 value.
Please let me know how can I do it.