Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

BCP 10B Documentation Reference Manual

Download as pdf or txt
Download as pdf or txt
You are on page 1of 166

Bulk Calculations –

Petroleum
BCP 10B

Documentation
Reference Manual
CSP03 v00

30.09.2014
Notes

© Copyright 2014 QuantityWare GmbH. All rights reserved.

SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services
mentioned herein as well as their respective logos are trademarks or registered trademarks 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.
Microsoft, Windows, SQL-Server, Powerpoint and Outlook are registered trademarks of Microsoft
Corporation.
These materials and the information therein are subject to change without notice. These materials are
provided by the company QuantityWare GmbH for informational purposes only. There is no implied
representation or warranty of any kind, and QuantityWare GmbH shall not be liable for errors or omissions
with respect to the materials provided. The only warranties for the products and services of QuantityWare
GmbH are those set forth in the express warranty statements accompanying such products and services, if
any. No statement within this document should be construed as constituting an additional warranty.

BCP 10B Reference Manual – CSP03 v00 ii


Contents

BULK CALCULATIONS – PETROLEUM BCP 10B ....................................................................... I

DOCUMENTATION REFERENCE MANUAL CSP03 V00 ............................................................ I

Notes .................................................................................................................................ii

Contents ........................................................................................................................... iii

Version History .................................................................................................................vi

1 Introduction .......................................................................................................... 1

2 Documentation overview ..................................................................................... 2

3 The Petroleum Measurement Cockpit ................................................................. 6


3.1 Introduction ................................................................................................. 6
3.2 Structure of the Petroleum Measurement Cockpit (PMC) .......................... 7
3.3 PMC Methodology .................................................................................... 20
3.4 PMC Tab strip details ............................................................................... 20
3.5 PMC Online documentation ...................................................................... 33
3.6 Summary .................................................................................................. 33

4 Cockpit Test Scenarios ...................................................................................... 34


4.1 Introduction ............................................................................................... 34
4.2 Test Scenario – Definition......................................................................... 35
4.3 Test Scenario – Delivery........................................................................... 36
4.4 Access to the Customer Test Scenario Tool ............................................ 37
4.5 The Customer Test Scenario Tool ............................................................ 38
4.6 Running Customer Specific Test Scenarios ............................................. 48
4.7 Summary .................................................................................................. 49

BCP 10B Reference Manual – CSP03 v00 iii


5 BCP Configuration Template ............................................................................. 50
5.1 Introduction ............................................................................................... 50
5.2 Unit of measure definitions – SAP tables ................................................. 51
5.3 Accessing UoM configuration data – Petroleum Measurement Cockpit .. 70
5.4 Quantity conversion configuration – SAP tables ...................................... 73
5.5 Conversion group mapping to bulk oil & gas products ............................. 75
5.6 Quantity conversion configuration – QuantityWare tables ....................... 77
5.7 QuantityWare IMG access ........................................................................ 79
5.8 Summary .................................................................................................. 79

6 QuantityWare MQCI .......................................................................................... 80


6.1 Introduction ............................................................................................... 80
6.2 MQCI – SAP integration ........................................................................... 81
6.3 MQCI technical integration details ............................................................ 82
6.4 Supported MQCI models for BCP ............................................................ 83
6.5 Model based quantity value rounding ....................................................... 88
6.6 Parameter range check settings ............................................................... 96
6.7 ASTM Table 1 – MQCI integration ........................................................... 97
6.8 Support of classic SAP dialog transactions .............................................. 99
6.9 Flexible density type input for liquids ...................................................... 103
6.10 Quantity data flow – tolerance group settings ...................................... 106
6.11 MQCI advanced configuration options ................................................. 109
6.12 MQCI integration functions ................................................................... 115
6.13 Support of CPL calculations ................................................................. 116
6.14 Summary .............................................................................................. 118

7 BCP Customizing Transactions ....................................................................... 119


7.1 Introduction ............................................................................................. 119
7.2 QuantityWare Customizing Transactions ............................................... 119
7.3 Summary ................................................................................................ 124

8 BCP Web Services .......................................................................................... 125


8.1 Introduction ............................................................................................. 125
8.2 Installation components .......................................................................... 126
8.3 Web services - Interface documentation ................................................ 128
8.4 Summary ................................................................................................ 131
BCP 10B Reference Manual – CSP03 v00 iv
9 MQCI – Customer Specific Extensions ........................................................... 132
9.1 Introduction ............................................................................................. 132
9.2 MQCI – Customer Specific Extensions .................................................. 134
9.3 SAP QCI BAdI – Mapping to MQCI ABAP functions .............................. 148

10 Measurement Cockpit - Security ..................................................................... 152

11 Protection of Intellectual Property.................................................................... 155

12 Abbreviations ................................................................................................... 158

13 Specific BCP documentation rules .................................................................. 160

BCP 10B Reference Manual – CSP03 v00 v


Version History

CSP03 v00 31.08.2014 Initial Release

BCP 10B Reference Manual – CSP03 v00 vi


1 Introduction

BCP (Bulk Calculations – Petroleum) is delivered within the Bulk Calculations Solution (BCS)
and activated with a license key.
For BCP 10B this document provides:
An overview of all documentation delivered for BCP
Links to related documents
Detailed documentation for specific areas

Read this document and - depending on your project roles - the related documents carefully
before you install QuantityWare BCP 10B or start your BCP 10B implementation project.

This document is constantly updated to reflect all BCP enhancements delivered


with all BCS CSP deliveries. The Release Notes for BCS CSPs can be found
here: http://support.quantityware.com  BCP Documentation 
Documentation Overview

BCP 10B Reference Manual – CSP03 v00 1


2 Documentation overview

The following BCP 10B documents are either published as a chapter of this document, or
available via the published link at one of the sub-sections of -
http://support.quantityware.com  BCP Documentation:

BCS Technical Installation Documentation (SAP ERP releases 4.72 or ECC 600)
Audience: SAP basis experts performing the installation
Content: Describes the technical requirements and procedures to be followed
during the technical installation of the BCS.
Publication: Separate Document
Direct link: Technical Installation Documentation - ECC 600
Technical Installation Documentation - 4.72

BCP Project Assessment and Implementation Guidelines (PAIG):


Audience: Project team lead responsible for BCP implementation & project
members
Content: Describes a high-level project methodology which enables the
successful design and configuration of quantity conversion solutions
that run in an SAP Oil & Gas ERP system, based upon business
requirements.
Publication: Separate Document
Direct link: PAIG

BCP Petroleum Measurement Cockpit (PMC):


Audience: BCP implementation project team-lead and project members, as well as
petroleum measurement specialists wishing to use the PMC.
Content: Describes the PMCs methodology, structure and content.
Publication: This document
Direct Link: Chapter 3 The Petroleum Measurement Cockpit – page 6

BCP 10B Reference Manual – CSP03 v00 2


BCP Cockpit Test Scenarios:
Audience: BCP implementation project team-lead and project members, as well as
petroleum measurement specialists wishing to use the PMC.
Content: Describes the theory behind and the definition of, quantity conversion
automated test scenarios.
Publication: This document
Direct Link: Chapter 4 Cockpit Test Scenarios - page 34

BCP Configuration Template:


Audience: BCP project implementation members.
Content: Lists all QuantityWare BCP 10B template tables and the number of
entries delivered. Explains how to access and analyze the data via the
PMC.
Publication: This document
Location: Chapter 5 BCP Configuration Template – page 50

BCP Supported Standards:


Audience: Project members implementing BCP and petroleum measurement
specialists.
Content: Lists all measurement standards that are implemented with BCP 10B
and provides detailed technical implementation information.
Publication: Separate Document
Location: BCP Supported Standards

BCP QuantityWare MQCI:


Audience: Project members implementing BCP
Content: Describes the functional possibilities of the QuantityWare Model based
QCI (MQCI) in detail.
Publication: This document
Location: Chapter 6 QuantityWare MQCI – page 80

BCP 10B Reference Manual – CSP03 v00 3


BCP Customizing:
Audience: Project members implementing BCP
Content: Describes BCP customizing options which can be accessed from the
PMC.
Publication: This document
Location: Chapter 7 BCP Customizing Transactions- page 119

BCP Web Services:


Audience: Project members implementing BCP.
Content: Describes how to access BCP quantity conversion web services.
Publication: This document
Location: Chapter 8 BCP Web Services – page 125

MQCI – Customer Specific Extensions:


Audience: Project experts implementing customer-specific BCP functionality.
Content: Integration of customer function modules into MQCI calculation
sequence.
Publication: This document
Location: Chapter 9 MQCI – Customer Specific Extensions– page 132

BCP Measurement Cockpit - Security:


Audience: Project members implementing BCP.
Content: Lists the QuantityWare single & composite roles delivered with BCS
10B which can be assigned to GMC users.
Publication: This document
Location: Chapter 10 Measurement Cockpit - Security – page 152

BCP Protection of Intellectual Property:


Audience: Project members implementing BCP.
Content: Describes the QuantityWare Intellectual Property security measures.
Publication: This document
Location: Chapter 11 Protection of Intellectual Property – page 155

BCP 10B Reference Manual – CSP03 v00 4


In addition to the above listed documents, QuantityWare publishes BCP notes
which are also an integral part of the BCP documentation.
All code corrections published via Note are included in the immediately
following CSP.
For an overview of Note validity, see section 5 of Note 000029 – “Additional
Installation Information”.
All available notes can be found at http://support.quantityware.com  BCP
Documentation  Section: Notes. The associated files must be downloaded
from the QuantityWare DataLounge: http://datalounge.quantityware.com

BCP 10B Reference Manual – CSP03 v00 5


3 The Petroleum Measurement Cockpit

3.1 Introduction

The software package BCP 10B is one important part of the overall QuantityWare solution for
the oil industries. The complete solution consists of:
QuantityWare Audit Services
QuantityWare Partner Consulting Services
QuantityWare Software Package
QuantityWare Training Services
QuantityWare Support Services

Information about all services can be found at www.quantityware.com.

The Petroleum Measurement Cockpit (PMC) is the single access point for measurement
specialists and technical consultants to the QuantityWare BCP solution. Here you design,
monitor, maintain and enhance complex, measurement standard based quantity conversion
implementations that run within the SAP Oil & Gas ERP system. The Petroleum Measurement
Cockpit (PMC) provides an easy-to-use user interface (UI), which is structured so that
measurement experts and technical consultants can organize their work efficiently.

After you log on to your SAP ERP system, enter transaction code
/n/QTYW/COCKPIT to launch the Petroleum Measurement Cockpit (PMC)

Make sure that the required authorization profiles / composite roles are
assigned to your user

The technical installation team must enter the BCP license via the PMC too.

BCP 10B Reference Manual – CSP03 v00 6


3.2 Structure of the Petroleum Measurement Cockpit (PMC)

The PMC is structured with Tabs and Menus.

3.2.1 PMC Overview - Tabs

The Petroleum Measurement Cockpit provides five tab pages:

3.2.1.1 Units of Measurement


Here you define, create, change, display and monitor Unit of Measurement (UoM) settings.
Detailed documentation for the UoM concepts (SAP standard and ASTM Table 1 concept) is
available. You also define the UoM compliance settings and prepare the UoM Compliance
Analysis in this tab page.

BCP 10B Reference Manual – CSP03 v00 7


In your productive clients, you may disable access to configuration settings via customizing
settings. Specifically, you may disable the Maintenance Access in this tab page, as well as
direct customizing and technical tool access via the menu paths “Goto” and “Environment”:

BCP 10B Reference Manual – CSP03 v00 8


3.2.1.2 Print Standards Lists
Here you display and print lists of volume correction factors as well as density in air and density
in vacuo values of all measurement standards that are implemented by QuantityWare. Business
practice typically requires printed versions of correction factors for inspectors and surveyors
during custody transfer of bulk petroleum quantities. Although modern standard
implementations are no-longer based on tables, such lists still need to be available as
documentation for the quantity calculation procedure and for the support of custody transfer
procedures.

BCP 10B Reference Manual – CSP03 v00 9


3.2.1.3 QCI Configuration (Template Client)
Here you choose the conversion groups from the QuantityWare template which fit to your
requirements. All relevant selection criteria are available. You can also print out a detailed
configuration statement for each conversion group (e.g. for audit purposes) and perform
automated conversion group configuration checks. You can display a list of all UoM definitions
that are required for a conversion group and also create a customizing transport request to
include all UoM definitions for your conversion group; you can also create a customizing
transport request that contains all required configuration for a conversion group.

BCP 10B Reference Manual – CSP03 v00 10


3.2.1.4 QCI Configuration
In clients where the QuantityWare template BC set “/QTYW/BCP_10B” is not activated, the
template selection push button is not available.

BCP 10B Reference Manual – CSP03 v00 11


3.2.1.5 QCI Products (Template Client)
Here you display and monitor the assignment of conversion groups to products/materials in your
system. You can also analyze business documents (material documents, physical inventory
documents and deliveries) with respect to the additional quantity conversion values. You may
also convert legacy conversion group configurations to QuantityWare settings with a few clicks.

BCP 10B Reference Manual – CSP03 v00 12


3.2.1.6 QCI Products
Via customizing configuration you may disable the legacy conversion tool access (e.g.in
productive clients). In this way, no accidental conversion of your proven legacy conversion
groups is triggered.

BCP 10B Reference Manual – CSP03 v00 13


3.2.1.7 Test Tools (Template Client)
In template client 045 you execute the QuantityWare installation test as well as the
QuantityWare test scenarios to ensure the correctness of the quantity conversion
implementations in your system (see section 3.4.5 Test Tools for details).

BCP 10B Reference Manual – CSP03 v00 14


3.2.1.8 Test Tools
In all other relevant clients, where the QuantityWare BC set is not activated, you execute your
defined UoM Compliance Analysis test via this tab page, as well as your own test scenarios,
which you define during the BCP 10B implementation.

Upon leaving the PMC transaction, the tab page that is active will be the one you see when you
next use the PMC.

BCP 10B Reference Manual – CSP03 v00 15


3.2.2 PMC Overview – Menus

From the PMC menu, you have access via the following menu points to relevant transactions
and information resources:

3.2.2.1 Cockpit
Enter or check the QuantityWare BCP license, read the detailed online documentation,
determine the QuantityWare support package status or navigate to the Gas Measurement
Cockpit:

BCP 10B Reference Manual – CSP03 v00 16


3.2.2.2 Goto
Navigate to all QuantityWare and SAP customizing transactions and create or change data if
the client settings allow this. Fast access to most important customizing transactions is also
available (which may be disabled in productive clients, as noted in section 3.2.1.1):

BCP 10B Reference Manual – CSP03 v00 17


3.2.2.3 Environment
Navigate to related applications like the Oil & Gas Test Calculator, QCI default transaction,
material stock overview or the SAP tank management transaction; display BC set data and
compare and control customizing settings.

BCP 10B Reference Manual – CSP03 v00 18


3.2.2.4 QuantityWare.com
Navigate to the relevant QuantityWare web site pages, e.g. support site, QuantityWare
DataLounge download site:

BCP 10B Reference Manual – CSP03 v00 19


3.3 PMC Methodology

The five tab strips are organized so that they group complex implementation project sub tasks
into “Task packages” and organize regular monitoring and error analysis tasks in a structured
way. The QuantityWare Project Assessment and Implementation Guidelines (PAIG)
methodology provides the underlying design logic for the PMC. For more details read the
separate PAIG documentation.

3.4 PMC Tab strip details

3.4.1 Units of Measurement

Correct UoM definitions and intra-conversion factors are the basis of all quantity conversions.
You need to ensure that all UoM are correctly defined. For example, you need to decide
whether ASTM Table 1 factors or conversion factors from other standards are to be utilized.
You also need to define whether stock quantities for a specific UoM are kept within your system.
Unit conversion calculators are available for you to utilize to test the unit of measure settings in
your system. Lists of UoM with all details are available:

QuantityWare also provides a sophisticated UoM comparison tool which allows you to compare
UoM definitions that are delivered in BC sets with UoM definitions in your system clients.

BCP 10B Reference Manual – CSP03 v00 20


The UoM Compliance Analysis is also available in this tab page:

3.4.2 Print Standards Lists

When either adding a new product line or changing conversions for existing products, the
“second task package” is the definition of the correct measurement standard, or several
standards, as well as specific rules which may apply for different countries/business contracts.
You need to compare legacy system results with available standards - a process which is
usually considerably easier when ranges of complex correction factors can be printed. During
general operations, you may also need to explain your conversion results to an independent

BCP 10B Reference Manual – CSP03 v00 21


inspector and thus need to print the relevant data. Basically, for your quantity conversion
configuration, four different types of standards are relevant, defining:
The detailed calculation model
Correction factors due to pressure and temperature on product volumes
Conversion factors between mass and weight
Conversion factors between UoM of one dimension

For the standards that provide correction and conversion factors, list printouts can be made.
(For UoM conversion factors, use the list options within tab strip “Units of Measurement”.) You
may choose to print a standard list for your specific temperature or density range directly into a
local PDF file.

You may also determine the relevant standard for a given material and plant configuration in
your productive client once the assignment and documentation of your conversion groups is
completed.

Example:
You wish to determine the relevant volume correction factor standard for your material
GASOLINE at plant AP01 and print a list of volume correction factors for that material. From tab
strip “Print Standards Lists” you choose push button “Lists for materials”:

BCP 10B Reference Manual – CSP03 v00 22


Now you enter the material code and plant, and execute the report:

BCP 10B Reference Manual – CSP03 v00 23


The Cockpit navigates to the correct standard, in this case ASTM D1250-04, Table 24B:

BCP 10B Reference Manual – CSP03 v00 24


After execution of your selection, a list of all conversion factors is calculated and printed:

3.4.3 QCI Configuration

The third and most complex task package is to decide which conversion group needs to be
assigned to your materials at which plant. Here you obtain an overview of the QuantityWare-
delivered conversion groups, organized via product groups, and inspect while cross checking,
the settings. You have several selection choices to determine which template conversion group
fits your requirements.
Example: You require a list of all crude oil template conversion groups which are configured to
use ASTM D1250-04 temperature corrections and API MPMS Chapter 11.5.1 (°API) weight to

BCP 10B Reference Manual – CSP03 v00 25


mass conversions as well as ASTM Table 1 factors. From the QCI configuration tab strip, you
choose “By measurement stds.” and select the three standards as well as the product type for
crude oil:

BCP 10B Reference Manual – CSP03 v00 26


After executing the report with your selection, you obtain a comprehensive overview list, with
additional navigation details:

From this list, you can display detailed customizing settings that are relevant for each
conversion group by simply clicking individual overview fields.

BCP 10B Reference Manual – CSP03 v00 27


If you click the “Description” text of a conversion group, a detailed configuration statement is
printed, which can for example be required for audit purposes:

Once you have identified the relevant conversion group, copy it as recommended to your name
space (from “Q*” to “Z*”) using the appropriate customizing option; access is provided via the
menu path: Goto -> QuantityWare IMG or directly: Goto -> Conversion Groups.

BCP 10B Reference Manual – CSP03 v00 28


3.4.4 QCI Products

An inspector report questions whether the transferred quantity values for your product
Gasoline98 are correct. You determine the conversion group and confirm the base condition
settings for the material; such a task is easily performed via the central material assignment list
which you generated here with one click:

In this list, you monitor that test scenarios are available and executed with status “o.k.” for all
materials, as well as the conversion group check status. You also check that snapshots are
available for all test scenarios, which you may utilize to analyze your configuration, if a scenario
reports an error.

You can also analyze your business documents in this Tab. e.g: Your sales manager reports
that a customer has issued a complaint which he traced back to a material document. You
select the “Analyze Business Document” push button, enter the material document number and
year and then simply press the “Return” key. The overall analysis result is immediately
displayed:

BCP 10B Reference Manual – CSP03 v00 29


If issues are found, you select “Execute” (F8) and the detailed analysis list is displayed:

