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

regarding F4IF_INT_TABLE_VALUE_REQUEST function module

Former Member
0 Likes
557

Hi all,

Iam using the F4IF_INT_TABLE_VALUE_REQUEST fn module . when Iam

referring to the DDIC fields its working fine but when my internal table is having

fields which r not referring to the DDIC in that case the pop up window is coming

but nothing is displayed.

can any one please guide me which <b>parameters</b> I need to pass and what values should be there in the parameters so that it will work perfectly.

Regards.

cnu

4 REPLIES 4
Read only

Former Member
0 Likes
521

Hello,

Check this sample


  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
*      DDIC_STRUCTURE         = ' '
      RETFIELD               = 'TXT04'
*      PVALKEY                = ' '
      DYNPPROG               = 'Z48R_PROJEKTSTATUS'
      DYNPNR                 = '1000'
      DYNPROFIELD            = 'SO_ESTAT-LOW'
*      STEPL                  = 0
*      WINDOW_TITLE           =
*      VALUE                  = ' '
      VALUE_ORG              = 'S'
*      MULTIPLE_CHOICE        = ' '
*      DISPLAY                = ' '
*      CALLBACK_PROGRAM       = ' '
*      CALLBACK_FORM          = ' '
    TABLES
      VALUE_TAB              = G_T_ESTAT
*      FIELD_TAB              =
      RETURN_TAB             = L_T_DDSHRETVAL
*      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.
  ENDIF.

If useful reward.

Vasanth

Read only

Former Member
0 Likes
521
chk this example

PARAMETERS : p_ccgrp LIKE rkpln-ksgru. "Cost Center Group

data : v_repid like sy-repid.

initialization.

v_repid = sy-repid.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_ccgrp.

  TYPES: BEGIN OF ty_ccenter_group,
          setname TYPE setnamenew,
          descript TYPE settext,
         END OF ty_ccenter_group.

  DATA : it_ccenter_group TYPE TABLE OF ty_ccenter_group.

  CLEAR it_ccenter_group.
  SELECT a~setname
         b~descript
         INTO TABLE it_ccenter_group
         FROM setheader AS a INNER JOIN
              setheadert AS b ON
              a~subclass EQ b~subclass AND
              a~setname EQ b~setname
              WHERE a~setclass EQ '0101' AND
                    b~langu EQ sy-langu.

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
       EXPORTING
            retfield    = 'SETNAME'
            dynpprog    = v_repid
            dynpnr      = '1000'
            dynprofield = 'P_CCGRP'
            value_org   = 'S'
       TABLES
            value_tab   = it_ccenter_group.
Read only

0 Likes
521

thanks for ur valuable suggestion

but the problem is that the internaltable which we r passing using

the <b>value_tab</b> parameter , if that table has fields which r not at all

referring to ddic fields in that case it is showing nothing.

Regards

cnu

Read only

0 Likes
521

Hi, try this but not sure

pass the VALUE_ORG as C and not S

and also populate the FIELD_TAB structure

data : field_tab type table of dfies.

field_tab-fieldname = 'FIELD_NAME'.

field_tab-tabname = 'TABLE_NAME'.

append field_tab.