tdd bw ic billing line items zcsd_bitmin sap bi projects

35

Click here to load reader

Upload: mathmallikarjunsap

Post on 03-Jan-2016

131 views

Category:

Documents


19 download

DESCRIPTION

Tdd Bw Ic Billing Line Items Zcsd_bitm

TRANSCRIPT

Page 1: Tdd Bw Ic Billing Line Items Zcsd_bitmin sap bi projects

BUSINESS TRANSFORMATION (BT)

TDD: BW: IC: BILLING DOCUMENT LINE ITEMS (ZCSD_BITM)

PREPARED BY: EDNA WILSON DATE PREPARED: 01/29/2010 PAGE 1 OF 30APPROVED BY: DATE APPROVED: VERSION: XXX

Technical DesignDocument

SAP BWInfoCube

Billing Document Line ItemsZCSD_BITM

Business Content – copy of {standard DSO technical name} Enhanced Business Content – copy of {standard DSO technical name} Custom

Page 1

IBM and AmerisourceBergen Corporation Confidential

Page 2: Tdd Bw Ic Billing Line Items Zcsd_bitmin sap bi projects

BUSINESS TRANSFORMATION (BT)

TDD: BW: IC: BILLING DOCUMENT LINE ITEMS (ZCSD_BITM)

PREPARED BY: EDNA WILSON DATE PREPARED: 01/29/2010 PAGE 2 OF 30APPROVED BY: DATE APPROVED: VERSION: XXX

Note : Business Content requires activation of standard content only (no enhancement required but copy to a Znamespace as specified). Enhanced Business Content requires activation of standard content with enhancements. And lastly, Custom requires creation of new DSO.

Page 2

IBM and AmerisourceBergen Corporation Confidential

Page 3: Tdd Bw Ic Billing Line Items Zcsd_bitmin sap bi projects

BUSINESS TRANSFORMATION (BT)

TDD: BW: IC: BILLING DOCUMENT LINE ITEMS (ZCSD_BITM)

PREPARED BY: EDNA WILSON DATE PREPARED: 01/29/2010 PAGE 3 OF 30APPROVED BY: DATE APPROVED: VERSION: XXX

Document information

Date Version #

Changed By Change Description Status [Draft, Submitted to PMO, Submitted for approval, Signed off]

01/26/2010 0.1 Edna Wilson Initial Draft

02/02/2010 0.2 Edna Wilson

02/09/2010 1.0 Edna Wilson Changed ZCON_NUM to ZCONT_NUM infoobject.Added 0CUST_SLS to facilitate derivation of Billing AR Division (ZCBLARDIV)

02/12/2010 1.1 Edna Wilson Add Priority Line in cube schema.Updated Data Flow Diagram.

02/16/2010 1.2 Edna Wilson Removed ZAMT_NCON and ZAMT_CON. Can be calculated in report. Source field for ZAMT_COGS changed to 0COST.

Approvals

This document has been approved by the following people.

Name Function Date of approval

Signature

David Hartman Enterprise Information Management LeadBarbara Olexa Reporting Team Lead (IBM)

Referenced Documents

Name DescriptionFunctional Design Document - ReportProject PlanBI Naming conventionBEx Query Technical Design DocumentBOBJ Technical Design DocumentUnit Test Script Document

Distribution

This document has been distributed to:

Page 3

IBM and AmerisourceBergen Corporation Confidential

Page 4: Tdd Bw Ic Billing Line Items Zcsd_bitmin sap bi projects

BUSINESS TRANSFORMATION (BT)

TDD: BW: IC: BILLING DOCUMENT LINE ITEMS (ZCSD_BITM)

PREPARED BY: EDNA WILSON DATE PREPARED: 01/29/2010 PAGE 4 OF 30APPROVED BY: DATE APPROVED: VERSION: XXX

Name Function

Page 4

IBM and AmerisourceBergen Corporation Confidential

Page 5: Tdd Bw Ic Billing Line Items Zcsd_bitmin sap bi projects

BUSINESS TRANSFORMATION (BT)

TDD: BW: IC: BILLING DOCUMENT LINE ITEMS (ZCSD_BITM)

PREPARED BY: EDNA WILSON DATE PREPARED: 01/29/2010 PAGE 5 OF 30APPROVED BY: DATE APPROVED: VERSION: XXX

TABLE OF CONTENTS

1 Executive Summary..............................................................................................................42 Basic Data provider..............................................................................................................5

2.1 InfoProvider – Billing Document Line Item (ZCSD_BITM)............................................52.1.1 Infoprovider Type..................................................................................................52.1.2 Characteristics......................................................................................................52.1.3 Navigation Attributes.............................................................................................6

2.2 Time Characteristics.....................................................................................................72.3 Key Figures...................................................................................................................7

2.3.1 Basic Key Figures.................................................................................................73 Data Flow Diagram...............................................................................................................8

3.1.1 InfoPackage..........................................................................................................93.1.2 Transformation......................................................................................................9

3.1.2.1 Legend..............................................................................................................93.1.3 DTP.....................................................................................................................21

3.1.3.1 EXTRACTION.................................................................................................223.1.3.2 UPDATE..........................................................................................................22

4 Process Chains..................................................................................................................224.1 Directives for Data Loading........................................................................................22

5 Directives for Performance.................................................................................................225.1.1 Physical Partitioning............................................................................................225.1.2 Logical Partitioning..............................................................................................235.1.3 Data Compression..............................................................................................235.1.4 Indexing..............................................................................................................23

6 Security...............................................................................................................................236.1 Authorization Objects..................................................................................................23

7 Expected Sizing..................................................................................................................237.1.1 EDW Layer..........................................................................................................237.1.2 Integrated DSO / Data Collections Layer............................................................24

8 Transport Details................................................................................................................249 Technical Unit Test.............................................................................................................2410 Appendix.........................................................................................................................24

10.1.1 Open tasks..........................................................................................................24

Page 5

IBM and AmerisourceBergen Corporation Confidential

Page 6: Tdd Bw Ic Billing Line Items Zcsd_bitmin sap bi projects

BUSINESS TRANSFORMATION (BT)

TDD: BW: IC: BILLING DOCUMENT LINE ITEMS (ZCSD_BITM)

PREPARED BY: EDNA WILSON DATE PREPARED: 01/29/2010 PAGE 6 OF 30APPROVED BY: DATE APPROVED: VERSION: XXX