BCP 10B Reference Manual – CSP03 v00 30


If you need to switch thousands of material/plant settings to a new standard version of ASTM
D1250, you can do this using the legacy conversion tools provided here too.

3.4.5 Test Tools

All conversion settings need rigorous testing and quality control. The QuantityWare installation
test has to be executed from here (see separate BCP PAIG Documentation). You also configure
and run your own test scenarios with full logging and execution control in order to ensure full
compliance for your implementation. The PMC does not require a separate installation test. It is
the central access point to all QuantityWare test tools that are delivered with BCP 10B:

BCP 10B Reference Manual – CSP03 v00 31


From this tab, you either:
In client 045, run all available QuantityWare test programs (requires BC Set for BCP
10B to be activated in that client) with one click and obtain the test result within seconds
In client 045, run your selection of QuantityWare test programs which you combine to
one test run
In client 045, run the QuantityWare test scenarios (Run my test)
In your other clients: Utilize the QuantityWare Test Scenario Tool (Maintain my test) to
define your own test scenarios based on your requirements and run your scenarios in
your relevant clients
Run the UoM compliance analysis in any client

The UoM compliance analysis in client 045 is executed automatically once you execute the
installation and implementation test and the result of the analysis is stored in your database.
QuantityWare delivers validated UoM conversion factors which are utilized for the analysis and
which you may also copy for your own analysis e.g. in your productive system and client.

All test reports allow the printing of a list detailing all tests performed.

BCP 10B Reference Manual – CSP03 v00 32


QuantityWare recommends that you develop your own customer specific test
scenarios (Maintain my test) that contain your manually calculated results
(cross checked by at least two experts) and check the system calculation
against these results. This way, a high degree of automation is ensured, as well
as system compatibility with your measurement standards during productive
usage.

The QuantityWare Test Scenario Tool does not require any programming skills;
you simply define your expected results for a chosen conversion group and the
defined input parameters.

3.5 PMC Online documentation

Detailed online documentation is available within the PMC for all relevant tools and
configuration transactions, which explains the different UoM concepts and all available tools.

3.6 Summary

The PMC provides an easy-to-use, structured, single point of access to all parties responsible
for the configuration, control and development of quantity conversion policy and implementation.
The PMCs functionality brings transparency and enables the definition and realization of GRC-
promoting procedures for the “bottom-line” of an energy companies business – bulk product
movements.

BCP 10B Reference Manual – CSP03 v00 33


4 Cockpit Test Scenarios

4.1 Introduction

An important aspect in the definition and configuration of complex quantity conversion


calculations is to ensure that the calculation results are reproducible, stable and based on e.g.
contractual agreements between business partners, measurement standards and governmental
requirements.
QuantityWare delivers a complete configuration template for BCP 10B that contains all
customizing configuration that is required to access all petroleum measurement standard
implementations. After installing BCP 10B in your system, you must test this basic configuration
implementation delivered with the BC set in client 045 (recommended client) where you have
activated the relevant QuantityWare BC set. You run the implementation and installation from
the PMC Test Tool tab with one click. The PMC is part of BCP 10B and provides the central
user interface for Petroleum Measurement Experts and Consultants to BCP 10B.
After defining your relevant conversion groups based on copies from the QuantityWare
configuration template, as well as all conversion model settings (e.g. unit of measure rounding,
input parameters, range checks etc.), you need to cross check the calculation results with an
independent calculation procedure. Ultimately, this has to be a semi-manual process (typically
using a spreadsheet and a pocket calculator, or results from a legacy system).
QuantityWare delivers a test scenario tool which you utilize to define your own test scenarios for
your configuration settings (e.g. conversion group and related settings) in your system. This test
scenario tool can be accessed via the PMC as well. This chapter describes how to use the test
tool.
Typically in your QA system, you define test scenarios based on your company specific
conversion group configurations which can then be run at any time in the system. After
definition and testing, transport the test scenarios from your QA system, to all relevant systems
in your landscape but specifically, your production system. A log can be written to the database
for each test scenario run, providing a protocol of the test results for later auditing. You may
also save a snapshot of each test scenario during a scenario run to the database. Such a
snapshot can be written to the database if a scenario runs without error. The snapshot contains
all relevant configuration data (customizing settings) and the test scenario data. If a scenario
runs into an error, you simply compare the snapshot data with the then current system data in
order to determine if a change of the scenario or the related configuration has caused the error.

BCP 10B Reference Manual – CSP03 v00 34


For one scenario you may create exactly one snapshot. Once you have created your own test
scenarios, you should run these tests and write the results including a snapshot to the log tables
at least after:
You install a new BCP support package (CSP) or note
You install an SAP Oil & Gas ERP related note or package

Tests can also be scheduled regularly or executed irregularly to ensure that configuration is
consistent.

4.2 Test Scenario – Definition

A QuantityWare test scenario is an automated, conversion group based calculation, where the
calculation parameters (Scenario ID, conversion group with reading group and unit of measure
(UoM) group) and the expected calculation results (quantity values and parameters) are defined
in the system.

During a test scenario run, which you can trigger at any point in time, the system calculates the
actual results (quantity values and parameters) and compares these actual results with your
expected results. If all expected and actual results match, the scenario has been executed
without error and reports the status “green - o.k.”; otherwise the differences are reported as “red
- not o.k.” and marked as such in the details list which is printed for each scenario.

You also have the option to define a test scenario such that it runs “green –
o.k.” if a pre-defined error message is encountered. This way, you e.g.
automatically test that parameter range limits are correctly defined or that
quantity deviations are within the specified limits.

BCP 10B Reference Manual – CSP03 v00 35


Example:
You have configured a conversion group Z210 for production, which is a copy of the
QuantityWare template conversion group Q210. Your UoM group contains the units L15 (liter @
15 °C), KG (kilogram in vacuo) and KGA (kilogram in air). You have defined rounding of all
relevant UoM, based on your business requirements in your test client, which is also relevant for
production.
For a transaction volume quantity of 10,000 L (liter) at 20 °C and a base density in vacuo of 800
kg/m³ you expect the following results:
VCF observed to base: 0.99535
Base density in air: 798.9 kg/m³ (rounded to 1 decimal)
Quantity: 9954 L15 (rounded to 0 decimals)
Quantity: 7963 KG (rounded to 0 decimals)
Quantity: 7952 KGA (rounded to 0 decimals)

You enter these expected results when you create the test scenario in the system. During a test
scenario run, the system compares the actual results with these expected results. Since the
expected results are very sensitive to all customizing and configuration settings, you thus
ensure that all settings are stable in your system landscape and that the calculation is based on
the measurement standards and calculation models as defined during your project
implementation work.

4.3 Test Scenario – Delivery

From BCP 10B CSP01 onwards, QuantityWare delivers more than 1,100 test
scenarios as part of the BC Set template, which you can access in your BCP
template client 045.

These test scenarios are delivered for two reasons:


1) To provide an additional high precision test matrix which extends the standard
QuantityWare BCP 10B implementation and installation test. All scenarios are designed
to run without errors within the QuantityWare BCP 10B client 045, where the BC set has
been activated
2) Provide realistic examples for consultants implementing BCP 10B to ease definition of
customer specific test scenarios

BCP 10B Reference Manual – CSP03 v00 36


4.4 Access to the Customer Test Scenario Tool

The Customer Test Scenario Tool can be accessed via the PMC (transaction /n/qtyw/cockpit):

As shown in the screen shot above, two push buttons are available. “Run my test” and “Maintain
my test”.

BCP 10B Reference Manual – CSP03 v00 37


4.5 The Customer Test Scenario Tool

You can create up to 1.000.000 test scenarios in your system. All test scenarios can be
transported to any required system and client within your system landscape. Test scenario
creation typically takes place in your quality assurance system.

4.5.1 Maintaining customer specific test scenarios

If you select the “Maintain my tests” push button, you have the following options in the field
“Activity”:

Display scenarios
Create scenarios
Copy scenarios
Change scenarios
Delete scenarios
Export scenarios (customizing request)
Analyze scenarios
Analyze logs

BCP 10B Reference Manual – CSP03 v00 38


4.5.2 Display scenarios:

If you select this activity, you choose a range of scenarios that will be listed:

You can inspect the scenario details by clicking on a single scenario number or application ID:

BCP 10B Reference Manual – CSP03 v00 39


4.5.3 Create Scenarios

Enter the Scenario ID (four character field), a description and the conversion group for the test
scenario, as well as a unit of measure group that contains the UoM for which the quantity
conversion is executed:

After you hit return the system displays the relevant parameters from the reading group that is
linked to the conversion group:

BCP 10B Reference Manual – CSP03 v00 40


BCP 10B Reference Manual – CSP03 v00 41
For your scenario, you may select whether you want to compare the results for:
Parameters and quantities
Quantities only
Parameters only

Then you change the parameter results and/or quantity results, or save the test scenario directly
by selecting the “Save” push button.

4.5.4 Change scenarios:

Here, you can edit an existing scenario.

4.5.5 Copy scenario

Allows you to copy an existing scenario to a new scenario.

4.5.6 Delete Scenarios

Allows you to define a range of scenarios from which you can then select individual, or multiple
scenarios for deletion:

BCP 10B Reference Manual – CSP03 v00 42


4.5.7 Export Scenarios

Allows you to define a range of scenarios from which you can then select individual, or multiple
scenarios for inclusion into a customizing transport into another client or system within your
system landscape:

4.5.8 Analyze scenarios

Allows you to define a range of scenarios from which you can then select individual, or multiple
scenarios for error analysis. Requires that a snapshot for the scenario is available on the
snapshot database:

BCP 10B Reference Manual – CSP03 v00 43


If you click the Scenario number for the scenario which reported an error, you compare the
actual scenario definition with the definition stored in the snapshot database:

BCP 10B Reference Manual – CSP03 v00 44


If you click on any other overview field (e.g. Appl., Run date, Run time), you can compare the
actual configuration settings with the settings stored in the snapshot database. If differences are
found, the different entries will be shown in the detailed analysis screen:

BCP 10B Reference Manual – CSP03 v00 45


You click on the error line to display the setting which is different:

In this example, a different VCF setting is apparently causing the scenario to run into an error,
which you can now easily rectify.

BCP 10B Reference Manual – CSP03 v00 46


If a scenario runs into an unexpected error and neither the scenario nor the configuration are
showing any differences, the ABAP code base is the only remaining source of error. Then you
should run the installation test in client 045 to ensure a validated code base in that system and
check that the code base is consistent through all systems in your system landscape.

4.5.9 Analyze logs

If a test scenario runs into an error, you have to analyze the reason for the error. Here you
display and change all logs that have reported an error. You may set the log error status (none
– in process – complete – confirmed) and write a comment line into the log:

Note that error logs may only be archived if the log status is set to “confirmed”.

BCP 10B Reference Manual – CSP03 v00 47


4.6 Running Customer Specific Test Scenarios

If you select the “Run my tests” push button, you have the option to run all test scenarios, or
one set of user specified scenarios. Here you may also display the log of your scenario runs, set
an indicator that writes a log protocol and/or snapshot for the scenario execution results, or
maintain the log database (including archiving of log data) for your historic log protocols:

The results of each scenario run are listed as shown in the next screen print:

BCP 10B Reference Manual – CSP03 v00 48


By clicking on the summary lines, you can inspect all details of each scenario run:

Note: all these activities require a careful semi-manual procedure where you
calculate your expected results independently from the system results and use
at least a four eyes principle to validate your results.

4.7 Summary

The QuantityWare Test Scenario Tool provides easy-to-use management functions for all of
your important quantity conversion test scenarios. With these scenarios, you can continuously
monitor and check the correctness of your productive BCP implementations, thus providing
maximum security and stability for all logistics processes, which rely on accurate and well
defined quantity conversion data for bulk products. Governance, Risk Management and Control
procedures should always include such a state-of-the-art test procedure for bulk quantity
values.

BCP 10B Reference Manual – CSP03 v00 49


5 BCP Configuration Template

5.1 Introduction

This chapter lists all customizing tables for which entries are delivered with the BCP 10B
template and provides selected technical configuration details.
QuantityWare delivers customizing configuration data (template data) as part of one BC set,
which BCP customers have to activate in one new test client (045) in order to run the
QuantityWare BCP implementation test and validate the BCP installation. Another purpose of
the template is the provision of a complete blueprint for each customer.
QuantityWare delivers language-dependent entries in English (EN), French (FR), Spanish (ES)
and Portuguese (PT) for all customizing template data which is visible to the business user.

All customizing data can be accessed via the QuantityWare Petroleum


Measurement Cockpit (PMC) via transaction /n/qtyw/cockpit, menu path:
Goto -> QuantityWare IMG

If you require detailed information as to how to access all BCP 10B customizing data, see
Chapter 7 “BCP Customizing Transactions”.

QuantityWare strongly recommends that customers utilize the template configuration (e.g.
conversion groups) in one development system client 045 only in order to copy the required
data into their own name space (Z*) and distribute this configuration into all other clients and
systems.

The template configuration data can be divided into three parts:


Unit of measure definitions – SAP customizing tables
Quantity conversion configuration – SAP customizing tables
Quantity conversion configuration – QuantityWare customizing tables

BCP 10B Reference Manual – CSP03 v00 50


5.2 Unit of measure definitions – SAP tables

QuantityWare delivers all required Unit of Measure (UoM) definitions (392 entries) and
dimension ID definitions (66 entries) as part of the template. These definitions have been
carefully checked. In addition 191 ISO/UNECE code definitions are delivered. The UoM
definitions fall into three categories:
UoM definitions which are part of the SAP client 000 template and which are not
adjusted/corrected by QuantityWare with respect to quantity conversions – SAP UoM
UoM definitions which are part of the SAP client 000 template and which are corrected
by QuantityWare with respect to quantity conversion – SAP UoM corrected
New QuantityWare UoM definitions which are not part of the SAP client 000 template –
QuantityWare UoM

5.2.1 List of tables

The following list contains all table names for the UoM configuration for which entries are
delivered. Language-dependent table entries are delivered in English (EN), French (FR),
Spanish (ES) and Portuguese (PT):
Entries
Table Description
delivered
T006 Units of Measurement 392
T006A Assign Internal to Language-Dependent Unit 1568
T006B Assignment of commercial to internal unit of measurement 1568
T006C Assignment of external technical to internal unit of measure 1568
T006D Dimensions 66
T006D_OIB Add-On Extension for Dimensions 66
T006I ISO codes for units of measurement 191
T006J ISO Codes for Unit of Measure Texts 764
T006T Dimension Texts 264
T006_OIB Units of Measurement, Additional Definitions 392

5.2.2 ISO (UNECE) codes

The listed ISO / UNECE codes are delivered. QuantityWare has compared these codes with
UNECE recommendation 20 (2006) and assigned an ISO / UNECE code to all 392 SAP UoM
where a code is defined. For UoM that carry a temperature or pressure definition, the
corresponding ISO / UNECE code has also been assigned, but the primary flag is always set for
the UoM without temperature or pressure specifications:

BCP 10B Reference Manual – CSP03 v00 51


ISO / UNECE code Description ISO / UNECE code Description

gram per cubic A97 hectopascal


23
centimeter ACR acre
kilogram per square AMP ampere
28
meter
ANN year
cubic centimeter /
2J AZ Btu per pound
second
B0 Btu per cubic foot
2K cubic foot per hour
B1 barrel (U.S.) per day
2M centimeter per second
B11 joule per kilogram kelvin
2X meter per minute
B15 joule per mole
2Z millivolt
B22 kiloampere
3B megajoule
kilobecquerel p.
3E pound per pound B25
kilogram
3H kilogram per kilogram
kilogram/cubic
4G microliter B34
decimeter
4H micrometer B35 kilogram per liter
4K milliampere B42 kilojoule per kilogram
4O microfarad B44 kilojoule per mole
4P newton per meter B45 kilomole
4T picofarad B47 kilonewton
5A barrel per minute B49 kiloohm
5I standard cubic foot B73 meganewton
87 pound per cubic foot B75 megaohm
A18 becquerel per kilogram B78 megavolt
A39 cubic meter per kilogram B8 joule per cubic meter
A40 cubic meter per mole B84 microampere
A44 decaliter B98 microsecond
A48 degree Rankine BAR bar
A87 gigaohm BLL barrel (U.S.)
A93 gram per cubic meter BTU British thermal unit (IT)
A94 gram per mole BZ million Btu

BCP 10B Reference Manual – CSP03 v00 52


ISO / UNECE code Description ISO / UNECE code Description

C10 millifarad CMK square centimeter

C15 millijoule CMQ Cubic centimeter

C16 millimeter per second CMT centimeter

C18 millimol D10 siemens per meter

C19 mole per kilogram D30 terajoule

C22 millinewton per meter D33 tesla

C24 millipascal seconds D41 ton per cubic meter

C26 millisecond D46 voltampere

C29 millitesla D53 watt per meter kelvin

C31 milliwatt D74 kilogram per mole

C34 mole D87 millimole per kilogram

C36 mole per cubic meter DAY day

C38 mole per liter DMQ cubic decimeter

C39 nanoampere DMT decimeter

C41 nanofarad FAH degree Fahrenheit

C45 nanometer FAR farad

C47 nanosecond FC thousand cubic feet

newton/square FOT foot


C56
millimeter FTK square foot
C60 ohm centimeter FTQ cubic foot
C61 ohm meter GB gallon (U.S.) per day
C65 pascal second GE pound per gallon (U.S.)
C86 reciprocal cubic meter GJ gram per milliliter
C91 reciprocal kelvin GK gram per kilogram
reciprocal meter GL gram per liter
C93
squared
GLI gallon (imperial)
C96 reciprocal pascal
GLL gallon (U.S.)
CDL candela
GM gram per square meter
CEL degree Celsius
milligram per cubic
CLT centiliter GP
meter

BCP 10B Reference Manual – CSP03 v00 53


ISO / UNECE code Description ISO / UNECE code Description

microgram per cubic L2 liter per minute


GQ
meter LBR pound (avoirdupois)
GRM gram LD liter per day
GV gigajoule LTN long ton (U.S.)
HAR hectare LTR liter
HLT hectoliter M1 milligram per liter
HTZ hertz M9 million Btu per 10³ ft³
HUR hour MAW megawatt
INH inch MBR millibar
INK square inch MGM milligram
INQ cubic inch MHZ megahertz
J2 joule per kilogram MIK square mile
JK megajoule per kilogram MIN minute
megajoule per cubic MLT milliliter
JM
meter
MMK square millimeter
JOU joule
MMQ cubic millimeter
KEL kelvin
MMT millimeter
KGM kilogram
MON month
KGS kilogram per second
MPA megapascal
KHZ kilohertz
MQH cubic meter per hour
KJO kilojoule
MQS cubic meter per second
KMH kilometer per hour
meter per square
KMK square kilometer MSK
second
KMQ kilogram per cubic meter MTK square meter
KMT kilometer MTQ cubic meter
KPA kilopascal MTR meter
KTN kilotonne MTS meter per second
KVA kilovolt ampere MVA megavolt ampere
KVT kilovolt MWH megawatt hour
KWH kilowatt hour NA milligram per kilogram
KWT kilowatt NEW newton

BCP 10B Reference Manual – CSP03 v00 54


ISO / UNECE code Description ISO / UNECE code Description

OHM ohm SMI mile

ONZ ounce STN short ton (U.S.)

OZA fluid ounce (U.S.) TD therm

PAL pascal TNE tonne (1000 kg)

PS pound-force per sq. inch VLT volt

PTL liquid pint (U.S.) WEE week

QTL Liquid quart (U.S.) WTT watt

RPM revolutions per minute YDK square yard

square meter per YDQ cubic yard


S4
second YRD yard
SEC second

5.2.3 Dimensions

With the BCP 10B template, 66 dimension IDs are delivered. 55 dimension IDs are identical
(when comparing relevant fields) with the SAP template - 11 dimension IDs are delivered new
by QuantityWare (marked with orange).

