Application Development 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: 

F4 help on field in module pool.

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

Hi

in the field lwa_dd-tabname may be, you have to pass the name of internal table.

bye

enzo

Former Member
0 Kudos

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

Former Member
0 Kudos

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^