1 Executive Summary

This document details the design of the InfoCube for the Billing Document Line Items – ZCSD_BITM which will be created and loaded with data in BW. The InfoCube model will have fields similar to the source from where it is getting loaded.

There is one main sections of this document which has the data model of the InfoCube and includes Characteristics, Key Figures and Navigational Attributes and Time Characteristics which will be included in the InfoCube.

This document is not intended to be used as documentation tool of BW standard delivered InfoCubes which will be used without enhancement. It details the enhancements, customization on a standard delivered BW InfoCubes and new InfoCubes that need to be created.

Page 6

IBM and AmerisourceBergen Corporation Confidential

Page 7: Tdd Bw Ic Billing Line Items Zcsd_bitmin sap bi projects

BUSINESS TRANSFORMATION (BT)

TDD: BW: IC: BILLING DOCUMENT LINE ITEMS (ZCSD_BITM)

PREPARED BY: EDNA WILSON DATE PREPARED: 01/29/2010 PAGE 7 OF 30APPROVED BY: DATE APPROVED: VERSION: XXX

2 Basic Data provider

2.1 InfoProvider – Billing Document Line Item (ZCSD_BITM)

2.1.1 Infoprovider Type

Infoprovider Type Access method DetailsStandard Infocube

Real time

Virtual Infoprovider

Based on Data Transfer Process for Direct Access

With Infosource 3.x -

Based on BAPI With source system -Based on Function Module Description -

2.1.2 Characteristics

Line Item Dimension:1. Billing Document

Characteristic

Description Dimension

Provider Specific Properties

Constant

Doc. Property

Display

Selection

Query Exec. Filter val

0PROFIT_CTR Profit Center Organization Default

ZCRREASON Customer Credit Reason Code Credit Reason

Default

0BILLTOPRTY Bill-to party Customer Default

0PAYER Payer Customer Default

0SOLD_TO Sold-to party Customer Default

0CUST_SALES Customer number (sales view) Customer Default

ZCFINRESP Customer Financial Responsibility Customer Default

ZCUST_CHN Customer Chain ID Customer Chain

Default

ZCORP_CHN Custmer Corporate Chain Id Customer Default

Page 7

IBM and AmerisourceBergen Corporation Confidential

Page 8: Tdd Bw Ic Billing Line Items Zcsd_bitmin sap bi projects

BUSINESS TRANSFORMATION (BT)

TDD: BW: IC: BILLING DOCUMENT LINE ITEMS (ZCSD_BITM)

PREPARED BY: EDNA WILSON DATE PREPARED: 01/29/2010 PAGE 8 OF 30APPROVED BY: DATE APPROVED: VERSION: XXX

Characteristic

Description Dimension

Provider Specific Properties

Constant

Doc. Property

Display

Selection

Query Exec. Filter val

ChainZCBUYGRP Customer Buy Group Id Customer

ChainDefault

0CHNGID Change Run ID Data Package

Default

0RECORDTP Record type Data Package

Default

0REQUID Request ID Data Package

Default

0SHIP_POINT Shipping point Delivery Default

0SHIP_TO Ship-To Party Delivery Default

0ITEM_CATEG Distribution Method Material Default

0MATERIAL Material Material Default

? Product Report Group Material Default

ZPRY_LINE? Priority Line CodeParent Priority Line

Material Default

0COMP_CODE Company Code Organization Default

0PLANT Plant Organization Default

ZCONT_NUM Contract Number Pharma Contract

Default

ZBUY_GPO PC Buying Group (GPO)Customer Chain

Default

ZPC_COT PC - Class of Trade Pharma Contract

Default

ZCON_TYP Contract Type Pharma Contract

Default

0DISTR_CHAN Distribution Channel Sales Area Default

0DIVISION Division Sales Area Default

0SALESORG Sales Organization Sales Area Default

ZCBLARDIV Primary Billing Division Code Sales Area Default

ZSALESREP Customer Sales Representative Sales Area Default

0BILL_NUM Billing Document Billing Document

Default

0BILL_ITEM Billing Item SD Document Classification

Default

0BILL_TYPE Billing Document Type SD Document Classification

Default

0DEB_CRED Credit/debit posting (C/D) SD Document Classification

Default

0DOC_CATEG Sales Document Category SD Document Classification

Default

0DOC_CLASS Document category /Quotation/Order/Delivery/Invoice

SD Document Classification

Default

0BASE_UOM Base Unit of Measure Unit Default

0DOC_CURRCY Document Currency Unit Default

0VERSION Version Version Default

0VTYPE Value Type for Reporting Version Default

Page 8

IBM and AmerisourceBergen Corporation Confidential

Page 9: Tdd Bw Ic Billing Line Items Zcsd_bitmin sap bi projects

BUSINESS TRANSFORMATION (BT)

TDD: BW: IC: BILLING DOCUMENT LINE ITEMS (ZCSD_BITM)

PREPARED BY: EDNA WILSON DATE PREPARED: 01/29/2010 PAGE 9 OF 30APPROVED BY: DATE APPROVED: VERSION: XXX

2.1.3 Navigation Attributes

InfoObject Description0SOLD_TO__ZCUST_COT Customer Class of TradeZCBLARDIV__0SALES_DIST Billing A/R Division Region

2.2 Time Characteristics

Characteristic Description Dimension Provider Specific Properties

Constant Doc. Property

Display Selection Query Exec. Filter val

0FISCPER Fiscal Year/Period

Time Default

0FISCPER3 Posting Period Time Default

0FISCVARNT Fiscal Variant Time Default

0FISCYEAR Fiscal Year Time Default

0CALDAY Calendar Day Time Default

0CALQUARTER Calendar Quarter

Time Default

2.3 Key Figures

2.3.1 Basic Key Figures

Key Figure Long Description Object Specific Properties Decimal Places Scaling

0DOC_ITEMSNumber of Billing Items

0DOCUMENTS No. of Docs.ZSLSGROSS Gross Sales Amount

0QUANT_BQuantity in Base Units of Measure

0GR_WT_KGGross Weight in Kilograms

0NT_WT_KG Net Weight in Kilograms

ZAMT_CONGross Sales Amt: Contract Based

ZAMT_NCONGross Sales Amt: Non-Contract Based

ZAMT_COGSCost of Good Sold (@ MAP) Amt

