‎2005 Apr 08 6:47 PM
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
‎2005 Apr 08 8:24 PM
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>
‎2005 Apr 08 8:29 PM
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