Application Development 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: 

Problem with the function F4IF_INT_TABLE_VALUE_REQUEST

Former Member
0 Kudos

Hi.

I have a problem with the function F4IF_INT_TABLE_VALUE_REQUEST, the next code are used in my program:

SELECT *

FROM ztbanexdata

APPENDING CORRESPONDING FIELDS OF TABLE i_tot_anexos.

DELETE ADJACENT DUPLICATES FROM i_tot_anexos COMPARING anexo.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'N_Anexo'

dynpprog = sy-cprog

dynpnr = sy-dynnr

dynprofield = 'X'

stepl = 0

value_org = 'S'

pvalkey = 'X'

TABLES

value_tab = i_tot_anexos

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.

The field of the dynpro is n_anexos but in the dynpro i can't select a value of field of the internal table i_tot_anexos, the button of acept is deactived.

How i can to active the button.

Thanks.

3 REPLIES 3

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'N_ANEXOS'           "<--  capitalize
dynpprog = sy-cprog
dynpnr = sy-dynnr
dynprofield = 'N_ANEXOS'    "<--  set this value.
stepl = 0
value_org = 'S'
pvalkey = 'X'
TABLES
value_tab = i_tot_anexos
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.

Regards,

RIch Heilman

Former Member
0 Kudos

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

<b>retfield = 'N_ANEXO' " change to upper case</b>,

dynpprog = sy-cprog

dynpnr = sy-dynnr

<b>dynprofield = 'P_FIELD' " here give the name of screen field on selection screen</b>

value_org = 'S'

TABLES

value_tab = i_tot_anexos[]

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.

Former Member
0 Kudos

Hi Andres,

use sy-repid instead of sy-cprog

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'N_ANEXO' " change to upper case,

dynpprog = sy-repid "instead of sy-cprog

dynpnr = sy-dynnr

dynprofield = 'P_FIELD' " here give the name of screen field on selection screen

value_org = 'S'

TABLES

value_tab = i_tot_anexos[]

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.