Page 9

IBM and AmerisourceBergen Corporation Confidential

Page 10: Tdd Bw Ic Billing Line Items Zcsd_bitmin sap bi projects

BUSINESS TRANSFORMATION (BT)

TDD: BW: IC: BILLING DOCUMENT LINE ITEMS (ZCSD_BITM)

PREPARED BY: EDNA WILSON DATE PREPARED: 01/29/2010 PAGE 10 OF 30APPROVED BY: DATE APPROVED: VERSION: XXX

3 Data Flow Diagram

Page 10

IBM and AmerisourceBergen Corporation Confidential

Page 11: Tdd Bw Ic Billing Line Items Zcsd_bitmin sap bi projects

BUSINESS TRANSFORMATION (BT)

TDD: BW: IC: BILLING DOCUMENT LINE ITEMS (ZCSD_BITM)

PREPARED BY: EDNA WILSON DATE PREPARED: 01/29/2010 PAGE 11 OF 30APPROVED BY: DATE APPROVED: VERSION: XXX

Page 11

IBM and AmerisourceBergen Corporation Confidential

Page 12: Tdd Bw Ic Billing Line Items Zcsd_bitmin sap bi projects

BUSINESS TRANSFORMATION (BT)

TDD: BW: IC: BILLING DOCUMENT LINE ITEMS (ZCSD_BITM)

PREPARED BY: EDNA WILSON DATE PREPARED: 01/29/2010 PAGE 12 OF 30APPROVED BY: DATE APPROVED: VERSION: XXX

3.1.1 InfoPackage

NA

3.1.2 Transformation

3.1.2.1 Legend

The following legend is valid for all Transformations and will therefore not be listed again.

Constant

Direct Assignment

Formula

Initial

Read Master Data

Routine

Time Characteristic

Key Field

3.1.2.1.1 Transformation Name: ZT ODSO ZBSDBITM -> CUBE ZCSD_BITM

Transformation Technical Name: TBD Source: ZBSDBITM – Billing Document Item DSOTarget: ZCSD_BITM - Billing Document Line InfoCube

Source Fields Target InfoObject TransformationName Description Typ Logic

0PROFIT_CTR 0PROFIT_CTR Profit Center

ZCRREASON ZCRREASON Customer Credit Reason Code

0BILLTOPRTY 0BILLTOPRTY Bill-to party

0PAYER 0PAYER Payer

0SOLD_TO 0SOLD_TO Sold-to party

0SOLD_TO 0CUST_SALES Customer number (sales view)

ZCFINRESP ZCFINRESP Customer Financial Responsibility

ZCUST_CHN ZCUST_CHN Customer Chain ID

ZCORP_CHN ZCORP_CHN Custmer Corporate Chain Id

ZCBUYGRP ZCBUYGRP Customer Buy Group Id

0CHNGID Change Run ID System filled0RECORDTP Record type System filled0REQUID Request ID System filled

0SHIP_POINT 0SHIP_POINT Shipping point

0SHIP_TO 0SHIP_TO Ship-To Party

0ITEM_CATEG 0ITEM_CATEG Distribution Method

0MATERIAL 0MATERIAL Material

? ? Product Report Group

Page 12

IBM and AmerisourceBergen Corporation Confidential

Page 13: Tdd Bw Ic Billing Line Items Zcsd_bitmin sap bi projects

BUSINESS TRANSFORMATION (BT)

TDD: BW: IC: BILLING DOCUMENT LINE ITEMS (ZCSD_BITM)

PREPARED BY: EDNA WILSON DATE PREPARED: 01/29/2010 PAGE 13 OF 30APPROVED BY: DATE APPROVED: VERSION: XXX

Source Fields Target InfoObject TransformationName Description Typ Logic

?ZPRY_LINE ?ZPRY_LINE Parent Priority LinePriority Line Code

0COMP_CODE 0COMP_CODE Company Code

0PLANT 0PLANT Plant

ZCONT_NUM ZCONT_NUM Contract Number

ZBUY_GPO ZBUY_GPOPC Buying Group (GPO)

ZPC_COT ZPC_COT PC - Class of Trade

ZCON_TYP ZCON_TYP Contract Type Derive Contract Type0DISTR_CHAN 0DISTR_CHAN Distribution Channel

0DIVISION 0DIVISION Division

0SALESORG 0SALESORG Sales Organization

ZCBLARDIV ZCBLARDIV Primary Billing Division Code

0CUST_SALES – 0PLANT

ZSALESREP ZSALESREP Customer Sales Representative

0BILL_NUM 0BILL_NUM Billing Document

0BILL_ITEM 0BILL_ITEM Billing Item

0BILL_TYPE 0BILL_TYPE Billing Document Type

0DEB_CRED 0DEB_CRED Credit/debit posting (C/D) Determine Debit/Credit0DOC_CATEG 0DOC_CATEG Sales Document Category

0DOC_CLASS 0DOC_CLASS Document category /Quotation/Order/Delivery/Invoice

‘I’

0VERSION 0VERSION Version Initial0VTYPE 0VTYPE Value Type for Reporting 0100BILL_DATE 0FISCPER Fiscal Year/Period Time Charateristic0BILL_DATE 0FISCPER3 Posting Period Time Charateristic0FISCVARNT 0FISCVARNT Fiscal Variant Time Charateristic0BILL_DATE 0FISCYEAR Fiscal Year Time Charateristic0BILL_DATE 0CALDAY Calendar Day Time Charateristic0BILL_DATE 0CALQUARTER Calendar Quarter Time Charateristic

0DOC_ITEMS 0DOC_ITEMSNumber of Billing Items

Determine No. Of Billing Items

0DOCUMENTS No. of Docs. ×0SUBTOTAL_1

ZSLSGROSS,0DOC_CURRCY Gross Sales Amount

Calculate Gross Sales Amount

0QUANT_B0QUANT_B,0BASE_UOM

Quantity in Base Units of Measure

Calculate Quantity in Base UOM

0GR_WT_KG 0GR_WT_KGGross Weight in Kilograms

Calculate Gross Weight in KG

0NT_WT_KG 0NT_WT_KGNet Weight in Kilograms

Calculate Net Weight in KG

0SUBTOTAL_1

ZAMT_CON,0DOC_CURRCY

Gross Sales Amt: Contract Based

