‎2011 Nov 25 6:54 AM
Dear experts,
Is it possible to call function F4IF_FIELD_VALUE_REQUEST without search value input dialog.
I know F4IF_FIELD_VALUE_REQUEST has parameter SUPPRESS_RECORDLIST can be used to suppress the output record list dialog and instead return values in RETURN_TAB. But what we need is a way to suppress the input dialog and somehow pass the values directly for search fields through the calling program
What a team member is trying to do in our project is to call F4IF_FIELD_VALUE_REQUEST and feed the input value programmatically without dialog. We are trying to search Customers using search help DEBI
Please any ideas in this direction would be much appreciated
Thanking you in advance,
Vishnu T
‎2011 Nov 25 7:32 AM
This question sounds basic, but considering the effort done from your side i would like to help you
You have to use DYNP_VALUES_UPDATE
Ex:
PARAMETERS:pmatnr TYPE matnr.
DATA:repid TYPE sy-repid.
at selection-screen on value-request for pmatnr.
DATA:w_dynpfields TYPE dynpread,
i_dynpfields LIKE STANDARD TABLE OF dynpread.
w_dynpfields-fieldname = 'PMATNR'.
w_dynpfields-fieldvalue = 'A'.
APPEND w_dynpfields TO i_dynpfields.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = repid
dynumb = sy-dynnr
TABLES
dynpfields = i_dynpfields.
‎2011 Nov 25 7:32 AM
This question sounds basic, but considering the effort done from your side i would like to help you
You have to use DYNP_VALUES_UPDATE
Ex:
PARAMETERS:pmatnr TYPE matnr.
DATA:repid TYPE sy-repid.
at selection-screen on value-request for pmatnr.
DATA:w_dynpfields TYPE dynpread,
i_dynpfields LIKE STANDARD TABLE OF dynpread.
w_dynpfields-fieldname = 'PMATNR'.
w_dynpfields-fieldvalue = 'A'.
APPEND w_dynpfields TO i_dynpfields.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = repid
dynumb = sy-dynnr
TABLES
dynpfields = i_dynpfields.
‎2011 Nov 25 7:35 AM
Thank you Keshav. But we are not calling the function in AT .. ON VALUE REQUEST event.
We are rather using the DEBI search help to search customers for an interface. We want the function to work silently, while we can pass various ways to search Customers using for example name, search term and some other criterion.
‎2011 Nov 25 7:47 AM
Hi Vishnu,
Could you please explain how your are planning to use F4IF_FIELD_VALUE_REQUEST in DEBI search help .
Kesav