Вы находитесь на странице: 1из 89

Home

Source Table
Many
Target Table
DIM_OBILL_PACKAGE
Indexes

Partition

Worklett

Session

Mapping

SQL Qualifier
see below
Error checks

Target Column

Default Value

Data Type

Len

Null

DIM_OBILL_PACKAGE_KEY

NUMBER

PRODUCT_ID

NUMBER

PRODUCT_NAME

VARCHAR2

100 Char

PRODUCT_DESC

VARCHAR2

250 Char

ITEM_CLASSIFICATION

VARCHAR2

20 Char

TAX_CLASSIFICATION

VARCHAR2

20 Char

PRODUCT_CODE

VARCHAR2

256 Char

PACKAGE_ID

NUMBER

10 N

DEAL_POID

NUMBER

PACKAGE_NAME

VARCHAR2

100 Char

PACKAGE_DESC

VARCHAR2

250 Char

PACKAGE_STS

VARCHAR2

20 Char

MANUAL_DISCOUNT_BUNDLE

VARCHAR2

10 Char

FEATURE_SET_ID

NUMBER

FEATURE_SET_NAME

VARCHAR2

100 Char

FEATURE_SET_DESC

VARCHAR2

250 Char

FEATURE_SET_STS

VARCHAR2

20 Char

FEATURE_SET_CODE

VARCHAR2

256 Char

FEATURE_CODE

VARCHAR2

256 Char

10 N

10 N

FEATURE_VALUE

VARCHAR2

20 Char

FEATURE_NAME

VARCHAR2

50 Char

AUDIT_INS_KEY

NUMBER

AUDIT_INS_TS

DATE

AUDIT_UPD_KEY

NUMBER

AUDIT_UPD_TS

DATE

NOTE RELAVANT FILTERS IN BOLD BELOW

NOTE: Currently requires distinct as there are some bad data records. This part of product design in in flux currently and we may need to revisit it later if featu

-- package view

select distinct
p.product_id as PRODUCT_ID,
p.name as PRODUCT_NAME,
p.description as PRODUCT_DESC,
p.item_classification,
p.tax_classification,
p.code as PRODUCT_CODE,
pk.package_id,
(select d.poid_id0 from obill.deal_t D where d.name = to_char(pk.package_id)) as DEAL_POID,

pk.name as PACKAGE_NAME,
pk.description as PACKAGE_DESC,
pk.status as PACKAGE_STS,
pk.manual_discount_bundle,
fs.feature_set_id,
fs.name as FEATURE_SET_NAME,
fs.description as FEATURE_SET_DESC,
fs.status as FEATURE_SET_STS,
fs.code as FEATURE_SET_CODE,
f.attr_code as FEATURE_CODE,
f.feature_value as FEATURE_VALUE,
f.attr_name as FEATURE_NAME
from
cas.product P,
cas.package PK,
cas.package_component PKC_FS,
cas.feature_set FS,
cas.feature F
where 1=1
and p.product_id = pk.product_id
and pk.package_id = pkc_fs.package_id
and pkc_fs.component_type = 'Feature Set'

and pkc_fs.feature_set_id = fs.feature_set_id


and p.product_id = fs.product_id

and fs.feature_set_id = f.feature_set_id


and f.attr_type = 'Feature Set'
and pkc_fs.relative_start_unit is null

Target Column Desc


PK1

Source System

Schema

Source Table / File

N/A
WEBS

WEBSITEM

PRODUCT

WEBS

WEBSITEM

PRODUCT

WEBS

WEBSITEM

PRODUCT

WEBS

WEBSITEM

PRODUCT

WEBS

WEBSITEM

PRODUCT

WEBS

WEBSITEM

PRODUCT

WEBS

WEBSITEM

PACKAGE

OBILL

OBILL

WEBS

WEBSITEM

PACKAGE

WEBS

WEBSITEM

PACKAGE

WEBS

WEBSITEM

PACKAGE

WEBS

WEBSITEM

PACKAGE

WEBS

WEBSITEM

FEATURE_SET

WEBS

WEBSITEM

FEATURE_SET

WEBS

WEBSITEM

FEATURE_SET

WEBS

WEBSITEM

FEATURE_SET

WEBS

WEBSITEM

FEATURE_SET

WEBS

WEBSITEM

FEATURE

WEBS

WEBSITEM

FEATURE

WEBS

WEBSITEM

FEATURE

N/A

ABC_AUD_WRKST_COMP

N/A
N/A

ABC_AUD_WRKST_COMP

N/A

n flux currently and we may need to revisit it later if feature sets are inteded to be many per package. The filter below for null relative start unit means the initial state of the pa

s DEAL_POID,

Transformation

