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: 

adding help to field

syed_ibrahim5
Active Participant
0 Kudos

hi,

i have added a field which originally does not have a f4 pushbutton....i have used it in select-options....

but i need to add help button... how can i do that....

thanks in advance,

syed

4 REPLIES 4

Former Member
0 Kudos

hi,

this answer u can get easily get in threads try to search before posting. any ways use this FM

F4IF_INT_TABLE_VALUE_REQUEST

Former Member
0 Kudos

hi

i think u want to add f4 help on select-options.

if yes u can use this code as sample code

SELECT kunnr name1

FROM kna1

INTO TABLE it_kna1

WHERE kunnr IN it_select.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'KUNNR'

dynpprog = sy-repid

dynpnr = sy-dynnr

window_title = 'Customer name'

value_org = 'S'

TABLES

value_tab = it_kna1[]

return_tab = it_f4.

CLEAR wa_f4.

READ TABLE it_f4 INTO wa_f4 INDEX 1.

IF sy-subrc = 0.

s_cust-low = wa_f4-fieldval.

ENDIF.

otherwise please elaborate ur requirement

regards

Former Member
0 Kudos

Hi,

try to use the function moduel..

CALL FUNCTION 'HELP_VALUES_GET'

Field name = <field name in the table which you wants f4 help>

Table Name = 'MARA' or amy table which you wants f4 Help

exporting

screen field = screen field f4 help needed

write the above Fm in at selection sceen on value request <Field-name>.

regards

Prabhudas

former_member196079
Active Contributor
0 Kudos

Hi

after the parameter name use MATCHCODE-OBJECT name of help.

regards

Marco