Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

F4IF_INT_TABLE_VALUE_REQUEST doesn't work

I want to popup a F4 window for bank name accroding to vendor no.

*declare internal table for bank

data: begin of bk occurs 0,

no like lfbk-bankn,

curr like lfbk-bkref,

name like bnka-banka,

acct like lfbk-koinh,

end of bk.

data t_bk like bk occurs 0 with header line.

process on value-request.

field IO_BANKNM module BANKNAME_list.

&----


*& Module BANKNAME_list INPUT

&----


  • text

----


module bankname_list input.

call function 'CONVERSION_EXIT_ALPHA_INPUT'

exporting

input = io_vendorno

importing

output = vendorno_long

exceptions

others = 1.

select abankn abkref bbanka akoinh

into bk

from lfbk as a inner join bnka as b

on abankl = bbankl

where a~lifnr = vendorno_long.

append bk to t_bk.

endselect.

call function 'F4IF_INT_TABLE_VALUE_REQUEST'

exporting

  • DDIC_STRUCTURE = ' '

retfield = 'name'

  • PVALKEY = ' '

DYNPPROG = prog_name

  • DYNPNR = ' '

DYNPROFIELD = 'IO_BANKNM'

  • STEPL = 0

WINDOW_TITLE = 'bank name'

  • VALUE = ' '

VALUE_ORG = 'C'

  • MULTIPLE_CHOICE = ' '

  • DISPLAY = ' '

  • CALLBACK_PROGRAM = ' '

  • CALLBACK_FORM = ' '

tables

value_tab = t_bk

  • FIELD_TAB =

  • RETURN_TAB =

  • DYNPFLD_MAPPING =

  • EXCEPTIONS

  • PARAMETER_ERROR = 1

  • NO_VALUES_FOUND = 2

  • OTHERS = 3

.

endmodule. " BANKNAME_list INPUT

I use debug and find there are 3 records in internal table t_bk.

But there is no F4 window pop up when call 'F4IF_INT_TABLE_VALUE_REQUEST' and I was told ' No value is found'.

Can anyone kind to help? Does I use this function wrong?

Tags:
Former Member
replied
data lt_dfies TYPE  dfies OCCURS 0.

call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'NAME'  >=== should be caps
PVALKEY = ' ' 
DYNPPROG = prog_name
DYNPNR =  sy-dynnr     <=====
DYNPROFIELD = 'IO_BANKNM'
STEPL = 0 
WINDOW_TITLE = 'bank name'
VALUE = ' ' 
VALUE_ORG = 'S'   <==== is should be S
tables
value_tab = t_bk
field_tab   = lt_dfies
EXCEPTIONS 
PARAMETER_ERROR = 1 
NO_VALUES_FOUND = 2 
OTHERS = 3
0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question