‎2006 Sep 13 3:34 PM
Hi,
I have created a search help for Data Element, there are two fields in search help i.e. number and name, how can I capture the name value for the number selected?
‎2006 Sep 13 3:35 PM
Use the FM <b>'DYNP_VALUES_READ'</b>.
DATA: lt_dynpfields LIKE dynpread OCCURS 0 WITH HEADER LINE,
lt_dnpfields LIKE dynpread OCCURS 0 WITH HEADER LINE.
lt_dynpfields-fieldname = 'I_MPRN-POST_CODE'.
lt_dynpfields-stepl = stepl.
APPEND lt_dynpfields. CLEAR lt_dynpfields.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = sy-repid
dynumb = sy-dynnr
translate_to_upper = c_x
determine_loop_index = c_x
TABLES
dynpfields = lt_dynpfields
EXCEPTIONS
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
invalid_parameter = 7
undefind_error = 8
double_conversion = 9
stepl_not_found = 10
OTHERS = 11.
IF sy-subrc EQ 0.
READ TABLE lt_dynpfields INDEX 1.
ENDIF.
Regards,
Prakash.
‎2006 Sep 13 3:57 PM
Hi,
check import export attributes of field name number
in search help.
Regards
amole
‎2012 Feb 06 8:00 PM