Skip to Content
0
Former Member
Jun 30, 2009 at 07:57 AM

F4IF_INT_TABLE_VALUE_REQUEST not returing a value

1849 Views

Hi All,

I have a specific code below which gives me a return value for the screen field. However, if I include the table wich contains the LABEL name of the hitlist in F4, there is no return value. 😔

I am using the FM 'F4IF_INT_TABLE_VALUE_REQUEST'.

 TYPES:  BEGIN OF final2,
         field  TYPE char10,
         field2 TYPE char40,
         END OF final2.
DATA:    final_tab1 TYPE TABLE OF final2,
         ret_tab LIKE TABLE OF ddshretval.
DATA: it_field_tab LIKE dfies OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'DDIF_NAMETAB_GET'
    EXPORTING
      tabname   = 'ZBPORG'
    TABLES
      dfies_tab = it_field_tab.

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield    = 'FIELD'
      dynpprog    = progname
      dynpnr      = dynnum
      dynprofield = 'ZSDYN_LIADEF-BP_NUMBER'
      window_title = 'BP/Org Number'
      value_org   = 'S'
    TABLES
      value_tab   = final_tab1
*      field_tab   = it_field_tab.
      RETURN_TAB  = ret_tab.

Note that if I remove it_field_tab, a return value is displayed in the field. But the problem is that the column label in the hitlist contains F001 and Char instead of the desired labels (Org_Unit and Description). Thus, I need to include it_field_tab for the label. Unfortunately, no value is being returned/displayed in the screen field.

Would you know the possible problem in this scenario?

I would like to ask your help on this guys. Message replies are well appreciated.

Thank you.

RE