Calculate Gross Sales Amt: Contract Based

0SUBTOTAL_1

ZAMT_NCON,0DOC_CURRENCY

Gross Sales Amt: Non-Contract Based

Calculate Gross Sales Amt: Non-Contract Based

ZAMT_COGS0COST

ZAMT_COGS,0DOC_CURRCY

Cost of Good Sold (@ MAP) Amt

Calculate Cost of Good Sold (@ MAP) Amt

Page 13

IBM and AmerisourceBergen Corporation Confidential

Page 14: Tdd Bw Ic Billing Line Items Zcsd_bitmin sap bi projects

BUSINESS TRANSFORMATION (BT)

TDD: BW: IC: BILLING DOCUMENT LINE ITEMS (ZCSD_BITM)

PREPARED BY: EDNA WILSON DATE PREPARED: 01/29/2010 PAGE 14 OF 30APPROVED BY: DATE APPROVED: VERSION: XXX

3.1.2.1.1.1Derive Contract Type (ZCON_TYP)

ZCON_TYP = substr(ZPC_COT, 1, 4) first 4 characters of PC_Class of Trade.

3.1.2.1.1.2Determine Debit/Credit (0DEB_CRED) ** please copy from standard rule

FORM routine_0003 USING COMM_STRUCTURE type _ty_s_SC_1__RULE_39 CHANGING RESULT TYPE _ty_s_TG_1_full-DEB_CRED RETURNCODE LIKE sy-subrc ABORT LIKE sy-subrc RAISING cx_sy_arithmetic_error cx_sy_conversion_error.

* init variables

* fill the internal table "MONITOR", to make monitor entries

IF COMM_STRUCTURE-DOC_CATEG CA DEB_CRED. RESULT = 'C'. ELSE. RESULT = 'D'. ENDIF.

RETURNCODE = 0.

ENDFORM. "routine_0003

3.1.2.1.1.3Calculate Gross Sales Amount(ZSLSGROSS) ** please copy from standard rule

FORM routine_0002 USING COMM_STRUCTURE type _ty_s_SC_1__RULE_23 CHANGING RESULT TYPE _ty_s_TG_1_full-SUBTOT_1S RETURNCODE LIKE sy-subrc ABORT LIKE sy-subrc RAISING cx_sy_arithmetic_error cx_sy_conversion_error.

* init variables

* fill the internal table "MONITOR", to make monitor entries

Page 14

IBM and AmerisourceBergen Corporation Confidential

Page 15: Tdd Bw Ic Billing Line Items Zcsd_bitmin sap bi projects

BUSINESS TRANSFORMATION (BT)

TDD: BW: IC: BILLING DOCUMENT LINE ITEMS (ZCSD_BITM)

PREPARED BY: EDNA WILSON DATE PREPARED: 01/29/2010 PAGE 15 OF 30APPROVED BY: DATE APPROVED: VERSION: XXX

DATA: VALUE LIKE COMM_STRUCTURE-NETVAL_INV. DATA: US_RATE_TYPE LIKE COMM_STRUCTURE-RATE_TYPE.

CLEAR RESULT.

IF COMM_STRUCTURE-BILL_RULE CA '45'. RETURNCODE = 4. EXIT. ENDIF.

RESULT = COMM_STRUCTURE-SUBTOTAL_1.

IF COMM_STRUCTURE-DOC_CATEG CA DEB_CRED. RESULT = RESULT * ( -1 ). ENDIF.

ENDFORM. "routine_0002

3.1.2.1.1.4Calculate Quantity in Base UOM (0QUANT_B) ** please copy from standard rule

FORM routine_0009 USING COMM_STRUCTURE type _ty_s_SC_1__RULE_29 CHANGING RESULT TYPE _ty_s_TG_1_full-QUANT_B RETURNCODE LIKE sy-subrc ABORT LIKE sy-subrc RAISING cx_sy_arithmetic_error cx_sy_conversion_error.

* init variables

* fill the internal table "MONITOR", to make monitor entries

CLEAR: OUT, RESULT.

IF COMM_STRUCTURE-BILL_RULE CA '45'. RETURNCODE = 4. EXIT. ENDIF.

RESULT = COMM_STRUCTURE-BILL_QTY.

IF COMM_STRUCTURE-DOC_CATEG CA DEB_CRED. RESULT = RESULT * ( -1 ). ENDIF.

RETURNCODE = 0.

Page 15

IBM and AmerisourceBergen Corporation Confidential

Page 16: Tdd Bw Ic Billing Line Items Zcsd_bitmin sap bi projects

BUSINESS TRANSFORMATION (BT)

TDD: BW: IC: BILLING DOCUMENT LINE ITEMS (ZCSD_BITM)

PREPARED BY: EDNA WILSON DATE PREPARED: 01/29/2010 PAGE 16 OF 30APPROVED BY: DATE APPROVED: VERSION: XXX

ENDFORM. "routine_0009

3.1.2.1.1.5Calculate Gross Weight in KG (0GR_WT_KG) ** please copy from standard rule

FORM routine_0014 USING COMM_STRUCTURE type _ty_s_SC_1__RULE_33 CHANGING RESULT TYPE _ty_s_TG_1_full-GR_WT_KG RETURNCODE LIKE sy-subrc ABORT LIKE sy-subrc RAISING cx_sy_arithmetic_error cx_sy_conversion_error.

* init variables

* fill the internal table "MONITOR", to make monitor entries

DATA: WEIGHT LIKE COMM_STRUCTURE-GRS_WGT_DL.

IF COMM_STRUCTURE-BILL_RULE CA '45'. RETURNCODE = 4. EXIT. ENDIF.

IF COMM_STRUCTURE-UNIT_OF_WT NE 'KG'. WEIGHT = COMM_STRUCTURE-GRS_WGT_DL. CALL FUNCTION 'UNIT_CONVERSION_SIMPLE' EXPORTING INPUT = COMM_STRUCTURE-GRS_WGT_DL UNIT_IN = COMM_STRUCTURE-UNIT_OF_WT UNIT_OUT = 'KG' IMPORTING OUTPUT = WEIGHT EXCEPTIONS CONVERSION_NOT_FOUND = 1 DIVISION_BY_ZERO = 2 INPUT_INVALID = 3 OUTPUT_INVALID = 4 OVERFLOW = 5 TYPE_INVALID = 6 UNITS_MISSING = 7 UNIT_IN_NOT_FOUND = 8 UNIT_OUT_NOT_FOUND = 9 OTHERS = 10.