Dimension Text Dimension Text

AAAADL No dimension FORCE Force

ACBAC acid/base capacity FREQU Frequency

ACCEL acceleration GASCON gas constant

CAPACI electric capacity GRSVOL gross volume

COMP_F compression factor HVALUE heating value(vol.)

CONDUC conductivity HVLMOL heating value(molar)

DENSI Density HYDROL hydrolysis rate

ECURR electric current INVDEN reciprocal density

ENERGY Energy LENGTH Length

ENPTIM oil & gas prod. rate LIGHT luminous intensity

EVARA vaporization speed MAGNFD magnet. field dens.

BCP 10B Reference Manual – CSP03 v00 55


Dimension Text Dimension Text

MASALC mass - alcohol SURFTE surface tension

MASFLO mass flow SURINV reciprocal area

MASS mass or weight TEMP temperature

MASSBD mass coverage TEMPRT rate of temp. change

MOENER am. subst. energy THCOND heat conductivity

MOLMAS molar mass TH_EXP thermal expansion

MOLPRO mole fraction TIME time

MOLQU amount of substance TKONZ particle concentrat.

MOLVOL molar volume VISDYN dynamic viscosity

MPROPO mass proportion VISKIN kinematic viscosity

POINTS points VMASS mass

POWER power VOLALC volume - alcohol

PRESS pressure VOLFLO volume flow rate

PROPOR proportion VOLGAS volume (LNG, gas)

RESIST electric resistance VOLLIQ volume (LNG, liquid)

SPAEQU spec. equivalent VOLTAG electr. tension

SPARAD spec.act.radioac.sub VOLUME volume

SPEED speed VPROPO volume proportion

SPENER heating value (mass) V_P_H volume per height

SPHCAP spec. heat capacity WALC weight - alcohol

SPREST sp. elec. resistance WGHTA weight

STEXKZ dust explosion ratio

SURFAC area

BCP 10B Reference Manual – CSP03 v00 56


5.2.4 SAP UoM

The following UoM are delivered from the SAP UoM template which are identical to the SAP
UoM definitions with respect to quantity conversion – language-dependent texts may differ, as
well as technical key settings:

No Dimension text MU Measurement unit text

1 acceleration MS2 meter per second squared


2 density KGV kilogram per cubic meter
3 electr. tension V volt
4 electric current A ampere
5 electric resistance OHM ohm
6 energy J joule
7 force N newton
8 frequency HZ hertz
9 heating value(vol.) KJD kilojoule per cubic decimeter
10 heating value(vol.) KW1 kilowatt hour per cubic meter
11 heating value(vol.) KWM kilowatt hour per cubic meter
12 heating value(vol.) MBF MMBtu(IT) per cubic foot
13 luminous intensity CD candela
14 mass proportion GHG gram per hectogram
15 mass proportion M% percent mass
16 mass proportion M%O permille mass
17 mass proportion MGG milligram per gram
18 mass proportion MPB mass parts per billion
19 mass proportion MPM mass parts per million
20 mass proportion MPT mass parts per trillion
21 power MGW megawatt
22 power W watt
23 proportion 1 one
24 time JHR year (365 days)
25 time MON month (30 days)

BCP 10B Reference Manual – CSP03 v00 57


26 volume proportion MLK milliliter per cubic meter
27 volume proportion V%O permille (volume)
28 volume proportion VPB parts per billion (volume)
29 volume proportion VPM parts per million (volume)
30 volume proportion VPT parts per trillion (volume)

5.2.5 SAP UoM corrected

The following UoM are delivered with BCP 10B as copies from the SAP UoM template with
changes as indicated:
A UoM marked with yellow background color carries non-critical changes from a
quantity conversion point of view, however, these have to be checked (e.g. display
decimal setting)
A UoM marked with red carries critical changes from a quantity conversion point of view

No Dimension text MU Measurement unit text

1 No dimension API API gravity


2 No dimension RDA relative density (air) - gas
3 No dimension RDW relative density (water,60 °F)
4 acid/base capacity C36 mole per cubic meter
5 acid/base capacity C38 mole per liter
6 am. subst. energy JMO joule mole
7 amount of substance B45 kilomole
8 amount of substance LBM pound mole
9 amount of substance MMO millimole
10 amount of substance MOL mole
11 area ACR acre (bsd on U.S. survey foot)
12 area CM2 square centimeter
13 area FT2 square foot
14 area HAR hectare
15 area IN2 square inch
16 area KM2 square kilometer
17 area M2 square meter
18 area MI2 square mile
19 area MM2 square millimeter

BCP 10B Reference Manual – CSP03 v00 58


No Dimension text MU Measurement unit text

20 area YD2 square yard


21 compression factor CBA reciprocal bar
22 compression factor CKP reciprocal kilopascal
23 compression factor CPA reciprocal pascal
24 compression factor CPI reciprocal psi
25 conductivity D10 siemens per meter
26 density A93 gram per cubic meter
27 density B34 kilogram per cubic decimeter
28 density D41 tonne per cubic meter
29 density GLI gram per liter
30 density GQ microgram per cubic meter
31 density MGL milligram per liter
32 density MGQ milligram per cubic meter
33 density RHO gram per cubic centimeter
34 dust explosion ratio MPZ meter pascal per second
35 dynamic viscosity MPS millipascal second
36 dynamic viscosity PAS pascal second
37 electr. tension B78 megavolt
38 electr. tension KV kilovolt
39 electr. tension MV millivolt
40 electric capacity 4O microfarad
41 electric capacity 4T pikofarad
42 electric capacity C10 millifarad
43 electric capacity C41 nanofarad
44 electric capacity F farad
45 electric current B84 microampere
46 electric current C39 nanoampere
47 electric current KA kiloampere
48 electric current MA milliampere
49 electric resistance A87 gigaohm
50 electric resistance B75 megaohm

BCP 10B Reference Manual – CSP03 v00 59


No Dimension text MU Measurement unit text

51 electric resistance KOH kiloohm


52 energy BTU British thermal unit (IT)
53 energy KJ kilojoule
54 energy KWH kilowatt hour
55 energy KWN kilowatt hour -15 °C c.,sup.
56 energy MBD million Btu(IT) - 60 °F c.,s.
57 energy MBT million Btu (IT)
58 energy MBW million Btu(IT) - 60 °F s.,w.
59 energy MEJ megajoule
60 energy MJ millijoule
61 energy MWH megawatt hour
62 force B47 kilonewton
63 force B73 meganewton
64 frequency KHZ kilohertz
65 frequency MHZ megahertz
66 frequency PMI revolution per minute
67 heat conductivity WMK watt per meter kelvin
68 heating value (mass) JKG joule per kilogram
69 heating value (mass) KJK kilojoule per kilogram
70 heating value(molar) JOM joule per mole
71 heating value(vol.) B/F Btu per cubic foot
72 heating value(vol.) BC1 Btu/cubic foot at 15.025/60/SD
73 heating value(vol.) BC2 Btu/cubic foot at 14.73/60/SD
74 heating value(vol.) BC3 Btu/cubic foot at 14.65/60/SD
75 heating value(vol.) BC4 Btu/cubic foot at 15.025/60/SW
76 heating value(vol.) BC5 Btu/cubic foot at 14.73/60/SW
77 heating value(vol.) BC6 Btu/cubic foot at 14.65/60/SW
78 heating value(vol.) JM3 joule per cubic meter
79 heating value(vol.) M/F MMBtu(IT) per 1000 cubic feet
80 heating value(vol.) MJM megajoule per cubic meter
81 hydrolysis rate LMS liter per mole second
82 kinematic viscosity M2S square meter per second

BCP 10B Reference Manual – CSP03 v00 60


No Dimension text MU Measurement unit text

83 length CM centimeter
84 length DM decimeter
85 length FT foot
86 length IN inch
87 length KM kilometer
88 length M meter
89 length MI mile
90 length MIM micrometer
91 length MM millimeter
92 length NAM nanometer
93 length YD yard
94 magnet. field dens. MTE millitesla
95 magnet. field dens. TES tesla
96 mass coverage GM2 gram per square meter
97 mass coverage KGF kilogram per square meter
98 mass flow KGS kilogram per second
99 mass or weight G gram
100 mass or weight KG kilogram
101 mass or weight KT kilotonne
102 mass or weight LB pound (avoirdupois)
103 mass or weight LTO ton, long (2240 lb)
104 mass or weight MG milligram
105 mass or weight OZ ounce (avoirdupois)
106 mass or weight STO ton, short (2000 lb)
107 mass or weight TO tonne ("metric ton" in U.S.)
108 mass proportion GKG gram per kilogram
109 mass proportion KGK kilogram per kilogram
110 mass proportion MGK milligram per kilogram
111 molar mass GM gram per mole
112 molar mass KGM kilogram per mole
113 molar volume M3M cubic meter per mole

BCP 10B Reference Manual – CSP03 v00 61


No Dimension text MU Measurement unit text

114 mole fraction MOM mole fraction


115 particle concentrat. TM3 reciprocal cubic meter
116 points P points
117 power D46 volt ampere
118 power KVA kilovolt ampere
119 power KW kilowatt
120 power MVA megavolt ampere
121 power MW milliwatt
122 pressure BAR bar (absolute)
123 pressure C56 newton per square millimeter
124 pressure HPA hectopascal
125 pressure KPA kilopascal
126 pressure MBA millibar
127 pressure MPA megapascal
128 pressure PA pascal
129 pressure PSI pound-force per square Inch
130 rate of temp. change KMS kelvin per second
131 reciprocal area M2I one per square meter
132 sp. elec. resistance OCM ohm centimeter
133 sp. elec. resistance OM ohm meter
134 spec. equivalent MMK millimole per kilogram
135 spec. equivalent MOK mole per kilogram
136 spec. heat capacity JKK joule per kilogram kelvin
137 spec.act.radioac.sub BQK becquerel per kilogram
138 spec.act.radioac.sub KBK kilobecquerel per kilogram
139 speed 2M centimeter per second
140 speed 2X meter per minute
141 speed KMH kilometer per hour
142 speed M/S meter per second
143 speed MMS millimeter per second
144 surface tension MNM millinewton per meter
145 surface tension NM newton per meter

BCP 10B Reference Manual – CSP03 v00 62


No Dimension text MU Measurement unit text

146 temperature CEL degree Celsius


147 temperature FAH degree Fahrenheit
148 temperature K kelvin
149 temperature R degree Rankine
150 thermal expansion TEC reciprocal degree Celsius
151 thermal expansion TEF reciprocal degree Fahrenheit
152 thermal expansion TEK reciprocal kelvin
153 time 10 day
154 time H hour
155 time MIN minute
156 time MIS microsecond
157 time MS millisecond
158 time NS nanosecond
159 time S second
160 time WCH week
161 vaporization speed WTL kilogram per second sq. meter
162 volume 4G microliter
163 volume BB6 barrel [42 gallons(U.S.)] 60°F
164 volume BBL barrel [42 gallons(U.S.)]
165 volume CCM cubic centimeter
166 volume CDM cubic decimeter
167 volume CTL centiliter
168 volume DAL dekaliter
169 volume FT3 cubic foot
170 volume GLL gallon (U.S.)
171 volume HL hectoliter
172 volume IG6 gallon (imperial) - 60 °F
173 volume IGL gallon [imperial]
174 volume IN3 cubic inch
175 volume L liter
176 volume L12 liter - 12 °C

BCP 10B Reference Manual – CSP03 v00 63


No Dimension text MU Measurement unit text

177 volume L15 liter - 15 °C


178 volume L20 liter - 20 °C
179 volume L26 liter - 26 °C
180 volume L5 liter - 5 °C
181 volume L60 liter - 60 °F
182 volume M15 cubic meter - 15 °C
183 volume M3 cubic meter
184 volume MBL thousand barrel
185 volume MC1 one thousand ft³ 15,025 PSI
186 volume MC2 one thousand ft³ 14,73 PSI
187 volume MC3 one thousand ft³ 14,65 PSI
188 volume MCF thousand cubic feet
189 volume ML milliliter
190 volume MMQ cubic millimeter
191 volume OZA fluid ounce (U.S.)
192 volume PT pint (U.S. liquid)
193 volume QT quart (U.S. liquid)
194 volume SCF cubic foot - standard U.S.
195 volume SM3 cubic meter - standard ISO
196 volume UG6 gallon (U.S.) 60 °F
197 volume UGL gallon (U.S.)
198 volume YD3 cubic yard
199 volume flow rate C3S cubic centimeter per second
200 volume flow rate GPH gallon (U.S.) per hour
201 volume flow rate LPH liter per hour
202 volume flow rate M3S cubic meter per second
203 volume flow rate MQH cubic meter per hour
204 volume per height BP2 barrel per half inch
205 volume per height BP4 barrel per quater of an inch
206 volume proportion KMK cubic meter per cubic meter
207 volume proportion V% percent (volume)

BCP 10B Reference Manual – CSP03 v00 64


5.2.6 QuantityWare UoM

The following QuantityWare UoM definitions are delivered with BCP 10B:

No Dimension MU Measurement unit text

1 No dimension CBR rounding UoM - combustion(gas)


2 No dimension CRD rounding UoM -compression(gas)
3 No dimension PRD rounding UoM - pressure (gas)
4 No dimension R10 rounding phys. prop. 10 dec.
5 No dimension R11 rounding phys. prop. 11 dec.
6 No dimension RP0 rounding phys. prop. 0 dec.
7 No dimension RP1 rounding phys. prop. 1 dec.
8 No dimension RP2 rounding phys. prop. 2 dec.
9 No dimension RP3 rounding phys. prop. 3 dec.
10 No dimension RP4 rounding phys. prop. 4 dec.
11 No dimension RP5 rounding phys. prop. 5 dec.
12 No dimension RP6 rounding phys. prop. 6 dec.
13 No dimension RP7 rounding phys. prop. 7 dec.
14 No dimension RP8 rounding phys. prop. 8 dec.
15 No dimension RP9 rounding phys. prop. 9 dec.
16 No dimension TRD rounding UoM -temperature(gas)
17 No dimension VCF Volume corr. factor - oil
18 density GMI gram per milliliter
19 density K15 kilogram per cubic meter 15 °C
20 density KCM kilogram per cubic meter, 1 d.
21 density KGL kilogram per liter
22 density LMG ton,long per 1000 gallon(U.S.)
23 density LPB ton,long per barrel(U.S.)
24 density LTG ton,long per gallon(U.S.)
25 density MTB metric ton per barrel(U.S.)
26 density MTG metric ton per gallon(U.S.)
27 density PPC pound per cubic foot
28 density PPG pound per gallon(U.S.)
29 density SMG ton,short per 1000 gal.(U.S.)
30 density STB ton,short per barrel(U.S.)
31 density STG ton,short per gallon(U.S.)

BCP 10B Reference Manual – CSP03 v00 65


No Dimension MU Measurement unit text

32 density TMG metric ton per 1000 gal.(U.S.)


33 energy GI0 gigajoule - 0 °C comb., inf.
34 energy GI1 gigajoule - 15 °C comb.,inf.
35 energy GI2 gigajoule - 20 °C comb., inf.
36 energy GI5 gigajoule - 25 °C comb.,inf.
37 energy GJ0 gigajoule - 0 °C comb., sup.
38 energy GJ1 gigajoule - 15 °C comb.,sup.
39 energy GJ2 gigajoule - 20 °C comb., sup.
40 energy GJ5 gigajoule - 25 °C comb.,sup.
41 energy GJL gigajoule
42 energy KWI kilowatt hour -15 °C c.,inf.
43 energy MBI million Btu(IT) - 60 °F c.,i.
44 energy MBU million Btu(IT)
45 energy MKC million kilocalorie (th)
46 energy MKJ million kilojoule
47 energy QAD quad (1015 Btu(IT))
48 energy THM therm (EC)
49 energy THU therm (U.S.)
50 energy TJ terajoule
51 gas constant RSI SI unit J /( mol * K)
52 gross volume GB6 barrel (U.S.) - 60 °F, gross
53 gross volume GBL barrel(U.S.), gross
54 gross volume GG6 gallon(U.S.) - 60 °F, gross
55 gross volume GGL gallon(U.S.), gross
56 gross volume L2G liter - 20 °C , gross
57 gross volume L5G liter - 15 °C , gross
58 gross volume LG liter, gross
59 gross volume MG3 cubic meter, gross
60 heating value (mass) BUP Btu(IT) per pound
61 heating value (mass) MJK megajoule per kilogram
62 heating value(molar) BUM Btu(IT) per mole
63 heating value(molar) KJL kilojoule per mole
64 heating value(molar) MJL megajoule per mole
65 heating value(vol.) BCF Btu(IT) per cubic foot

BCP 10B Reference Manual – CSP03 v00 66


No Dimension MU Measurement unit text

66 mass VKG kilogram (vacuum)


67 mass VLB pound (U.S.) (vacuum)
68 mass VLT ton, long (2240 lb), vacuum
69 mass VTO tonne (vacuum)
70 mass - alcohol KAL kilogram (alcohol)
71 mass - alcohol TAL tonne (alcohol)
72 mass or weight LT2 lto, 2 decimals TEMPLATE
73 mass or weight T2 tonne, 2 decimals TEMPLATE
74 mass proportion PPP pound per pound
75 molar mass KKM kilogram per kilomole
76 molar mass LSM pound per mole
77 molar volume M3K cubic meter per kilomole
78 mole fraction MOP mole %
79 oil & gas prod. rate BOE barrel of oil per day (OIL)
80 oil & gas prod. rate BOY barrel of oil per year (OIL)
81 oil & gas prod. rate CFE cubic foot gas per day (GAS)
82 oil & gas prod. rate CFY cubic foot gas per year (GAS)
83 oil & gas prod. rate CME cubic meter gas per day (GAS)
84 oil & gas prod. rate CMY cubic meter gas per year (GAS)
85 oil & gas prod. rate GJD gigajoule per day (ALL)
86 oil & gas prod. rate GJY gigajoule per year (ALL)
87 oil & gas prod. rate MBE million BTU per day (ALL)
88 oil & gas prod. rate MBY million BTU per year (ALL)
89 oil & gas prod. rate MLE cubic meter LNG per day (LNG)
90 oil & gas prod. rate MLY cubic meter LNG per year(LNG)
91 oil & gas prod. rate MOE cubic meter oil per day (OIL)
92 oil & gas prod. rate MOY cubic meter oil per year (OIL)
93 oil & gas prod. rate TCE tonne of coal per day (COAL)
94 oil & gas prod. rate TLE tonne LNG per day (LNG)
95 oil & gas prod. rate TLY tonne LNG per year (LNG)
96 oil & gas prod. rate TOE tonne of oil per day (OIL)
97 oil & gas prod. rate TOY tonne of oil per year (OIL)
98 pressure BGA bar (gauge)

BCP 10B Reference Manual – CSP03 v00 67


No Dimension MU Measurement unit text

99 pressure PSA pound-force p. square Inch (a)


100 reciprocal density BMT barrel per metric ton
101 reciprocal density BPL barrel per long ton
102 reciprocal density BPS barrel per short ton
103 reciprocal density GLT gallon(U.S.) per long ton
104 reciprocal density GMT gallon(U.S.) per metric ton
105 reciprocal density GPP gallon(U.S.) per pound
106 reciprocal density GST gallon(U.S.) per short ton
107 reciprocal density LKG liter per kilogram
108 reciprocal density MPK cubic meter per kilogram
109 volume BB0 barrel 0 decimals TEMPLATE
110 volume CFT cubic foot
111 volume CM0 cubic meter - 0 °C metering
112 volume CM5 cubic meter - 15 °C metering
113 volume CMT cubic meter - 20 °C metering
114 volume L23 liter - 23 °C
115 volume L2A liter 20 °C - 100 % alcohol
116 volume L30 liter - 30 °C
117 volume L85 liter - 85 °F
118 volume M3X cubic meter LNG liq. -165 °C
119 volume M60 cubic meter - 60 °F
120 volume (LNG, gas) M3G cubic meter (gas) of LNG
121 volume (LNG, gas) M3Y cubic meter (gas) of LNG std.
122 volume (LNG, liquid) BLQ barrel - LNG - liquid
123 volume (LNG, liquid) CFC cubic foot - LNG -257,8 °F
124 volume (LNG, liquid) CFL cubic foot - LNG - liquid
125 volume (LNG, liquid) M3C cubic meter - LNG -161 °C
126 volume (LNG, liquid) M3L cubic meter - LNG - liquid
127 volume (LNG, liquid) M3Z cubic meter - LNG -165 °C
128 volume - alcohol GA6 gallon (U.S.) (alcohol) -60 °F
129 volume - alcohol LA2 liter (alcohol) - 20 °C
130 volume - alcohol LA5 liter (alcohol) - 15 °C
131 volume - alcohol MA2 cubic meter (alcohol) - 20 °C
132 volume - alcohol MA5 cubic meter (alcohol) - 15 °C

