44
8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 1/44 Substance Volume Tracking

SAP WhitePaper Substance Volume Tracking EhP3 En

Embed Size (px)

Citation preview

Page 1: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 1/44

Subs tanc e Vo lu me Track in g

Page 2: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 2/44

SAP Online Help

Substance Volume Tracking 2

Copyright

© Copyright 2007 SAP AG. All rights reserved.

No part of this publication may be reproduced or transmitted in any form or for any purpose

without the express permission of SAP AG. The information contained herein may bechanged without prior notice.

Some software products marketed by SAP AG and its distributors contain proprietarysoftware components of other software vendors.

Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of MicrosoftCorporation.IBM, DB2, DB2 Universal Database, OS/2, Parallel Sysplex, MVS/ESA, AIX, S/390, AS/400,OS/390, OS/400, iSeries, pSeries, xSeries, zSeries, z/OS, AFP, Intelligent Miner,WebSphere, Netfinity, Tivoli, Informix, i5/OS, POWER, POWER5, OpenPower and PowerPCare trademarks or registered trademarks of IBM Corporation.

 Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registeredtrademarks of Adobe Systems Incorporated in the United States and/or other countries.Oracle is a registered trademark of Oracle Corporation.

UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group.Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin aretrademarks or registered trademarks of Citrix Systems, Inc.

HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C®, WorldWide Web Consortium, Massachusetts Institute of Technology.

Java is a registered trademark of Sun Microsystems, Inc.

JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape.

MaxDB is a trademark of MySQL AB, Sweden.

SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products andservices mentioned herein as well as their respective logos are trademarks or registeredtrademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies.Data contained in this document serves informational purposes only. National productspecifications may vary.

These materials are subject to change without notice. These materials are provided by SAP

 AG and its affiliated companies ("SAP Group") for informational purposes only, withoutrepresentation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products andservices are those that are set forth in the express warranty statements accompanying suchproducts and services, if any. Nothing herein should be construed as constituting anadditional warranty.

Page 3: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 3/44

SAP Online Help

Substance Volume Tracking 3

Icons in Body Text

Icon Meaning

Caution

Example

Note

Recommendation

Syntax

 Additional icons are used in SAP Library documentation to help you identify different types of 

information at a glance. For more information, see Help on Help General InformationClasses and Information Classes for Business Information Warehouse  on the first page of anyversion of SAP Library.

Typographic Conventions

Type Style Description

Example text Words or characters quoted from the screen. These include fieldnames, screen titles, pushbuttons labels, menu names, menu paths,and menu options.

Cross-references to other documentation.

Example text Emphasized words or phrases in body text, graphic titles, and table

titles.

EXAMPLE TEXT Technical names of system objects. These include report names,program names, transaction codes, table names, and key concepts of aprogramming language when they are surrounded by body text, for example, SELECT and INCLUDE.

Exampl e t ext Output on the screen. This includes file and directory names and their paths, messages, names of variables and parameters, source text, andnames of installation, upgrade and database tools.

Example text Exact user entry. These are words or characters that you enter in thesystem exactly as they appear in the documentation.

<Example text> Variable user entry. Angle brackets indicate that you replace thesewords and characters with appropriate entries to make entries in thesystem.

EXAMPLE TEXT Keys on the keyboard, for example, F2 or ENTER.

Page 4: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 4/44

SAP Online Help

Substance Volume Tracking 4

Substance Volume Tracking..................................................................................................5

 Accessing Substance Volume Tracking.............................................................................. 6

Substance Volume Tracking Process.................................................................................7

EH&S Master Data Structure for Substance Volume Tracking......................................... 9

Classes, Value Assignment Types and Characteristics for SVT .................................... 11

Definition of Relevant Materials ....................................................................................13

Data Transfer from Property Tree................................................................................. 15

Volume determination................................................................................................... 17

Quantity Limits ............................................................................................................. 23

Volume Monitoring ....................................................................................................... 27

Overall Status of a Tracked Substance ..................................................................... 29

Online Checks..............................................................................................................30

BAdI Implementations for Online Check.................................................................... 32

Display and Unblocking of Blocked Documents ............................................................37

 Archiving of Determined Quantities............................................................................... 38

Logging in Substance Volume Tracking........................................................................40

Reports for Substance Volume Tracking.......................................................................41

Scenarios and Tables for Substance Volume Tracking .................................................42

Page 5: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 5/44

SAP Online Help

Substance Volume Tracking 5

 Substance Volume Tracking

Purpose

In many countries, regulations state that, above a certain quantity of chemicals and other hazardous substances, you must register with the authorities the maximum quantities of thesesubstances that you plan to purchase, import, produce, sell, or export within a certain period.Substance volume tracking helps you to comply with the relevant regulations by recording thequantities of substances needing to be tracked that you purchase, import, produce, sell, or export. By comparing the recorded quantities with the limit values, the system can warn you ingood time before a limit value is exceeded; if a limit value is exceeded, the system can alsoblock the respective business process. This means you can ensure that you stay below thequantity limits.

For more information about the delivery of substance volume tracking, see SAPNote 905726.

SAP emphasizes that this component is only an example for the tracking of substance volumes. SAP does not therefore guarantee that the functionsdelivered comply with specific regulations such as the European Parliament andCouncil Directive on the Registration, Evaluation, and Authorization of Chemicals (REACH).

Features

The substance volume tracking supports the following functions:

Compliance with legal regulations

Evaluation of tracked quantities with traffic light status

Support of quantity-dependent regulations

Support of quantity-independent regulations

For the support of quantity-independent regulations, also note thedocumentation for the IMG activities Set Up Notification Check und Set UpMonitoring for TSCA 12B in Customizing for substance volume tracking.

Support of customer-defined checks

Measurement of substance streams

Variable setting for which data is to be measured

Online checks in the logistics processes: purchasing, production, sales and shipping

Message output

Sending messages

Blocking orders

Page 6: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 6/44

SAP Online Help

Substance Volume Tracking 6

 Accessing Substance Volume Tracking

In the overview tree on the SAP Easy Access screen, choose SAP menu Logistics

Environment, Health and Safety  Substance Volume Tracking .

The Substance Volume Tracking  node is expanded. The menu paths described in this

application help are based on navigation in the lower-level nodes.

Prerequisites

See Substance Volume Tracking Process [Seite 7]

Page 7: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 7/44

SAP Online Help

Substance Volume Tracking 7

 Substance Volume Tracking Process

Purpose

See Substance Volume Tracking [Seite 1].

Prerequisites

You have processed the IMG activities in Customizing for Substance Volume

Tracking .

You have specified the required regulations as regulatory lists in Customizing for BasicData and Tools in the IMG activity Specify Regulatory Lists. See also, Management of Regulatory Lists [Extern].

You have specified the environment parameters that are relevant for substancevolume tracking in Customizing for Basic Data and Tools in the IMG activity Specify

Regulatory Lists.

The master data for the substance that is to be monitored is transferred to thesubstance volume tracking tables. For more information, see RREGCH_FILL under Reports for Substance Volume Tracking [Seite 41].

Volume monitoring and the online checks for substance volume tracking both takeplace in one logistics system. For distributed systems, this means the following:

If your EH&S and logistics data are in different systems, you must fill therelevant substance data from the EH&S system to the logistics system in whichvolume monitoring and the online checks are performed. To do this, use thereport RREGCH_FILL and enter a RFC destination.

If your material data and other logistics data are in different systems, you mustdistribute this data via Application Link Enabling (ALE) to the logistics system inwhich volume monitoring and the online checks are performed.

Legal entities (such as a company code) that are distributed over severalsystems are not supported.

