!--a11y-->
Amount Determination 
With this function you can determine values or measurement results for agents from other SAP components and transfer them to the amounts in risk assessment. In this manner you can, for example, transfer stock movement data for materials from the Inventory Management (MM-IM) component. Amount determination therefore supplements the manual entry of amounts by providing a value determination function performed by the system.
Amount determination applies to agents in work areas. When you transfer a value, it is entered as a new data record in the amounts. If a data record already exists for the respective measurement item, a new version is created.
You must have processed the IMG activity Specify Measurement Items in Customizing for Industrial Hygiene and Safety. Here you must have assigned the required function modules for value determination to the agent types.
In order to be able to determine amounts for an agent, you must have:
· Assigned the agent to a work area
· Assigned to this work area the integration object from which you want to transfer the amounts using the data integration function. For material stocks and movements, this is the storage location.
The standard system contains determination routines for material stocks. If you want the system to determine amounts from another SAP component you must do the following:
· Use the copy template CBIH_LB11_QTY_GET_VALUES to create the respective determination routine and assign it to the required measurement items in Customizing for Industrial Hygiene and Safety under Specify Measurement Items.
· In Customizing, define the object whose amounts or quantities you want to determine as an integration object for the data integration function For more information on setting up integration objects, see Specify Integration Objects for Work Area Management in the Implementation Guide (IMG) for Industrial Hygiene and Safety.
The list shows which determination routines are included with the standard system:
|
Function Module |
Amount |
Remark |
|
CBIH_LB11_QTY_GET_STOCK_IN |
Calculates the stock receipt for inventory-managed materials |
The function modules calculate the stock information for the following agent types: · Agents that are materials (agent type HAZ_MAT) · Real substances to which a material is assigned (agent type REAL_SUB) For more information, see the function module documentation. |
|
CBIH_LB11_QTY_GET_STOCK_OUT |
Calculates the stock issue for inventory-managed materials |
|
|
CBIH_LB11_GET_STOCK_TOTAL |
Calculates the warehouse stock for inventory-managed materials |
|
|
CBIH_LB11_QTY_GET_VALUES |
|
This function module serves as a copy template to create your own determination routines (see “Prerequisites”). |
The system determines the amounts on the basis of a search query you specify. The result is displayed in a proposal list in which you can select and transfer the relevant values. Your activities are explained in detail below:
· Calling the function
You call the function by choosing Agents ® Amount Determination in the Industrial Hygiene and Safety menu.
· Creating the proposal list
You can restrict your search according to agent, work area, or amount attributes, for example. You can also specify a key date and a validity period.
The system determines all amounts that match your search parameters and displays them in the form of a proposal list (hit list).
· Deciding what to transfer in the proposal list
In the proposal list you decide which amounts you want to transfer. For all values you choose to transfer, the system creates the corresponding data records in the amounts.

Once you have transferred an amount, there is no longer a link to the source of the value. Any changes made to the value source are not transferred automatically to the amounts. To update the values, you must run a new amount determination. If you transfer the value from the proposal list, the system delimits the validity of the existing data record at the key date (version assignment). The end of validity of the old version is set to the key date minus one; the start of validity of the new version is the key date.
Note that the system only assigns each data record in the amounts one version per day. If you want to transfer an amount on the same day on which it already has one version, the system creates a new data record for this amount.
· Release process
You can then run the release process for the newly created amounts (see Status Editing for Amounts). After versioning, the status is initial again.