BCP 10B Reference Manual – CSP03 v00 68


No Dimension MU Measurement unit text

133 volume - alcohol MAL cubic meter (alcohol)


134 volume flow rate BLD barrel per day
135 volume flow rate BLH barrel per hour
136 volume flow rate BLM barrel per minute
137 volume flow rate CMM cubic meter per minute
138 volume flow rate F3D cubic foot per day
139 volume flow rate F3H cubic foot per hour
140 volume flow rate F3M cubic foot per minute
141 volume flow rate GPD gallon (U.S.) per day
142 volume flow rate LPD liter per day
143 volume flow rate LPM liter per minute
144 volume flow rate LPS liter per second
145 volume flow rate M3D cubic meter per day
146 volume flow rate UGM gallon (U.S.) per minute
147 volume per height MBM cubic meter per meter
148 weight KGA kilogram in air
149 weight KTA kilotonne in air
150 weight LBA pound in air
151 weight LTA ton, long in air
152 weight STA ton, short in air
153 weight TOA tonne in air
154 weight - alcohol KAA kg(air, alcohol)
155 weight - alcohol TAA tonne (air, alcohol)

As indicated in the summary above, for all language-dependent UoM tables, entries with
translated texts for English (EN), French (FR), Spanish (ES) and Portuguese (PT) are delivered.

BCP 10B Reference Manual – CSP03 v00 69


5.3 Accessing UoM configuration data – Petroleum Measurement Cockpit

You access and check all UoM configuration data directly from the PMC, via tab strip “Units of
Measurement”; here you navigate to the UoM maintenance transaction “SAP units -> Maintain”
or display lists of UoM in your logon client “SAP Units -> Show” for various selection criteria. If
you select “UoM Tools –> Client/Compare, you analyze the QuantityWare BCP 10B BC set and
compare UoM delivered within that BC set with UoM definitions in any client in your system:

BCP 10B Reference Manual – CSP03 v00 70


BCP 10B Reference Manual – CSP03 v00 71
By clicking on a UoM ID, you inspect the details of the UoM comparison:

BCP 10B Reference Manual – CSP03 v00 72


5.4 Quantity conversion configuration – SAP tables

QuantityWare delivers the complete quantity conversion configuration as part of the template.
These definitions are maintained in SAP and QuantityWare customizing tables. In this section
we list all SAP tables for which QuantityWare delivers template configuration entries and
provide a short content description for each table. Conversion groups, reading groups, range
check groups and tolerance groups are all defined within the name range Q000 to QSZZ (see
section “Details - conversion group mapping to bulk oil & gas products” for mapping to bulk oil
products)

5.4.1 List of tables

The following list contains all table names for which entries are delivered. Language-dependent
table entries are delivered in English (EN), French (FR), Spanish (ES) and Portuguese (PT) if
not indicated otherwise:
Delivery / Number of
Table Description
entries
OIB07 Quantity Conversion Interface Parameter 304
OIB07T Quantity Conversion Interface Parameter 1216 (4 * 302)
Quantity Conversion Interface Parameter:
OIB07_HELP 174
F1 & F4 Help

OIB01 Definition of Conversion Groups 440 + 1 (QWWW)

OIB01T Conversion Group Text 1760 (4 * 440)

Function module definition


OIB04 3928 + 1 (QWWW)
(API/AGA/Customer functions)
HPM Unit of Measurement Group:
OIB06
Definition 15
OIB06T Unit of Measure group description 60 (4 * 15)
OIB05 Oil unit of measure groups 159
OIB_CONV_RDGRP Link Conversion group - Reading group 440 + 1(QWWW)
Assignment of Units between Conv. Group
OIB_CONV_UOM
and T006 953

Assignment of Units between Conv. Group 953 (ONLY EN, not visible
OIB_CONV_UOM_TX
and T006 – UoM descriptions to business user)

BCP 10B Reference Manual – CSP03 v00 73


OIB_RDGRDEF Definition of Reading Groups 326 + 1 (QWWW)
OIB_RDGRDEFT Description of Reading Group Definition 1310 + 4(QWWW)
Reading group : Define parameters for a
OIB_READINGGROUP 2280 + 1(QWWW)
conversion group

OIB_RDGGROUPT Description of reading group parameter 9120 + 4(QWWW)

Header data: physical properties of 3 (for LPG): Q9 & QH &


OIB_PPP_HEADER
hydrocarbons QI
Header table: phys. properties of
OIB_PPP_HEADERT
hydrocarb.: Description 12 (for LPG)
OIB_PPP_DATA Physical properties data table 48 (for LPG)
T100C Configurable message handling – SAP QCI 9
TBRG Authorization groups 2
TBRGT Authorization Group Names 2 (EN only)
USR10 User master authorization profiles 2
USR11 User Master Texts for Profiles (USR10) 2
USR12 User Master Authorization Values 10
USR13 Short Texts for Authorizations 10 (EN only)
UST10S User master: Single profiles 5
UST12 User master: Authorizations 12

BCP 10B Reference Manual – CSP03 v00 74


5.5 Conversion group mapping to bulk oil & gas products

QuantityWare conversion groups (and the associated reading groups and range groups) follow
the QuantityWare naming convention as described in the table below:

Conversion group Product group

Products handled by industry practice formula (e.g. linear density


Q00* - Q0U*
correction)

Crude Oil & Products


ASTM D 1250

Q0V* - Q0Z* ASTM D 1250-52 products


Q1* Crude Oil
Q2* Refined Products
Q3* Special Applications “Chemicals”
Q4* Lubricating Oils

Other Standards

Q5* Asphalt, Bitumen, Road Tar


Q7* LPG – Liquefied Petroleum Gas
Q9* Industrial Aromatic Hydrocarbons & Bulk Chemicals
QI* Renewable Fuels & similar products
QS* Solids (e.g. sulfur)

Natural Gas
QU* LNG – Liquefied Natural Gas – BCG
QV* Natural gas – high and low pressure pipeline – BCG
QWWW MQCI zero model conversion group - technical

BCP 10B Reference Manual – CSP03 v00 75


5.5.1 Accessing the conversion group configuration data – Petroleum Measurement Cockpit

Via the PMC you can display a list of all template conversion groups if you are logged on to
client 045 where the BC set /QTYW/BCP_10B has been activated:
Start the cockpit using transaction /QTYW/COCKPIT
Choose tab strip “QCI Configuration”
Select “QuantityWare delivery” (note the documentation button for further information)

BCP 10B Reference Manual – CSP03 v00 76


5.6 Quantity conversion configuration – QuantityWare tables

QuantityWare delivers the complete quantity conversion configuration as part of the template.
These definitions are maintained in SAP and QuantityWare customizing tables. In this section
we list all QuantityWare tables for which QuantityWare delivers template configuration entries
and provide a short content description for each table.

5.6.1 List of tables

The following list contains all table names for which entries are delivered. Language-dependent
table entries are delivered in English (EN), French (FR), Spanish (ES) and Portuguese (PT).

Table Description Delivery / Number of entries

Assign Dimension ID for MASS and


/QTYW/ASSIGNDIM 9
WEIGHT IN AIR
Assign Dimension ID for
/QTYW/ASSIGNDIML 0
Volume(gaseous) and Volume(liquid)
Table for ASTM Table 1 conversion
56
/QTYW/ASTM_TAB1 factors
Table for ASTM Table 1 UoM
/QTYW/ASTM_UOM 22
Mapping (SAP UoM to ASTM UoM)
DIN 51757 Y method constants for
/QTYW/DIN51757Y 1
conversion group
Test entry of FLTP to check BC Set
/QTYW/FLTP 1
activation
Definition of Reading Group Range 325 (QS01 carries no range
/QTYW/RDGRD_CHCK
Check Tables check)
Description of Reading Group Check
/QTYW/RDGRT_CHCK 1300
Table Definition
Reading group : Define ranges for QW
/QTYW/READINGCCK 1247
checks
Description of reading group check
/QTYW/READINGCKT 4988
parameter
Tolerance group for unit of measure
/QTYW/TOLGRP 1
specific tolerance check
Tolerance group for unit of measure
/QTYW/TOLGRPT 4
specific tolerance check - description

BCP 10B Reference Manual – CSP03 v00 77


Tolerance group for unit of measure
/QTYW/TOLGRP_UOM 17
specific tolerance check – UoM limits
/QTYW/UOM_ROUND Define UoM rounding for BCP & BCG 22
Assignment of Units between Conv.
/QTYW/API_RDW 2
Group and T006
Assignment of Units between Conv. 2 (ONLY EN, not visible to
/QTYW/API_RDW_TX
Group and T006 texts business user)
LPG ISO 6578:1991 Annex A 54 (Q761, Q762, Q763,
/QTYW/LPG_CON_D
normative constants - header Q765)
LPG ISO 6578:1991 Annex A & H 8 (Q761, Q762, Q763, Q765,
/QTYW/LPG_CON_H
normative constants - header Q781, Q782, Q783, Q785)
LPG ISO 6578:1991 Annex A
/QTYW/LPG_CON_HT 32
normative constants - header text
/QTYW/MQCI_DOC Online MQCI documentation data 440
SAP QCI and MQCI function
/QTYW/MQCI_FUNC 252
repository
Define sorting sequence of chemical
/QTYW/SORTCOMP 24
parameter table
Unit of Measure - Measurement
/QTYW/UOMREF 517
Standard Reference Data

BCP 10B Reference Manual – CSP03 v00 78


5.7 QuantityWare IMG access

You access all configuration data from the PMC via the QuantityWare IMG:

A detailed description is provided in Chapter 7 BCP Customizing Transactions.

5.8 Summary

A clearly-defined template of values describing calculations parameters, as well as the


background knowledge as to where the values can be found within SAP DDIC forms the basis
of a reliable quantity calculations environment. Without such an extensive framework, true
transparency and accurate representation of the calculations required by business processes
and their regulatory bodies cannot be practically validated. QuantityWare presents a clearly-
defined reference configuration template to meet customers’ needs.

BCP 10B Reference Manual – CSP03 v00 79


6 QuantityWare MQCI

6.1 Introduction

There are several ways in which quantity conversion calculations can be approached, all of
which are comprised of distinct “calculation steps”. A sequence of calculation steps, typically
including calculation procedures of measurement parameters, the conversion of different kinds
of quantities (“dimensions” in SAP terminology), as well as rounding procedures, comprise the
basic definition of the conversion model.
Different conversion models are defined in national and international measurement standards
and are in use within the oil & gas and chemicals industries.
Technically, the implementation of a specific model should be independent of the interface by
which the model-based conversion algorithms are accessed.
The standard SAP QCI (Quantity Conversion Interface) provides one calculation model which is
integrated within the technical interface. This model can be enhanced via BAdI (Business Add
In) implementations to a certain extent, but does not allow for deviation from the hard coded
SAP QCI calculation model. In addition to this, extension of the standard SAP model to include
weight and mass calculations in parallel is cumbersome and requires code modifications.
QuantityWare has developed a new model-based QCI (MQCI), which enables implementations
of any possible model, for any given quantity (weight, mass, volume, energy, liquid volume
(LNG), gross, net volumes etc.). The MQCI is seamlessly integrated into the SAP QCI and can
be either utilized in parallel with the proven SAP QCI conversion logic in any SAP Oil & Gas
system, or as the single quantity conversion model solution within your SAP Oil & Gas system,
still allowing all SAP Oil & Gas logistics business transactions to access the calculations by the
proven SAP QCI interface.

BCP 10B Reference Manual – CSP03 v00 80


6.2 MQCI – SAP integration

The QuantityWare MQCI is integrated via the proven SAP QCI Interface into all logistics
processes of the SAP Oil & Gas system. A conversion group is either configured to utilize the
classic SAP QCI or the advanced MQCI quantity conversion logic.
Business users will not notice any difference in the behavior of their known SAP transactions,
with two exceptions:

In classic SAP transactions (e.g. TD shipment, physical Inventory, classic goods


movement transactions) where the SAP QCI dialog box appears for data entry when
using the SAP QCI, a new MQCI dialog box appears, which is designed based on the
proven SAP reading group concept. This way, all reading group parameters are
available to the business user for data entry. Thus, a process harmonization is
achieved

In classic SAP transactions running as batch input processes (BTI), a new MQCI
batch input screen will be processed. Thus, existing BTI maps may have to be
adjusted if a switch from SAP QCI to MQCI conversions for existing materials is
required. SAP OGSD processes that still utilize BTI (e.g. for data collation) may have
to be adjusted if MQCI conversion groups are utilized

With the QuantityWare BCP 10B configuration template, QuantityWare delivers more than 400
conversion groups for liquid products. For all major product lines, SAP QCI and QuantityWare
MQCI conversion groups are delivered. Depending on each customer’s requirements, SAP QCI
conversion groups or QuantityWare MQCI conversion groups can be utilized.

Example: For material COMMERCIAL BUTANE, you define twenty plants with a
SAP QCI conversion group for LPG, where the SAP QCI capabilities are
sufficient. Twelve plants utilize a QuantityWare MQCI conversion group for LPG
where you require vapor space calculations for your business processes as
well.

BCP 10B Reference Manual – CSP03 v00 81


6.3 MQCI technical integration details

The technical MQCI installation is delivered with software package /QTYW/QCI. The package
contains:
function groups which implement the model based quantity conversion interface
the dialog screen for classic SAP transactions
the conversion models
MQCI functions that solve specific quantity conversion requirements (“plug and play”)

A BAdI Implementation is delivered with SP06 onwards as active


implementation. With note 000016 (included in BCP 10A CSP11) QuantityWare
delivers this implementation as an inactive implementation for SAP ECC 600 ,
together with a new state-of-the art MQCI integration via enhancement
implementation /QTYW/MQCI which delivers a dynamic enhancement point in
function OIB_QCI_QUANTITY_CONTROL. SAP ERP 4.72 systems continue
using the integration via the BAdI implementation

This way, SAP Oil & Gas customers that have already implemented any of the
methods of SAP BAdI OIB_QCI_ROUND_QTY do not have to merge their
implementation with the QuantityWare MQCI implementation described above.
Technically, both integration methods do not modify your system.

BCP 10B Reference Manual – CSP03 v00 82


6.4 Supported MQCI models for BCP

All current and future models are implemented via standard SAP QCI customizing table
settings. As described above, a model consists of a sequence of function module calls, which
are defined in a conversion group customizing table. This sequence is executed for each
conversion calculation to calculate a target quantity based on a set of conversion parameters
and a source quantity.
A model sequence typically consists of implementations of complex parameter calculation
functions (based on measurement standards, e.g. ASTM D1250) as well as the conversion
calculation model functions (also based on measurement standards, e.g. DIN 51650) which are
defined in the correct processing order.
This document describes the MQCI and implementations for all available conversion models.
A single conversion model can be utilized for several products, where each product may require
a different standard implementation allowing the calculation of e.g. volume correction factors or
density values.
Once new models beyond the currently available models described in this document are
available, these will be documented in an updated version of this document. However, with the
currently available basic models many different conversion models can already be configured.
As an example, integration of ASTM table 1 conversion factors is possible via customizing and
configuration of a conversion group.
Also, legacy system results that operate on fixed point arithmetic can be reproduced with a
flexible rounding model, which is part of all but the DIN 51650 model functions.

BCP 10B Reference Manual – CSP03 v00 83


6.4.1 DIN 51650 model – SI base units

The DIN 51650 model is described in standard DIN 51650 “Testing of mineral oils and related
products – determination of quantity”. It describes the relevant conversion formulas used to
calculate a target quantity at ambient conditions from a given source quantity for the quantities
(“dimensions”):
Mass
Weight
Volume

It also specifies rounding of intermediate results (mass in kg to 0 decimals, volume in L to 0


decimals).

6.4.2 Chemicals model - SI

The chemicals model is based on a linear expansion model for thermal expansion which
enables easy calculation of densities at any given temperature. Conversion between quantities
is always performed using a density at the correct temperature base. No specific volume
correction factor is involved in the conversion model – the model is implemented in two
versions: one version always utilizes observed densities for conversions between dimensions,
the second model utilizes the base densities for mass to weight /and vice versa) conversions.

6.4.3 SAP QCI model

The SAP QCI model is an open model based on DIN 51650 without built-in intermediate
rounding.

6.4.4 ASTM D1550 Butadiene vapor model

This model contains special functions that calculate liquid volume quantities for a vapor space
volume (within a tank of known capacity). Source volumes (liquid) are converted to weight and
mass and volume UoM, where the weight and mass UoM quantities include the vapor weight or
mass quantity. The total volume can be calculated as well. The model is defined in ASTM
D1550.

6.4.5 ASTM D1550 Butadiene vapor model – alt. units

This model is identical with the ASTM D1550 Butadiene vapor model described above, but
allows configuration of an alternate (U.S.) base conversion logic. You can define non-SI UoM as
base conversion UoM.

BCP 10B Reference Manual – CSP03 v00 84


6.4.6 U.S. QCI model

The U.S. (United States) models contain a different conversion strategy. The above-mentioned
models (as well as the original SAP QCI model) are basically SI models. These always convert
quantities to SI units before converting these quantity values to target values (also in SI units),
and then the resulting quantities are converted to the requested target unit. While this is
acceptable for Metric quantity conversions, conversions using U.S. customary units can result in
rounding differences (typically at 6 to 7 relevant digits).
The U.S. models use alternative “SI” units, assigned to a conversion group, to convert between
volumes, weights and masses.
Example - you assign:
LBA (pound in air) as the alternate “SI” unit for weight
PPG (pound per gallon) as the alternate SI unit for density
UGL (U.S. gallon) as the alternate “SI” unit for volume

Now, all source volumes are converted to UGL, then using the PPG density conversion to
weight is performed (LBA). This way, exact conversions as expected via ASTM Tables 8 and 26
are possible.
The U.S. QCI model uses the above-described conversion logic in conjunction with the SAP
QCI model.

6.4.7 U.S. chemicals model

The U.S. chemicals model uses the above-described U.S. or alternate base UoM conversion
logic in conjunction with the Chemicals model - – the model is also implemented in two
versions, one version always utilizes observed densities for conversions between dimensions,
the second model utilizes the base densities for mass to weight /and vice versa) conversions.

6.4.8 Alternate base model

This model supports all possible alternate base conversion UoM for density, mass, weight and
volume conversions. The flexibility of this model enables MQCI conversion group configurations
for all possible models that utilize a volume correction factor approach and utilize density in
vacuo and density in air data that is calculated as defined in a specific standard.

6.4.9 API MPMS Chapter 11.5 Alternate base model

This model supports all possible alternate base conversion UoM for density, mass, weight and
volume conversions in conjunction with the inverse density approach defined in API MPMS

BCP 10B Reference Manual – CSP03 v00 85


Chapter 11.5. The flexibility of this model enables MQCI conversion group configurations for all
possible models that utilize a volume correction factor approach.

6.4.10 ABNT NBR Alternate base model (Ethanol)

