‎2007 Jun 19 1:15 PM
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
‎2007 Jun 19 1:18 PM
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
‎2007 Jun 19 1:19 PM
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.
‎2007 Jun 19 1:30 PM
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
‎2007 Jun 19 1:41 PM
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.