Starting Situation
You want to create a template in such a way that a business process "Quality Inspection" is only activated when the confirmed quantities of an order deviates from the total order quantity. In order to do this you need a function that allows you to access the confirmed order quantities. You create this is in the following way: (a function for the total order quantity already exists).
The function Order_Yield_Confirmed already exists in the standard SAP System. This gives you the opportunity to compare executed tasks with data in the System.
Selection Window
In the selection window you decide in which template application, environment and sub-environment the new function should be placed. For this example:
Basic Data Tab
Here, you describe the function and can also create documentation for it.
For more information, see
Functions – Basic Data and Languages.Implementation Tab
Choose the function module, to which the results of the function should be delivered You determine, therefore which data the function should supply. We are assuming here, that the appropriate function module exists.
Effect: The following is achieved by this entry: when defining Methods (activation) as a comparison operand 2 all functions contained by the data element QUANTITY are displayed (See Section: Results).
For more information, see
Realization of the Function.Parameter Tab
Here, you determine exactly which data the function should supply. You indicate among other things to which fiscal year and which controlling area the data should belong.
For more information, see
Function Parameters.Uses Tab
On this tab you determine in which cells of the template the function can be used.
For more information, see
Function Uses.Function Hierarchy Tab
On this tab you enter within which function trees the function should be contained.
For more information, see
Additional Function Trees.Language Tab
Enter external, language dependent descriptions for the functions in different languages, for example Confirmed period based order quantities and Periodengerecht rückgemeldete Menge für Auftrag.
For more information, see
Functions – Basic Data and Languages.Result
Y
ou can now use the function in template maintenance to compare confirmed order quantities and total order quantities.Column: Actual Activation
Comparison operand 1 = Function Order Yield Confirmed with parameter Confirmed Yield This function can be selected as a parameter, because you also selected the F4 data element QUANTITY (see section above: Parameter).
Unlike
Comparison operand 2 = Function Total Order Quantity. This function can be chosen as the same F4 data element was selected as with the Confirmed Order quantities (F4 Help Possible entries for comparison/parameters on Implementation tab), namely the data element QUANTITY (see section above: Implementation Tab).
This means that the quality process will only be activated when the confirmed order yield deviates from the total order quantity.
Column: Actual Quantity
in the column Actual Quantity you can enter a 1. This means that a new quality process will be executed, everytime the activation criteria are met.