Source Col / Field

Data Type

Len

Null

Table Seq
PRODUCT_ID

NUMBER

NAME

VARCHAR2

100 CharN

DESCRIPTION

VARCHAR2

250 CharN

ITEM_CLASSIFICATION

VARCHAR2

20 Char Y

TAX_CLASSIFICATION

VARCHAR2

20 Char Y

CODE

VARCHAR2

256 CharY

PACKAGE_ID

NUMBER

10 N

NUMBER

select d.poid_id0 from


obill.deal_t D where d.name =
to_char(pk.package_id)

10 N

NAME

VARCHAR2

100 CharN

DESCRIPTION

VARCHAR2

250 CharN

STATUS

VARCHAR2

20 Char N

MANUAL_DISCOUNT_BUNDLE

VARCHAR2

10 Char Y

FEATURE_SET_ID

NUMBER

NAME

VARCHAR2

100 CharN

DESCRIPTION

VARCHAR2

250 CharN

STATUS

VARCHAR2

20 Char N

CODE

VARCHAR2

256 CharY

ATTR_CODE

VARCHAR2

256 CharN

10 N

FEATURE_VALUE

VARCHAR2

20 Char Y

ATTR_NAME

VARCHAR2

50 Char Y

ABC_WSCO_AUDIT_KEY
SYSDATE
ABC_WSCO_AUDIT_KEY
SYSDATE

null relative start unit means the initial state of the package.

Source Column Desc.

Home
Source Table
WEBSITEM.OFFER
Target Table
DIM_OBILL_OFFER
Indexes

Partition

Worklett

Session

Mapping

SQL Qualifier
See below
Error checks

Target Column

Default Value

Data Type

Len

Null

DIM_OBILL_OFFER_KEY

NUMBER

OFFER_ID

NUMBER

10 N

PLAN_POID

NUMBER

OFFER_NAME

VARCHAR2

100 Char

OFFER_DESC

VARCHAR2

250 Char

OFFER_TYPE

VARCHAR2

10 Char

OFFER_STS

VARCHAR2

50 Char

EFFECTIVE_START_DATE

DATE

EFFECTIVE_END_DATE

DATE

CURRENCY_ISO_CODE

VARCHAR2

3 Char

COUNTRY_ISO_CODE

VARCHAR2

2 Char

TRIAL_UNIT

VARCHAR2

10 Char

TRIAL_DURATION

NUMBER

REGION

VARCHAR2

20 Char

CUSTOMER_SEGMENT

VARCHAR2

20 Char

SALES_CHANNEL

VARCHAR2

20 Char

AUDIT_INS_KEY

NUMBER

AUDIT_INS_TS

DATE

AUDIT_UPD_KEY

NUMBER

AUDIT_UPD_TS

DATE

Target Column Desc


PK1

Y
5Y

--offer view

select
o.offer_id,
(select p.poid_id0 from obill.plan_t P where p.name = to_char(o.offer_id)) as PLAN_POID,
o.name as OFFER_NAME,
o.description as OFFER_DESC,
o.offer_type,
o.status as OFFER_STS,
o.effective_start_date,
o.effective_end_date,
o.currency_iso_code,
o.country_iso_code,
o.trial_unit,
o.trial_duration,
o.region,
o.customer_segment,
o.sales_channel
from
cas.offer O

Source System

Schema

Source Table / File

N/A

Transformation
Table Seq

WEBS

WEBSITEM

OFFER_ID

OBILL

OBILL

select p.poid_id0 from


obill.plan_t P where p.name =
to_char(o.offer_id)

WEBS

WEBSITEM

NAME

WEBS

WEBSITEM

DESCRIPTION

WEBS

WEBSITEM

OFFER_TYPE

WEBS

WEBSITEM

STATUS

WEBS

WEBSITEM

EFFECTIVE_START_DATE

WEBS

WEBSITEM

EFFECTIVE_END_DATE

WEBS

WEBSITEM

CURRENCY_ISO_CODE

WEBS

WEBSITEM

COUNTRY_ISO_CODE

WEBS

WEBSITEM

TRIAL_UNIT

WEBS

WEBSITEM

TRIAL_DURATION

WEBS

WEBSITEM

REGION

WEBS

WEBSITEM

CUSTOMER_SEGMENT

WEBS

WEBSITEM

N/A

SALES_CHANNEL
ABC_AUD_WRKST_COMP

N/A
N/A
N/A

Source Col / Field

ABC_WSCO_AUDIT_KEY
SYSDATE

ABC_AUD_WRKST_COMP

ABC_WSCO_AUDIT_KEY
SYSDATE

s PLAN_POID,

Data Type

Len

Null

NUMBER

10 N

