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

Mapping a field from input help screen(Using POV) to user screen

Former Member
0 Likes
492

I have used the Function module 'DYNP_VALUES_UPDATE', to get the value from Description field in the search help.Now its throwing a runtime error mentioned below.

Runtime errors: CALL_FUNCTION_CONFLICT_LENG

Except. CX_SY_DYN_CALL_ILLEGAL_TYPE.

Short text: Type conflict when calling a function module

the function module was called incorrectly.

Below is the code i implemented.

  • ws_dynpfields-fieldname = wc_scrfld.

  • ws_dynpfields-stepl = tc_1017-current_line.

  • ws_dynpfields-fieldvalue = ws_hssr-text.

*

  • APPEND ws_dynpfields TO wt_dynpfields.

*

  • CALL FUNCTION 'DYNP_VALUES_UPDATE'

  • EXPORTING

  • dyname = 'sapmzapp01'

  • dynumb = '1008'

  • TABLES

  • dynpfields = wt_dynpfields

  • EXCEPTIONS

  • invalid_abapworkarea = 1

  • invalid_dynprofield = 2

  • invalid_dynproname = 3

  • invalid_dynpronummer = 4

  • invalid_request = 5

  • no_fielddescription = 6

  • undefind_error = 7

  • OTHERS = 8.

  • IF sy-subrc <> 0.

  • MESSAGE e800(zmdb_mda_supplier).

  • ENDIF.

The above code is in screen USER COMMAND OF 1017(POV-input help screen).

wt_dynpfields is the internal table.

and its fields are fieldname,stepl and fieldvalue

ws_dynpfields is the workarea of the internal table.

wc_scrfld-Constant with value zbut0000qnnyxa-ztfldg6h7np'(the description field name of the screen 1008 where i want the description value to get in automatically after selecting from input help)

ws_hssr-text= The Work area containing the value 'eg ORDER'.

kindly get back immediately....

I have used the Function module 'DYNP_VALUES_UPDATE', to get the value from Description field in the search help.Now its throwing a runtime error mentioned below.

Runtime errors: CALL_FUNCTION_CONFLICT_LENG

Except. CX_SY_DYN_CALL_ILLEGAL_TYPE.

Short text: Type conflict when calling a function module

the function module was called incorrectly.

Below is the code i implemented.

  • ws_dynpfields-fieldname = wc_scrfld.

  • ws_dynpfields-stepl = tc_1017-current_line.

  • ws_dynpfields-fieldvalue = ws_hssr-text.

*

  • APPEND ws_dynpfields TO wt_dynpfields.

*

  • CALL FUNCTION 'DYNP_VALUES_UPDATE'

  • EXPORTING

  • dyname = 'sapmzapp01'

  • dynumb = '1008'

  • TABLES

  • dynpfields = wt_dynpfields

  • EXCEPTIONS

  • invalid_abapworkarea = 1

  • invalid_dynprofield = 2

  • invalid_dynproname = 3

  • invalid_dynpronummer = 4

  • invalid_request = 5

  • no_fielddescription = 6

  • undefind_error = 7

  • OTHERS = 8.

  • IF sy-subrc <> 0.

  • MESSAGE e800(zmdb_mda_supplier).

  • ENDIF.

The above code is in screen USER COMMAND OF 1017(POV-input help screen).

wt_dynpfields is the internal table.

and its fields are fieldname,stepl and fieldvalue

ws_dynpfields is the workarea of the internal table.

wc_scrfld-Constant with value zbut0000qnnyxa-ztfldg6h7np'(the description field name of the screen 1008 where i want the description value to get in automatically after selecting from input help)

ws_hssr-text= The Work area containing the value 'eg ORDER'.

kindly get back immediately....

2 REPLIES 2
Read only

Former Member
0 Likes
456

Hi,

This function works only after POV.

So ensure that it is written in that module:

like AT SELECTION-SCREEN ON VALUE-REQUEST FOR f_name.

Hope it will guide you.

Jogdand M B

Read only

Former Member
0 Likes
456

This looks to be an issue with the mismatch between the FM parameter type and the type of data u pass. Make sure that all the data definitions of tables and variables are as per FM definition.

I would suggest you to use variables of type 'D020S-PROG' and 'D020S-DNUM' instead of hard coding (give values in upper case.)