Application Development and Automation 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: 
Read only

Problem with F4if_int_table_value_request

Former Member
0 Likes
982

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
881

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.

7 REPLIES 7
Read only

vinod_vemuru2
Active Contributor
0 Likes
881

Hi,

I think you need to pass 'S' to value_org field.

Thanks,

Vinod.

Read only

0 Likes
881

did it still the problem persist.

Read only

Former Member
0 Likes
881

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

Read only

Former Member
0 Likes
881

Hello,

i hope pass 'S' to value_org field. it will work.

Thanks

santhosh.

Read only

Former Member
0 Likes
882

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.

Read only

0 Likes
881

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 = 3

Also 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

Read only

Former Member
0 Likes
881

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