Starting Scenario
Your firm has two plants. Each one has its own warehouse with different processes for material movements. These processes use different resources and therefore have different costs. However, the process driver for both processes is the number of pallet movements. Therefore, the correct warehouse process must be automatically included in your production calculation. To this end, create a template which recognizes the correct warehouse process (depending on the plant) through the dynamic object search. Only one template row is required, in which a search method in the object column can be defined.
The following data is assumed to be created. The information in parentheses is for the data required by IDES.
OrderPlant belongs to the Order node (function tree SAP1 for environment 001), the others to the Processes node. Arrange the assignment of plant-business process in business process master data under Organizational Unit, Plant.
Procedure
If you only wish to view the search methods in IDES, see section "View Search Methods in IDES".
Entering the Search Method
Results of this Step
The initial data for the template has been entered. You have chosen the environment (001) and the template row type (business process).
Now define the requirements with which the template can find the correct business process, or the correct object.
Results of this Step
The first part of the search method is entered: the plant of the sender business process must be the same as the plant of the production order
Now you enter the second part of the requirement. Both parts are to be bound by a logical AND.
Result
You have defined the method with which the object (here, the business process) is dynamically determined. The method in this example consists of two comparisons which are bound through a logical AND. The comparisons operands are the functions of the environment 001.
The selection conditions mean: Find the business process in the warehouse process groups (in IDES for example, BP02) in which the plant of the sender business process is the same as the ordering plant.
View Search Method in IDES
Checking and Testing Templates
You are in either screen Create template or Change template. To check the syntax of your entries, choose Template -> Check or .
Follow these steps to test the template:
Template Evaluation
In the screen Evaluation template you are provided with a results structure. If you open the path displayed, you will see in row Object the business process for the plant that was specified. The IDES example should display the value 300200. If you worked with your own data, then you need to display the business process (to which the plant entered in the master data was assigned).
Template Evaluation - Details
To see more details, double click on row Object. You receive the following information:
Formula/Methods: you will see the entered search method with the applied function (F1 = function with parameters; see function list).
Function List: You see name of the function with which the parameters work – ProcessesFromProcessGroup. You entered parameter BP02 in the search requirements. The second parameter belongs to type "invisible" (not visible on the template) and is automatically filled.
Both of the lower rows show the results of the function run; business process group BP02 includes processes 300200 and 300300.
Results: Only business process 300200 (controlling area 1000) belongs to business process group BP02 and is simultaneously assigned to the master data of plant 1200. Since this is also the entered plant of the order, process 300200 is chosen.
Field contents: you entered the plant of the order in the test entry screen.