Skip to Content
0
Former Member
Jun 04, 2006 at 08:38 AM

FUNCTION 'DYNP_VALUES_READ'

49 Views

Hi!

I'm using this function to get the plant from VL32N but I got invalid_dynproname = 3 (EXCEPTION).

What could be the reason? THANKS

The code is:

DATA: BEGIN OF dynpfields OCCURS 1.

INCLUDE STRUCTURE dynpread.

DATA: END OF dynpfields.

***

CLEAR dynpfields.

REFRESH dynpfields.

dynpfields-fieldname = 'LIPS-WERKS'.

APPEND dynpfields.

CALL FUNCTION 'DYNP_VALUES_READ'

EXPORTING

dyname = 'SAPMV50A' "my_prog

dynumb = '1202' "my_dnum

TABLES

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

>>>>****HERE SY-SUBRC = 3????????????

CHECK sy-subrc EQ 0.

READ TABLE dynpfields INDEX 1.