2006 Nov 14 2:07 PM
Hi All,
i have been trying to use the below code to display 2 fields ( id and text ) for F4 help,
the values get displayed but only half values always, eg if there are 20 entries in i_chgid then i get 10 entries with description on the f4 help screen.
*code used
l_field = 'CHGID'.
l_prog = sy-repid.
l_scr = sy-dynnr.
l_stepl = sy-stepl.
select CHGID CHGTX into table i_chgid .
lwa_dd-tabname = 'TFK047ET'.
lwa_dd-fieldname = 'CHGID'.
lwa_dd-position = '1'.
lwa_dd-intlen = 100.
lwa_dd-leng = 40.
lwa_dd-outputlen = 40.
lwa_dd-scrtext_s = 'Fee Charge'.
APPEND lwa_dd TO li_dd.
CLEAR lwa_dd.
lwa_dd-tabname = 'TFK047ET'.
lwa_dd-fieldname = 'CHGTX'.
lwa_dd-position = '2'.
lwa_dd-intlen = 200.
lwa_dd-leng = 100.
lwa_dd-outputlen = 100.
lwa_dd-scrtext_s = 'Description'.
APPEND lwa_dd TO li_dd.
CLEAR lwa_dd.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = l_field
dynpprog = l_prog
dynpnr = l_scr
dynprofield = l_dynpro
stepl = l_stepl
value = l_value
display = ' '
TABLES
value_tab = i_chgid
field_tab = li_dd
return_tab = li_ret
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
what could be the problem.
regards
Divakar
Hi All,
i have been trying to use the below code to display 2 fields ( id and text ) for F4 help,
the values get displayed but only half values always, eg if there are 20 entries in i_chgid then i get 10 entries with description on the f4 help screen.
*code used
l_field = 'CHGID'.
l_prog = sy-repid.
l_scr = sy-dynnr.
l_stepl = sy-stepl.
select CHGID CHGTX into table i_chgid .
lwa_dd-tabname = 'TFK047ET'.
lwa_dd-fieldname = 'CHGID'.
lwa_dd-position = '1'.
lwa_dd-intlen = 100.
lwa_dd-leng = 40.
lwa_dd-outputlen = 40.
lwa_dd-scrtext_s = 'Fee Charge'.
APPEND lwa_dd TO li_dd.
CLEAR lwa_dd.
lwa_dd-tabname = 'TFK047ET'.
lwa_dd-fieldname = 'CHGTX'.
lwa_dd-position = '2'.
lwa_dd-intlen = 200.
lwa_dd-leng = 100.
lwa_dd-outputlen = 100.
lwa_dd-scrtext_s = 'Description'.
APPEND lwa_dd TO li_dd.
CLEAR lwa_dd.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = l_field
dynpprog = l_prog
dynpnr = l_scr
dynprofield = l_dynpro
stepl = l_stepl
value = l_value
display = ' '
TABLES
value_tab = i_chgid
field_tab = li_dd
return_tab = li_ret
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
what could be the problem.
regards
Divakar
2006 Nov 14 2:12 PM
Hi
in the field lwa_dd-tabname may be, you have to pass the name of internal table.
bye
enzo
2006 Nov 14 2:20 PM
Hi,
This FM is used to dsiplay values stored in an internal table as input
help.This FM is used to program our own custom help if no such input help
exists in ABAP dictionary for a particular field. The parameter VALUE_TAB is used to pass the internal table containing input values.The parameter RETFIELD
is used to specify the internal table field whose value will be returned to the screen field or RETURN_TAB.
If DYNPNR,DYNPPROG and DYNPROFIELD are specified than the user selection is passed to the screen field specified in the DYNPROFIELD. If RETURN_TAB is specified the selectionis returned in a table.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = field from int table whose value will be returned
DYNPPROG = SY-CPROG
DYNPNR = SY-DYNNR
DYNPROFIELD = 'screen field'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = internal table whose values will be shown.
RETURN_TAB = internal table of type DDSHRETVAL
EXCEPTIONS
parameter_error = 1
no_values_found = 2
others = 3
See the below link for SAP help ..
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaac935c111d1829f0000e829fbfe/content.htm
2006 Nov 14 2:30 PM
hi
good
go through these links which ll give you brief idea about the creating of f4 help in module pool programming.
http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbaac935c111d1829f0000e829fbfe/content.htm
thanks
rmtyun^
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |