‎2005 Jun 10 11:33 AM
Hi All
I want to create a Search help which will take one parameter(e.g. Project id) and find out the the duration of the project. For this I have written one function now I want to know how to attach it to searh help. When I write the name of the function ( in which I am calculating the duration of the Project and populating the internal table )in the exit text box in creation screen of the search help ,it is giving error something like type of shlp is incorrect. My screen would look like as using selection-screen. The search help is reqd on month so project is mandatory.
Project ---
Month ---
BR
pM.
‎2005 Jun 10 12:23 PM
hello,
the function F4IF_INT_TABLE_VALUE_REQUEST might do what you want.
Regards, Wolfgang
‎2005 Jun 10 4:58 PM
Hi,
a search help exit must have a certain predefined parameter structure (press F1 on the field for more information).
Thus you should write another function module acting as search help exit.
In this case you act only in step 'SELECT' where you will do four things:
1. Call F4UT_PARAMETER_VALUE_GET to retrieve the Project ID.
2. Call your function module in order to get the values you want to display.
3. Call F4UT_RESULTS_MAP to transfer your internal table into the search help internal data
4. Change step to 'DISP'.
Both F4UT-function modules are documented in detail.
It might also be sensible to use function modules
F4UT_PARAMETER_REQUIRED (to make sure that a ProjectID really is there) and F4UT_SUPPRESS_SELECT_OPTIONS (in order to avoid getting a range of Project IDs).
These function modules are documented as well.
Greetings
Stephan