NUMBER

VARCHAR2

100 CharN

VARCHAR2

250 CharN

VARCHAR2

10 Char N

VARCHAR2

50 Char N

DATE

DATE

VARCHAR2

3 Char

VARCHAR2

2 Char

VARCHAR2

10 Char Y

NUMBER

5Y

VARCHAR2

20 Char Y

VARCHAR2

20 Char Y

VARCHAR2

20 Char Y

Source Column Desc.

Home
Source Table
Many
Target Table
DIM_OBILL_OFFER_PACKAGE
Indexes

Partition

Worklett

Session

Mapping

SQL Qualifier
See below
Error checks

Target Column

Default Value

Data Type

Len

Null

DIM_OBILL_OFFER_PACKAGE_KEY

NUMBER

OFFER_ID

NUMBER

10 N

PACKAGE_ID

NUMBER

10 N

AUDIT_INS_KEY

NUMBER

AUDIT_INS_TS

DATE

AUDIT_UPD_KEY

NUMBER

AUDIT_UPD_TS

DATE

--offer/pkg view, 1 to 1 for QBO, 1 (or many) to many for future

select oc.offer_id, oc.package_id


from cas.offer_component OC

Target Column Desc


PK1

Source System

Schema

Source Table / File

N/A

Transformation

Source Col / Field

Table Seq

WEBS

WEBSITEM

OFFER_COMPONENT

OFFER_ID

WEBS

WEBSITEM

OFFER_COMPONENT

PACKAGE_ID

ABC_AUD_WRKST_COMP

ABC_WSCO_AUDIT_KEY

N/A
N/A
N/A
N/A

SYSDATE
ABC_AUD_WRKST_COMP

ABC_WSCO_AUDIT_KEY
SYSDATE

Data Type

Len

Null

NUMBER

10 N

NUMBER

10 N

Source Column Desc.

Design Approach
DIM_OBILL_CUSTOMER
Target Column

DIM_OBIL_CUSTOMER_KEY
ACCOUNT_NUMBER
POID
POID_TYPE
LOCALE
MOD_T
EFFECTIVE_T
CONTACT_TYPE

LE

SOB

1. Base Tables that will be used are cdmowner.dim_oii_user,cdmowner.dim_oii_realm.


2. Additional table DIM_OBILL_CUSTOMER would be created with specific attributes from Obill.
3.Fact table would contan the key from DIM_OII_REALM_KEY, DIM_OII_USER_KEY and
DIM_OBILL_CUSTOMER_KEY
DIM_OBILL_CUSTOMER
Default Value

Data Type

Integer
VARCHAR2
Integer
VARCHAR2
VARCHAR2
datetime
datetime
VARCHAR2

VARCHAR2

VARCHAR2

Len

Null

60
255
255

255

255

Target Column Source System


Desc

Schema

Source Table / File

Surrogate key
Natural Key
ACCOUNT_T
ACCOUNT_T
ACCOUNT_T
ACCOUNT_T
ACCOUNT_T
ACCOUNT_T

PROFILE_INTUIT_ACCOUNT_T.

INTU_CONFIG_SOB_LE_MAP_T.

Transformation Source Col /


Field

Data Type

SELECT
PIA.*,
A.ACCOU
NT_NO
FROM
OBILL.PRO
FILE_INTUI
T_ACCOU
NT_T PIA,
OBILL.ACC
OUNT_T
A,
OBILL.PRO
FILE_T P
WHERE
P.POID_ID
0=
PIA.OBJ_ID
0
AND
P.ACCOUN
T_OBJ_ID0
=
A.POID_ID
0;
LEGAL_ENTITY

Len

Null

Source Column Desc.

PROFILE_I
NTUIT_AC
COUNT_T.I
NTU_FLD_
LEGAL_EN
TITY
=INTU_CO
NFIG_SOB
_LE_MAP_
T.
LEGAL_EN
TITY
SET_OF_BOOKS

Source Table
ITEM_T
EVENT_BAL_IMPACTS_T
config_glid_accts_t
Target Table
FACT_OBILL_ITEM
Indexes

Partition

Worklett

Session

Mapping

SQL Qualifier
See below

Order

Product

Customer

Error checks

GL Information

Discount

Charge

Billing

Payment Information

Source Qualifier

CASE WHEN PRODUCT_OBJ_TYPE='/discount'

CASE WHEN PRODUCT_OBJ_TYPE='/product'

CASE WHEN PRODUCT_OBJ_TYPE='/discount'

FROM obill.EVENT_BAL_IMPACTS_T
GROUP BY ITEM_OBJ_ID0, GL_ID) PRODUCT_ID
WHERE ITEM_T.POID_ID0 = PRODUCT_ID.ITEM_OBJ_ID0(+)
AND cgat.rec_id2(+) = PRODUCT_ID.gl_id