This model supports all possible alternate base conversion UoM for density, mass, weight and
volume conversions in conjunction with the inverse density approach defined in API MPMS
Chapter 11.5. In addition, the model supports intra conversion between 6 SAP dimensions:
Mass(product), weight(product), volume(product) and mass(alcohol), weight(alcohol) and
volume(alcohol). The flexibility of this model enables MQCI conversion group configurations for
all possible models that utilize a volume correction factor approach.

6.4.11 Solid conversion model

This model supports two types of conversions for solid products (e.g. sulfur), for which you want
to keep stock in several UoM in parallel. The material master standard model supports all
conversions that you define in the material master. You just assign a conversion group and
UoM group to the material master oil view (e.g. QS01 template conversion group).
Alternatively, you assign a conversion group (e.g. QS00 template conversion group), where you
can enter a variable product density.

6.4.12 LPG vapor space alternate base model (mass, weight, volume)

This model supports calculation of LPG tank vapor space volumes as defined in DIN 51650 and
ISO 6578.

6.4.13 LPG vapor space alternate base model (mass, weight, volume, energy)

This model supports calculation of LPG tank vapor space volumes as defined in DIN 51650 and
ISO 6578, as well as calculation of LPG energy values. This model is implemented in two
versions; one version utilizes the LPG base density to convert between masses, weights and
volumes, the other version utilizes the LPG observed and alternate density for the conversion.

6.4.14 Crude oil gross volume model - sediment & water – net mass & weight

This model is based on API MPMS Chapter 12.2 specifications. Indicated volumes (IV) or gross
volumes (GV) are converted to gross standard volumes (GSV) and net standard volumes (NSV)
taking into account meter factors and/or sediment and water volume % laboratory data. Masses
and weights are calculated as net values.

BCP 10B Reference Manual – CSP03 v00 86


6.4.15 Crude oil gross volume model - sediment & water – gross mass & weight

This model is based on API MPMS Chapter 12.2 specifications. Indicated volumes (IV) or gross
volumes (GV) are converted to gross standard volumes (GSV) and net standard volumes (NSV)
taking into account meter factors and/or sediment and water volume % laboratory data. Masses
and weights are calculated as gross values.

BCP 10B Reference Manual – CSP03 v00 87


6.5 Model based quantity value rounding

6.5.1 Main calculation steps of the MQCI models

All MQCI models described above perform a sequence of conversion steps to convert a given
transaction quantity (volume, mass, weight) at observed conditions to a target quantity (volume,
mass, weight) at alternate conditions.
In a first step, the transaction quantity is converted to the base conversion UoM
BCU_o_dim1 (where the BCU_o_dim1 is of the dimension of the transaction quantity at
observed conditions)

The BCU_o_dim1 quantity is then converted to the base temperature condition,


BCU_b_dim1 (Base conversion UoM temperature base) in a second step

This quantity value is then converted to the BCU_b_dim2 (e.g. from volume to weight
dimension) in a third step

Conversion to BCU_a_dim2 at alternate conditions is performed in step 4

Finally, the BCU_a_dim2 quantity value is converted in step 5 to the target UoM at
alternate conditions

BCP Example: Conversion group Q0V8 is defined at standard temperature 60 °F. Base
conversion volume UoM is BB0 (U.S. barrel, 0 decimals), Base conversion weight UoM is LTA
(long ton in air), Base conversion mass UoM is LTO (long ton in vacuum) - See the following
screen print:

BCP 10B Reference Manual – CSP03 v00 88


Conversion example 1: Convert 1000000 UGL (gallon) at 82 °F observed temperature (with a
density of 32 °API at 60 °F) to L15 (liter at 15 °C).
Step 1: Convert 100000 UGL (gallon) to base conversion volume UoM BB0 (barrel)

Step 2: Convert the BB0 (barrel) value to standard conditions: 60 °F by applying the
correct volume correction factor

Step 3: Not required, since we deal with two volumes

Step 4: Convert the BB0 (barrel) at 60 °F to BB0 (barrel) at 15 °C using the volume
correction factor from base to alternate conditions

Step 5: Convert the BB0 (barrel) at 15 °C to L15 (liter at 15 °C)

BCP 10B Reference Manual – CSP03 v00 89


