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

Regarding the function module 'DYNP_VALUES_READ'

Former Member
0 Likes
654

Hi,

There are two input fields on my popup screen.

1. Plant

2. OrderNo.

I have created F4 help for the order no. But i want to capture the plant value so that i can get order no based on the plant.

For that, i have written the below code. The internal table tl_dynpfields is not getting filled after the function module 'DYNP_VALUES_READ' gets executed.

Can anyone tell me what mistake i am commiting.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_pro1

TYPES : BEGIN OF tp_dynpfields,

fieldname LIKE dynpread-fieldname,

stepl LIKE dynpread-stepl,

fieldvalue LIKE dynpread-fieldvalue,

fieldinp LIKE dynpread-fieldinp,

END OF tp_dynpfields.

DATA : wl_dynpfields TYPE tp_dynpfields,

tl_dynpfields TYPE STANDARD TABLE OF tp_dynpfields.

wl_dynpfields-fieldname = 'P_PLANT1'.

APPEND wl_dynpfields TO tl_dynpfields.

CALL FUNCTION 'DYNP_VALUES_READ'

EXPORTING

dyname = sy-repid

dynumb = '0200'

TABLES

dynpfields = tl_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.

Thanks,

Ibrahim

1 REPLY 1
Read only

Former Member
0 Likes
366

Hey,

i got the value.

thanks