Target Column

FACT_ITEM_KEY
DIM_OII_REALM_KEY
DIM_OBILL_CUST_KEY
CUST_ACCT_NUMER

ORDER_ID
ORDER_DATE
OPCODE_NAME
BILL_ID
BILL_TYPE
BILL_NO
BILL_START_DATE

BILL_DUE_DATE

Default Value

BILLING_STATUS

NEXT_BILL_DATE

BILLING_SERVICE_TYPE
CHARGE_DESCRIPTION
CHARGE_LIST_PRICE

OFFERING _PRICE

DISCOUNT_CYCLE_START_DATE
AR_NET_GL_ACCT
OFF_NET_GL_ACCT
DB_AR_NET_AMT
CR_AR_NET_AMT
DB_OFF_NET_AMT
CR_OFF_NET_AMT
AR_GROSS_GL_ACCT
CONFIG_GL_DESCR
GL_DATE
BATCH_NO
GL_SEGMENT
GL_AR_ACCT
ITEM_GL_ID
GL_OFFSET_ACCT

CARD_TYPE

DEBIT_NUM
DEBIT_EXP
PAYMENT_STATUS
ITEM_NO
ITEM_CLOSED_DATE
DUE_DATE
EFFECTIVE_DATE
STATUS
DISPUTED
TOTAL
RECVD
WRITEOFF
TRANSFERED
DUE
SERVICE_ID
IMPACT_AMOUNT
DISCOUNT
AUDIT_INS_KEY
AUDIT_INS_TS
AUDIT_UPD_KEY
AUDIT_UPD_TS

) as AMOUNT,
SUM(
nvl(
CASE WHEN PRODUCT_OBJ_TYPE='/discount'
THEN AMOUNT end,0
)
) as DISCOUNT,
SUM(
nvl(
CASE WHEN PRODUCT_OBJ_TYPE='/product'
or PRODUCT_OBJ_TYPE is null
then AMOUNT end,0
)
)+
SUM(
nvl(
CASE WHEN PRODUCT_OBJ_TYPE='/discount'
then AMOUNT end,0
)
) as NET_AMOUNT
FROM obill.EVENT_BAL_IMPACTS_T
GROUP BY ITEM_OBJ_ID0, GL_ID) PRODUCT_ID
RE ITEM_T.POID_ID0 = PRODUCT_ID.ITEM_OBJ_ID0(+)
AND cgat.rec_id2(+) = PRODUCT_ID.gl_id
AND cgat.type(+) = 2
AND cgat.attribute(+) = 1

Data Type

NUMBER
NUMBER

Len

38
38

NUMBER

38

VARCHAR2

60

VARCHAR2

60

DATE
VARCHAR2
NUMBER
VARCHAR2
VARCHAR2
DATE

DATE

60
38
255
60

INTEGER

INTEGER

VARCHAR2
VARCHAR2
NUMBER

NUMBER

DATE
VARCHAR2
VARCHAR2
NUMBER
NUMBER
NUMBER
NUMBER
VARCHAR2
VARCHAR2
DATE
VARCHAR2
VARCHAR2
VARCHAR2
NUMBER
VARCHAR2

100
250
10,2

(10,2)

255
255
38,2
38,3
38,4
38,5
255
255
60
255
255
38
255

VARCHAR2

255

VARCHAR2
VARCHAR2
VARCHAR2
VARCHAR2
DATE
DATE
DATE
VARCHAR2
NUMBER
NUMBER
NUMBER
NUMBER
NUMBER
NUMBER
NUMBER
NUMBER
NUMBER
NUMBER
DATE
NUMBER
DATE

25
4
32
60

32
38
38
38
38
38
38
38
38
38
38
38

Null

Target Column Desc

Source System Schema

Source Table / File

INTU_ORDER_T
INTU_ORDER_T
INTU_ORDER_T
ITEM_T
ITEM_T
BILL_T
BILL_T

BILL_T

BILLINFO_T

BILLINFO_T

CHARGE_T
CHARGE_T
CHARGE_T

PURCHASED_DISCOUNT_T

INTU_ORDER_T.
OBILL.LEDGER_REPORT_ACCTS_T
OBILL.LEDGER_REPORT_ACCTS_T
OBILL.LEDGER_REPORT_ACCTS_T
OBILL.LEDGER_REPORT_ACCTS_T
OBILL.LEDGER_REPORT_ACCTS_T
OBILL.LEDGER_REPORT_ACCTS_T
OBILL.LEDGER_REPORT_ACCTS_T
CONFIG_GL_SEGMENT_T
OBILL.LEDGER_REPORT_ACCTS_T
PROC_AUD_EXPORT_GL_REPORT_T
ITEM
ITEM
ITEM
ITEM