IF SY-SUBRC NE 0. CLEAR MONITOR. MONITOR-msgno = '009'. MONITOR-msgid = 'SDBW'. MONITOR-msgty = c_msgty_e.

Page 16

IBM and AmerisourceBergen Corporation Confidential

Page 17: Tdd Bw Ic Billing Line Items Zcsd_bitmin sap bi projects

BUSINESS TRANSFORMATION (BT)

TDD: BW: IC: BILLING DOCUMENT LINE ITEMS (ZCSD_BITM)

PREPARED BY: EDNA WILSON DATE PREPARED: 01/29/2010 PAGE 17 OF 30APPROVED BY: DATE APPROVED: VERSION: XXX

MONITOR-msgv1 = COMM_STRUCTURE-UNIT_OF_WT. append MONITOR. RETURNCODE = 4. WEIGHT = 0. ELSE. RESULT = WEIGHT. RETURNCODE = 0. ENDIF. ELSE. RESULT = COMM_STRUCTURE-GRS_WGT_DL. RETURNCODE = 0. ENDIF.

IF COMM_STRUCTURE-DOC_CATEG CA DEB_CRED. RESULT = RESULT * ( -1 ). ENDIF.

ENDFORM. "routine_0014

3.1.2.1.1.6Calculate Net Weight in KG (0NT_WT_KG) ** please copy from standard rule

FORM routine_0015 USING COMM_STRUCTURE type _ty_s_SC_1__RULE_34 CHANGING RESULT TYPE _ty_s_TG_1_full-NT_WT_KG RETURNCODE LIKE sy-subrc ABORT LIKE sy-subrc RAISING cx_sy_arithmetic_error cx_sy_conversion_error.

* init variables

* fill the internal table "MONITOR", to make monitor entries

DATA: WEIGHT LIKE COMM_STRUCTURE-NET_WGT_DL.

IF COMM_STRUCTURE-BILL_RULE CA '45'. RETURNCODE = 4. EXIT. ENDIF.

IF COMM_STRUCTURE-UNIT_OF_WT NE 'KG'. WEIGHT = COMM_STRUCTURE-NET_WGT_DL. CALL FUNCTION 'UNIT_CONVERSION_SIMPLE' EXPORTING INPUT = COMM_STRUCTURE-NET_WGT_DL UNIT_IN = COMM_STRUCTURE-UNIT_OF_WT UNIT_OUT = 'KG' IMPORTING OUTPUT = WEIGHT EXCEPTIONS

Page 17

IBM and AmerisourceBergen Corporation Confidential

Page 18: Tdd Bw Ic Billing Line Items Zcsd_bitmin sap bi projects

BUSINESS TRANSFORMATION (BT)

TDD: BW: IC: BILLING DOCUMENT LINE ITEMS (ZCSD_BITM)

PREPARED BY: EDNA WILSON DATE PREPARED: 01/29/2010 PAGE 18 OF 30APPROVED BY: DATE APPROVED: VERSION: XXX

CONVERSION_NOT_FOUND = 1 DIVISION_BY_ZERO = 2 INPUT_INVALID = 3 OUTPUT_INVALID = 4 OVERFLOW = 5 TYPE_INVALID = 6 UNITS_MISSING = 7 UNIT_IN_NOT_FOUND = 8 UNIT_OUT_NOT_FOUND = 9 OTHERS = 10.

IF SY-SUBRC NE 0. CLEAR MONITOR. MONITOR-msgno = '009'. MONITOR-msgid = 'SDBW'. MONITOR-msgty = c_msgty_e. MONITOR-msgv1 = COMM_STRUCTURE-UNIT_OF_WT. append MONITOR. RETURNCODE = 4. WEIGHT = 0. ELSE. RESULT = WEIGHT. RETURNCODE = 0. ENDIF. ELSE. RESULT = COMM_STRUCTURE-NET_WGT_DL. RETURNCODE = 0. ENDIF.

IF COMM_STRUCTURE-DOC_CATEG CA DEB_CRED. RESULT = RESULT * ( -1 ). ENDIF.

ENDFORM. "routine_0015

3.1.2.1.1.7Calculate Gross Sales Amt: Contract-Based (ZAMT_CON) If ZCON_NUM is not initial (Invoice is contract-based sale).

FORM routine_XXXX USING COMM_STRUCTURE type _ty_s_SC_1__RULE_23 CHANGING RESULT TYPE _ty_s_TG_1_full-SUBTOT_1S RETURNCODE LIKE sy-subrc ABORT LIKE sy-subrc RAISING cx_sy_arithmetic_error cx_sy_conversion_error.

* init variables

* fill the internal table "MONITOR", to make monitor entries

Page 18

IBM and AmerisourceBergen Corporation Confidential

Page 19: Tdd Bw Ic Billing Line Items Zcsd_bitmin sap bi projects

BUSINESS TRANSFORMATION (BT)

TDD: BW: IC: BILLING DOCUMENT LINE ITEMS (ZCSD_BITM)

PREPARED BY: EDNA WILSON DATE PREPARED: 01/29/2010 PAGE 19 OF 30APPROVED BY: DATE APPROVED: VERSION: XXX

DATA: VALUE LIKE COMM_STRUCTURE-NETVAL_INV. DATA: US_RATE_TYPE LIKE COMM_STRUCTURE-RATE_TYPE.

CLEAR RESULT.

IF COMM_STRUCTURE-BILL_RULE CA '45'. RETURNCODE = 4. EXIT. ENDIF.

RESULT = COMM_STRUCTURE-0SUBTOTAL_1.

IF COMM_STRUCTURE-DOC_CATEG CA DEB_CRED. RESULT = RESULT * ( -1 ). ENDIF.

ENDFORM. "routine_XXXX

Endif.

3.1.2.1.1.8Calculate Gross Sales Amt: Non-Contract Based (ZAMT_NCON) If ZCON_NUM is initial (Invoice is non-contract based sale)

FORM routine_XXXX USING COMM_STRUCTURE type _ty_s_SC_1__RULE_23 CHANGING RESULT TYPE _ty_s_TG_1_full-SUBTOT_1S RETURNCODE LIKE sy-subrc ABORT LIKE sy-subrc RAISING cx_sy_arithmetic_error cx_sy_conversion_error.

