Skip to Content
0
Former Member
Mar 03, 2011 at 12:23 PM

F4IF_INT_TABLE_VALUE_REQUEST -Values aren't getting displayed in return tab

532 Views

Hi,

The issue is that the values are not getting displayed in lt_return(table which i declared).

Please find the code below.Is there anything to do with POSITION field in DFIES table?When i press F4 the popup is coming but im unable to see any values in it.Please help? When we are not declaring DFIES we are seeing values of HIENM but not in the column of HIENM but HIED(which is the first column of RSHIEDIR).When we are declaring dfies,we are able to see only one column(HIENM) but no values in it.

TYPES: BEGIN OF ty_hrname,

hienm TYPE rshiedir-hienm,

END OF ty_hrname.

data : i_valhrname TYPE TABLE OF ty_hrname ,

lt_dfies TYPE TABLE OF dfies,

lw_dfies TYPE dfies.

SELECT hienm FROM rshiedir INTO CORRESPONDING FIELDS OF TABLE i_valhrname

WHERE objvers EQ 'A' AND iobjnm EQ '0COMP_CODE'.

lw_dfies-dynpfld = 'X'.

lw_dfies-tabname = 'RSHIEDIR'.

lw_dfies-fieldname = 'HIENM'.

APPEND lw_dfies to lt_dfies.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

ddic_structure = 'RSHIEDIR'

retfield = 'HIENM'

dynpprog = sy-cprog

dynpnr = sy-dynnr

  • dynprofield = 'W_TEMPWA-TCTHIENM'

value_org = 'S'

TABLES

value_tab = i_valhrname

field_tab = lt_dfies

return_tab = lt_return

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.

ENDIF. " sy-subrc

Regards,

K Srinivas