PAYINFO_CC_T,PAYINFO_DD_T

PAYINFO_CC_T,PAYINFO_DD_T
PAYINFO_CC_T,PAYINFO_DD_T
ITEM
ITEM
ITEM
ITEM
ITEM
ITEM
ITEM
ITEM
ITEM
ITEM
ITEM
ITEM
ITEM
ITEM
ITEM

Transformation

INTU_ORDER_T. PACKAGE_ID PURCHASED_PRODUCT_T. PACKAGE_ID


PURCHASED_PRODUCT_T. SERVICE_OBJ_ID ITEM.SERVICE_ID
INTU_ORDER_T. PACKAGE_ID PURCHASED_PRODUCT_T. PACKAGE_ID
PURCHASED_PRODUCT_T. SERVICE_OBJ_ID ITEM.SERVICE_ID
INTU_ORDER_T. PACKAGE_ID PURCHASED_PRODUCT_T. PACKAGE_ID
PURCHASED_PRODUCT_T. SERVICE_OBJ_ID ITEM.SERVICE_ID

SELECT BILL_NO FROM OBILL.BILL_T B, OBILL_RPT.ITEM i WHERE B.POID_TYPE =I.BI


AND B.POID_ID0 = I.BILL_ID

select b.POID_ID0,BILLING_STATUS,
ACTG_NEXT_T
from obill.BILLINFO_t b,
OBILL_RPT.ITEM I
where I.BILL_INFO_ID = B.POID_ID0
select * from OBILL_RPT.CHARGE c, OBILL.PURCHASED_PRODUCT_T p, OBILL_RPT.ITEM i
where c.brm_product_id=P.PRODUCT_OBJ_ID0 and
p.SERVICE_OBJ_ID0=I.SERVICE_ID

SELECT * FROM OBILL.PURCHASED_PRODUCT_T p, OBILL_RPT.ITEM I WHERE p.SERVICE_OBJ_ID

purchased_discount_t.PLAN_OBJ_ID0
INTU_ORDER_T.Package_ID
PURCHASED_PRODUCT_T.Package_ID
rate_bal_impacts_t.scaled_amount
Query :
SELECT * FROM OBILL.PURCHASED_DISCOUNT_T PD , OBILL_RPT.ITEM I
WHERE PD.SERVICE_OBJ_ID0=I.SERVICE_ID
SELECT * FROM OBILL.INTU_ORDER_T O, OBILL.PURCHASED_DISCOUNT_T PD
WHERE PD.PACKAGE_ID=O.PACKAGE_ID

SELECT * FROM OBILL.INTU_ORDER_T O, OBILL.PURCHASED_DISCOUNT_T PD


SELECT * FROM OBILL_RPT.ITEM ITEM,
WHERE PD.PACKAGE_ID=O.PACKAGE_ID
OBILL.LEDGER_REPORT_ACCTS_T LEDGER_ACCTS,
OBILL.LEDGER_REPORT_T LEDGER_REPORT,
OBILL.PROC_AUD_EXPORT_GL_REPORT_T EXPORT_GL,
OBILL.CONFIG_GL_SEGMENT_T GL_SEGMENT
WHERE EXPORT_GL.LEDGER_REPORT_POID_LIST LIKE '%/ledger_report '
||TO_CHAR(LEDGER_REPORT.poid_id0) ||'%'
AND LEDGER_ACCTS.ITEM_NO = ITEM.ITEM_NO
AND LEDGER_REPORT.POID_ID0= LEDGER_ACCTS.OBJ_ID0
AND GL_SEGMENT.SEGMENT_NAME = LEDGER_REPORT.GL_SEGMENT
AND GL_SEGMENT.OBJ_ID0 in (
SELECT MAX(OBJ_ID0) FROM OBILL.CONFIG_GL_SEGMENT_T WHERE OBILL.CONFIG_GL_SEGMENT_T
LEDGER_REPORT.GL_SEGMENT)

DECODE(SUBSTR(PayInfoCC."DEBIT_NUM", 3, 1),
'1', 'AMEX',
'2', 'Discover',
'3', 'MasterCard',
'4', 'Visa',(decode ( BillInfo."PAY_TYPE", 'EFT','EFT','Invoice','Check')))
select * from OBILL_RPT.ITEM I ,OBILL.BILLINFO_T B, Obill.PAYINFO_CC_T P
where I.BILL_INFO_ID = B.POID_ID0 AND B.PAYINFO_OBJ_ID0 = P.OBJ_ID0

