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: 

FM call on event enter F4

Former Member
0 Kudos

Hi.

How can I call a FM within search help exit

relating to an input field on search ehlp field

(on click f4 must be called a FM ).

Regards

ertas

1 ACCEPTED SOLUTION

Former Member
0 Kudos

*****************************************************************

write this in flow logic.

*****************************************************************

PROCESS ON VALUE-REQUEST.

FIELD REQUEST_AREA MODULE create_dropdown_box.

define the data here.

data: <it> like <tablename> occurs 0 with header line.

MODULE create_dropdown_box INPUT.

SELECT <field-name>

FROM <table-name>

INTO CORRESPONDING FIELDS OF TABLE <it> WHERE REQUESTAREA <> ' '.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = '<field-name>'

value_org = 'S'

TABLES

value_tab = <it>

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.

IF sy-subrc <> 0.

...

ENDIF.

ENDMODULE. " create_dropdown_box INPUT

or

goto ABAPDOCU

ABAP USER DIALOG

SCREENS

PROCESSING SCREEN

Demo_dropdown BOXES ON SCREEN

THERE U LL GET LOTS OF EXAMPLE.

6 REPLIES 6

Former Member
0 Kudos

I'm not sure what you're asking, but AFAIK, you can specify a search help exit in a search help object (SE11). The exit itself is a Function Module, which you can create on your own. It must however, follow a certain set of rules (i.e. have particular import/export) parameters.

Or is there something else that you were trying to ask?

0 Kudos

Suppose I have created a search help Z_SHLP through

SE11. First I have created a Search help parameter named

KOSTENSTELLE (Data element -> ZKOSTENSTELLE).

And now I can maintain a Srch help exit up to the my requirements. I have mainted one.

When I want to test it now I can press F8 and execute this

search help. What do I see.

I see a window (search help window) with one input field.

What I need is now, when I klick into this input field

KOSTENSTELLE and press F4 than must be called

a Function Module 'C14F_LOV_WAID' .

Did you understand me ?

regards

ertas

former_member188685
Active Contributor
0 Kudos

if it is selection screen

then you can use the event

at selection-screen on value request.

under this event you can call the fm.

or if it module pool then you can use the Flow logic event

POV(process on value Request).

Former Member
0 Kudos

*****************************************************************

write this in flow logic.

*****************************************************************

PROCESS ON VALUE-REQUEST.

FIELD REQUEST_AREA MODULE create_dropdown_box.

define the data here.

data: <it> like <tablename> occurs 0 with header line.

MODULE create_dropdown_box INPUT.

SELECT <field-name>

FROM <table-name>

INTO CORRESPONDING FIELDS OF TABLE <it> WHERE REQUESTAREA <> ' '.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = '<field-name>'

value_org = 'S'

TABLES

value_tab = <it>

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.

IF sy-subrc <> 0.

...

ENDIF.

ENDMODULE. " create_dropdown_box INPUT

or

goto ABAPDOCU

ABAP USER DIALOG

SCREENS

PROCESSING SCREEN

Demo_dropdown BOXES ON SCREEN

THERE U LL GET LOTS OF EXAMPLE.

Former Member
0 Kudos

Hi,

Go to Se37 ->

give F4IF_SHLP_EXIT_* , and press F4. You will get some related function modules.

According to your requirement, you can use the FM.

Regards

Sandeep Reddy

Former Member
0 Kudos

hello,

is it true nobody can tell me how to call a function module

on klick f4 on the search help window .

It is kind of F4 help for F4 search OK ???