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

F4IF_FIELD_VALUE_REQUEST without dialog

Former Member
0 Likes
904

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

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
719

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.

3 REPLIES 3
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
720

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.

Read only

0 Likes
719

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.

Read only

0 Likes
719

Hi Vishnu,

Could you please explain how your are planning to use F4IF_FIELD_VALUE_REQUEST in DEBI search help .

Kesav