SELECT
BillInfo.POID_ID0 as BILL_INFO_ID
,BillInfo.POID_TYPE as BILL_INFO_TYPE
,utc_to_date(BillInfo.MOD_T) as MOD_T
,BillInfo.PAYINFO_OBJ_ID0 as PAY_INFO_ID
,BillInfo.PAYINFO_OBJ_TYPE as PAY_INFO_TYPE
,BillInfo.PAY_TYPE as PAY_TYPE
,'' as DEBIT_EXP --mms added
,PayInfoDD.DEBIT_NUM as DEBIT_NUM
,'DD' as CARD_TYPE
FROM obill.BILLINFO_T BillInfo
JOIN obill.PAYINFO_DD_T PayInfoDD on PayInfoDD.OBJ_ID0 = BillInfo.PAYINFO_OBJ
WHERE BillInfo.PAYINFO_OBJ_TYPE = '/payinfo/dd'

Field Name

ORDER_ID
ORDER_DATE
OPCODE_NAME
AR_BILL_OBJ_ID0
AR_BILL_OBJ_TYPE
BILL_NO(FROM BILL_T LKP)
START_T(FROM BILL_T LKP)

DUE_T(FROM BILL_T _LKP)

OFFERING _PRICE

BILLING_STATUS

DISCOUNT_CYCLE_STATDATE

ACTG_NEXT_T(LKP BILLINFO)

GL_DATE

BILLING_SERVICE_TYPE
CHARGE_DESCRIPTION
CHARGE_LIST_PRICE

BATCH_NO

PLAN_OBJ_ID0

CARD_TYPE

Package_ID
AR_NET_GL_ACCT
OFF_NET_GL_ACCT
DB_AR_NET_AMT
CR_AR_NET_AMT
DB_OFF_NET_AMT
CR_OFF_NET_AMT
AR_GROSS_GL_ACCT
DESCR
START_T
OBJID_0
GL_SEGMENT
GL_AR_ACCT
REC_ID2
GL_OFFSET_ACCT

ITEM_GL_ID