Conversion Example 2: Convert 1000000 UGL (gallon) at 82 °F observed temperature (with a
density of 32 °API at 60 °F to LBA (pound in air).
Step 1: Convert 100000 UGL (gallon) to base conversion volume UoM BB0 (barrel)

Step 2: Convert the BB0 (barrel) value to standard conditions: 60 °F by applying the
correct volume correction factor

Step 3: Convert the BB0 (barrel) value at standard conditions to the base weight UoM
LTA (long ton, air) by multiplying the BB0 (barrel) value with the density in air in long ton
per barrel (base density UoM LPB (long ton per barrel)

Step 4: Not required

Step 5: Convert the LTA (long ton, air) value to LBA (pound, air) using either ASTM
Table 1 factor or the SAP UoM conversion factor

6.5.2 The base conversion unit concept

As described above, the base conversion UoM for density, mass, weight and volume is defined
for each model. The SI based models always use the SI UoM as base conversion UoM.
Important for the alternate definitions is, that the base conversion UoM are consistent. If you
choose LB (pound) as mass or weight base conversion UoM, and UGL (U.S. gallon) as volume
base conversion UoM, the density base conversion UoM has to be LB/UGL =: PPG (pound per
gallon) in SAP configuration terminology.

For BCP conversion groups, you maintain the base UoM for all relevant dimensions as shown
above (Additional UoM assignment). For BCG you define the coherent base units within the
conversion group detail maintenance.

BCP 10B Reference Manual – CSP03 v00 90


6.5.3 Rounding steps

As described above, up to 5 calculation steps are possible to convert a transaction quantity to a


target quantity value. Within each step, you may want to apply UoM specific rounding to the
intermediate results.

QuantityWare recommends applying rounding only to the initial transaction


quantity value and the final target quantity value and to utilize maximum floating
point accuracy for the intermediate steps. However, it may also be necessary to
apply rounding to intermediate results, if legacy system results need to be
mapped, or national standards require such rounding.

6.5.3.1 Transaction quantity rounding


The transaction quantity is passed via SAP transactions to the MQCI. SAP transactions typically
do not support rounding of the transaction quantity. You can enforce rounding within the MQCI
of the transaction quantity by assigning the rounding function
/QTYW/MQCI_ROUND_TRAN_QUANTITY to the MQCI configuration. You have to set the
UoM rounding settings to the required decimals (see description below in Step 6.5.3.5 how to
perform these settings).

6.5.3.2 Base transaction quantity rounding


Base transaction quantity rounding can be achieved by setting the “Round base transaction
quantity” flag in the conversion group. Then, the base quantity value is rounded according to the
UoM rounding settings of the Base conversion UoM.

6.5.3.3 Intermediate value rounding


Intermediate rounding is achieved by setting the “round intermediate results” flag in the
conversion group. Then, the intermediate quantity value is also rounded according to the UoM
rounding settings of the Base conversion UoM.

6.5.3.4 Base target quantity rounding


Base target (alternate) quantity rounding can be achieved by setting the “Round base target
quantity” flag in the conversion group. Then, the base target quantity value is rounded according
to the UoM rounding settings of the Base conversion UoM.

BCP 10B Reference Manual – CSP03 v00 91


6.5.3.5 Target quantity rounding
MQCI implementations contain a generic function /QTYW/MQCI_ROUND_ALT_QUANTITY
which is part of every conversion group configuration contained in our MQCI template. Within
this function, final target/alternate quantity value rounding (masses, volumes, weights, energies
etc.) can be performed, if the corresponding unit of measure is to be rounded (defined in
customizing, see 6.5.3.6.).

6.5.3.6 Rounding definition


The rounding definition must be made separately via transaction /QTYW/UOM_ROUND for
each unit of measure. You can also access this transaction via the QuantityWare Petroleum
Measurement Cockpit (BCP) or the QuantityWare Gas Measurement Cockpit (BCG): Goto ->
QuantityWare IMG:

BCP 10B Reference Manual – CSP03 v00 92


BCP 10B Reference Manual – CSP03 v00 93
If you maintain a valid entry in the field: “Decimal places rounding”, the values for that UoM are
rounded. Valid entries for “Decimal places rounding” are:
Any number between 14 and 0 (rounding to the 14th up to 0 decimal places after the period)
Any number between -1 and -10 (rounding to the second up to the 10th digit before the period).

Example 1: You set “Decimal places rounding for the unit BBL to 2 (two). The
system calculates a volume of 42.227896789 BBL. Rounding leads to a
reported result of 42.23 BBL.

BCP 10B Reference Manual – CSP03 v00 94


Example 2: You set “Decimal places rounding for the unit BBL to 1- (one
minus). The system calculates a heating value of 42.227896789 BBL.
Rounding leads to a reported result of 42 BBL.

6.5.3.7 Statistician’s rounding


In a conversion group, you can define that all rounding within the MQCI model functions is done
using statistician’s rounding.

BCP 10B Reference Manual – CSP03 v00 95


6.6 Parameter range check settings

Within the SAP QCI, you cannot define that certain measurement parameters have to lie within
a specified range of values. An example would be the natural gas heating value. In the standard
SAP Oil & Gas system, you can enter any value between 0.00001 and 1.000.000.000 MJM
(Mega joule per cubic meter), and the system calculates volume and energy quantity values for
any heating value. Typically several parameters are required for the quantity conversion and
data entry can be cumbersome and, if not checked, lead to erroneous results which may have
considerable financial impact on your business. This is true for automated data input via SAP
BAPI as well as manual user data entry. To provide this important requirement, QuantityWare
delivers customizing tables (maintainable via transaction /QTYW/RANGES or directly from the
PMC), which contain for all delivered reading groups the relevant parameter data sets within the
configuration template (client 045) with initial values, for which data range checks can be
maintained. It is not possible to deliver the datasets with preset range values, since these
values highly depend on customer specific business process details. If you select one specific
reading group, you can select all available parameters for which the following data can be
maintained:
High level error limit: Any number with up to 6 decimal places
Low level error limit: Any number with up to 6 decimal places
High level warning limit: Any number with up to 6 decimal places
Low level warning limit: Any number with up to 6 decimal places
The unit of measure (UoM) for each parameter
For character format parameters, you can define an exact match or if a value needs to
be excluded

The range check function can be activated for both SAP QCI as well as QuantityWare MQCI
conversion groups.

It is not required to maintain all data for all parameters. You can for example
just maintain lower limits (E and W), or just Warning limits.

Technically, the range checks are executed if function


/QTYW/CHECK_PARAM_RANGES is included within the conversion group. This is
the case for all BCP conversion groups (Q0* to QI*). As soon as range data is
maintained, the checks are performed for each quantity conversion calculation.

BCP 10B Reference Manual – CSP03 v00 96


6.7 ASTM Table 1 – MQCI integration

ASTM Table 1 defines conversion factors for volume, weight and length units. Since this table is
a “de facto” industry standard for liquid petroleum products, QuantityWare supports - within the
MQCI quantity conversions between masses, weights and volumes - the ASTM Table 1 factors.

In the “Extended conversion group maintenance” transaction (accessible via the Petroleum
Measurement Cockpit) you define if the ASTM Table 1 conversion factors or the standard SAP
conversion factors are to be utilized for each conversion group. QuantityWare delivers the
ASTM Table 1 values as part of the QuantityWare BCP BC set for SAP Dimension ID (DIMID)
VOLUME and QuantityWare Dimension ID (DIMID) WGHTA (Weight in air). For other DIMID
(e.g. MASS or VMASS or gross volume GRSVOL) you simply assign the correct UoM to the
corresponding WGHTA or VOLUME UoM via the mapping table.

QuantityWare delivers ASTM Table 1 conversion factors based on ASTM D1250-80 and ASTM
D1250-08. You select which version of the factors the conversion group shall utilize.

BCP 10B Reference Manual – CSP03 v00 97


You also select whether the MQCI solely uses ASTM Table 1 factors, raising an error if an entry
is missing, or continues with the SAP standard conversion factor if no ASTM Table 1 conversion
factor is maintained or available.
You also choose whether the MQCI skips the conversion to the base UoM if source and target
UoM are identical (except for possible temperature assignments). This setting avoids rounding
issues that will occur quite naturally due to the limited accuracy and non-symmetric definition of
the ASTM Table 1 conversion factors, especially when converting back and forth between base
UoM and source and target UoM.
Finally, you decide whether “Statistician’s rounding” is applied to all MQCI quantity value
rounding steps. This overwrites the default setting, which is the commercial “business rounding”
procedure.

BCP 10B Reference Manual – CSP03 v00 98


6.8 Support of classic SAP dialog transactions

6.8.1 Dialog transaction support

SAP continues to support classic dialog transactions (e.g. MB* and MI* for goods movement
transactions, VL* for deliveries processing), where the classic SAP QCI dialog box is utilized.
The QuantityWare MQCI also supports these transactions, utilizing a dialog box which supports
the reading group concept, thus enabling full support for all conversion parameters:

BCP 10B Reference Manual – CSP03 v00 99


If you do not maintain quantity conversion defaults, the MQCI sub screen shows initial values
for all parameters within a classic SAP transaction. You can assign an MQCI default function to
the MQCI conversion group function sequence in order to default the reading group parameters.
This function /QTYW/MQCI_GET_READINGGRP_DEF has to be assigned with function
module type 9:

BCP 10B Reference Manual – CSP03 v00 100


6.8.2 Batch input support

The QuantityWare MQCI supports Batch Input processing using screen


2000 / 3000 within the MQCI function group /QTYW/MQCI as a dialog box
for BCP products. All MQCI conversion groups are supported.
However, QuantityWare strongly recommends using the available BAPI
instead of batch input processing for automated document posting (e.g.
from external systems) into your ERP system.

6.8.2.1 Screen 2000


The QuantityWare MQCI Batch Input Screen 2000 for BCP products is displayed below:

BCP 10B Reference Manual – CSP03 v00 101


6.8.2.2 Screen 3000
If you are changing an existing business process (usage of MQCI conversion groups for
materials), you will have to adjust your BTI logic to include the new MQCI BTI screen instead of
the classic SAP QCI BTI screen (Program SAPLOIB_QCI Screen 500).

If you utilize a QuantityWare MQCI conversion group for LPG products including energy
calculations, based on chemical analysis data of the LPG, batch input screen 3000 is relevant:

BCP 10B Reference Manual – CSP03 v00 102


6.9 Flexible density type input for liquids

If you utilize a standard SAP QCI conversion group for liquid products, you have to define a
density type in the conversion group; the system then expects the data entry for densities using
the density type specified which can be API gravity, relative density or absolute density.
MQCI conversion groups can be configured to allow density value entry as well as calculation of
the base density for all three possible density types.
For API gravity, you then have to pass the density UoM API, for relative density RDW, for
absolute densities any density UoM.
With BCP, QuantityWare delivers conversion groups Q210, Q212 and Q213 as examples.

Example: Conversion group Q210 is defined for absolute density values:

BCP 10B Reference Manual – CSP03 v00 103


You can also enter a relative density value as test density for the same conversion group:

BCP 10B Reference Manual – CSP03 v00 104


The MQCI calculates the base density (air and vacuum) for all density types:

Depending on the rounding settings, and due to input density rounding within
standard implementations, you cannot expect to obtain identical quantity value
results with an accuracy of more than 5 relevant digits.

BCP 10B Reference Manual – CSP03 v00 105


6.10 Quantity data flow – tolerance group settings

As described in our working paper “Quantity Data Flow in the Oil & Gas Supply Chain” quantity
data that is passed from external measurement systems needs to be checked and possibly
enriched before ERP documents with financial impact are posted.
The standard SAP QCI supports the definition of tolerance settings for a conversion group. You
define % limits for quantity value deviations, which trigger a warning or error message if quantity
values passed from external systems (or manual changes made by users) deviate from the
calculated results.
For the QuantityWare MQCI, you can define tolerance groups in addition to this simple standard
SAP check:

You assign all relevant UoM to the tolerance group, for which an individual check is made. In
the header of a tolerance group, you define the behavior if no detailed limits for a UoM are
defined.

BCP 10B Reference Manual – CSP03 v00 106


For each UoM, you define either a % deviation or a deviation after rounding to 3, 4, 5...10
significant digits. If a quantity value for that UoM deviates from these defined limits, a warning or
error message is raised:

You assign a tolerance group to a conversion group. With this concept, you ensure that quantity
values for UoM which are e.g. relevant for pricing and excise duty calculations, deviations are
tightly controlled. For UoM that are e.g. relevant for logistics control only, higher deviations are
possible. Additionally, the implementing MQCI function
/QTYW/MQCI_QW_QUANTITY_CHECK which you need to assign to your conversion group to
activate a tolerance group check contains the following logic based on the manual entry
indicator (SAP domain OIB_MANEN):
initial Quantity calculated by QCI
X Quantity checked by QCI, deviation within tolerance
U Quantity passed through interface or BAPI functions, NOT checked
C Quantity passed through interface, deviation within tolerance

BCP 10B Reference Manual – CSP03 v00 107


If the manual indicator is set to “U” or “C”, no check will be performed, since the value is passed
from external systems and has been checked there - “U” or has already been checked once
before within the SAP ERP system – “C”. See SAP note 568867 for additional details.

Example:
UoM L15 (liter @ 15 °C) is the basis for your excise duty calculations. Here you define a
tolerance limit where equality up to 8 significant digits is required.

UoM L (liter at ambient) is utilized for tank capacity control. Since the L quantity values show a
high fluctuation depending on the current observed temperature, you define a 0.1 % deviation
which is still acceptable and does not lead to unnecessary process flow interruptions.

Starting with BCS 10B CSP01, All QuantityWare template conversion groups are configured
such that the MQCI function module sequence contains function
/QTYW/MQCI_SYNC_EXT_VALUES. This function synchronizes external quantity data with
internally calculated values.

Example:
Your depot TAS system passes the product density, and values for L15 and KG to your ERP
system. In your UoM group, you also defined pounds (LB) and M15 as relevant UoM.
Since the L15 value is passed and validated externally, as well as the KG value, the M15 and
LB calculated values are recalculated from the L15 and KG values in order to ensure
synchronized and exact quantity data in your ERP system.

BCP 10B Reference Manual – CSP03 v00 108


6.11 MQCI advanced configuration options

6.11.1 MQCI LPG configuration options

For LPG products (e.g. commercial propane, commercial butane and mixtures) LPG vapor
space calculations as defined in DIN 51650-06 and ISO 6578-91 are supported by the MQCI.

For the calculation of LPG quantities (masses, weights and volumes) the following data is
required:
LPG base density at conversion group base temperature (You may also extend the
reading group to enable entry of a density at a temperature different than base
temperature)
LPG observed temperature
LPG molar weight (required for vapor calculation)
LPG vapor pressure
LPG vapor temperature (can be defaulted from observed temperature)
The tank capacity
Apply vapor corr. (tank dip) : An indicator that triggers static tank measurement vapor
calculation
Vapor recovery (movement) ind.; An indicator that triggers vapor correction for goods
movements

All required data parameters such as density, temperature and pressure values
may be defaulted using SAP transaction /no3defaults. In addition, the
QuantityWare MQCI design fully supports customer specific defaulting into the
MQCI model sequence.

6.11.1.1 Vapor correction indicators


Set the “Apply vapor corr. (tank dip) indicator if you enter a tank dip in SAP tank management,
and enter the tanks’ capacity. Once this has been entered, the vapor mass is calculated too and
added to the liquid product mass and the observed vapor density. Basically the vapor mass is
added to the liquid product mass that is derived from the liquid product level.

BCP 10B Reference Manual – CSP03 v00 109


Typically you combine an opening and closing tank dip and calculate the quantity differences
(masses and volumes) which are then posted as movement quantities. You may do this via
SAP tank management directly.
Alternatively, you may take this data and enter the differences as movement data within your
logistics processes (e.g. TD transactions). Here, enter the transferred liquid volume and the
density of the liquid being transferred, as well as the final transfer LPG parameters (vapor
pressure and temperature) and set the “Vapor recovery (movement)” indicator. As defined in
ISO 6578, the mass of the liquid transferred will be calculated (which is basically the mass of
the liquid transferred minus the vapor mass displaced by the liquid). This calculation does not
require a tank capacity.
You may also directly enter all additional quantities derived from two tank dips (differences
between opening and closing quantity values). In this scenario you must ensure that the
tolerance settings allow such postings.

6.11.1.2 Vapor pressure correction


Typically, the vapor pressure is measured as gauge pressure and needs to be corrected to
absolute pressure. This can be achieved the following way:
You enter a pressure value using a pressure UoM that is not defined as base pressure UoM in
the conversion group (in our template, we utilize kilopascal (kPa, SAP UoM KPA) as a base
pressure UoM).

Example:
Conversion group Q731 is defined at the base atmospheric pressure of 101.300 kPa (DIN
definition), Q732 and Q733 are defined at 101.325 kPa (ISO definition), Q735 at 14.696 lbf/in 2
(SAP UoM PSI - U.S. standard base). This value is also used for the vapor calculation formula.
Technically, the vapor correction is calculated by function /QTYW/MQCI_BCP_ABS_PRESS_CALC
in the MQCI model sequence, which you may remove if you enter absolute pressure values.

BCP 10B Reference Manual – CSP03 v00 110


Example: You enter the gauge pressure value of 5.8 bar (SAP UoM BAR):

The system converts your pressure value by adding the base pressure defined in the
conversion group and utilizes this value for the detailed calculations and also displays the
corrected absolute pressure in kPa:

BCP 10B Reference Manual – CSP03 v00 111


6.11.1.3 Tank capacity defaulting
Within SAP tank management, you must enter the tank capacity into the quantity conversion
sub screen. Conversion group Q732 is configured to default the tank capacity via function
/QTYW/LPG_GET_TANK_CAPACITY. This defaulting will only work if you have configured SAP
tank management so that a SINGLE storage location is assigned to a SINGLE tank and vice-
versa.
If this is not required, you should remove function /QTYW/LPG_GET_TANK_CAPACITY from your
MQCI configuration.

6.11.1.4 Weight calculations


LPG products are stored in closed containers. As defined in DIN 51650, the air buoyancy for the
gross and tare measurement are basically identical. Thus the air buoyancy correction can be
set to 0, i.e. the density in vacuo and in air are equal.
Hence the conversion groups Q73* are configured with function
/QTYW/CALC_BDICH_AIR_VAC_LPG_C in the MQCI function model sequence. If you wish to
apply the standard air buoyancy calculation, this function has to be replaced with the
appropriate MQCI model function.

6.11.2 MQCI crude oil configuration options

API MPMS Chapter 12.2 specifies the exact calculation sequence for petroleum quantities using
dynamic measurement methods and volumetric correction factors.

With BCP 10B, QuantityWare delivers a new crude oil MQCI conversion model which enables
BCP customers to calculate net standard volumes (NSV) and gross standard volumes (GSV)
from indicated volumes (IV) or gross volumes (GV) according to the calculation steps defined in
API MPMS Chapter 12.2 . A combined correction factor including the temperature, pressure and
meter correction is applied for the calculation to obtain gross standard volumes, which are then
converted to net standard volumes by the correction for sediment and water content (CSW).

This is achieved by the unique flexibility of the QuantityWare MQCI in combination with the
proven SAP Unit of Measure concept. Via a newly defined QuantityWare dimension ID for gross
volumes, customers can clearly distinguish between gross and net volume quantities. Masses
are calculated as gross masses.

BCP 10B Reference Manual – CSP03 v00 112


This solution is delivered by QuantityWare via template conversion groups. With this
development, QuantityWare enables full scale crude oil quantity conversions including realistic
pipeline scenarios.

Details:
In the screen print down below, an example calculation is displayed. A crude volume of
1,000,000 GBL (barrel, gross) is transferred through a pipeline at an average temperature and
pressure value as shown, with a sediment & water content of 1 % (volume). The gross and net
barrel volumes at 60 °F, as well as the gross and net gallon values at 60 °F and the mass and
weight in pounds are calculated.

BCP 10B Reference Manual – CSP03 v00 113


6.11.3 MQCI energy calculations

With BCP 10B energy calculations for LPG products are supported. Preconfigured LPG
conversion groups are delivered with the BCP 10B template where you calculate energy values
for LPG products based on ISO 6578.

6.11.4 MQCI parameter defaulting

With BCP 10B, you can configure all conversion groups so that certain required measurement
parameters (e.g. test density temperature is always set to base temperature) are defaulted
according to your business requirements. This way you minimize the number of parameters
required for input.

6.11.5 MQCI business integration logic

BCP 10B contains business specific functions (delivered within function group
/QTYW/MQCI_COMMON), which you can add to your MQCI conversion group function
sequence. QuantityWare welcomes your new requirements for analysis; if a solution is
technically feasible, it will be delivered as new integration logic with a CSP.

6.11.6 MQCI external system data synchronization

BCP 10B contains function /QTYW/MQCI_SYNC_EXT_VALUES, which you can add to your own
MQCI conversion group logic. This function detects data from external systems passed to the
SAP ERP system (via the “manual entry indicator”) and synchronizes dependent quantity values
based on that data.

6.11.7 MQCI country specific base temperature definition

For ASTM D1250-04 (crude oil and products) and GPA TP-27 (LPG) you can configure your
SAP QCI and MQCI conversion groups to calculate standard based CTPL for any required base
temperature, e.g. 23 °C (Egypt) or 85 °F (Pakistan). While ASTM D1250-04 readily supports
such temperature bases, the QuantityWare GPA TP-27 implementation has been extended via
a soft conversion to support all possible base temperatures.
For ASTM D4311-09, QuantityWare has also extended the implementation to 20 °C base
temperature. Others are available on customer request and technical feasibility.

BCP 10B Reference Manual – CSP03 v00 114


6.12 MQCI integration functions

With BCP 10B, QuantityWare delivers Function group /QTYW/CONVERSION, which contains
quantity conversion functions that may be utilized within your project to integrate BCP 10B
quantity conversions within your customer specific developments. The functions are designed to
provide an easy interface which programmers can readily understand:

BCP 10B Reference Manual – CSP03 v00 115


6.13 Support of CPL calculations

Implementations of API MPMS Chapter 11.2.1(M), API MPMS Chapter 11.2.2(M) and GPA TP-
15 are delivered with BCP 10B, together with template conversion groups for crude oil, products
and LPG, which are configured to calculate combined CTL and CPL correction factors based on
these standards. List printing of API MPMS Chapter 11.2.1(M) and API MPMS Chapter
11.2.2(M) compressibility factors is provided via the PMC “Print Standards Lists” tab strip.
The CPL calculation needs to be activated for a conversion group via customizing:

BCP 10B Reference Manual – CSP03 v00 116


CPL calculations are supported for MQCI conversion groups in conjunction with the following
CTL standards:
ASTM D1250-04
ASTM D1250-80
ASTM D1250-52 – Table 6
GPA TP-27

A CPL calculator is available, allowing CPL factors to be calculated online for control and audit
purposes:

BCP 10B Reference Manual – CSP03 v00 117


6.14 Summary

Leveraging the flexibility of SAPs Oil & Gas solution technical design, the Model-based QCI
from QuantityWare can operate as a “single solution”, or in parallel with existing SAP QCI
functionality, allowing customers to accurately and transparently represent business- and
regulatory-driven calculation requirements in a single, controlled environment, on demand.

BCP 10B Reference Manual – CSP03 v00 118


7 BCP Customizing Transactions

7.1 Introduction

With BCP 10B, QuantityWare delivers a complete industry configuration template. This template
is delivered as a BC set (SAP ECC 6.00) or as a separate customizing transport (SAP ERP
4.72). QuantityWare strongly recommends installation of this template into exactly one client
(045) in one development system, from where the implementation project team selects the
relevant configuration (via SAP customizing transports) based on customer specific
requirements.

Within this chapter, we provide an overview of BCP customizing transaction access, as well as
some basic documentation on the configuration options provided via customizing options.

7.2 QuantityWare Customizing Transactions

QuantityWare delivers customizing data for BCP 10B that are maintainable via transactions. All
relevant customizing transactions for bulk quantity conversion configuration can be accessed
via the QuantityWare PMC (transaction /QTYW/COCKPIT):

BCP 10B Reference Manual – CSP03 v00 119


Under menu path GOTO you can navigate to the QuantityWare IMG, as well as to the complete
SAP IMG. For fast access, the following transactions can be called directly from the menu:
Conversion Groups - /n/QTYW/MQCI
Reading Groups - /n/QTYW/READINGGROUP
Range Groups - /n/QTYW/RANGES
Tolerance Groups - /n/QTYW/TOLERANCE
UoM Groups - /n/QTYW/UOMGR
UoM Rounding - /n/QTYW/UOM_ROUND
UoM Densities - /n/QTYW/API_RDW
Mass & Weight Dimension - /n/QTYW/DIM
ASTM Table 1 Factors - n/QTYW/ASTM_TAB_1
ASTM Table 1 Mapping -n/QTYW/SAP_ASTM
QCI Parameters - /n/QTYW/PARAMETERS

In order to provide a structured implementation guide (IMG) for all relevant customizing
transactions for bulk quantity conversions, these transactions are collected within a single
QuantityWare customizing IMG structure (Transaction SIMGH) named “QuantityWare
Solutions”:

BCP 10B Reference Manual – CSP03 v00 120


You can access the QuantityWare IMG via the PMC - Menu: Goto – QuantityWare IMG directly.
Here you expand the QuantityWare BCP node:

BCP 10B Reference Manual – CSP03 v00 121


Here is a high-level overview of the node contents:
Basic Settings & Constants:
“Check Units of Measurement (UoM)”, accesses standard SAP customizing transaction
CUNI where all UoM settings are defined
“Maintain basic QCI parameters”, display all technical parameters that are defined for
the SAP QCI and QuantityWare MQCI. For BCP 10B CSP02, 304 entries should be
defined in your template client. All 304 delivered entries should be distributed to all clients
where BCP 10B is used
“Define MQCI UoM rounding”, define the rounding settings for MQCI conversion groups
for each UoM
“Define UoM for API gravity and relative density”, declare the UoM for API gravity and
relative density. QuantityWare delivers the UoM API and RDW as UoM for API gravity and
relative density.
“Configure SAP QCI message handling”, define SAP QCI message level (Error,
Warning, Information or no appearance), not relevant for MQCI conversion groups
“Select quantity conversion default table for business transactions”, define which
SAP default database table is utilized for default determination during goods movement
transactions
“Define conversion mode for business transactions”, define appearance of SAP QCI
dialog box in classic SAP transactions

Quantity Conversion Settings


“Maintain reading group data”, display all reading groups that are defined in the logon
client. QuantityWare delivers a complete set of reading groups (Q***) which are assigned
to the QuantityWare conversion groups (Q***). Here, you can also define your own
reading groups in the customer name space (X,Y,Z)
“Define ranges for reading group parameters”, define error and warning range limits
for densities, temperatures and all possible parameters required for the conversion
process
“Conversion group maintenance (liquid & solid products, including LPG/NGL)”,
access all conversion group definitions and QuantityWare MQCI specific settings, e.g.
ASTM Table 1 activation or special rounding settings for MQCI model functions
“Maintain tolerance group settings”, maintain tolerance group data. For specified units
of measure (UoM), a tolerance group defines which deviations for quantity data postings
are acceptable per UoM. Deviations are defined as follows: Compare the calculated BCP
result with quantity values passed by user changes or via interfaces from external systems
BCP 10B Reference Manual – CSP03 v00 122
“Assign dimension ID (DIMID) for mass and weight in air”, allows assignment of the
SAP DIMID for a conversion group which contains the UoM for mass and the DIMID which
contains the UoM for weight, which need to be separated via their DIMID for a consistent
quantity conversion

Product & Standard Specific Settings


“Define ASTM Table 1 conversion factors for weight, mass and volume units”,
display the ASTM Table 1 conversion factors between mass, weight and volume UoM or
add definitions. QuantityWare delivers the ASTM Table 1 conversion factors for QW
DIMID WEIGHTA (weight in air) and SAP DIMID VOLUME. If you decide to utilize SAP
DIMID MASS as weight in air dimension, you have to maintain the MASS UoM here as
well or map the mass UoM to the existing weight UoM (e.g. LB to LBA, KG to KGA …)
“Define mapping between SAP UoM and ASTM UoM”, display or change mapping data
for ASTM Table 1 conversion factors between mass, weight and volume UoM
“Maintain physical property data for natural gas, LNG & LPG components”, display
or change physical property data for LPG calculations. This activity is only relevant for
LPG products for which you require the chemical analysis data as the basis for all
calculations
“Maintain additional physical property data settings”, define UoM rounding and
calculation logic for physical property data
“Maintain ISO 6578:1991 constants for LPG density calculation”, display or change
standard constants for LPG density calculation based on chemical analysis data. This
activity is only relevant for LPG products for which you require the chemical analysis data
as the basis for all calculations
“Define basic natural gas, LNG & LPG physical constants & values”, define the molar
gas constant for LPG vapor space calculations for a conversion group
“Define conversion group constants for DIN 51757 Y method”, maintain calculation
parameters for a conversion group that is based on the DIN 51757 Y method
“UoM conversion factors for compliance checks”, define measurement standards
based conversion factors for UoM

BCP 10B Reference Manual – CSP03 v00 123


Petroleum Measurement Cockpit Settings
“Define UoM sorting during quantity calculation”, for each SAP UoM Group maintain
a sorting sequence for all possible UoM. This sequence is taken into account if the
QuantityWare MQCI is utilized; the quantity values are then calculated in that order and
passed in that order to the SAP applications. This sequencing is NOT taken into account
when documents are displayed
“Define access for selected Petroleum Measurement Cockpit functions”, determine if
critical functions are available in PMC

With QuantityWare BCP 10B, all business-user-relevant customizing template entries are also
delivered in languages French (FR), Spanish (ES) and Portuguese (PT). QuantityWare
recommends that you perform your configuration work using the PMC in logon language
English (EN). As a last step, you should check and possibly enhance the configuration data in
your required language. With BCP 10B, you can also launch the PMC in all other logon
languages. While the Cockpit user interface (UI) is available in English (EN) only, the
customizing data is delivered in French (FR), Spanish (ES) and Portuguese (PT) as well. In
detail, the following configuration data is translated within the BCP 10B template:
All UoM definitions (dimensions, ISO/UNECE codes, UoM short and long texts)
All conversion group definitions (header texts)
All reading group definitions (header texts and individual parameter descriptions)
All range group definitions (header texts and individual parameter descriptions)
All UoM group definitions (header texts)

7.3 Summary

Via a comprehensive IMG structure, the complex and detailed customizing required for modern
quantity conversions can be accessed and governed in an efficient and transparent manner.

BCP 10B Reference Manual – CSP03 v00 124


8 BCP Web Services

8.1 Introduction

Web service enablement of ERP-based software solutions is an important technological key


development allowing existing large scale ERP installations to be leveraged and integrated into
dynamic and flexible web service landscapes. This results in integrated common procedures
and greater return on investment (ROI) for the ERP investment and software solutions
concerned.
The realization of web service based business processes is still being heavily debated within
various industries. Even although SAP has extensively service-enabled its ERP solution,
standardized quantity conversion web services are not available.
Quantity conversions are required along the complete oil & gas supply chain. While the
implementation of a standards based quantity conversion is a highly complex task, the provision
of a quantity conversion service with understandable interface operations is considerably easier;
QuantityWare solutions can provide a “plain calculation” service without needing to store any
data in a database.
With BCP, QuantityWare delivers the first set of two web service enabled function groups, which
both provide three quantity conversion operations for a wide range of oil bulk products.
Based on these web service enabled functions, BCP customers can readily extend their high
quality BCP quantity conversion implementations from their SAP Oil & Gas ERP backend into
the web world, either restricting access to locations within company boundaries or, license
permitting, even granting access to quantity conversions to external bodies.

BCP 10B Reference Manual – CSP03 v00 125


8.2 Installation components

The main part of the web service enablement installation is delivered within software package
/QTYW/QCI for BCP 10B:

As displayed above, two Service Definitions are delivered:


/QTYW/MQCI_QUANTITY_CONVERSION
/QTYW/MQCI_QTY_CONV_PRODUCTS.

BCP 10B Reference Manual – CSP03 v00 126


Each service definition consists of one interface which provides three calculation operations:

/QTYW/MQCI_QUANTITY_CONVERSION calculation requires knowledge of a


conversion group
/QTYW/MQCI_QTY_CONV_PRODUCTS requires knowledge of the product and plant
for which a quantity conversion operation is requested

A more detailed description of the calculations including the standard compliance methodology
chosen by QuantityWare is described in section 8.3 Web services - Interface documentation.

BCP 10B Reference Manual – CSP03 v00 127


Both web services definitions are readily available allowing corresponding web services for the
SOA runtime to be defined and released using the standard SAP transaction WSCONFIG (or
successor transactions / technology communicated by SAP). This task is typically managed by
Web service administrators:

8.3 Web services - Interface documentation

8.3.1.1 Standard compliance methodology – syntax


With respect to the syntactical standardization of web service interfaces, QuantityWare service
definitions rely on the state-of-the-art SAP standards methodology.

8.3.1.2 Standard compliance methodology – semantics


Since BCP 10B is targeted towards the oil & gas and allied industries, the semantics of the
interface operations are based on oil & gas industry terminology as defined in various API
(American Petroleum Institute) standards, the main reference being the API Manual of
Petroleum Measurement “API MPMS” terminology.

BCP 10B Reference Manual – CSP03 v00 128


Quantity conversion operations require quantity values handling.
Examples of quantity values are:
Volume 120,090 L
Mass 320,001 lb
Weight 320,001 lb

A quantity value thus consists of a specific quantity (e.g. volume, mass, weight) description (ID),
a numerical factor and a unit of measure. Two different quantities can thus use the same set of
units of measure, e.g. weight and mass utilize the same units of measure. In order to
differentiate between mass and weight, a quantity ID must be communicated with each
numerical factor and unit of measure.
The technical implementation of such calculations within SAP ERP systems have led to the
following technical representation of quantity values within the service definition:

1) SAP ERP systems do not support the assignment of different quantities to one set of
units of measure. Thus, units of measure for weight are defined with one set of
commercial keys, the units of measure for mass with another differing set of commercial
keys. LB is e.g. the customized commercial key for pound (mass) and LBA the
customized commercial key for pound (weight). In this way, the commercial keys carry
the information for which quantity the quantity value is expressed.

2) SAP ERP systems support unit of measure definitions, where a temperature and/or
pressure value is assigned to a unit of measure (an industry requirement). Units such
as UG6 (gallon at 60 °F) and L15 (liter at 15 °C) are available. This definition
unfortunately violates standardization practices defined in ISO 31 “Quantities and
Units”; it is also not fully supported by the UNECE recommendation 20, which defines
standardized unit of measure codes across industries for electronic trade. However, this
design has proven to be practical within the oil & gas industry and describes a de facto
industry standard developed by SAP and industry experts.

3) State-of-the-art industry standards by the API define software implementation


guidelines for quantity conversions which need to be based on 64bit floating point
accuracy.

BCP 10B Reference Manual – CSP03 v00 129


Based on the above noted circumstances, quantity values for the QuantityWare web service
interface definitions require numeric floating point representation.

For unit of measure representation, we simply utilize the SAP commercial keys, in order to
avoid complex mapping of unit codes (and there are no UNECE recommendation codes for
standardized units such as L15, UG6 etc.).

If BCP 10B customers require different technical definitions for quantity values,
QuantityWare can provide new service definitions based on customer
specifications, which would then include mapping logic, if required.

8.3.1.3 Interface operations