* init variables

* fill the internal table "MONITOR", to make monitor entries

DATA: VALUE LIKE COMM_STRUCTURE-NETVAL_INV. DATA: US_RATE_TYPE LIKE COMM_STRUCTURE-RATE_TYPE.

CLEAR RESULT.

IF COMM_STRUCTURE-BILL_RULE CA '45'. RETURNCODE = 4. EXIT. ENDIF.

RESULT = COMM_STRUCTURE-ZAMT_NCON.

IF COMM_STRUCTURE-DOC_CATEG CA DEB_CRED. RESULT = RESULT * ( -1 ). ENDIF.

Page 19

IBM and AmerisourceBergen Corporation Confidential

Page 20: Tdd Bw Ic Billing Line Items Zcsd_bitmin sap bi projects

BUSINESS TRANSFORMATION (BT)

TDD: BW: IC: BILLING DOCUMENT LINE ITEMS (ZCSD_BITM)

PREPARED BY: EDNA WILSON DATE PREPARED: 01/29/2010 PAGE 20 OF 30APPROVED BY: DATE APPROVED: VERSION: XXX

ENDFORM. "routine_XXXX

Endif.

3.1.2.1.1.9Calculate Cost of Good Sold (@ MAP) Amt (ZAMT_COGS)

FORM routine_XXXX USING COMM_STRUCTURE type _ty_s_SC_1__RULE_23 CHANGING RESULT TYPE _ty_s_TG_1_full-SUBTOT_1S RETURNCODE LIKE sy-subrc ABORT LIKE sy-subrc RAISING cx_sy_arithmetic_error cx_sy_conversion_error.

* init variables

* fill the internal table "MONITOR", to make monitor entries

DATA: VALUE LIKE COMM_STRUCTURE-NETVAL_INV. DATA: US_RATE_TYPE LIKE COMM_STRUCTURE-RATE_TYPE.

CLEAR RESULT.

IF COMM_STRUCTURE-BILL_RULE CA '45'. RETURNCODE = 4. EXIT. ENDIF.

RESULT = COMM_STRUCTURE-ZAMT_COGS0COST.

IF COMM_STRUCTURE-DOC_CATEG CA DEB_CRED. RESULT = RESULT * ( -1 ). ENDIF.

ENDFORM. "routine_XXXX

3.1.2.1.1.10 Determine No. of Billing Items (0DOC_ITEMS) ** please copy from standard rule

FORM routine_0011 USING COMM_STRUCTURE type _ty_s_SC_1__RULE_30 CHANGING RESULT TYPE _ty_s_TG_1_full-DOC_ITEMS RETURNCODE LIKE sy-subrc ABORT LIKE sy-subrc RAISING cx_sy_arithmetic_error cx_sy_conversion_error.

Page 20

IBM and AmerisourceBergen Corporation Confidential

Page 21: Tdd Bw Ic Billing Line Items Zcsd_bitmin sap bi projects

BUSINESS TRANSFORMATION (BT)

TDD: BW: IC: BILLING DOCUMENT LINE ITEMS (ZCSD_BITM)

PREPARED BY: EDNA WILSON DATE PREPARED: 01/29/2010 PAGE 21 OF 30APPROVED BY: DATE APPROVED: VERSION: XXX

* init variables

* fill the internal table "MONITOR", to make monitor entries

RESULT = COMM_STRUCTURE-NO_INV_IT.

IF COMM_STRUCTURE-BILL_RULE CA '45'. RETURNCODE = 4. EXIT. ENDIF.

IF COMM_STRUCTURE-DOC_CATEG CA DEB_CRED. RESULT = RESULT * ( -1 ). ENDIF.

RETURNCODE = 0.

ENDFORM. "routine_0011

3.1.2.1.2 Transformation Name: ZT RSDS 2LIS_13_VDHDR -> CUBE ZCSD_BITM

Transformation Technical Name: TBD Source: 2LIS_13_VDHDR – Billing Document Header DataSourceTarget: ZCSD_BITM – Billing Document Items InfoCube

Source Fields Target InfoObject TransformationName Description Typ Logic0PROFIT_CTR Profit Center ×ZCRREASON Customer Credit Reason

Code×

0BILLTOPRTY Bill-to party ×KUNRG 0PAYER Payer

KUNAG 0SOLD_TO Sold-to party

ZCFINRESP Customer Financial Responsibility

×ZCUST_CHN Customer Chain ID ×ZCORP_CHN Custmer Corporate Chain

Id×

ZCBUYGRP Customer Buy Group Id ×0CHNGID Change Run ID System filled0RECORDTP Record type System filled0REQUID Request ID System filled0SHIP_POINT Shipping point ×0SHIP_TO Ship-To Party ×0ITEM_CATEG Distribution Method ×0MATERIAL Material ×? Product Report Group ×? Parent Priority Line ×

Page 21

IBM and AmerisourceBergen Corporation Confidential

Page 22: Tdd Bw Ic Billing Line Items Zcsd_bitmin sap bi projects

BUSINESS TRANSFORMATION (BT)

TDD: BW: IC: BILLING DOCUMENT LINE ITEMS (ZCSD_BITM)

PREPARED BY: EDNA WILSON DATE PREPARED: 01/29/2010 PAGE 22 OF 30APPROVED BY: DATE APPROVED: VERSION: XXX

Source Fields Target InfoObject TransformationName Description Typ Logic

BUKRS 0COMP_CODE Company Code

0PLANT Plant ×ZCONT_NUM Contract Number ×

ZBUY_GPOPC Buying Group (GPO)

×

ZPC_COT PC - Class of Trade ×ZCON_TYP Contract Type ×

VTWEG 0DISTR_CHAN Distribution Channel

0DIVISION Division ×VKORG 0SALESORG Sales Organization

ZCBLARDIV Primary Billing Division Code

×ZSALESREP Customer Sales

Representative×

VBELN0BILL_NUM

0BILL_NUM Billing Document

POSNR0BILL_ITEM

0BILL_ITEM Billing Item

0BILL_TYPE Billing Document Type ×0DEB_CRED Credit/debit posting (C/D) Determine Debit/Credit

VBTYP0DOC_CATEG

0DOC_CATEG Sales Document Category

0DOC_CLASS Document category /Quotation/Order/Delivery/Invoice

