06-27-2008 10:58 AM
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
06-27-2008 12:56 PM
*****************************************************************
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.
06-27-2008 11:22 AM
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?
06-27-2008 12:50 PM
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
06-27-2008 12:55 PM
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).
06-27-2008 12:56 PM
*****************************************************************
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.
06-27-2008 1:05 PM
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
06-27-2008 1:20 PM
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 ???