Both service definitions provide three functionally identical interface operations. The only
differing detail of operation is that:
Conversion group based calculation operations require the conversion group (which
defines the calculation) as input parameter
Product based calculation operations require the product (SAP material number) and plant
(SAP plant) as input parameters. Internally, the conversion group is then derived from the
product and plant information.

The three interface operations are:


Quantity conversion based on a linear model calculation (SerCalcLinear)
Quantity conversion for special application products (SerCalcSpecApl)
Quantity conversion for crude oil & products – minerals (SerCalcMinerals)

These three operations have been designed so that the input parameters are clearly defined for
each calculation type.

Each operation can be implemented to run in two different modes:


a) Quantity conversion calculation – A set of data is sent, and the operation returns a
quantity value for a unit of measure which you pass as input data
b) Quantity check calculation - A set of input data is sent with an indicator defining the
requirement for a check calculation. The operation returns an indicator showing if the
quantity value sent to be checked is exact, or if it deviates beyond defined warning or
error limits.
BCP 10B Reference Manual – CSP03 v00 130
8.3.1.4 Calculation description – all calculations
All calculation operations are based on the same principle:
An observed product quantity and unit of measure is known. The density of the
product has been determined in a laboratory. The product quantity is required in
another unit of measure
Example:
A shipment of 100,000 gallons of diesel is discharged at an observed temperature of 80 °F, the
product is specified with a density (laboratory test result) at 70 °F of 10 °API. What is the
volume at 60 °F?
Solution:
Use the interface operation for SerCalcMinerals (Conversion group based or
product/plant based). Send the test density and unit as well as the observed
temperature and unit
Specify the unit for the target volume at 60 °F, (which is the SAP UoM “UG6”)
Optionally, specify the units of measure for all calculated density values (in air and in
vacuo) which are also returned
For the linear model operation, the density in air is typically known; the other operations
require a density in vacuo
The special applications operation SerCalcSpecApl requires a thermal expansion factor
@ 60 °F in addition to the base density and observed quantity and temperature.
If the target quantity deviation indicator is set to ‘X’, the operation compares the target
quantity value passed with the calculated result
All operations return all messages within a message table

8.4 Summary

Through the leverage of Web Services, QuantityWare BCS can become the central reference
calculations engine for an entire landscape of applications, without being limited to the
functional and implementation boundaries of the SAP ERP solution.

BCP 10B Reference Manual – CSP03 v00 131


9 MQCI – Customer Specific Extensions

9.1 Introduction

With BCP 10B, QuantityWare delivers a complete set of pre-configured conversion groups for
all relevant product groups. These pre-configured conversion groups can be divided into two
classes of conversion groups: “SAP QCI” conversion groups and “MQCI” conversion groups.
Both types of conversion groups utilize the SAP QCI interface to business processes, i.e. from a
business process point-of-view, seamless integration into all processes is guaranteed for both
classes of conversion groups. For more information, read the SAP QCI in a nutshell document.

So, what is the difference between an MQCI and SAP QCI conversion group?

For both classes, pre-configured conversion groups for all relevant CTPL (VCF) measurement
standards are delivered as part of the BCP 10B BC set.

All SAP QCI conversion groups utilize the same “hard-coded” SAP QCI calculation
model, which can be extended and modified via SAP QCI BAdIs (Business Add Ins).
This SAP QCI calculation model is based on DIN 51650 without intermediate rounding,
supports the DIN 51757 mass-to-weight standard (air buoyancy concept) and relies on
the SI UoM conversion factor standard. In order to extend this model, various BAdI
methods are provided within the SAP QCI calculation model, by which customers can
change the standard SAP QCI calculation logic by implementing their own ABAP code

The pre-configured MQCI conversion groups provide not only support for all relevant
CTPL (VCF) measurement standards, but also for all known calculation models, as well
as support of all mass-to-weight conversion standards and all UoM conversion
standards. Each MQCI conversion group carries its own ABAP code within a sequence
of ABAP functions that are assigned to the conversion group in customizing

QuantityWare BCP customers who are already running their ERP system with the classic SAP
QCI model and who have already implemented their own customer specific BAdI
implementations should analyze their BAdI implementations within their QuantityWare
implementation project in order to make the following decision:

BCP 10B Reference Manual – CSP03 v00 132


Continue usage of SAP QCI conversion groups delivered with BCP 10B, leveraging the
existing BAdI implementations, OR

Switch to BCP 10B MQCI conversion groups

A simple switch to BCP 10B MQCI conversion groups may be possible if an MQCI conversion
group is available which covers the functionality implemented within the existing SAP QCI BAdI
logic. If this is not the case, but a customer still wants to switch to an MQCI conversion group, it
is the task of the customer implementation team to map the customer-specific BAdI logic to
customer-specific Z* ABAP functions, which can be “plugged into” the MQCI function module
sequence.

Customers may send their existing BAdI implementation code and the related
documentation to QuantityWare support staff at support@quantityware.com. Upon
receiving this information, QuantityWare support staff will perform a quick feasibility
analysis to determine if a migration is possible and recommended
In addition, this documentation provides a technical description of how to design the
interfaces of customer specific Z* ABAP functions which are then required for such a
migration

Beyond the technical documentation concerning general


recommendations to the development of such functions, QuantityWare
does not provide any detailed implementation support for this task.

BCP 10B Reference Manual – CSP03 v00 133


9.2 MQCI – Customer Specific Extensions

As described previously, an MQCI conversion group carries its own calculation logic defined in
a sequence of ABAP function modules which are assigned to the conversion group.
In general, a business process application calls the central SAP QCI function
OIB_QCI_QUANTITY_CONTROL, which is defined with the following interface:
*"----------------------------------------------------------------------
*"*"Global Interface:
*" TABLES
*" T_QT2TAB STRUCTURE OIB_A05
*" T_PARAM STRUCTURE OIB_A10
*" T_RETURN STRUCTURE BAPIRET2 OPTIONAL
*" EXCEPTIONS
*" CALCULATION_FAILURE
*" CALCULATION_OVERFLOW
*" TRANS_UOM_NOT_FOUND
*" UNIT_CONVERSION_ERROR
*" WINDOW_CANCELLED
*" INCONSISTENT_DATA
*" OUT_OF_RANGE
*" INCONSISTENT_CUSTOMIZING
*"----------------------------------------------------------------------

Table T_QT2TAB contains a table of UoM, for which the quantity values shall be
calculated.
Table T_PARAM contains the source quantity and UoM, as well as all relevant
calculation parameters that are required to calculate the correct UoM quantity values
defined in Table T_QT2TAB.
Table T_RETURN collects all messages that are raised during a calculation.

The calculation process is a “1 : n” type calculation, i.e. using the parameters passed via table
T_PARAM, the calculation model is executed n times in a loop over all UoM to calculate each
UoM target value separately.
As stated previously, SAP QCI conversion group calculations processed via the “hard-coded”
SAP QCI logic including customer specific BAdI implementations. MQCI conversion groups run
through the calculation logic defined in the function module sequence of the conversion group.
This is illustrated in the following example for BCP 10B template conversion group Q210:

BCP 10B Reference Manual – CSP03 v00 134


Four function module types (FM Call type) are available:
9: These functions are executed before the actual calculation process. Here, input data
checks (e.g. parameter range checks) are executed
7: A function of this type is executed exactly ONCE within the loop over all UoM for
which a quantity value needs to be calculated, e.g. if the test density needs to be
adjusted for a hydrometer reading
5: A function of this type is executed for all UoM calculations within the loop over all UoM
C: A function of this type is executed after the calculation of all UoM (and result
parameters) is complete

Customers may extend or change the calculation logic as defined in the example above at their
own risk. Here is an example for all possible four function module types:

BCP 10B Reference Manual – CSP03 v00 135


The interface of these four functions including the usage of data service functions is
documented in the following sections:

BCP 10B Reference Manual – CSP03 v00 136


9.2.1 Z_EXAMPLE_FMTYP_9
FUNCTION Z_EXAMPLE_FMTYP_9.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" TABLES
*" T_OIB_A10 STRUCTURE OIB_A10
*" EXCEPTIONS
*" CALCULATION_FAILURE
*"----------------------------------------------------------------------
********************** DISCLAIMER ************************************
* This Example Software is provided on an "AS IS" basis with no warranties.
* Licensee agreed to test this software carefully before using in
* systems that contains productive data.
* QuantityWare GmbH can not guarantee the correctness of the formulas
* used in this code nor of the correctness of the results.
* In no event will QuantityWare GmbH be liable for any loss of profits,
* loss of use, direct, incidental, consequential, or special damages,
* regardless of whether QuantityWare GmbH has advance notice of the
* possibility of such damages.
************************************************************************

* EXAMPLE FUNCTION FOR FMTYP 9 - Check logic on MQCI input parameters

DATA:
* Input data incl. example for conversion group:
ls_input TYPE /qtyw/mqci_bcp_input,
ls_oib01 TYPE oib01,
lf_umrsl TYPE oib01-umrsl.
* NOTE: OTHER SERVICE FUNCTIONS CAN BE FOUND IN FUNCTION GROUP
/QTYW/MQCI_DATA_SERVICES

CALL FUNCTION '/QTYW/MV_BCP_INPUT_FROM_ITAB'


EXPORTING
i_all_fields_needed = ' '
IMPORTING
e_structure = ls_input
TABLES
t_oib_a10 = t_oib_a10
EXCEPTIONS
parameter_not_in_itab = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING calculation_failure.
ENDIF.

CALL FUNCTION '/QTYW/MOVE_ITAB_TO_VALUE'


EXPORTING
i_fieldname = 'UMRSL'
IMPORTING
e_target_field = lf_umrsl
TABLES
t_oib_a10 = t_oib_a10
EXCEPTIONS
inconsistent_customizing = 1
parameter_not_in_itab = 2

BCP 10B Reference Manual – CSP03 v00 137


OTHERS = 3.

IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING calculation_failure.
ENDIF.

CALL FUNCTION '/QTYW/GET_OIB01'


EXPORTING
i_umrsl = lf_umrsl
CHANGING
ie_oib01 = ls_oib01
EXCEPTIONS
umrsl_not_exists = 1
OTHERS = 2.

IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING calculation_failure.
ENDIF.

* PLACE YOUR CUSTOMER SPECIFIC CHECK LOGIC INCLUDING MESSAGES HERE:

* END YOUR CUSTOMER SPECIFIC CALCULATION LOGIC INCLUDING MESSAGES HERE:

*/=====================================================================

ENDFUNCTION.

BCP 10B Reference Manual – CSP03 v00 138


9.2.2 Z_EXAMPLE_FMTYP_7_5
FUNCTION Z_EXAMPLE_FMTYP_7_5.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" TABLES
*" T_OIB_A10 STRUCTURE OIB_A10
*" EXCEPTIONS
*" CALCULATION_FAILURE
*"----------------------------------------------------------------------
********************** DISCLAIMER ************************************
* This Example Software is provided on an "AS IS" basis with no warranties.
* Licensee agreed to test this software carefully before using in
* systems that contains productive data.
* QuantityWare GmbH can not guarantee the correctness of the formulas
* used in this code nor of the correctness of the results.
* In no event will QuantityWare GmbH be liable for any loss of profits,
* loss of use, direct, incidental, consequential, or special damages,
* regardless of whether QuantityWare GmbH has advance notice of the
* possibility of such damages.
************************************************************************

* EXAMPLE FUNCTION FOR FMTYP 7 & 5 - Calculations of parameters


* WITHIN UoM Loop

DATA:
* Input/Import data incl. example for conversion group:
ls_input TYPE /qtyw/mqci_bcp_input,
ls_oib01 TYPE oib01,
lf_umrsl TYPE oib01-umrsl,
ls_calc TYPE /qtyw/mqci_bcp_calc,

* Export/Calculation result data including customer specific fields

ls_calc_e TYPE /qtyw/mqci_bcp_calc.

* NOTE: OTHER SERVICE FUNCTIONS CAN BE FOUND IN FUNCTION GROUP


/QTYW/MQCI_DATA_SERVICES

CALL FUNCTION '/QTYW/MV_BCP_INPUT_FROM_ITAB'


EXPORTING
i_all_fields_needed = ' '
IMPORTING
e_structure = ls_input
TABLES
t_oib_a10 = t_oib_a10
EXCEPTIONS
parameter_not_in_itab = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING calculation_failure.
ENDIF.

BCP 10B Reference Manual – CSP03 v00 139


CALL FUNCTION '/QTYW/MV_BCP_CALC_FROM_ITAB'
EXPORTING
i_all_fields_needed = ' '
IMPORTING
e_structure = ls_calc
TABLES
t_oib_a10 = t_oib_a10
EXCEPTIONS
parameter_not_in_itab = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING calculation_failure.
ENDIF.

CALL FUNCTION '/QTYW/MOVE_ITAB_TO_VALUE'


EXPORTING
i_fieldname = 'UMRSL'
IMPORTING
e_target_field = lf_umrsl
TABLES
t_oib_a10 = t_oib_a10
EXCEPTIONS
inconsistent_customizing = 1
parameter_not_in_itab = 2
OTHERS = 3.

IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING calculation_failure.
ENDIF.

CALL FUNCTION '/QTYW/GET_OIB01'


EXPORTING
i_umrsl = lf_umrsl
CHANGING
ie_oib01 = ls_oib01
EXCEPTIONS
umrsl_not_exists = 1
OTHERS = 2.

IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING calculation_failure.
ENDIF.

*/ set the output values as default


ls_calc_e = ls_calc.

* PLACE YOUR CUSTOMER SPECIFIC CALCULATION INCLUDING MESSAGES HERE:

* END YOUR CUSTOMER SPECIFIC CALCULATION LOGIC INCLUDING MESSAGES HERE:


BCP 10B Reference Manual – CSP03 v00 140
*/=====================================================================
*/ Upload / pass back the values
*/=====================================================================

CALL FUNCTION '/QTYW/MV_BCP_CALC_TO_ITAB'


EXPORTING
i_structure = ls_calc_e
i_non_initial_only = ' '
TABLES
t_oib_a10 = t_oib_a10
EXCEPTIONS
transfer_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING calculation_failure.
ENDIF.

ENDFUNCTION.

BCP 10B Reference Manual – CSP03 v00 141


9.2.3 Z_EXAMPLE_FMTYP_7_5_DIM1_DIM2

FUNCTION z_example_fmtyp_7_5_dim1_dim2.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" TABLES
*" T_OIB_A10 STRUCTURE OIB_A10
*" EXCEPTIONS
*" CALCULATION_FAILURE
*"----------------------------------------------------------------------
********************** DISCLAIMER ************************************
* This Example Software is provided on an "AS IS" basis with no warranties.
* Licensee agreed to test this software carefully before using in
* systems that contains productive data.
* QuantityWare GmbH can not guarantee the correctness of the formulas
* used in this code nor of the correctness of the results.
* In no event will QuantityWare GmbH be liable for any loss of profits,
* loss of use, direct, incidental, consequential, or special damages,
* regardless of whether QuantityWare GmbH has advance notice of the
* possibility of such damages.
************************************************************************

* EXAMPLE FUNCTION FOR FMTYP 7 & 5 - Calculations of target UoM


* Quantity WITHIN UoM Loop

* NOTE - ONLY EXPERIENCED ABAP DEVELOPERS (BCP CERTIFIED) SHOULD


* Utilize such an approaach to build a customer specific model

*/ Standard Dimensions (T006D) relevant for model


DATA: BEGIN OF ls_dim,
umrsl TYPE oib01-umrsl,
mass TYPE t006-dimid, " mass dimension
volume TYPE t006-dimid, " volume dimension
energy TYPE t006-dimid, " energy dimension
wghta TYPE t006-dimid, " weight(air) dimension
grosvol TYPE t006-dimid, " gross volume dimension
dimless TYPE t006-dimid, " dimensionless dimension
END OF ls_dim.

* Input/Import data incl. example for conversion group:


DATA: ls_work TYPE /qtyw/mqci_bcp_work,
ls_qci_control TYPE /qtyw/qci_control,
ls_calc TYPE /qtyw/mqci_bcp_calc,
ls_control TYPE /qtyw/sap_qci_control,
ls_oib01 TYPE oib01,
lf_trdim TYPE t006d-dimid,
lf_tgdim TYPE t006d-dimid.

* NOTE: OTHER SERVICE FUNCTIONS CAN BE FOUND IN FUNCTION GROUP


/QTYW/MQCI_DATA_SERVICES

*/ Load work parameters


CALL FUNCTION '/QTYW/MV_QCI_CONTROL_FROM_ITAB'
EXPORTING
i_all_fields_needed = ' '
IMPORTING
BCP 10B Reference Manual – CSP03 v00 142
e_structure = ls_qci_control
TABLES
t_oib_a10 = t_oib_a10
EXCEPTIONS
parameter_not_in_itab = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING calculation_failure.
ENDIF.

CALL FUNCTION '/QTYW/MV_BCP_CALC_FROM_ITAB'


EXPORTING
i_all_fields_needed = ' '
IMPORTING
e_structure = ls_calc
TABLES
t_oib_a10 = t_oib_a10
EXCEPTIONS
parameter_not_in_itab = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING calculation_failure.
ENDIF.

CALL FUNCTION '/QTYW/MV_OIB_A11_FROM_ITAB'


EXPORTING
i_all_fields_needed = ' '
IMPORTING
e_structure = ls_control
TABLES
t_oib_a10 = t_oib_a10
EXCEPTIONS
parameter_not_in_itab = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING calculation_failure.
ENDIF.

MOVE-CORRESPONDING ls_calc TO ls_work. "#EC ENHOK


MOVE-CORRESPONDING ls_qci_control TO ls_work. "#EC ENHOK
MOVE-CORRESPONDING ls_control TO ls_work. "#EC ENHOK

*/ Are we in display mode: then exit.


IF ls_work-wksta EQ '4'.
EXIT.
ENDIF.

*/ load all relevant dimension ID:


CALL FUNCTION '/QTYW/GET_ALL_DIMID'
EXPORTING
if_umrsl = ls_work-umrsl
IMPORTING

BCP 10B Reference Manual – CSP03 v00 143


ef_umrsl = ls_dim-umrsl
ef_dimid_mass = ls_dim-mass
ef_dimid_weight_air = ls_dim-wghta
ef_dimid_volume = ls_dim-volume
ef_dimid_energy = ls_dim-energy
ef_dimid_grosvol = ls_dim-grosvol
ef_dimid_dimless = ls_dim-dimless
EXCEPTIONS
calculation_failure = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING calculation_failure.
ENDIF.

* Check target UoM


IF ls_work-tguom IS INITIAL.
MESSAGE e010(/qtyw/qci) RAISING calculation_failure.
ENDIF.

*/ determine TRDIM and TGDIM


CALL FUNCTION 'DIMENSION_GET_FOR_UNIT'
EXPORTING
unit = ls_work-meinh
use_buffer_for_text = 'X'
IMPORTING
dimension = lf_trdim
EXCEPTIONS
unit_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING calculation_failure.
ENDIF.

CALL FUNCTION 'DIMENSION_GET_FOR_UNIT'


EXPORTING
unit = ls_work-tguom
use_buffer_for_text = 'X'
IMPORTING
dimension = lf_tgdim
EXCEPTIONS
unit_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING calculation_failure.
ENDIF.

* Interface data of SAP QCI Method DIM1 to DIM2:


