Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Search help

0 Likes
469

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?

3 REPLIES 3
Read only

Former Member
0 Likes
438

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.

Read only

Former Member
0 Likes
438

Hi,

check import export attributes of field name number

in search help.

Regards

amole

Read only

0 Likes
438

closed