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

'DYNP_VALUES_READ' error ?

Former Member
0 Likes
1,284

Hello,

I implement a new search help (append) for the field RMVCT ( transaction type) , Now in the search help exit I need to have the value of the account input in the start screen of FB01 . When I use' DYNP_VALUES_READ to read , it show an error the screen does not existe. Coudl you please help ?

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
818

CALL FUNCTION 'DYNP_VALUES_READ'

EXPORTING

dyname = 'SAPMF05A'

dynumb = '0100'

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.

4 REPLIES 4
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
818

What screen no your are passing to the FM?

Read only

Former Member
0 Likes
818

This message was moderated.

Read only

Former Member
0 Likes
818

Hi Joe,

While working with this Function Module all the Exceptions must be uncommented --> Just check in your code

Also check the progrm name that you are passing consists of the Screen number you are assigning.

Cheerz

Ram

Read only

Former Member
0 Likes
819

CALL FUNCTION 'DYNP_VALUES_READ'

EXPORTING

dyname = 'SAPMF05A'

dynumb = '0100'

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.