* I_TRQTY -> ls_work-trqnt
* I_TRUOM -> ls_work-meinh
* I_TGUOM -> ls_work-tguom
* I_TRTMP -> ls_work-mttmp
* I_TRPRES -> ls_work-mtpres and ls_work-mtpreseh - NOT REQUIRED FOR LIQUIDS
* I_TGTMP -> ls_work-/QTYW/ALT_TEMP and ls_work-/QTYW/ALT_TEMP_U
* I_TGPRES -> NOT REQUIRED FOR LIQUIDS
BCP 10B Reference Manual – CSP03 v00 144
* I_TRDIM -> lf_trdim
* I_TGDIM -> lf_tgdim
* I_DIMMASS -> ls_dim-mass
* I_DIMMVOLUME -> ls_dim-volume
* I_DIMENERGY -> ls_dim-energy
* I_DIMDIMLESS -> ls_dim-dimless
* ITC_PARAM -> parameters in ls_work, additional data may have to
* be loaded via additional service functions: FUGR
/QTYW/MQCI_DATA_SERVICES
* C_TGQTY -> ls_work-tgqty
* CT_RETURN -> not required, message caught automatically, W and I
* messages should be raised at the end of the function!

* PLACE YOUR CUSTOMER SPECIFIC CALCULATION INCLUDING MESSAGES HERE


* HERE YOU CALCULATE THE QUANTITY FOR UOM ls_work-tguom

* END YOUR CUSTOMER SPECIFIC CALCULATION LOGIC INCLUDING MESSAGES HERE:

*/ load TGQTY back into interface


CALL FUNCTION '/QTYW/MOVE_FIELD_TO_ITAB'
EXPORTING
i_par_field_name = 'TGQTY'
i_par_unit_name = 'TGUOM'
i_par_field = ls_work-tgqty
i_par_unit = ls_work-tguom
TABLES
t_oib_a10 = t_oib_a10
EXCEPTIONS
parameter_name_not_valid = 1
unit_missing = 2
inconsistent_customizing = 3
OTHERS = 4.

IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING calculation_failure.
ENDIF.

ENDFUNCTION.

BCP 10B Reference Manual – CSP03 v00 145


9.2.4 Z_EXAMPLE_FMTYP_C
FUNCTION z_example_fmtyp_c.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" TABLES
*" T_OIB_A10 STRUCTURE OIB_A10
*" T_OIB_A05 STRUCTURE OIB_A05
*" T_RETURN STRUCTURE BAPIRET2
*" EXCEPTIONS
*" CALCULATION_FAILURE
*"----------------------------------------------------------------------
********************** DISCLAIMER ************************************
* This Example Software is provided on an "AS IS" basis with no warranties.
* Licensee agreed to test this software carefully before using in
* systems that contains productive data.
* QuantityWare GmbH can not guarantee the correctness of the formulas
* used in this code nor of the correctness of the results.
* In no event will QuantityWare GmbH be liable for any loss of profits,
* loss of use, direct, incidental, consequential, or special damages,
* regardless of whether QuantityWare GmbH has advance notice of the
* possibility of such damages.
************************************************************************

* EXAMPLE FUNCTION FOR FMTYP C - Own calculation after MQCI calculation

DATA:
* Input data incl. example for conversion group:
ls_input TYPE /qtyw/mqci_bcp_input,
ls_oib01 TYPE oib01,
lf_umrsl TYPE oib01-umrsl,
ls_quan TYPE oib_a05.
* NOTE: OTHER SERVICE FUNCTIONS CAN BE FOUND IN FUNCTION GROUP
/QTYW/MQCI_DATA_SERVICES

CALL FUNCTION '/QTYW/MV_BCP_INPUT_FROM_ITAB'


EXPORTING
i_all_fields_needed = ' '
IMPORTING
e_structure = ls_input
TABLES
t_oib_a10 = t_oib_a10
EXCEPTIONS
parameter_not_in_itab = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING calculation_failure.
ENDIF.

CALL FUNCTION '/QTYW/MOVE_ITAB_TO_VALUE'


EXPORTING
i_fieldname = 'UMRSL'
IMPORTING
e_target_field = lf_umrsl
TABLES
BCP 10B Reference Manual – CSP03 v00 146
t_oib_a10 = t_oib_a10
EXCEPTIONS
inconsistent_customizing = 1
parameter_not_in_itab = 2
OTHERS = 3.

IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING calculation_failure.
ENDIF.

CALL FUNCTION '/QTYW/GET_OIB01'


EXPORTING
i_umrsl = lf_umrsl
CHANGING
ie_oib01 = ls_oib01
EXCEPTIONS
umrsl_not_exists = 1
OTHERS = 2.

IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING calculation_failure.
ENDIF.

LOOP AT t_oib_a05 INTO ls_quan.


* PLACE YOUR CUSTOMER SPECIFIC CHECK AND CALCULATION LOGIC,
* MODIFY t_oib_a05 accordingly

ENDLOOP.

ENDFUNCTION.

BCP 10B Reference Manual – CSP03 v00 147


9.3 SAP QCI BAdI – Mapping to MQCI ABAP functions

In this chapter we provide a high level assignment as to how SAP QCI BAdI methods can be
mapped to customer specific MQCI ABAP functions.

9.3.1 SAP QCI BAdI OIB_QCI_CUST_PARAM

This BAdI provides one method:


MOVE_CUST_PAR_TO_RESULT

This method is called after all UoM values of table T_QT2TAB have been calculated. Its
purpose is to enable customer specific parameters to be passed back to the business
application, allowing the parameters to be stored in business documents.

MQCI conversion groups already provide all possible results defined in the supported
measurement standards, thus this BAdI method is classified as functionally obsolete for MQCI
conversion groups.

All BCP result parameters are defined in structure /QTYW/MQCI_BCP_RESULTS and can be
inspected via transaction SE12.

9.3.2 SAP QCI BAdI OIB_QCI_DET_DEF

This BAdI provides two methods:


CHANGE_DEFAULT_DET_DATA
DETERMINE_DEFAULT_DATA

Both methods are called before the SAP QCI function OIB_QCI_QUANTITY_CONTROL is
called; thus implementations for this BAdI are also relevant for MQCI conversion groups.

BCP 10B Reference Manual – CSP03 v00 148


9.3.3 SAP QCI BAdI OIB_QCI_DIM1_TO_DIM2

This BAdI provides two methods:


DIMENSION_TO_DIMENSION
AIR_BOUYANCY_OVERWRITE

MQCI conversion groups support all possible mass-to-weight standards, thus method
AIR_BOUYANCY_OVERWRITE is classified as functionally obsolete for MQCI conversion
groups.
MQCI conversion groups support more than 15 different calculation models, thus method
DIMENSION_TO_DIMENSION is classified as functionally obsolete for MQCI conversion
groups.

However, customers may have implemented their own code in this method in order to introduce
business specific logic to the calculation or to overwrite the standard SAP QCI calculation logic.
In that case, it is recommended to define a Z* ABAP function with function module types (FM
Call type) C. Within such a function, a loop at the UOM result table can be implemented and
customer specific logic may be included to either manipulate the calculation results, or in order
to perform additional calculations, which are not defined in the MQCI model function.

All such manipulations of business data must be documented and audited


carefully to prevent accidental or purposeful damage to the data processed.
Please refer to your existing audit documentation and plan such changes with
business and auditing departments.

Only very experienced ABAP developers (who are additionally BCP certified) should attempt to
utilize a Z* ABAP function with function module types (FM Call type) 5 (see Example function
z_example_fmtyp_7_5_dim1_dim2)

BCP 10B Reference Manual – CSP03 v00 149


9.3.4 SAP QCI BAdI OIB_QCI_EXTERNALFUNC

This BAdI provides four methods:


CALL_CUSTOMER_FUNCTION1
CALL_CUSTOMER_FUNCTION2
MOD_C_CODE_PARAMETER_B
MOD_C_CODE_PARAMETER_A

MQCI conversion groups support more than 25 different CTPL (VCF) standards, thus
implementations of this BAdI are classified as functionally obsolete for MQCI conversion
groups.
Customer specific BAdI Implementations may be replaced by customer specific Z* ABAP
function(s) with function module types (FM Call type) 5 or 7.

9.3.5 SAP QCI BAdI OIB_QCI_ROUND_QTY

This BAdI provides five methods:


ROUND_QTY
ROUND_AROMATICS_PARAM
ROUND_INTERMEDIATE
CHECK_QCI_INPUT
CHECK_TOLERANCE

MQCI conversion groups support UoM rounding via customizing, thus method ROUND_QTY is
classified as functionally obsolete for MQCI conversion groups.
MQCI conversion groups support all standards for industrial aromatic hydrocarbons and
intermediate model rounding via customizing, thus methods ROUND_AROMATICS_PARAM
and ROUND_INTERMEDIATE are classified as functionally obsolete for MQCI conversion
groups.
Customer specific BAdI Implementations for method CHECK_TOLERANCE may be replaced
by customer specific Z* ABAP function with function module types (FM Call type) C.
Customer specific BAdI Implementations for method CHECK_QCI_INPUT may be replaced by
customer specific Z* ABAP function with function module types (FM Call type) 9.

BCP 10B Reference Manual – CSP03 v00 150


9.3.6 SAP QCI BAdI OIB_QCI_NATURAL_GAS

This BAdI is only relevant for natural gas conversions and is therefore not relevant for BCP 10B
conversion groups.

9.3.7 SAP QCI BAdI OIB_QCI_RAWMATERIALS

MQCI conversion groups for raw materials are provided within the template BC set, thus this
BAdI is classified as functionally obsolete for MQCI conversion groups.

IMPORTANT
As a result of the implementation of “Z*” function modules or the usage of SAP
QCI BAdIs, customers will no longer be able to use the QuantityWare advanced
support tools as described in Note 000052 in order to streamline any
calculation-based support requests. We recommend most emphatically that
customers implementing such additional logic create fully documented and
audited test scenarios via the QuantityWare Petroleum Measurement Cockpit
as modifications of calculation data can pose significant business risks.

BCP 10B Reference Manual – CSP03 v00 151


10 Measurement Cockpit - Security

With BCS CSP03, additional authority profiles, single roles and example composite roles for
PMC and GMC access and usage (including SAP QCI legacy RFC and “call system” test
reports) are defined, implemented and shipped.

13 technical authorization objects are the basis for all single roles:

BCP 10B Reference Manual – CSP03 v00 152


15 single roles are available:

These single roles encompass all Petroleum and Gas Measurement capabilities for which a
user may be granted authority.

No additional QuantityWare authority check is performed during actual quantity


conversion calculations in business transactions - all QuantityWare
implementations are ABAP-based calculations which are already secured via
the standard SAP-suggested security concepts implemented in these
transactions.

BCP 10B Reference Manual – CSP03 v00 153


4 composite roles are delivered as examples:

All roles are documented and accessible via standard SAP role maintenance. Role
Y_QTYW_CR_ALL must be assigned to the user ID which is used to run the QuantityWare
implementation and installation test in client 045.

We recommend all existing customers to analyse and replace their current


QuantityWare authorisations with the new role-based authorisations.

BCP 10B Reference Manual – CSP03 v00 154


11 Protection of Intellectual Property

With QuantityWare BCS 10B, QuantityWare delivers a powerful and unique quantity conversion
solution to the oil & gas industries. Technically, the solution is delivered as a certified SAP Add-
On to the Oil & Gas solution. In order to enhance customer security and protect QuantityWare
GmbH’s intellectual property (IP), four protection measures have been defined as an integral
part of the technical ABAP solution:
Every BCS customer requires a valid software license key in order to execute quantity
conversions. The license key is checked each time a quantity conversion is triggered
The ABAP source code that implements the license check logic, the QuantityWare
MQCI and all central ABAP implementations of CTPL / Compression Factor standards
are hidden using standard SAP methods
The ABAP source code that implements the license check logic, the QuantityWare
MQCI and all central ABAP implementations of CTPL / CTPG standards are technically
defined – again using standard SAP methods – to be SAP system programs and thus
can e.g. NOT be debugged
All code comments marked internally with */ and empty lines are removed from all BCS
ABAP sources

Measurement standards can be divided into four major classes:


Standards defining the conversion factors between units of measure “of the same kind”
Standards defining the corrections of the effect of temperature and pressure onto the
liquid or gas (CTPL / CTPG)
Standards defining the mass to weight conversions
Standards defining the quantity conversion calculation model

Since CTPL / CTPG standards are the most complex to implement and on the other hand, once
correctly implemented, do not require any code changes, all such implementations are hidden
and cannot be debugged in customer systems. The functional accuracy and correctness of such
implementations is validated via dedicated implementation test programs (based on
implementation tests defined in the related measurement standards) and list printing reports
(accessible via the PMC or GMC) and can be reproduced and tested by each customer without
having to investigate the ABAP source code. Software license installation is documented in the
BCS 10B Technical Installation Guide. Here we document which ABAP sources are hidden and

BCP 10B Reference Manual – CSP03 v00 155


set to be SAP system programs with BCS CSP03. As a background, BCS 10B is delivered in
four software packages:
/QTYW/QCI – contains the MQCI Interface function group, MQCI technical service
function groups, Web Service function groups and all MQCI model implementations
/QTYW/BCC – contains common (Gas & Petroleum) BCS tools and measurement
standard implementations
/QTYW/BCP – contains BCP tools and measurement standard implementations
/QTYW/BCG – contains BCG tools and measurement standard implementations

The following table contains the list of function groups and individual ABAP sources which are
hidden before delivery of BCS CSP03 and are set to be a SAP system program.
Number of
Objects
Package Function Group (Functions Comments
&
Includes)
/QTYW/QCI /QTYW/MQCI 26 QuantityWare MQCI implementation

/QTYW/BCC /QTYW/API_MPMS_11_2_1 5 CPL Implementation


/QTYW/BCC /QTYW/ISONG 20 ISO natural gas CTPG implementations
/QTYW/BCC /QTYW/ISO_6578_LPG 11 LPG CTP implementations – ISO 6578
/QTYW/BCC /QTYW/STANDARDS_COM 22 LPG CTP & CTG implementations
/QTYW/BCC /QTYW/ASTM_TABLES_33_34 3 LPG ASTM Table 33 & 34 implementation

/QTYW/BCP /QTYW/D1250_04 115 ASTM D1250-04 CTPL implementation


/QTYW/BCP /QTYW/D1250_52 23 South America CTL implementation 1952
/QTYW/BCP /QTYW/D1250_52_TABLES 09 ASTM D1250-52 CTL implementations
/QTYW/BCP /QTYW/SAPLD1250_52_TABLES_2 3 ASTM D1250-52 CTL implementations
ASTM D1250-80 CTL implementations –
/QTYW/BCP /QTYW/D1250_80_F 39
FORTRAN – NOT RELEASED to customers
ASTM D1250-80 CTL implementations – API
/QTYW/BCP /QTYW/D1250_80_Q 53
C emulation– RELEASED to customers
/QTYW/BCP /QTYW/D1555_04 09 ASTM D1555-04/08/09 CTL implementation
/QTYW/BCP /QTYW/D4311_04 7 ASTM D4311-04 CTL implementation
/QTYW/BCP /QTYW/D4311_09 5 ASTM D4311-09 CTL implementation
/QTYW/BCP /QTYW/CNP_6_70 4 C.N.P. 6 – 70 Table 2 CTL implementation
/QTYW/BCP /QTYW/D1550_BUTADIENE 10 ASTM D1555-09 CTL implementation

/QTYW/BCP /QTYW/D2962_07 3 ASTM D2962-07 CTL implementation


/QTYW/BCP /QTYW/D633_97 5 ASTM D633-97 CTL implementation

BCP 10B Reference Manual – CSP03 v00 156


/QTYW/BCP /QTYW/DIN51650 27 DIN 51757 Y method CTL implementation
/QTYW/BCP /QTYW/DIN51757 6 DIN 51757 X method CTL implementation
/QTYW/BCP /QTYW/EN14214_FAME 4 BS EN 14214 CTL implementation
/QTYW/BCP /QTYW/NBR5992_08 5 ABNT NBR 5992-08 CTL implementation
/QTYW/BCP /QTYW/NBR5992_EXT 6 ABNT NBR 5992-80 CTL implementation
/QTYW/BCP /QTYW/STANDARDS 11 Linear model CTL implementation
/QTYW/BCP /QTYW/Z13M 11 Table 13 Z south America implementation

/QTYW/BCG /QTYW/AGA83 32 AGA Report No. 3 & 8 CTPG implementation


/QTYW/BCG /QTYW/CONNECTORS 12 SAP QCI connectors for natural gas
/QTYW/BCG /QTYW/GOST_30319_1 12 GOST 30319 CTPG implementations
/QTYW/BCG /QTYW/GOST_30319_2 7 GOST 30319 CTPG implementations
/QTYW/BCG /QTYW/GOST_30319_2_VNIC 6 GOST 30319 CTPG implementations - VNIC
/QTYW/BCG /QTYW/ISO_LNG 13 ISO 6578 LNG CTL implementation
/QTYW/BCG /QTYW/SGERG_88 8 GERG 88 CTPG implementation
/QTYW/BCG /QTYW/LLNG_CONVERSION 3 SAP QCI LNG connector

SINGLE
/QTYW/IMPLEMENTATION_TEST BCS implementation test report (client 045)
SOURCE
SINGLE
/QTYW/INSTALL_LICENSE BCS licence installation (via cockpits)
SOURCE
SINGLE
/QTYW/COCKPITF01 Program NOT set as system program
SOURCE
SINGLE
/QTYW/COCKPITF01_GAS Program NOT set as system program
SOURCE

539
TOTAL SOURCES
HIDDEN

If required, it is still possible to debug SAP QCI or MQCI calculation model


steps for any conversion group in customer systems, since the CTPL
implementation results (typically calculating a base density or CTPL factor) can
be accepted as being correct during debugging and can be validated
independently (using the validation procedures described above which are
available in the PMC and GMC)

BCP 10B Reference Manual – CSP03 v00 157


12 Abbreviations

In this section we provide a list of abbreviations used in the BCP 10B documentation
documents. For detailed explanations of the terms, refer to the individual BCP 10B
documentation documents:

ABNT Associação Brasileira de Normas Técnicas (Brazilian National Standards Organization)


AGA American Gas Association
API (1) American Petroleum Institute
API (2) SAP commercial key for API gravity unit
ASTM ASTM International (originally, “American Society for Testing and Materials”)

BAdI Business Add In (SAP term)


BCG Bulk Calculations - Gas
BCP Bulk Calculations – Petroleum
BCU Base Conversion Unit
BTI BaTch Input (SAP term)

CPL Correction factor for the effect of Pressure on the Liquid


CSP Component Support Package
CTPL Correction factor for the effects of Temperature and Pressure on the Liquid
CTL Correction factor for the effect of Temperature on the Liquid

DIN Deutsches Institut für Normung e.V.

GERG Groupe Européen de Recherches Gazières


GMC Gas Measurement Cockpit
GOST Gossudarstwenny Standard – Russian standard organization
GPA Gas Processors Association
GRC Governance, Risk management & Control

HPM Hydrocarbon Product Management (SAP term)

LNG Liquefied Natural Gas


LPG Liquefied Petroleum Gas

BCP 10B Reference Manual – CSP03 v00 158


MQCI Model based Quantity Conversion Interface
MPMS Manual of Petroleum Measurement Standards (API term)

NGL Natural Gas Liquids


NIST National Institute of Standards and Technology

PAIG Project Assessment and Implementation Guidelines


PMC Petroleum Measurement Cockpit

QCI Quantity Conversion Interface (SAP term)

ROI Return On Investment

SI Système International d’unités

TD Transportation and Distribution (SAP term)


TSW Traders and Schedulers Workbench (SAP term)

UoM Unit of Measure or Unit of Measurement

VCF Volume Correction Factor

BCP 10B Reference Manual – CSP03 v00 159


13 Specific BCP documentation rules

The decimal point and thousand separators for numbers and quantity values for
BCP 10B documentation documents are defined as follows: The decimal point
is a dot ‘.’, the thousand separator is a comma ‘,’. Example: 123,456.987.
Owing to the definition of business-relevant scenarios in our systems, numbers
in screen prints may display differing formats.

For unit of measure symbols and spelling of unit names, NIST special
publication 811 (latest version) is relevant – see the document “BCP 10B
supported standards” for details

BCP 10B Reference Manual – CSP03 v00 160

You might also like