DECODE(SUBSTR(PayInfoCC."DEBIT_NU
M", 3, 1),
'1', 'AMEX',
'2', 'Discover',
'3', 'MasterCard',
'4', 'Visa',(decode
( BillInfo."PAY_TYPE",
'EFT','EFT','Invoice','Check')))
Hardcode to "DD" in case of Debit

DEBIT_NUM
DEBIT_EXP
PAYMENT_STATUS
ITEM_NO
CLOSED_T
DUE_T
EFFECTIVE_T
ITEM_STATUS
DISPUTED
Item_Total
RECVD
WRITEOFF
TRANSFERED
DUE
SERVICE_ID
AMOUNT
DISCOUNT

260-000-0000-11039-000
260-000-0000-11039-000
260-000-0000-11039-000
260-000-0000-11039-000
260-000-0000-11039-000
260-000-0000-11039-000
260-000-0000-11039-000
260-000-0000-11039-000
260-000-0000-11039-000
260-000-0000-11039-000

260-000-0000-11139
260-000-0000-11139
260-000-0000-11139
260-000-0000-11139
260-000-0000-11139
260-000-0000-11139
260-000-0000-11139
260-000-0000-11139
260-000-0000-11139
260-000-0000-11139

0
0
0
0
0
0
0
0
0
0

64.99
64.99
64.99
64.99
64.99
64.99
64.99
64.99
64.99
64.99

64.99
64.99
64.99
64.99
64.99
64.99
64.99
64.99
64.99
64.99

0 260-000-0000-11039-000
0 260-000-0000-11039-000
0 260-000-0000-11039-000
0 260-000-0000-11039-000
0 260-000-0000-11039-000
0 260-000-0000-11039-000
0 260-000-0000-11039-000
0 260-000-0000-11039-000
0 260-000-0000-11039-000
0 260-000-0000-11039-000

Brazil
Brazil
Brazil
Brazil
Brazil
Brazil
Brazil
Brazil
Brazil
Brazil

5263629
5263629
5263629
5263629
5263629
5263629
5263629
5263629
5263629
5263629

B1-1630028,1
B1-1628528,1
B1-1488093,1
B1-1630950,1
B1-1629119,1
B1-1628063,1
B1-1633713,1
B1-1628801,1
P1-694108
B1-1631053,1
B1-1491472,3
B1-1631989,1
B1-1637064,1
B1-1489327,1
B1-1638549,1
B1-1630567,1
B1-1630142,1
B1-1630616,1
B1-2451738,1
B1-2266402,2

ITEM_T.ITEM_NO

B1-1489338,1
B1-1772964,2
B1-1846465,2
B1-1836953,2
B1-1880594,2
B1-1869548,2
B1-643035,2
B1-1107799,1
B1-1338074,1
B1-1420111,1
B1-1805753,2
B1-1853266,2
B1-1910824,2
B1-1286387,7
B1-1613930,2
B1-1642629,1
B1-1421806,1
B1-1841300,2
B1-1841418,2
B1-1847421,3

LEDGER_REPORT_ACCTS_

EDGER_REPORT_ACCTS_T.ITEM_NO

Source Table
EVENT_T
EVENT_T CHARGE_EVENT
EVENT_BILLING_PAYMENT_CC_T EVTPAYCC
EVENT_BILLING_PAYMENT_T EVTPAY
SERVICE_T
EVENT_BILLING_CHARGE_T
BILL_T
ITEM_T
Target Table
FACT_OBILL_EVENT
Indexes

Partition

Worklett

Session

Mapping

SQL Qualifier
See below
Error checks

Target Column

FACT_EVENT_ID
FACT_ITEM_ID
EVENT_ID
EVENT_TYPE
MOD_DATE
CREATED_DATE
ITEM_ID
ITEM_TYPE
PROGRAM_NAME
RENEWAL_FLAG
USER_ID
RESULT
DESCRIPTION
TRANS_ID
MERCHANT
COMMAND
CREATED_BY
STATUS
PAY_TYPE

AUDIT_INS_KEY
AUDIT_INS_TS
AUDIT_UPD_KEY
AUDIT_UPD_TS

AND EVT.POID_ID0 = EVTREV.OBJ_ID0


UNION
SELECT
EVT.POID_ID0 as POID_ID0,
EVT.POID_TYPE as POID_TYPE,
utc_to_date(EVT.MOD_T) as MOD_T,
utc_to_date(EVT.CREATED_T) as CREATED_T,
EVT.ITEM_OBJ_ID0 as ITEM_ID,
EVT.ITEM_OBJ_TYPE as ITEM_TYPE,
EVT.PROGRAM_NAME as PROGRAM_NAME,
decode(EVT.PROGRAM_NAME,'pin_bill_accts','Y','N')
EVT.USERID_ID0 as USER_ID,
'' as RESULT,
EVT.DESCR as DESCRIPTION,
'' as TRANS_ID,
'' AS MERCHANT,
'' AS COMMAND,
SERVICE_T.LOGIN AS CREATED_BY,
null AS STATUS,
null AS PAY_TYPE
FROM
obill.EVENT_T EVT,
obill.SERVICE_T
WHERE EVT.POID_TYPE like '/event/billing%'
AND EVT.USERID_ID0 = SERVICE_T.POID_ID0
AND EVT.POID_TYPE not like '/event/billing/payment%
AND EVT.POID_TYPE not like '/event/billing/refund%'
AND EVT.POID_TYPE not like '/event/billing/reversal%'
AND EVT.POID_TYPE not like '/event/billing/item/transf

Default Value

Data Type

NUMBER
NUMBER
NUMBER
VARCHAR2
DATE
DATE
NUMBER
VARCHAR2
VARCHAR2
CHAR
NUMBER
VARCHAR2
VARCHAR2
VARCHAR2
VARCHAR2
VARCHAR2
VARCHAR2
NUMBER
NUMBER

Len

Null

38
38
38
255

38
255
60
1
38
60
255
30
60
60
255
38
38

NUMBER
DATE
NUMBER
DATE

TREV.OBJ_ID0

ID0,
D_TYPE,
T) as MOD_T,
ED_T) as CREATED_T,
TEM_ID,
ITEM_TYPE,
s PROGRAM_NAME,
_NAME,'pin_bill_accts','Y','N') as RENEWAL_FLAG,
ER_ID,

PTION,

REATED_BY,

ke '/event/billing%'
SERVICE_T.POID_ID0
like '/event/billing/payment%'
like '/event/billing/refund%'
like '/event/billing/reversal%'
like '/event/billing/item/transfer') X

38
38

Target Column Desc

Source System

Schema

Source Table / Transformation


File

EVENT_T
EVENT_T
EVENT_T
EVENT_T
EVENT_T
EVENT_T
EVENT_T
EVENT_T
EVENT_T
EVENT_T
EVENT_T
EVENT_T
EVENT_T
EVENT_T
EVENT_T
EVENT_T
EVENT_T

Field Name

EVENT_ID
EVENT_TYPE
MOD_T
CREATED_T
ITEM_ID
ITEM_TYPE
PROGRAM_NAME
RENEWAL_FLAG
USER_ID
RESULT
DESCRIPTION
TRANS_ID
MERCHANT
COMMAND
CREATED_BY
STATUS
PAY_TYPE