The relevant classes, value assignment types and characteristics for substancevolume tracking [Seite 11] are available in the system. For more information, see SAPNote 945038.

The structure of the EH&S master data [Seite 9] corresponds with the requirements for substance volume tracking.

Process Flow...

1. You create the required master data:

a. You define the materials [Seite 13] that are relevant for substance volumetracking.

b. If required, you create in the substances for the materials special compositionsthat contain only the substances that are relevant for substance volumetracking.

c. You enter the quantity limits [Seite 23]. Here, you can set several quantitythresholds and configure the system so that it warns you in good time before aquantity limit is reached.

2. The system determines the quantities [Seite 17] of the substances to be tracked:

Page 8: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 8/44

SAP Online Help

Substance Volume Tracking 8

a. The system determines the materials to be tracked.

b. The system determines the substances to be tracked that belong to thematerials.

c. The system determines the composition of the substances and uses allsubstances it finds at the deepest level as substances to be tracked.

Substances that are composed of different substances are not monitored.

d. The system determines daily for each tracked substance the quantity that waspurchased, imported, produced, sold, or exported.

e. The system totals the quantities determined. This allows you to find out at anytime how much of a tracked substance you have already purchased, imported,produced, sold, or exported.

3. You monitor the quantities to ensure that the registered levels are not exceeded:

In volume monitoring [Seite 27], you can display the up-to-date totaledquantities of the tracked substances. You also receive information about whichsubstances are soon to reach a quantity limit or have already exceeded their limit.

In the online checks [Seite 30], the system checks whether a quantity limit isexceeded when you enter a quantity of a relevant material at certain points, for example, when you create a purchase order, a manufacturing order, or a salesdocument.

4. If a registered quantity is soon to be reached or exceeded, various system actions arepossible:

The system displays a message.

The system sends the message as an SAP e-mail.

The system blocks a business process to ensure, for example, that a tracked

substance whose quantity limit is exceeded can no longer be purchased,produced, or sold.

5. You react to the above actions by registering a higher quantity with the authorities if needed, adjusting the higher value in the system, and displaying and unblocking [Seite37] the blocked documents.

6. When a monitoring period, such as a calendar year, has expired, you archive [Seite 38]the quantities of a tracked substance that you purchased, imported, produced, sold, or exported in the monitoring period.

Page 9: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 9/44

SAP Online Help

Substance Volume Tracking 9

 EH&S Master Data Structure for SubstanceVolume Tracking

The EH&S master data must meet the following structural prerequisites so that substancevolume tracking can be performed:

Material Assignment

Exactly one specification must be determined for a relevant material.

If this cannot be guaranteed, an additional filter must be implemented. The standardfunction module CBRC_LIB_SPEC_FROM_MAT_GET must then be copied, adapted,and exchanged in Customizing for substance volume tracking (in the IMG activity

Specify Scenarios Specify Data Determination per Regulation and Scenario, in theSubstance Determin. for Material field).

The standard function module CBRC_LIB_SPEC_FROM_MAT_GET filters out allspecifications of the category GGCLASS.

Logistics documents such as manufacturing orders or purchase orders whose materialsdo not have a reference to a specification cannot be tracked.

Materials that marked as relevant, but are ignored because they do not have aspecification assignment are logged in the application log with an error message duringvolume monitoring.

Composition

There must be exactly one composition instance for the specification determined. Thepreset value assignment type for the composition is the default compositionSAP_EHS_1012_003 and is entered in Customizing in Specify Data Determination per Regulation and Scenario. The composition must have an active use. The rating andvalidity period must match the settings in Customizing.

Note: The default composition can be generated from other compositions such asExact composition from products using sets of rules.

The substances to be tracked are determined from the composition. These arenormally listed substances. You are in the lowest hierarchy, at the composition level. If this is not desired, the standard function module CBRC_LIB_SPEC_FROM_MAT_GETcan be copied, adapted, and exchanged in Customizing.

EH&S Data for Regulation Check

There are basically two types of regulation checks:

Substance-related quantity check

Substance-related check (substance quantity is not relevant)

The following value assignment types are relevant for the regulation check:

Value Assignment Type Description Information For  

SAP_EHS_1023_012 Notification status Substance-related regulationcheck

SAP_EHS_1023_057 Registration (company-specific)

Substance-related quantitycheck

SAP_EHS_1026_001 Specific limit values Substance-related quantity

check

Page 10: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 10/44

SAP Online Help

Substance Volume Tracking 10

You must fill the data (such as as composition and material assignment) usingthe filling report RREGCH_FILL [Seite 41] in the tables for substance volumetracking.

You can copy the following function modules and adjust them for your own

purposes. For more information, see the IMG activity Specify Data Transfer (Property Tree).

Function Module Description

CBRC_EHS_FILL_EHS_DATA Data determination from EH&S

CBRC_EHS_FILL_MAP Data assignment

CBRC_LIB_SVT_TABLE_SAVE Save EH&S data

Page 11: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 11/44

SAP Online Help

Substance Volume Tracking 11

 Classes, Value Assignment Types andCharacteristics for SVT

Substance volume tracking uses the value assignment types named below. They are listed inthe standard property tree STANDARD.

In the case that not all of the value assignment types are available in your system, see SAP Note 945038.

Class / Value AssignmentType

Name Process

SAP_EHS_1026_001 Specific Quantity Limits (SVT) Substance quantity checking

SAP_EHS_1023_057 Registration (Company-Specific)

Substance quantity checking

SAP_EHS_1026_002 Produced Quantities Data transfer to EH&S

SAP_EHS_1026_003 Consumed Quantities Data transfer to EH&S

SAP_EHS_1026_004 Purchased Quantities Data transfer to EH&S

SAP_EHS_1026_005 Sold Quantities Data transfer to EH&S

SAP_EHS_1026_001

In Customizing for substance volume tracking in the IMG activity Specify QuantityLimits and Reactions on Overall Status, you can enter relative quantity limits for eachlegal regulation and each quantity threshold. These relative quantity limits are used for 

volume monitoring in substance volume tracking. When these relative quantity limitsare exceeded, one or more actions are triggered, such as the display of a message, thesending of an e-mail, or the blocking of a business process.

If a relative quantity limit that you have defined in Customizing for substance volumetracking should not be valid for a substance, you can specify a specific relative quantitylimit in this property. This limit is then taken into account instead of the relativequantity limit that is defined in Customizing.

The substance-specific relative quantity limit defined in this property corresponds withthe quantity stored in property SAP_EHS_1023_057 Registration (Company-Specific)in the Reported Quantities characteristic. If this is not specified, the general upper quantity limit that is defined in Customizing for substance volume tracking in the IMGactivity Specify Quantity Limits and Reactions on Overall Status is used for the selected

quantity threshold.

SAP_EHS_1023_057

Some legal regulations require companies to register substances with the relevantauthorities before they are permitted to handle, produce, or sell them. Examples of such regulations are REACH (Registration, Evaluation and Authorisation of Chemicals)in Europe and TSCA 12b in the U.S..

The value assignment specified here overrides the settings in the IMG activity SpecifyQuantity Limits and Reactions on Overall Status. That is, if quantity thresholds arespecified for a regulation, they are used for tracking.

SAP_EHS_1026_002 to SAP_EHS_1026_005

In this property, you archive the total quantities of aproduced/consumed/purchased/sold substance determined for a monitoring year or 

Page 12: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 12/44

SAP Online Help

Substance Volume Tracking 12

monitoring period. A data record is created by the reportRREGCH_VT_CONDENSE_SAVE [Seite 41] from the tables in substance volumetracking for each combination of legal regulation, legal entity, plant, and monitoring year or monitoring period.

