Starting Situation
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 considered 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. For this, only one template row is required, in which a search method in the object column can be defined.
The following data is assumed. The information in parentheses is for the data required by IDES.
ORDER_PLANT belongs to node Order (function tree SAP1 for environment 001), the others to node Processes. 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
Maintain Template ®
Create template.
Results of this Step
The initial data for the template has been entered. You have chosen the environment (001) and the template row type (Process).
Now define the requirements with which the template can find the correct business process, or the correct object.
The selection editor where you input the search requirements is shown.
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 bound by a logical AND. This is already entered.
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 that you should find the business process from the warehouse process groups (in IDES for example, BP_02) in which the plant of the sender business process is the same as the ordering plant.
View Search Method in IDES
You can see the first part of the search method.
You can see the second part of the search method.
Checking and Testing Templates
You are in screen Create template or Template. Choose Check in order to check the syntax of your entry.
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 into which the plant was entered. 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 will see the description/name of the function which works with parameter: PROCESSES_IN_PROCESS_GROUP. You entered parameter BP_02 in the search requirements. The second parameter belongs to type "invisible" (not visible on the template) and is automatically filled.
Both of these in the row show the results of the function run; business process group BP_02 includes processes 300200 and 300300.
Results: only business process 300200 (controlling area 1000) belongs to business process group BP_02 and is simultaneously assigned to the master data of plant 1200. Because 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 field.
0