External Caller Using function modules you can call the
specification information system
from outside the SAP
Environment, Health and Safety
(
EH&S
) component. The function module runs a
query
and activates an
output variantif necessary. In the function module an external caller is specified that controls which query is started.
You have processed the IMG activity
Specify External Callers
in Customizing for
Basic Data and Tools
.
You can pass the following data to the function module:
Data that restricts the specification search
For example, you can pass material numbers to which the specifications you are searching for must be assigned.
The external caller
Using the external caller, the SAP system determines the query that is to be executed. This means the SAP system determines from all queries the one in whose header data the external caller was specified. When it does this, the SAP system always uses the first query it finds, that is, an external caller must be assigned to
one
query only, in the SAP
EH&S
component. In the header data for the query you can assign an output variant if required. This has the following effects:
If the SAP system finds exactly one specification when it executes the query, this specification is displayed using the output variant.
If the SAP system finds more than one specification when it executes the query, these are displayed in the hit list and the output variant is activated.
If you do not assign an output variant, the query is executed and the hit list is displayed.
The following settings are necessary in order to be able to use the
external caller
function:
Create the function module according to your requirements. Specify the external caller.
Make sure that the function module can be called from the required position by adding the function module call to the menu, for example.
In query management create the query that is to be executed (see Creating and Editing Queries ). In its header data enter the external caller and the output variant if necessary (see Editing the Query Header ). Note the following when creating the query:
If you want to make a selection using a query for data passed by the SAP system (such as material numbers), the first query step must be empty. The empty query step contains the selection of passed data. You define all other query steps as you require them.
If you do not want to refine or extend the query, no query step is required.