‘I’

0VERSION Version Initial0VTYPE Value Type for Reporting 010

FKDAT0BILL_DATE

0FISCPER Fiscal Year/Period Time Charateristic

FKDAT0BILL_DATE

0FISCPER3 Posting Period Time Charateristic

PERIV0FISCVARNT

0FISCVARNT Fiscal Variant Time Charateristic

FKDAT0BILL_DATE

0FISCYEAR Fiscal Year Time Charateristic

FKDAT0BILL_DATE

0CALDAY Calendar Day Time Charateristic

FKDAT0BILL_DATE 0CALQUARTER Calendar Quarter

0DOC_ITEMSNumber of Billing Items

×

0DOCUMENTS No. of Docs. Determine No. of Invoices

ZSLSGROSS,0DOC_CURRCY Gross Sales Amount

×

0QUANT_B,0BASE_UOM

Quantity in Base Units of Measure

×

0GR_WT_KGGross Weight in Kilograms

×

0NT_WT_KGNet Weight in Kilograms

×

Page 22

IBM and AmerisourceBergen Corporation Confidential

Page 23: Tdd Bw Ic Billing Line Items Zcsd_bitmin sap bi projects

BUSINESS TRANSFORMATION (BT)

TDD: BW: IC: BILLING DOCUMENT LINE ITEMS (ZCSD_BITM)

PREPARED BY: EDNA WILSON DATE PREPARED: 01/29/2010 PAGE 23 OF 30APPROVED BY: DATE APPROVED: VERSION: XXX

Source Fields Target InfoObject TransformationName Description Typ LogicZAMT_CON,0DOC_CURRCY

Gross Sales Amt: Contract Based

×

ZAMT_NCON,0DOC_CURRENCY

Gross Sales Amt: Non-Contract Based

×

ZAMT_FGA,0DOC_CURRENCY

Customer Free Good Allowance Amt

×

ZAMT_COGS,0DOC_CURRCY

Cost of Good Sold (@ MAP) Amt

×

ZAMT_CHRG,0DOC_CURRCY Chargeback Amt

×

ZRESTKFEE,0DOC_CURRCY Customer Fee Restock

×

ZAMT_PPV,0DOC_CURRCY

Purchase Price Variance Amt

×

ZAMTAPDSC,0DOC_CURRCY A/P Cash Discount Amt

×

3.1.2.1.2.1Determine Debit/Credit (0DEB_CRED) ** please copy from standard rule

PROGRAM UPDATE_ROUTINE.*$*$ begin of global - insert your declaration only below this line *-** TABLES: ...DATA: IN TYPE F, OUT TYPE F, DENOM TYPE F, NUMER TYPE F.

* Def. of 'credit-documents': following doc.categ. are 'credit docs'* reversal invoice (N)* credit memo (O)* internal credit memo (6)* Credit-documents are delivered with negative sign. Sign is switched* to positive to provide positive key-figures in the cube.** The combination of characteristics DE_CRED and DOC-CLASS provides* a comfortable way to distinguisch e.g. positive incoming orders or* order returns.

* Def. der 'Soll-Dokumente': folgende Belegtypen sind 'Soll-Belege'* Storno Rechnung (N)* Gutschrift (O)* Interne Verrechn. Gutschr. (6)* Soll-Dokumente werden mit negativem Vorzeichen geliefert. Um die Kenn-* zahlen positiv in den Cube zu schreiben, wird das Vorzeich.

Page 23

IBM and AmerisourceBergen Corporation Confidential

Page 24: Tdd Bw Ic Billing Line Items Zcsd_bitmin sap bi projects

BUSINESS TRANSFORMATION (BT)

TDD: BW: IC: BILLING DOCUMENT LINE ITEMS (ZCSD_BITM)

PREPARED BY: EDNA WILSON DATE PREPARED: 01/29/2010 PAGE 24 OF 30APPROVED BY: DATE APPROVED: VERSION: XXX

gedreht* Die Kombination der Merkmale DEB_CRED und DOC-CLASS gibt Ihnen die* Möglichkeit schnell z.B. zwischen Auftrags-Eingang oder Retouren zu* unterscheiden.

DATA: DEB_CRED(3) TYPE C VALUE 'NO6'.

*$*$ end of global - insert your declaration only before this line *-*

FORM compute_key_field TABLES MONITOR STRUCTURE RSMONITOR "user defined monitoring USING COMM_STRUCTURE LIKE /BIC/CS2LIS_13_VDHDR RECORD_NO LIKE SY-TABIX RECORD_ALL LIKE SY-TABIX SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS CHANGING RESULT LIKE /BI0/V0SD_C03T-DEB_CRED RETURNCODE LIKE SY-SUBRC ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update**$*$ begin of routine - insert your code only below this line *-** fill the internal table "MONITOR", to make monitor entries IF COMM_STRUCTURE-DOC_CATEG CA DEB_CRED. RESULT = 'C'. ELSE. RESULT = 'D'. ENDIF.

RETURNCODE = 0.*$*$ end of routine - insert your code only before this line *-**ENDFORM.

3.1.2.1.2.2Determine No. of Invoices (0DOCUMENTS) ** please copy from standard rule

PROGRAM UPDATE_ROUTINE.*$*$ begin of global - insert your declaration only below this line *-** TABLES: ...DATA: IN TYPE F, OUT TYPE F, DENOM TYPE F, NUMER TYPE F.

* Def. of 'credit-documents': following doc.categ. are 'credit docs'* reversal invoice (N)* credit memo (O)* internal credit memo (6)

Page 24

IBM and AmerisourceBergen Corporation Confidential

Page 25: Tdd Bw Ic Billing Line Items Zcsd_bitmin sap bi projects

BUSINESS TRANSFORMATION (BT)

TDD: BW: IC: BILLING DOCUMENT LINE ITEMS (ZCSD_BITM)

PREPARED BY: EDNA WILSON DATE PREPARED: 01/29/2010 PAGE 25 OF 30APPROVED BY: DATE APPROVED: VERSION: XXX

* Credit-documents are delivered with negative sign. Sign is switched* to positive to provide positive key-figures in the cube.** The combination of characteristics DE_CRED and DOC-CLASS provides* a comfortable way to distinguisch e.g. positive incoming orders or* order returns.

