07-02-2007 3:13 PM
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.
07-02-2007 3:19 PM
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
07-02-2007 3:21 PM
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.
07-03-2007 10:29 AM
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.