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

Process On Value Request with Search Help Problem

Former Member
0 Likes
1,441

I have a screen with a field that has a custom search help attached to it. I am using Process On Value-Request which ultimately uses function module F4IF_FIELD_VALUE_REQUEST to return the selected value from the search help. The value is then moved to the screen field.

THE PROBLEM: If I enter a value in a field on the screen, then use the search help from a different field the first value I entered gets cleared. Here is a code sample. Any suggestions as to why this is happening?

NOTE: The values that get cleared are fields on the screen that I do not reference at all in user_command_2501.

*****SCREEN 2500 FLOW LOGIC*********

PROCESS BEFORE OUTPUT.

MODULE status_2500.

PROCESS AFTER INPUT.

MODULE user_command_2500.

PROCESS ON VALUE-REQUEST.

FIELD makt-matnr MODULE user_command_2501.

**************************************

MODULE user_command_2501 INPUT.

ok_code = sy-ucomm.

CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'

EXPORTING

searchhelp = 'ZWS_ASSETMATR'

fieldname = ' '

tabname = ' '

TABLES

return_tab = search_itab

EXCEPTIONS

no_values_found = 1.

MOVE search_itab-fieldval TO: makt-matnr.

REFRESH search_itab.

SELECT SINGLE maktg FROM makt INTO crea_description

WHERE matnr = search_itab-fieldval.

MOVE 'I' TO scrn_attr_sw.

sy-ucomm = 'ENTER'.

LEAVE SCREEN.

CALL SCREEN 2500.

ENDMODULE. " user_command_2501 INPUT

Message was edited by: Jason DeLuca

Message was edited by: Jason DeLuca

2 REPLIES 2
Read only

ssimsekler
Product and Topic Expert
Product and Topic Expert
0 Likes
618

Hi Jason

It seems you should first revise your code since your POV is not implemented so good.

Regards

*--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>

Read only

0 Likes
618

Can you be more specific please?

The POV statement is in the screen flow logic, which calls a module containing the code. How else should it be implemented? I am on version 4.6C by-the-way.

P.S. I have added all of the code in my screen flow logic in the above code sample

Thanks

-Jason

Message was edited by: Jason DeLuca