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: 

Can we create serach help for a selection screen field

Former Member
0 Kudos
110

Can we create serach help for a selection screen field with out creating searchhelp object.

I mean is it possible to create serchelp in the program itself with some specific values i want to give.

E.g say we can define any internal table and fill it with values and using that into selection screen fields

Regards

Mave

4 REPLIES 4

Vinod_Chandran
Active Contributor
0 Kudos
80

Hi,

You can use AT SELECTION-ON VALUE-REQUEST FOR parameter

and use the function module F4_IF_FIELD_VALUE_REQUEST to have the F4 functionality for the selection screen field.

Please find an example here.

Cheers

Vinod

Message was edited by: Vinod C

Former Member
0 Kudos
80

AT SELECTION-SCREEN ON VALUE-REQUEST FOR paymeth.

PERFORM PAYMENT_HELP.

FORM PAYMENT_HELP.

DATA: begin of DESCR_TAB occurs 0,

DESCR LIKE BKPF-BKTXT,

END OF DESCR_TAB.

DATA: gd_repid like sy-repid.

gd_repid = sy-repid.

DESCR_TAB-DESCR = 'aaaaa'.

append DESCR_TAB.

DESCR_TAB-DESCR = 'bbbbb'.

append DESCR_TAB.

DESCR_TAB-DESCR = 'ccccc'.

append DESCR_TAB.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'DESCR'

DYNPPROG = gd_repid

DYNPNR = '1000'

DYNPROFIELD = 'paymeth'

VALUE_ORG = 'S'

DISPLAY = ' '

TABLES

value_tab = DESCR_TAB.

endform.

Svetlin

Former Member
0 Kudos
80

you can code the logic under

at selection-screen on value-request.

use the FM "F4_FIELD_ON_VALUE_REQUEST"

Former Member
0 Kudos
80

Go through this link

http://www.sapdevelopment.co.uk/dictionary/shelp/shelphome.htm

Hope this helps.

Reward points for the answer which helped u.