* Def. der 'Soll-Dokumente': folgende Belegtypen sind 'Soll-Belege'* Storno Rechnung (N)* Gutschrift (O)* Interne Verrechn. Gutschr. (6)* Soll-Dokumente werden mit negativem Vorzeichen geliefert. Um die Kenn-* zahlen positiv in den Cube zu schreiben, wird das Vorzeich. gedreht* Die Kombination der Merkmale DEB_CRED und DOC-CLASS gibt Ihnen die* Möglichkeit schnell z.B. zwischen Auftrags-Eingang oder Retouren zu* unterscheiden.

DATA: DEB_CRED(3) TYPE C VALUE 'NO6'.

*$*$ end of global - insert your declaration only before this line *-*

FORM compute_data_field TABLES MONITOR STRUCTURE RSMONITOR "user defined monitoring USING COMM_STRUCTURE LIKE /BIC/CS2LIS_13_VDHDR RECORD_NO LIKE SY-TABIX RECORD_ALL LIKE SY-TABIX SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS CHANGING RESULT LIKE /BI0/V0SD_C03T-DOCUMENTS RETURNCODE LIKE SY-SUBRC ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update**$*$ begin of routine - insert your code only below this line *-** fill the internal table "MONITOR", to make monitor entries

CLEAR RESULT.

RESULT = COMM_STRUCTURE-NO_INV.

IF COMM_STRUCTURE-DOC_CATEG CA DEB_CRED. RESULT = RESULT * ( -1 ). ENDIF.

RETURNCODE = 0.*$*$ end of routine - insert your code only before this line *-**ENDFORM.

Page 25

IBM and AmerisourceBergen Corporation Confidential

Page 26: Tdd Bw Ic Billing Line Items Zcsd_bitmin sap bi projects

BUSINESS TRANSFORMATION (BT)

TDD: BW: IC: BILLING DOCUMENT LINE ITEMS (ZCSD_BITM)

PREPARED BY: EDNA WILSON DATE PREPARED: 01/29/2010 PAGE 26 OF 30APPROVED BY: DATE APPROVED: VERSION: XXX

3.1.3 DTP

Type Target DTP Name DTP Technical Name Source

Delta ZCSD_BITM CUBE ZD RSDS 2LIS_13_VDHDR -> CUBE ZCSD_BITM D

TBD 2LIS_13_VDHR Datasource(PSA)

Delta ZCSD_BITM CUBE ZD ODSO ZBSDBITM -> CUBE ZCSD_BITM

TBD ZBSDBITM ODSO

3.1.3.1 EXTRACTION

Extraction Mode: Full/Delta

Package Size: 50,000 records

Filters:

InfoObject ValueName DescriptionNA

3.1.3.2 UPDATE

Error Handling

Error handling methodDeactivated

No Update No Reporting

Valid Records Update, Reporting Possible (Request Green)

Valid Records Update, No Reporting (Request Red)

4 Process Chains <give details of the process chain for transaction and also the name>

Process Chain Description

Tech Name Schedule Time

Frequency Includes Infoproviders

TBD

Page 26

IBM and AmerisourceBergen Corporation Confidential

Page 27: Tdd Bw Ic Billing Line Items Zcsd_bitmin sap bi projects

BUSINESS TRANSFORMATION (BT)

TDD: BW: IC: BILLING DOCUMENT LINE ITEMS (ZCSD_BITM)

PREPARED BY: EDNA WILSON DATE PREPARED: 01/29/2010 PAGE 27 OF 30APPROVED BY: DATE APPROVED: VERSION: XXX

4.1 Directives for Data LoadingInstructions: list any special directives regarding how data is to be loaded (ie. Process Chains, sequence, dependencies).

5 Directives for PerformanceInstructions:

5.1.1 Physical Partitioning

(Partitioning of table behind BW object on DB level – table partitioning used for PSA and DSO partitioning)

5.1.2 Logical Partitioning

(Partitioning of a fact table. Should be set during creation of Infocube)

5.1.3 Data Compression

5.1.4 Indexing

6 Security <security settings if any>

6.1 Authorization Objects

Infoarea/Multiprovider

7 Expected Sizing Instructions: based on the data model and load frequency, estimate the volume of a periodic load (whether it be daily or monthly) and annual growth for each data target.

To estimate sizing, the following document was referenced:

Sizing and Performance, 2002 SAP AG

A cube consists of Dimensions and Fact Table. Formulas to calculate approximate size of dimension tables, fact tables and ODS’s are given below:

Dimension Table Size Calculation:

Page 27

IBM and AmerisourceBergen Corporation Confidential

Page 28: Tdd Bw Ic Billing Line Items Zcsd_bitmin sap bi projects

BUSINESS TRANSFORMATION (BT)

TDD: BW: IC: BILLING DOCUMENT LINE ITEMS (ZCSD_BITM)

PREPARED BY: EDNA WILSON DATE PREPARED: 01/29/2010 PAGE 28 OF 30APPROVED BY: DATE APPROVED: VERSION: XXX

Fact Table Size Calculation:

ODS Size Calculation:

This is a 1-year storage estimate and the growth rate is expected to be linear.

7.1.1 EDW Layer

InfoProvider Estimated Size in MB for 1 yr

7.1.2 Integrated DSO / Data Collections LayerInfoProvider Estimated Size in MB for 1 yr

8 Transport Details

CCR(S): ( CHANGE CONTROL REQUESTS )

TRANSPORTS (IN ORDER):

ADDITIONAL STEPS REQUIRED:

Initializations Steps:

List of Transport Objects by Transport Request

Object Name Description

9 Technical Unit Test

Refer to Unit Test Script Document.

10 Appendix

Page 28

IBM and AmerisourceBergen Corporation Confidential

Page 29: Tdd Bw Ic Billing Line Items Zcsd_bitmin sap bi projects

BUSINESS TRANSFORMATION (BT)

TDD: BW: IC: BILLING DOCUMENT LINE ITEMS (ZCSD_BITM)

PREPARED BY: EDNA WILSON DATE PREPARED: 01/29/2010 PAGE 29 OF 29APPROVED BY: DATE APPROVED: VERSION: XXX

10.1.1 Open tasks

Nr Task Date Coment Assigned to

closed

Page 29

IBM and AmerisourceBergen Corporation Confidential

Page 30: Tdd Bw Ic Billing Line Items Zcsd_bitmin sap bi projects