In general, the data stored in these properties is not edited manually. The propertiesare for documentation purposes and can be used to create reports, for example, usingWWI.

SAP_EHS_SVT_RELEVANT

You can use the Relevant for SVT characteristic to determine whether a substance isrelevant for substance volume tracking.

Page 13: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 13/44

SAP Online Help

Substance Volume Tracking 13

 Definition of Relevant Materials

Use

In substance volume tracking, the system takes into account only materials that are relevantfor substance volume tracking. This simplifies processes and significantly improvesperformance. You can specify that a material is relevant as follows:

You classify the material in the material master as relevant for substance volumetracking.

In Customizing for Substance Volume Tracking  in the IMG activity Specify 

Selection Criteria for Volume Tracking , you specify the selection criteria

that a material must fulfill for it to be relevant for substance volume tracking. For example, you can specify that the system only takes into account materials of specificmaterial types.

If you have set up the material classification and defined selection criteria, the systemcombines both checks with AND, that is, a material must be classified correctly and must fulfillthe selection criteria for it to be taken into account in substance volume tracking.

Prerequisites

You must have made the following settings before you can classify materials in the materialmaster as relevant for substance volume tracking:

In Customizing for Substance Volume Tracking  in the IMG activity Specify 

Scenarios, you have entered the function module

CBRC_MM_REL_MATNR_FILTER or your own copy of it in the Material

Determination field. If you do not enter a function module here, the system doesnot take the material classification into account in substance volume tracking, that is it

takes into account all  materials in the documents that are relevant for substancevolume tracking.

The system still uses the selection criteria you specified for relevant materials inSpecify Selection Criteria for Volume Tracking  even if you have

not entered a function module in Specify Scenarios. We recommend that

you use the option of restricting materials via selection criteria if you do not wantto classify the materials explicitly in the material master.

You have set up the material classification for substance volume tracking in thematerial master. For more information, see Check Prerequisites in the

Implementation Guide (IMG) for Substance Volume Tracking .

Substance quantities are normally specified using tonnes as the unit of measure. If 

