Application Development 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: 

DYNP_VALUES_READ invalid dynproname

Former Member
0 Kudos

Hi All,

I am using DYNP_VALUES_READ in badi me_process_req_cust to read the address number field of address delivery tab in ME51N. But getting the exception invalid dynproname.

wa_dynpread-fieldname = 'CMMDA-ADRN2'."'ADDR1_DATA-NAME1'."'NAME1'

APPEND wa_dynpread TO t_dynpread.

CALL FUNCTION 'DYNP_VALUES_READ'

EXPORTING

dyname = 'SAPLMEGUI'"'SAPLSZA1'

dynumb = '0014' "'0301'

  • TRANSLATE_TO_UPPER = ' '

  • REQUEST = ' '

  • PERFORM_CONVERSION_EXITS = ' '

  • PERFORM_INPUT_CONVERSION = ' '

  • DETERMINE_LOOP_INDEX = ' '

TABLES

dynpfields = t_dynpread

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 <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

6 REPLIES 6

Former Member
0 Kudos

Hi,

Try using the memory pointers..

data lw_field(50).

FIELD-SYMBOLS: <fs_eban> TYPE eban.

IF sy-tcode = 'ME51N'.

lw_field = '(SAPMM06B)EBAN'.

ASSIGN (lw_field) TO <fs_eban>.

endif.

CHECK sy-subrc = 0.

Thanks,

Naren

Former Member
0 Kudos

Hi,

Try to put the SY-CPROG in place of the Dynproname. may be you are given the wrong name or calling from another place

Regards

Sudheer

0 Kudos

When I give sy-cprog i get invalid dynproname exception but without it I am getting

invalid dynprofield

0 Kudos

Hi,

Try like this:

CALL FUNCTION 'DYNP_VALUES_READ'

EXPORTING

dyname = sy-cprog

dynumb = sy-dynnr

TABLES

dynpfields = h_dynpfields

EXCEPTIONS

OTHERS = 1.

Regards

Subramanian

Former Member
0 Kudos

Hi asha,

did you your problem solve.

I also have same problem. Can you please advice what todo?

Seema

0 Kudos

Hi,

I too faced this problem, if you got the solution please share the same.