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

Former Member
0 Likes
1,140

We are calling this function F4IF_FIELD_VALUE_REQUEST to display different search helps in a custom piece of code. We are upgrading from 4.6b to ECC 603. In 4.6b the function will display a selection screen for the user to enter values.

In ECC 603 , this is not happening , the function simply returns a list of records not allowing the user to enter any search criteria.

Any suggestions

5 REPLIES 5
Read only

Former Member
0 Likes
926

Hi,

pls check with the below sample code, by default the search option will come.

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

tables:

t001s.

data: ret_tab like ddshretval occurs 0 with header line.

parameters:

p_bukrs like t001s-bukrs.

at selection-screen on value-request for p_bukrs.

call function 'F4IF_FIELD_VALUE_REQUEST'

exporting

tabname = 'T001S'

fieldname = 'BUKRS'

  • SEARCHHELP = ' '

  • SHLPPARAM = ' '

  • DYNPPROG = ' '

  • DYNPNR = ' '

  • DYNPROFIELD = ' '

  • STEPL = 0

  • VALUE = ' '

  • MULTIPLE_CHOICE = ' '

  • DISPLAY = ' '

  • SUPPRESS_RECORDLIST = ' '

  • CALLBACK_PROGRAM = ' '

  • CALLBACK_FORM = ' '

tables

return_tab = ret_tab

  • EXCEPTIONS

  • FIELD_NOT_FOUND = 1

  • NO_HELP_FOR_FIELD = 2

  • INCONSISTENT_HELP = 3

  • NO_VALUES_FOUND = 4

  • OTHERS = 5

.

if sy-subrc = 0.

read table ret_tab index 1.

p_bukrs = ret_tab-fieldval.

endif.

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

Thanks & Regards,

Sreeram.

Read only

Former Member
0 Likes
926

Hi ,

You can provide search help name .

Please reward if useful.

Read only

Former Member
0 Likes
926

Hi,

The main issue is that in Search help which u r using in ECC6 .

first check this:

Go to relevant serach help thru SE11.

Then with in that , you will find DIALOG Option which shud be checked ( I havent remeberd the screen at this momnet).

Check one more thing-- Dialog with Restrictions.

The above things should be mentioned in search help to have pop up box wen f4 is pressed.

regards,

naveen

Read only

Former Member
0 Likes
926

Hii,

F4IF_FIELD_VALUE_REQUEST - Shud be working fine,

Just check with the Dialog type of the search help.

1.Display value imm...

2.Depends on set of values

3,Dialog with value restriction.

Change it accordingly,

Rgds

Read only

0 Likes
926

I should have mentioned I already checked the search help and it is 'dialog with value restriction. the FM is called as follows:

CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'

EXPORTING

tabname = 'MARA'

fieldname = 'MATNR'

searchhelp = p_mtch

multiple_choice = 'X'

suppress_recordlist = 'X'

TABLES

return_tab = it_data

EXCEPTIONS

field_not_found = 1

no_help_for_field = 2

inconsistent_help = 3

no_values_found = 4

OTHERS = 5.

It works fine in 46b but does not in ECC 6. We have not changed anything. something must be different in the function module which is preventing the selection screen on this search help.