units of measurement with other dimensions (such as "pieces”) appear in orders, aconversion factor must always be entered for the materials in the alternative quantities.

 Activit ies

You have a number of options for specifying whether a material is relevant for substancevolume tracking:

To flag a material as relevant for substance volume tracking using the materialclassification, proceed as follows:

Page 14: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 14/44

SAP Online Help

Substance Volume Tracking 14

Only create a material class if you want to activate and deactivate each materialindividually for substance volume tracking.

...

a. Create a customer-specific material class in the Classes (in the Z namespace,for example Z_SAP_EHS_SVT).

b. Assign the characteristic SAP_EHS_SVT_RELEVANT to the new class.

c. Enter the name of the material class as the value in environment parameter SVT_MATERIAL_CLASS in the IMG activity Specify Environment Parameters.

d. Make sure that the function module CBRC_MM_REL_MATNR_FILTER isspecified in the relevant regulation and scenario in Customizing for substancevolume tracking in the IMG activity Specify Scenarios.

e. In the material master, choose the material view Classification for the

material you want to classify.

f. Select class type 001 and confirm your entry.

g. Select your customer-specific material class (for example, Z_SAP_EHS_SVT),

to which you assigned characteristic SAP_EHS_SVT_RELEVANT. Confirm your selection.

h. In the Relevant for Substance Volume Tracking  characteristic, enter 

the value Yes (1) and save your entry.

To flag a material as relevant for substance volume tracking using the filter criteria inCustomizing, choose one of the following procedures:

...

Remove the function module for determining materials(CBRC_MM_REL_MATNR_FILTER) in the IMG activity Specify Scenarios.

This makes all of the materials relevant for substance volume tracking.

If you want to restrict the materials, for example, using the material group or theenvironmentally relevant indicator, then define a corresponding material filter inthe IMG activity Specify Selection Criteria for Volume Tracking.

You can use all fields in the MARA table as filter criteria.

Combine the filter using function module CBRC_MM_REL_MATNR_FILTERwith the filter using IMG activity Specify Selection Criteria for Volume Tracking.

Page 15: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 15/44

Page 16: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 16/44

SAP Online Help

Substance Volume Tracking 16

module of your own in Customizing for Substance Volume Tracking  in the IMG

activity Specify Scenarios in the Component Explosion field; this function

module then converts the specified percentage values to percentages of mass.

The system transfers the data it determined to the monitoring tables in substancevolume tracking. This improves performance, particularly if the logistics and EH&S

data are in separate systems. During the subsequent volume determination [Seite 17],substances that were transferred from the table CCRCT_EHS_COMP using reportRREGCH_FILL are determined.

To display the messages that occurred during transfer of the determined substancedata to the monitoring tables (program RREGCH_FILL), select the subobject Save

Substance Data from Property Tree (FILLING) on the Display Log screen

(CBRC10).

The following data in transferred to the logistics system and stored there in the correspondingtables.

Transferred Data Table in Logistics System

Substance-material assignment CCRCT_EHS_COMPComposition CCRCT_EHS_COMP

Registration (company-specific) CCRCT_EHS_REG

Notification status CCRCT_EHS_REG

Specific quantity limits CCRCT_EHS_SLIMIT

Page 17: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 17/44

SAP Online Help

Substance Volume Tracking 17

 Volume determination

Use

This function determines for each substance, the quantity that you have purchased, imported,produced, sold, and exported.

Prerequisites

In Customizing for Substance Volume Tracking, you have processed the following IMGactivities and made the required settings there for each relevant regulation:

Check Prerequisites

Specify Scenarios

Specify Selection Criteria for Volume Tracking

Which filter criteria you choose to select relevant table entries affectsperformance significantly.

Specify Data Transfer (Property Tree)

Set Up Job for Volume Tracking

You have performed the initial filling without selection criteria for all relevant regulatorylists.

Features

The system uses the program RREGCH_VT [Seite 41] to determine volume and thusdetermines the quantities to be monitored as follows:...

1. The system determines the specified materials and material quantities from materialmovements and postings. Note the following:

Which tables and documents the system evaluates is determined by thescenario, the scenario category, and the settings you made in Customizing for Substance Volume Tracking in the IMG activity Specify Selection Criteria for Volume Tracking. For more information, see Specify Selection Criteria for Volume Tracking and Specify Scenarios in the Implementation Guide (IMG) for Substance Volume Tracking.

If a document such as a manufacturing order contains several materials, for example, the materials in an exploded BOM, the system uses all materials inthe document.

In substance volume tracking, the system uses units of mass only. If you useother units for the materials in your application, you must define the conversionto a unit of mass in the units of measure in the material master.

Quantities from material documents with debit indicators are added to thequantities that have already been calculated. Quantities from materialdocuments with credit indicators are subtracted from the quantities that havealready been calculated, for example, for a cancellation.

When determining quantities, the system distinguishes between planned andconfirmed quantities:

Confirmed quantities are quantities that have already been booked in or out of the stock. Material documents exist for these quantities.

Page 18: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 18/44

SAP Online Help

Substance Volume Tracking 18

Planned quantities are determined from all other logistics documents,such as orders or purchase orders.

2. From the materials found, the system determines the materials that are relevant for substance volume tracking and uses only these materials with their quantities in therest of the process (see Definition of Relevant Materials [Seite 13]).

3. The substances transferred using RREGCH_FILL are determined from the tableCCRCT_EHS_COMP.

4. The system condenses the data by totaling the quantities for which the following data isidentical:

Tracked substance

Material

Specification

Regulation (regulatory list)

Monitoring period

Year 

Plant

Document number and item for planned quantities

5. The system transfers the condensed data to the monitoring tables in substance volumetracking.

Planned quantities

CCRCT_PRPL

CCRCT_COPL

CCRCT_PUPL

CCRCT_SOPL

Confirmed quantities

CCRCT_PR

CCRCT_CO

CCRCT_PU

CCRCT_SO

6. The system stores completed runs in the CCRCT_RUN table to prevent following runsfrom overlapping.

When you execute the program, it updates the tracked quantity of a substance without writinga new entry to the monitoring tables. This means the quantity determined in the previous runis overwritten by the newly determined quantity. If you set the indicator in the IMG activity

Specify Scenarios Specify Data Determination per Regulation and Scenario before youexecute the program, the system creates a new entry and leaves the existing entries for thesubstance unchanged. This allows you to record and track the increase in quantity per substance. Note, however, that this can cause a sharp increase in the amount of data.

You have the following options when executing the program:

  If you start the program as a delta run, the system reads the date of the last run of theprogram for the selected regulation and scenario from the table CCRCT_RUN and uses this

Page 19: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 19/44

SAP Online Help

Substance Volume Tracking 19

date as the start date for data selection. The system uses the current date and time as theend date and end time for data selection.

  If you start the program as an initial run, the system uses the start date and start timeentered for data selection.

If substance quantities are determined incorrectly, for example, because of incorrect master 

data, then you can correct the quantities for individual materials using the correction reportRREGCH_RESTART_VT [Seite 41]. If all of the substance data for a regulation is incorrect,you can delete the data using the deletion report RREGCH_DEL_DATA [Seite 41]. Then startvolume determination again.

You can display the messages that occur during volume determination. Select the subobjectTrack Quantities (TRACKING) in the Display Log transaction(CBRC10).

For more information, see the documentation for program RREGCH_VT.

Special Features During Volume Determination

Origin/Recipient Country Determination

During the origin/recipient country determination, in the quantities imported scenario, theperson that triggered the import is designated as the importer. Therefore, for purchase orders,the partner role ordering address is first evaluated, if it is available, then the partner rolesupplier or supplying plant.

In the scenarios for exported and sold quantities however, the partner role ship-to party is firstevaluated because here the actual recipient is usually relevant here.

If you want to adjust this behavior to suit your requirements, exchange the function modulesin Customizing for substance volume tracking in the IMG activity Specify Scenarios. ChooseSpecify Data Determination per Regulation and Scenario and Function Modules per ScenarioType for your regulation and the corresponding scenario.

Enter a customer function module in the Data Separation field. Use the standard modules asa copy template.

 Al locat ing Substance Quantit ies in Product ion

In the Production scenario, only quantities that were actually produced are to be followed. If apurely mixed operation is involved, then no substances are to be tracked.

The allocation of produced and consumed quantities required for this takes place at thesubstance level. The determined substance quantities are proportionately distributed to theproduced materials.

Example of Allocation in Discrete Manufacturing:

The EH&S data in the table CCRCT_EHS_COMP is put together as follows:

Material Specification Substance Percentage

Main product PRO_VT_1 PRO_VT_1 CMP_PRO_1 60 %

PRO_VT_1 PRO_VT_1 CMP_PRO_2 40 %

By-product PRO_VT_2 PRO_VT_2 CMP_PRO_1 60 %

PRO_VT_2 PRO_VT_2 CMP_PRO_5 40 %

Co-product PRO_CO_1 PRO_CO_1 CMP_PRO_1 60 %

PRO_CO_1 PRO_CO_1 CMP_PRO_7 40 %

Input material 1 PRO_IN_1 PRO_IN_1 CMP_PRO_1 100 %

Page 20: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 20/44

SAP Online Help

Substance Volume Tracking 20

Input material 2 PRO_IN_2 PRO_IN_2 CMP_PRO_1 100 %

The tracked production order contains the following quantities of materials and substances:

Produced Quantiti es

Quantity of Material Percentage of Substance

Quantity of Substance

Main product 100 kg PRO_VT_1 60 % 60 kg CMP_PRO_1

40 % 40 kg CMP_PRO_2

By-product 100 kg PRO_VT_2 60 % 60 kg CMP_PRO_1

40 % 40 kg CMP_PRO_5

Co-product 100 kg PRO_CO_1 60 % 60 kg CMP_PRO_1

40 % 40 kg CMP_PRO_7

Consumed Quantities:

Quantity of Material Percentage of Substance

Quantity of Substance

Input material 1 50 kg PRO_IN_1 100 % 50 kg CMP_PRO_1

Input material 2 50 kg PRO_IN_2 100 % 50 kg CMP_PRO_1

No allocation is required for the substances CMP_PRO_2, CMP_PRO_5 and CMP_PRO_7

as they are only included once in the order.

The substance CMP_PRO_1 is allocated as follows:

In total, 180kg of the substance CMP_PRO_1 continues to be produced and 100kg isconsumed. This means, that ultimately 80kg is produced.

Since all three produced materials have the same proportion of the total quantity, theproduced quantity can be divided by three.

80kg / 3 = 26.7kg

This results in the following tracked substance quantities:

Material Specification Substance Quantity

Main product PRO_VT_1 PRO_VT_1 CMP_PRO_1 26.7 kg

PRO_VT_1 PRO_VT_1 CMP_PRO_2 40 kg

By-product PRO_VT_2 PRO_VT_2 CMP_PRO_1 26.7 kg

PRO_VT_2 PRO_VT_2 CMP_PRO_5 40 kg

Co-product PRO_CO_1 PRO_CO_1 CMP_PRO_1 26.7 kg

PRO_CO_1 PRO_CO_1 CMP_PRO_7 40 kg

If the production order were put together with different proportions, the result would bedifferent:

Page 21: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 21/44

SAP Online Help

Substance Volume Tracking 21

Produced Quantiti es

Quantity of Material Percentage of Substance

Quantity of Substance

Main product 150 kg PRO_VT_1 60 % 90 kg CMP_PRO_1

40 % 60 kg CMP_PRO_2

By-product 50 kg PRO_VT_2 60 % 30 kg CMP_PRO_1

40 % 20 kg CMP_PRO_5

Co-product 100 kg PRO_CO_1 60 % 60 kg CMP_PRO_1

40 % 40 kg CMP_PRO_7

Consumed Quantities:

Quantity of Material Percentage of 

Substance

Quantity of 

Substance

Input material 1 50 kg PRO_IN_1 100 % 50 kg CMP_PRO_1

Input material 2 50 kg PRO_IN_2 100 % 50 kg CMP_PRO_1

No allocation is required for the substances CMP_PRO_2, CMP_PRO_5 and CMP_PRO_7as they are only included once in the order.

The substance CMP_PRO_1 is now allocated as follows:

In total, 180kg of the substance continues to be produced and 100kg is consumed. Thismeans, that ultimately 80kg is produced.

Since the proportions of the total quantity are different, the following calculation is necessary:

...

1. Calculate the proportion of the material in the original produced total quantity:

<Quantity of Materials> / (<Original Total Quantity> / 100)

PRO_VT_1: 90 kg / (180 kg / 100) = 50

PRO_VT_2: 30 kg / (180 kg / 100) = 16.7

PRO_CO_1: 60 kg / (180 kg / 100) = 33.3

2. Calculation of the proportion of the material to the final produced quantity:

< Proportion of material in the original produced total quantity > * (<final producedquantity> / 100).

PRO_VT_1: 50 * (80 kg / 100) = 40 kg

PRO_VT_2: 16.7 * (80 kg / 100) = 13.3 kg

PRO_CO_1: 33.3 * (80 kg / 100) = 26.7 kg

This results in the following tracked substance quantities:

Page 22: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 22/44

SAP Online Help

Substance Volume Tracking 22

Material Specification Substance Quantity

Main product PRO_VT_1 PRO_VT_1 CMP_PRO_1 40 kg

PRO_VT_1 PRO_VT_1 CMP_PRO_2 60 kg

By-product PRO_VT_2 PRO_VT_2 CMP_PRO_1 13.3 kg

PRO_VT_2 PRO_VT_2 CMP_PRO_5 20 kg

Co-product PRO_CO_1 PRO_CO_1 CMP_PRO_1 26.7 kg

PRO_CO_1 PRO_CO_1 CMP_PRO_7 40 kg

Page 23: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 23/44

Page 24: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 24/44

SAP Online Help

Substance Volume Tracking 24

 According to a regulation, you must register certain substances above a quantityof one tonne, other less hazardous substances only above quantities of 10, 100,or 1000 tonnes. You therefore create the following quantity thresholds for theregulation in Customizing with the quantity limit values laid down by theregulation:

Quantity threshold 1: up to 1 tonne

Quantity threshold 2: 1 to 10 tonnes

Quantity threshold 3: 10 to 100 tonnes

Quantity threshold 4: up to 100 tonnes

For the quantity thresholds of the general quantity limit values, you can enter relativequantity limit values above which the system carries out various actions.

The relative quantity limit value specifies the percentage level of the specific or generalquantity limit value that must be exceeded before the system carries out an action. A specific

or general quantity limit value must therefore always exist for a relative quantity limit value towhich the relative limit value refers, for example:

Quantity Threshold General Limi t Value Relative Limi t Value  Acti on Carri ed OutWhen Exceeded By

1 Up to 1 tonne 70 % 0.7 tonnes

1 Up to 1 tonne 100 % 1 tonne

2 1 to 10 tonnes 70 % 7 tonnes

2 1 to 10 tonnes 90 % 9 tonnes

2 1 to 10 tonnes 100 % 10 tonnes

Possible actions are:

Setting of a status in volume monitoring

Display of a message

Sending the message as an SAP e-mail.

Blocking of a business process

By defining different relative limit values for a quantity limit value, you can determine that thesystem carries out actions in stages, for example, that the system informs you when 70 % isexceeded and blocks the business process when 100% is exceeded.

If you specify a time period for a limit value, the limits apply for this time period; if you do not

specify a time period, the limits apply for a calendar year.

If no specific quantity limit value exists in the property tree for a substance that is to betracked, the upper limit of quantity threshold 1 from Customizing is valid.

If a specific quantity limit value exists in the property tree for a tracked substance, this valueoverrides the general quantity limit value in Customizing. In the same way, a relative quantitylimit value stored under the substance overrides a relative quantity limit value in Customizing.If you enter a specific quantity limit value in the substance but no relative quantity limit value,the system uses the relative quantity limit values in Customizing whose general quantity limitscontain the specific quantity limit value for the substance. The value assignment instancemust have an active use. The rating and validity area of this use must match the settings in

the IMG activity Specify Scenarios Specify Data Determination per Regulation andScenario.

Page 25: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 25/44

SAP Online Help

Substance Volume Tracking 25

You have registered a substance with the authorities for 25 tonnes. You thusenter 25 tonnes as the specific quantity limit value in the property tree for thesubstance. As the system should behave in the same way as for the generalquantity limit values, you do not define any relative quantity limit values in theproperty tree for the substance. In Customizing you have defined the followingquantity thresholds for the general quantity limit value:

Quantity threshold 1: up to 1 tonne

Quantity threshold 2: 1 to 10 tonnes

Quantity threshold 3: 10 to 100 tonnes

Quantity threshold 4: above 100 tonnes

Then the system uses the relative quantity limit values for the substance thatyou entered in Customizing for quantity threshold 3 and relates the percentagevalues to 25 tonnes.

During the quantity limit evaluation, the lower limit of an interval does not countas part of the interval. The upper limit does count as part of the interval. Thismeans that in the above example, a quantity of 10 tonnes would be assigned toquantity threshold 2, not quantity threshold 3.

The following graphic shows how the system uses the quantity limit values in the onlinechecks and in volume monitoring:

Does

the quantity exceed a

relative quantity limit value

in the substance?

Determine current total quantity o f substance

Does

the substance

contain a specific quantitylimit value?

Defined action carried out No action

Does

the substancecontain a r elative quantity

limit value?Does

the quantity exceed a

relative quantity li mit value in

Customizing?

Does the

quantity exceed a

quantity lim it (general

and relative value)

in Customizing?

Yes

Yes

Yes

Yes

Yes

No

No

No

No

No

 Activit ies

Defining suitable general and relative quantity limit values makes data entry easier for you asfollows:...

1. In Customizing, you define a general quantity limit value that corresponds to the lowest

limit value in the regulation.

Page 26: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 26/44

SAP Online Help

Substance Volume Tracking 26

2. For this general quantity limit value, you define a relative quantity limit value in such away that the system warns you in good time before the general quantity limit isreached.

Thus you do not initially need to enter specific quantity limit values for the substances for which you are uncertain whether their quantities will even reach the lowest quantity limit in theregulation during the monitoring period. You can do this for a substance if the system warnsyou appropriately. This means that you do not need to enter any specific quantity limit valuesfor all substances whose quantities remain well below the lowest quantity limit in theregulation during the monitoring period.

Page 27: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 27/44

SAP Online Help

Substance Volume Tracking 27

 Volume Monitoring

Use

You use this function to display the running total quantities of the substances that must betracked. You also receive information about which substances are soon to reach a quantitylimit or have already exceeded their limit.

Integration

In volume determination [Seite 17], the system determines the quantities of the substances tobe tracked, totals these quantities for each substance, and transfers the data to the tables insubstance volume tracking. Volume monitoring uses this data.

Prerequisites

In Customizing for Product Safety, you have processed the following IMG activities:

Specify Scenarios

Specify Selection Criteria for Volume Monitoring

Specify Monitoring Periods

Specify Functions for Volume Monitoring

You have set the EU Member  indicator for countries in the EU. This enables thesystem to recognize imports into and exports from the EU.

If the logistics system and the EH&S system are physically separate, an RFCdestination to the respective system has been set up so that data can be transferred.

If you want the user to be able to see the determined data for a whole company code,the authorizations are explicitly allocated for all plants in this company code. Thereason for this is that the company code cannot be specified in the authorizationobject.

Sample authorization profile SAP_EHS_SVT_ALL is provided. Authorization objectC_EHSRC_SV is used for quantity monitoring and for displaying blocked documents.

You have let Report RREGCH_FILL [Seite 41] for filling start to run.

Then schedule the report as a job in delta mode.

You have let Report RREGCH_VT [Seite 41] for substance volume tracking start torun. Then schedule the report as a job in delta mode.

You have let Report RREGCH_PLAN_QUANT_CHECK [Seite 41] for checkingplanned quantities run. Then schedule the report as a job.

Features

In volume monitoring, the system displays the quantities it has determined in the volumedetermination function. It compares the quantities with the set quantity limits. If a quantity limitvalue is exceeded, the system makes you aware of this in the status fields [Seite 29]. For information about how the system uses the quantity limits in this function, see Quantity Limits[Seite 23].

Page 28: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 28/44

SAP Online Help

Substance Volume Tracking 28

In volume determination, the system determines the quantities for each trackedsubstance daily, adds these to the previously determined total quantities, andsaves the current totals in the tables in substance volume tracking. To do this,you run the report RREGCH_VT once as an initial run and then schedule it sothat it updates the total quantity daily. In volume monitoring, the system displaysthe quantities from the last volume determination run; the quantities in thedocuments for the current day are not taken into account. This means that thequantities are not completely accurate, but it greatly improves performance. If you want to keep inaccuracies to a minimum, carry out volume monitoringimmediately after the report is run.

It is also possible that the system may still display a document in volumemonitoring, such as a purchase order, that was deleted on the current day. Youcan use the document check function to check whether the displayed

documents still exist and are current.

 Activit ies

To carry out volume monitoring, proceed as follows:...

1. In the Product Safety [Extern] menu, choose Substance Volume Tracking 

Track Substance Quantities.

2. Enter the required data and choose with the quick info text Execute.

The system displays the substances to be tracked with the quantities determined. For each substance, it displays other data in addition to the quantity, for example, thequantity limit value and the threshold value above which a particular status is set.

3. If you want to use the document check, select the required documents and chooseDocument Check.

To display the messages that occur during volume monitoring, select the subobject

Substance Volume Tracking: Monitoring  (OFFLINE).in the Display Log 

(CBRC10) transaction.

Page 29: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 29/44

SAP Online Help

Substance Volume Tracking 29

 Overall Status of a Tracked Substance

The message type you specify in Customizing for substance volume tracking in the IMGactivity Specify Quantity Limits and Reactions on Overall Status controls the overall status

during volume monitoring:Results of VolumeMonitoring

Message Type Traffic Light

Quantity limits not violated ---

Quantity limits violated Information

Quantity limits violated Warning

Quantity limits violated Error  

If there is no entry for a threshold in the IMG activity Specify Quantity Limits and Reactions on

Overall Status, then an error message appears in the application log.

The overall status is determined for a regulation (regulatory list) throughout all scenarios for each company code, year and tracked substance. That is, a tracked substance has an overallstatus per year for each regulation in a company code.

Page 30: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 30/44

SAP Online Help

Substance Volume Tracking 30

 Online Checks

Use

When you enter a quantity of a material relevant for substance volume tracking at certainplaces in the system, the system checks whether this entry causes a quantity limit to beexceeded. If a quantity limit is exceeded, the system triggers follow-on actions, which enableyou to ensure that quantity limits are adhered to and regulations fulfilled.

Prerequisites

In Customizing for Substance Volume Tracking, you have processed the IMG activity Set UpOnline Checks.

Features

In the standard system, the system runs the online checks within the following applications:

Purchase order 

Purchase requisition

Outbound delivery

Sales order 

Production order 

Possible follow-on actions are:

The system displays a message.

The system sends the message as an SAP e-mail.

The system blocks a business process to ensure, for example, that a trackedsubstance whose quantity limit is exceeded can no longer be purchased, produced, or sold.

Whether the system can block a process depends on the object you are editing.

In production, process, and sales orders, subsequent processes are blocked bya user status. You use the environment parameters SVT_PRO_PROFILE,SVT_PRO_STATUS, SVT_SO_PROFILE, and SVT_SO_STATUS to determinethe status profile and user status that is used. For more information about theuser status, see the documentation for environment parameters.

If a user status has already been set for orders, the user status for substancevolume tracking must be included in the existing status profile.

The environment parameter SVT_PRO_PROFILE or SVT_SO_PROFILE mustbe adjusted accordingly.

If you want to adjust the behavior when setting the user status to suit your requirements, replace the function module in the field Block Follow-OnDocument in the IMG activity Set Up Online Checks with a customer module.Use the standard module as a copy template.

In volume determination [Seite 17], the system determines the quantities of the

substances that must be tracked. It adds the quantities of each substance to thepreviously determined total quantities daily and saves the current totals in the

Page 31: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 31/44

SAP Online Help

Substance Volume Tracking 31

tables in substance volume tracking. To do this, you run the reportRREGCH_VT once as an initial run and then schedule it so that it updates thetotal quantity daily. In the online checks, the system uses the last saved totalquantity from volume determination and the quantity entered in the currentdocument. This means that any quantities in other documents entered on thecurrent day are not taken into account. This means that the quantities are not

completely accurate for a short time, but it greatly improves performance. Theinaccuracy is corrected in the next daily update of the total quantity because alldocuments for all previous days are taken into account.

You can display the messages that occur during the online checks. Select the followingsubobjects in the Display Log transaction(CBRC10):

Sales: Delivery (DELIVERY) if you want to display messages that occurred whendeliveries were checked

Production: Production (PRODUCTION) if you want to display messages that occurredwhen production orders or process orders were checked

Purchasing: Purchase Order  (PURCHASE) if you want to display messages that

occurred when purchase orders were checked

Purchasing: Purchase Requisition (PURCHASE_REQUISITION) if you want to displaymessages that occurred when purchase requisitions were checked

Sales: Sales Orders (SALES) if you want to display messages that occurred whensales orders were checked

For more information see BAdI Implementations for Online Checks [Seite 32].

Page 32: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 32/44

SAP Online Help

Substance Volume Tracking 32

 BAdI Implementations for Online Check

You use the online checks by integrating yourself into the appropriate logistics applications byimplementing SAP enhancement methods.

To call the relevant function modules in the enhancement method that you implemented, youmust perform the enhancements shown below. You may need to adjust the BAdIimplementations. When doing this, also pay attention to any current notes.

If the relevant BAdI was migrated to an enhancement spot, create anenhancement spot implementation. Use the transaction BAdI-Builder: InitialDefinition (SE18).

Check Function Scenario Integration

CBRC_EXIT_47_PURREQ Purchase

requisition

ME_PROCESS_REQ_CUST (BAdI)

CBRC_EXIT_47_PUR Purchase order ME_PROCESS_PO_CUST (BAdI)

CBRC_EXIT_46C_PRO Production WORKORDER_UPDATE (BAdI)

CBRC_EXIT_47_DELIV Delivery LE_SHP_DELIVERY_PROC

Purchase order 

Definition name: ME_PROCESS_PO_CUST...

1. Insert the following lines of code in the methodIF_EX_ME_PROCESS_PO_CUST~CHECK:

  CHECK NOT SY-UCOMM IS INITIAL.

  CALL FUNCTION 'CBRC_EXIT_47_PUR'

  EXPORTING

  I_UCOMM = SY-UCOMM 

  I_METHOD = 'CHECK'

  I_HEADER = IM_HEADER 

  I_FLG_HOLD = IM_HOLD

  I_FLG_CHECK_ONLY = 'X'

  IMPORTING

  E_FLG_FAILED = CH_FAILED

  EXCEPTIONS

  PARAMETER_ERROR = 1

  OTHERS = 2.

  IF SY-SUBRC <> 0.

  MESSAGE E153(C$) WITH SY-CPROG SY-REPID SY-SUBRC

  'CBRC_EXIT_47_PUR'.

Page 33: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 33/44

SAP Online Help

Substance Volume Tracking 33

* interner System-Fehler! (&1 &2 &3 &4)

  ENDIF.

2. Insert the following lines of code in the methodIF_EX_ME_PROCESS_PO_CUST~POST:

  CALL FUNCTION 'CBRC_EXIT_47_PUR'

  EXPORTING

  I_UCOMM = SY-UCOMM 

  I_METHOD = 'POST'

  I_EBELN = IM_EBELN

  I_HEADER = IM_HEADER 

  EXCEPTIONS

  PARAMETER_ERROR = 1

  OTHERS = 2.

  IF SY-SUBRC <> 0.

  MESSAGE E153(C$) WITH SY-CPROG SY-REPID SY-SUBRC

  'CBRC_EXIT_47_PUR'.

* interner System-Fehler! (&1 &2 &3 &4)

  ENDIF.

3. Save and activate the implementations.

Purchase requisition

Definition name: ME_PROCESS_REQ_CUST...

1. Insert the following lines of code in the methodIF_EX_ME_PROCESS_REQ_CUST~CHECK:

  CHECK NOT SY-UCOMM IS INITIAL.

CALL FUNCTION 'CBRC_EXIT_47_PURREQ'

  EXPORTING

  I_UCOMM = SY-UCOMM 

  I_METHOD = 'CHECK'

  I_HEADER = IM_HEADER 

  I_FLG_HOLD = IM_HOLD

  I_FLG_CHECK_ONLY = 'X'

  IMPORTING

  E_FLG_FAILED = CH_FAILED

  EXCEPTIONS

  PARAMETER_ERROR = 1

  OTHERS = 2.

Page 34: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 34/44

SAP Online Help

Substance Volume Tracking 34

  IF ( SY-SUBRC <> 0 ).

  MESSAGE E153(C$) WITH SY-CPROG SY-REPID SY-SUBRC

  'CBRC_EXIT_47_PURREQ'.

 * interner System-Fehler! (&1 &2 &3 &4)

  ENDIF.

2. Insert the following lines of code in the methodIF_EX_ME_PROCESS_REQ_CUST~POST:

CALL FUNCTION 'CBRC_EXIT_47_PURREQ'

  EXPORTING

  I_UCOMM = SY-UCOMM 

  I_METHOD = 'POST'

  I_HEADER = IM_HEADER 

  EXCEPTIONS

  PARAMETER_ERROR = 1

  OTHERS = 2.

  IF ( SY-SUBRC <> 0 ).

  MESSAGE E153(C$) WITH SY-CPROG SY-REPID SY-SUBRC

  'CBRC_EXIT_47_PURREQ'.

 * interner System-Fehler! (&1 &2 &3 &4)

  ENDIF.

3. Save and activate the implementations.

Production

Definition name: WORKORDER_UPDATE...

1. Insert the following lines of code in the methodIF_EX_WORKORDER_UPDATE~BEFORE_UPDATE:

CALL FUNCTION 'CBRC_EXIT_46C_PRO'

  EXPORTING

  I_METHOD = 'BEFORE_UPDATE'

  IT_HEADER = IT_HEADER 

  I_ITEM = IT_ITEM 

  IT_COMPONENT = IT_COMPONENT

  EXCEPTIONS

  PARAMETER_ERROR = 1

  FREE_FAILED_ERROR = 2

  OTHERS = 3.

Page 35: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 35/44

SAP Online Help

Substance Volume Tracking 35

  IF ( SY-SUBRC = 1 ).

  MESSAGE E153(C$) WITH SY-CPROG SY-REPID SY-SUBRC

  'CBRC_EXIT_46C_PRO'.

 * interner System-Fehler! (&1 &2 &3 &4)

  ENDIF.

2. Insert the following lines of code in the methodIF_EX_WORKORDER_UPDATE~AT_RELEASE:

CALL FUNCTION 'CBRC_EXIT_46C_PRO'

  EXPORTING

  I_METHOD = 'AT_RELEASE'

  I_HEADER = IS_HEADER_DIALOG

  EXCEPTIONS

  PARAMETER_ERROR = 1

  FREE_FAILED_ERROR = 2

  OTHERS = 3.

  IF ( SY-SUBRC = 1 ).

  MESSAGE E153(C$) WITH SY-CPROG SY-REPID SY-SUBRC

  'CBRC_EXIT_46C_PRO'.

 * interner System-Fehler! (&1 &2 &3 &4)

  ELSEIF ( SY-SUBRC = 2 ).

  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4

  RAISING FREE_FAILED_ERROR.

  ENDIF.

3. Save and activate the implementations.

Delivery:

Definition name: LE_SHP_DELIVERY_PROC

...

1. Insert the following lines of code in the methodIF_EX_LE_SHP_DELIVERY_PROC~DELIVERY_FINAL_CHECK:

CALL FUNCTION 'CBRC_EXIT_47_DELIV'

  EXPORTING

  IF_TRTYP = IF_TRTYP

  IF_TCODE = IF_TCODE

  IT_XLIKP = IT_XLIKP

  IT_XLIPS = IT_XLIPS

Page 36: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 36/44

SAP Online Help

Substance Volume Tracking 36

  IT_XVBPA = IT_XVBPA 

  I_FLG_NO_BLOCK = 'X'

  IMPORTING

  CS_V50AGL_CUST = CS_V50AGL_CUST

  CT_FINCHDEL = CT_FINCHDEL.

2. Save and activate the implementations.

Sales

 A standard implementation is provided. You activate substance volume tracking in sales in

the IMG activity Set Up Online Checks  Activate Regulation Check in Sales. For moreinformation, see SAP Note 1039030.

Page 37: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 37/44

SAP Online Help

Substance Volume Tracking 37

 Display and Unblocking of Blocked Documents

Use

In the online checks [Seite 30] in substance volume tracking, the system can blockdocuments (manufacturing orders, sales orders, and so on) by setting a specific user statuswhen the documents are saved, for example. The set user status can then preventsubsequent processes such as the release of an order.

You can use this function to carry out the following activities:

You can display the blocked documents.

You can unblock individual documents manually.

The system then resets the user status that it set to block the document.

You can exclude individual documents from document blocking.

The system then resets the user status. The user status for blocking documents is nolonger set for these documents, that is the documents cannot be blocked by the onlinechecks.

You can restart the regulation check for individual documents, for example, when youhave increased the registered quantity in the system.

The system runs the same checks as for the respective online check and displays thesame messages it would display during an online check of the documents.

If the regulation check does not find any reason to block the document, the systemresets the user status it set to block the document and allows you to remove thedocument from the overview of blocked documents. This means you do not need tonavigate to the document to change it and start the document check again.

If the system sets the blocks again when regulation checks are rerun, the entry is keptand the Document unblocked and Document block deactivated indicators are reset.

 Activit ies

To display blocked documents, proceed as follows:...

a. In the Substance Volume Tracking [Seite 6] menu, choose Substance

Volume Tracking : Display Blocked Documents.

b. Enter the required data and choose with the quick info text Execute.

 An overview of the blocked documents that fulfill your selection criteria appears.

To unblock a document, select the required document in the overview and chooseUnblock Document.

To exclude a document from blocking, select the required document in the overviewand choose Deactivate Blocking of Documents.

To run the regulation check for a document again, select the required document in theoverview and choose Regulation Check.

Page 38: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 38/44

SAP Online Help

Substance Volume Tracking 38

 Archiving of Determined Quantit ies

Use

You use this function to transfer the confirmed and condensed quantities of trackedsubstances to the property trees for the tracked substances. This transfer of data isnecessary, for example, if you want to archive the quantities after a monitoring period haselapsed.

Prerequisites

In Customizing for Substance Volume Tracking  in the IMG activity Specify Data

Transfer (Property Tree), you have entered function modules in the following fields:

Value Assignment Types for Condensed Quantities

Data Transfer 

Features

The program RREGCH_VT_CONDENSE_SAVE is available to archive the determinedquantities. When you execute the program, the system transfers the data from the monitoringtables in substance volume tracking to the relevant value assignment types in the propertytrees for the tracked substances. Which value assignment types it uses and how it transfersthe data is controlled by the function modules you specified in Customizing (seePrerequisites).

 After it is run, the program deletes the quantity entries from the monitoring tablesin substance volume tracking. You should therefore only run the program whenthe tracked quantities are no longer required, that means when a monitoringperiod has ended. If the quantity entries in the monitoring tables are to beretained, for example, if you transfer the tracked quantities within a monitoringperiod, set the Retain Last Entry  indicator before you run the program.

If you set the Data Retention indicator before running the program, the data isnot deleted.

In the standard system, the system creates different value assignment instances in a valueassignment type for a tracked substance if at least one of the following values is different:

Regulatory list (the regulation)

Legal entity (the company code)

Plant

Monitoring Year 

Monitoring Period

 Activit ies

To archive the confirmed and condensed substance quantities, run the programimmediately after the monitoring period has elapsed for which you want to archive thedata. If you want to update the data regularly within a monitoring period, schedule theprogram accordingly and remember to set the Retain Last Entry  indicator.

To display the messages that occur during archiving, select the object SubstanceVolume Tracking (EHSVT) and the subobject Save Tracked Quantities in

Page 39: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 39/44

SAP Online Help

Substance Volume Tracking 39

Property Tree (SAVE_TO_EHS) in the Substance Volume Tracking:

Logging  transaction (CBRC10).

Page 40: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 40/44

SAP Online Help

Substance Volume Tracking 40

 Logging in Substance Volume Tracking

Use

You can use this function to log online checks in substance volume tracking. You can searchusing the key value (document number, scenario category or user) and using time intervals(day or hour).

Messages that resulted in the check being aborted are also logged. For example, due tomissing Customizing settings, incorrect logistics documents or missing EH&S data.

Prerequisites

See Substance Volume Tracking Process [Seite 7]

 Activit ies

In the Substance Volume Tracking [Seite 6] menu, choose Substance Volume Tracking :

Display Log..

Page 41: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 41/44

SAP Online Help

Substance Volume Tracking 41

 Reports for Substance Volume Tracking

Use

The following reports are provided for substance volume tracking:

Features

RREGCH_VT (Tracking of Substance Quantities)

The report determines the quantities of the substances to be tracked.

See also Volume Determination [Seite 17].

RREGCH_FILL (Data Transfer from Property Tree [Seite 15])

RREGCH_VT_CONDENSE_SAVE (Saving of Tracked Quantities in Property Tree)

The report transfers the confirmed and condensed quantities of tracked substances

from the tables CCRCT_PR, CCRCT_CO, CCRCT_PU, and CCRCT_SO to theproperty tree for the tracked substances.

Siehe auch Archiving of Determined Quantities [Seite 38].

To transfer the planned quantities, use the environment parameter SVT_ARCHIVE_PLAN_DATA.

RREGCH_RESTART_VT (Correction of Tracked Substance Quantities)

The report enables you to correct tracked substances. A reason for this could be tocorrect a substance composition that is relevant for the substance volume tracking.

RREGCH_PLAN_QUANT_CHECK (Check of Planned Quantities)

The report checks whether invalid data records exist for planned quantities in thesystem and deletes these as necessary.

RREGCH_DEL_DATA (Delete data (INTERN)

You can use this report to delete tracked substance quantities for the specifiedregulations. The entries are deleted from the relevant tables.

Refer to the corresponding documentation for details on the reports.

Page 42: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 42/44

SAP Online Help

Substance Volume Tracking 42

 Scenarios and Tables for Substance VolumeTracking

ScenariosSubstance volume tracking supports the following scenarios:

Scenario Scenario Category Process MonitoredQuantities

PUR PURCHASE_REQUISITION

Purchase requisition Quantities frompurchase requisitions

PUR PURCHASE Purchase order   Quantities frompurchase orders

PUR PURCHASE Schedulingagreement in

Purchasing

Quantities fromscheduling

agreementsSO SALES Sales order   Quantities from sales

orders

SO SALES Customer schedulingagreement

Quantities fromcustomer schedulingagreements

SO DELIVERY Delivery Quantities fromdeliveries

IMP PURCHASE_REQUISITION

Purchase requisition Quantities importedinto the EU frompurchase requisitions

IMP PURCHASE Purchase order   Quantities importedinto the EU frompurchase orders

IMP PURCHASE Schedulingagreement inPurchasing

Quantities importedinto the EU fromschedulingagreements

EXP SALES Sales order   Quantities exportedout of the EU fromsales orders

EXP SALES Customer schedulingagreement Quantities exportedout of the EU fromcustomer schedulingagreements

EXP DELIVERY Delivery Quantities exportedout of the EU fromdeliveries

PRO PRODUCTION Production order   Produced quantitiesfrom productionorders

PRO PRODUCTION Process order   Produced quantitiesfrom process orders

PRO REPET_MANUFACT Repetitive Produced quantities

Page 43: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 43/44

SAP Online Help

Substance Volume Tracking 43

URING manufacturing from repetitivemanufacturing

CON PRODUCTION Production order   Consumed quantitiesfrom productionorders

CON PRODUCTION Process order   Consumed quantitiesfrom process orders

CON REPET_MANUFACTURING

Repetitivemanufacturing

Consumed quantitiesfrom repetitivemanufacturing

Scenarios PUR and IMP and scenarios SO and EXP cannot be used at thesame time for the same regulation and material since the same quantities wouldbe processed more than once. If the tracked quantities can be handledseparately using Customizing, then you can use the scenarios simultaneously.

To set up scenarios SO and PUR, you must adjust the function modules for data

separation for each scenario category in the IMG activity Specify ScenariosSpecify Data Determination per Regulation and Scenario.

For more information about the scope of the functions in the standard SAPsystem, see SAP Note 1040070 (Restrictions).

Tables

Substance volume tracking evaluates the following tables:

The Date for Planned Quantity column contains the date that defines the monitoring periods

to which the respective quantity is assigned.

The posting date in the material document (MKPF-BUDAT) is the determining factor for processing the confirmed quantities for all scenarios.

Scenario Scenario Category Tables Date fo r PlannedQuantity

PUR PURCHASE_REQUISITION EBAN EBAN_LFDAT:Delivery date for item

PUR PURCHASE EKKO, EKPO,EKET, MKPF,

MSEG

EKET-EINDT:Delivery date for item

SO SALES VBAK, VBAP,VBEP, VBPA,VBUP

VBEP-EDATU:Schedule line date

SO DELIVERY LIKP, LIPS, VBPA,VBUP, MKPF,MSEG

LIKP-LFDAT:Delivery date

IMP PURCHASE_REQUISITION EBAN EBAN_LFDAT:Delivery date for item

IMP PURCHASE EKKO, EKPO,EKET, MKPF,MSEG

EKET-EINDT:Delivery date for item

Page 44: SAP WhitePaper Substance Volume Tracking EhP3 En

8/16/2019 SAP WhitePaper Substance Volume Tracking EhP3 En

http://slidepdf.com/reader/full/sap-whitepaper-substance-volume-tracking-ehp3-en 44/44

SAP Online Help

EXP SALES VBAK, VBAP,VBEP, VBPA,VBUP

VBEP-EDATU:Schedule line date

EXP DELIVERY LIKP, LIPS, VBPA,VBUP, MKPF,

MSEG

LIKP-LFDAT:Delivery date

PRO PRODUCTION  AUFK, AFKO, AFPO, RESB,MKPF, MSEG

 AFKO-GSTRS:Scheduled start

PRO REPET_MANUFACTURING RESB, PLAF,MKPF, MSEG

PLAF- PSTTR:Basic start date

CON PRODUCTION  AUFK, AFKO, AFPO, RESB,MKPF, MSEG

 AFKO-GSTRS:Scheduled start

CON REPET_MANUFACTURING RESB, PLAF,MKPF, MSEG

PLAF- PSTTR:Basic start date