Source Table
EVENT_T TRANSFER_EVENT
EVENT_T ORIG_EVENT
ITEM_T
ITEM_T TRANSFER_ITEM
EVENT_ITEM_TRANSFER_T

Target Table
FACT_ITEM_TRANSFER
Indexes

Partition

Worklett

Session

Mapping

SQL Qualifier
See below
Error checks

parse.obj_id0 EVENT_OBILL_TRANS_OBJECT_ID,
TRANSFER_ITEM.ITEM_NO AS ORIG_BILL_NO,
TRANSFER_ITEM.ITEM_TOTAL ORIG_ITEM_TOTAL,
OBILL_RPT.utc_to_date(TRANSFER_ITEM.EFFECTIVE_T) ORIG_TRANS_DT,
TRANSFER_ITEM.POID_TYPE,

ITEM_T.ITEM_NO AS TRANSFER_NUM,

ITEM_T.ITEM_TOTAL AS TRANSFER_ITEM_TOTAL ,
EVENT_ITEM_TRANSFER_T.AMOUNT AS TRANSFER_T_AMT,
TRANSFER_EVENT.POID_ID0 AS POID_ID0,
OBILL_RPT.utc_to_date(ORIG_EVENT.END_T)AS TRANSFER_DATE,
ITEM_T.name GL_GROUP,
ITEM_T.service_obj_id0,
ORIG_EVENT.USERID_ID0,
TRANSFER_EVENT.ITEM_OBJ_ID0,

Target Column

FACT_ITEM_TRANSFER_KEY

1 EVENT_OBILL_TRANS_OBJECT_ID
2 ORIG_EVENT_ID
3 ORIG_ITEM_NO
4 ORIG_BILL_NO
5 ORIG_ITEM_TOTAL

6 ORIG_TRANSACTION_DATE
7 ORIG_ITEM_TOTAL
ORIG_POID
ORIG_POID_TYPE
TRANSFER_DATE
TRANS_EVENT_ID
8 TRANS_ITEM_NO
9 TRANS_BILL_NO
10 TRANSFER_ITEM_TOTAL

Default Value

11 TRANSFER_T_AMT
TRANS_POID_TYPE
12 USER_ID
13 ITEM_ID

_EVENT.PO
ID_ID0 =
PARSE.OBJ
_ID0
AND
PARSE.ITE
M_pk =
TRANSFER
_ITEM.POI
D_ID0 (+)
AND
ORIG_EVE
NT.ITEM_O
BJ_ID0 =
TRANSFER
_EVENT.ITE
M_OBJ_ID0
(+)
AND
ITEM_T.POI
D_ID0 =
ORIG_EVE
NT.ITEM_O
BJ_ID0
AND
TRANSFER
_EVENT.PO
ID_ID0 =
EVENT_ITE
M_TRANSF
ER_T.OBJ_I
D0

Data Type

NUMBER
NUMBER
VARCHAR2
VARCHAR2
NUMBER

DATE
NUMBER
VARCHAR2
DATE
NUMBER
VARCHAR2
VARCHAR2
NUMBER

Len

Null

38
38
60
255
38,2

38

60
255
38
38

NUMBER
VARCHAR2
NUMBER
NUMBER

38
38

Target Column Desc

Source System

Schema

Source Table / Transformation


File

ITEM_T

Field Name

Use the
orignial
Tranaction
instance
utc_to_Date(effective_t)

c_to_Date(effective_t)

parse.obj_id0 EVENT_OBILL_TRANS_OBJECT_ID,
TRANSFER_ITEM.ITEM_NO AS ORIG_BILL_NO,
TRANSFER_ITEM.ITEM_TOTAL ORIG_ITEM_TOTAL,
OBILL_RPT.utc_to_date(TRANSFER_ITEM.EFFECTIVE_T) ORIG_TRANS_DT,
TRANSFER_ITEM.POID_TYPE,
ITEM_T.ITEM_NO AS TRANSFER_NUM,
ITEM_T.ITEM_TOTAL AS TRANSFER_ITEM_TOTAL ,
EVENT_ITEM_TRANSFER_T.AMOUNT AS TRANSFER_T_AMT,
TRANSFER_EVENT.POID_ID0 AS POID_ID0,
OBILL_RPT.utc_to_date(ORIG_EVENT.END_T)AS TRANSFER_DATE,
ITEM_T.name GL_GROUP,
ITEM_T.service_obj_id0,
ORIG_EVENT.USERID_ID0,
TRANSFER_EVENT.ITEM_OBJ_ID0,
OBILL.PRODUCT_T.name as PRODUCT_DESCR,
OBILL.PRODUCT_T.CODE AS PRODUCT_CODE