‎2010 Jan 06 6:47 AM
Hi to all experts,
I have a peculiar problem in the fm 'F4IF_INT_TABLE_VALUE_REQUEST' when i click f4 im not
able see the values in the dialog box , im getting the status message as 3 records exist . But im not able to see the values in the dialog box what could be the problem.
p_dept is a selection screen field of type char 30. I need the f4 help for this field.
DATA: l_repid TYPE sy-repid,
l_dynnr TYPE sy-dynnr.
MOVE: sy-repid TO l_repid,
sy-dynnr TO l_dynnr.
TYPES: BEGIN OF line_type_val.
INCLUDE STRUCTURE ddshretval.
TYPES: END OF line_type_val.
DATA: it_val TYPE STANDARD TABLE OF line_type_val WITH HEADER LINE.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'P_DEPT'
dynpprog = l_repid
dynpnr = l_dynnr
dynprofield = 'P_DEPT'
value_org = 'C'
TABLES
value_tab = t_f4help
* FIELD_TAB =
RETURN_TAB = it_val
* DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
READ TABLE it_val INDEX 1.
IF sy-subrc EQ 0.
p_dept = it_val-fieldval.
ENDIF.
‎2010 Jan 06 8:00 AM
Hi,
Two minor corrections.
retfield = 'T_F4HELP-FIELDNAME'
value_org = 'S'
Note : parameter retfield should contain the fieldname inside the itab having the data.
it should be in capitals
it should be in full format i.e. table-fieldname.
Regards,
Amit Mittal.
‎2010 Jan 06 6:52 AM
Hi,
I think you need to pass 'S' to value_org field.
Thanks,
Vinod.
‎2010 Jan 06 6:57 AM
‎2010 Jan 06 7:07 AM
Hi,
Can you show us how are u fetching the records into the table t_f4help?
Mostly value_org is passed as 'S'. Please chk the documentation of the FM once for further details
thanks,
Ramya
‎2010 Jan 06 7:31 AM
Hello,
i hope pass 'S' to value_org field. it will work.
Thanks
santhosh.
‎2010 Jan 06 8:00 AM
Hi,
Two minor corrections.
retfield = 'T_F4HELP-FIELDNAME'
value_org = 'S'
Note : parameter retfield should contain the fieldname inside the itab having the data.
it should be in capitals
it should be in full format i.e. table-fieldname.
Regards,
Amit Mittal.
‎2010 Jan 06 8:16 AM
More precisely
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = <fieldname> " field name in T_F4HELP
value_org = 'S'
TABLES
value_tab = t_f4help "
return_tab = it_val
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3Also if the definition of the t_f4help is not correct for the FM, you need to fill field_tab with a structure like the one returned from DDIF_FIELDINFO_GET.
Regards,
Raymond
‎2010 Jan 06 8:20 AM
Hi Abdul,
Try like this:-
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'KSCHL'
dynpprog = l_repid
dynpnr = l_dynnr
dynprofield = 'P_KSCHL'
window_title = text-059
value_org = 'S'
TABLES
value_tab = it_value_tab
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
*
ENDIF. Thanks,
Manas