Sei sulla pagina 1di 65

PRICING XML-DB Mapping Document

This document describes mapping between the Data Model and the data as defined w
SUBJECT AREA

Physical table Name

Price Change

CO_EV
CO_EV_I8
CO_EV_MNT
CO_EV_MNT_I8
CO_MNT_ITM
MA_PRC_ITM
MA_ITM_PRN_PRC_ITM
TR_CHN_PRN_PRC

Price Promotion

CO_EV
CO_EV_I8
CO_EV_MNT
CO_EV_MNT_I8
CO_MNT_ITM
MA_PRC_ITM
MA_ITM_TMP_PRC_CHN
TR_CHN_TMP_PRC

Clearance

CO_EV

CO_EV_I8
CO_EV_MNT
CO_EV_MNT_I8
CO_MNT_ITM
MA_PRC_ITM
MA_ITM_CLR_PRC_CHN
TR_CHN_CLR_PRC

Discount Rule

RU_PRDV
RU_PRDV_I8
CO_EL_PRDV_ITM
TR_ITM_MXMH_PRDV
RU_PRDV_MXMH
CO_PRDV_ITM
CO_EL_PRDV_DPT
CO_EL_MRST_PRDV

CHANGE LOG
Version

Date

1.0
1.1

2/7/2006
8/8/2007

1.2

8/14/2007

1.3
1.4

8/30/2007
1/272009

1.5
1.6

2/5/2009
2/13/2009

1.7

2/17/2008

1.8

3/17/2009

2.0

3/25/2009
2.1

10/23/2013

ING XML-DB Mapping Document

etween the Data Model and the data as defined within PricingImport.xsd.
Logical table Name

Comment

Event
EventI18N
MaintenanceEvent
MaintenanceEventI18N
ItemMaintenanceEvent
ItemPriceMaintenance
PermanentPriceChangeItem
PermanentPriceChange
Event
EventI18N
MaintenanceEvent
MaintenanceEventI18N
ItemMaintenanceEvent
ItemPriceMaintenance
TemporaryPriceChangeItem
TemporaryPriceChange
Event

EventI18N
MaintenanceEvent
MaintenanceEventI18N
ItemMaintenanceEvent
ItemPriceMaintenance
ClearancePriceChangeItem
ClearancePriceChange

PriceDerivationRule
LocalizedDerivationRuleDescription
ItemPriceDerivationRuleEligibility
MixAndMatchPriceDerivationItem
MixAndMatchPriceDerivationRule
ItemPriceDerivation
DepartmentPriceDerivationRuleEligibility
MerchandiseStructurePriceDerivationRuleEligibility

CHANGE LOG
Author

Action

Manas Sahu
Christian Greene

Initial draft
Added Max Lengths for Names

Maisa De Camargo
Christian Greene
Leona Slepetis
Naga Poola
Gloria Wang

Naga Poola
Manas Sahu

Stephen Gonzales
Tarun Sharma

Removed Mapping for table


CO_PRDV_MXMH
Highlighted yellow field lengths that are
not restricted by the XSD
Changed PromoID to int everywhere
Localized the Pricing Group and added
mapping details
i18n realted updates
Pricing Group and Localized the Pricing
Group and added mapping details
Removed PricingGroup from Pricing
Extract

Updated mapping document template;


added I18N notes on multibyte character
limits; added XSD data types; corrected
DB data types; updated xpath mappings
for 13.1
Added Clearance Event, Threshold Tags, Effective and Expiration times

, Effective and Expiration timestamps to TemporaryPriceChangeItem.

TARGET - CO/BO Database


Logical / Physical Table
Event
CO_EV

EventI18N
CO_EV_I8

MaintenanceEvent
CO_EV_MNT

Logical Column Name

Physical Column Name

EventID
RetailStoreID
Name
Description

ID_EV
ID_STR_RT
NM_EV
DE_EV

TypeCode
StatusCode
StoreOrHomeOfficeControlCode
OwnerName
ScheduledStartDate
ScheduledEndDate
ActualStartDate
ActualEndDate
PlanStartTimestamp
PlanEndTimestamp
ActualStartTimestamp
ActualEndTimestamp

TY_EV
SC_EV
CC_EV
NM_EV_OWNER
DC_DY_BSN_SS
DC_DY_BSN_SE
DC_DY_BSN_AS
DC_DY_BSN_AE
TS_EV_PL_EF
TS_EV_PL_EP
TS_EV_ACT_EF
TS_EV_ACT_EP

ExternalEventID
RecordCreatedTimestamp
RecordLastModifiedTimestamp

ID_EV_EXT
TS_CRT_RCRD
TS_CRT_RCRD

EventID
RetailStoreID
Locale

ID_EV
ID_STR_RT
LCL

LocalizedName
LocalizedDescription

NM_EV
DE_EV

EventID
RetailStoreID
Name
Description
EffectiveDateTimestamp
ExpirationDateTimestamp

ID_EV
ID_STR_RT
NM_EV_MNT
DE_EV_MNT
TS_EV_MNT_EF
TS_EV_MNT_EP

TypeCode
StatusCode
ReasonCode
OriginTypeCode
EmployeeID
CompetitorID
CreateDateTimestamp
AppliedTimestamp
JobStartID

TY_EV_MNT
SC_EV_MNT
RC_EV_MNT
TY_EV_MNT_ORG
ID_EM
ID_CMP
TS_EV_MNT_CRT
TS_EV_MNT_APLY
ID_JOB_ST

JobEndID
MaintenanceEventEffectiveStatusCode
MaintenanceEventExpirationStatusCode
RecordCreatedTimestamp
RecordLastModifiedTimestamp

ID_JOB_END
SC_EV_MNT_EF
SC_EV_MNT_EP
TS_CRT_RCRD
TS_CRT_RCRD

EventID
RetailStoreID
Locale

ID_EV
ID_STR_RT
LCL

LoalizedName
LocalizedDescription

NM_EV_MNT
DE_EV_MNT

ItemMaintenanceEvent
CO_MNT_ITM

EventID
RetailStoreID
FunctionCode
RecordCreatedTimestamp
RecordLastModifiedTimestamp

ID_EV
ID_STR_RT
LU_EV_ITM_MNT
TS_CRT_RCRD
TS_CRT_RCRD

ItemPriceMaintenance
MA_PRC_ITM

EventID
RetailStoreID

ID_EV
ID_STR_RT

TypeCode
EventPriority
PriceLastDigit
LabelTemplateID
PricingGroupID
RecordCreatedTimestamp
RecordLastModifiedTimestamp

TY_PRC_MNT
UN_PRI_EV
UN_DG_LS_PRC
ID_TMPLT_LB
ID_PRCGP
TS_CRT_RCRD
TS_CRT_RCRD

EventID
RetailStoreID
SaleUnitAmount
SaleUnitAmountTypeCode
RecordCreatedTimestamp
RecordLastModifiedTimestamp

ID_EV
ID_STR_RT
MO_CHN_PRN_UN_PRC
TY_CHN_PRN_UN_PRC
TS_CRT_RCRD
TS_CRT_RCRD

MaintenanceEventI18N
CO_EV_MNT_I8

PermanentPriceChange
TR_CHN_PRN_PRC

PermanentPriceChangeItem EventID
MA_ITM_PRN_PRC_ITM
RetailStoreID
ItemID
LabelTemplateID
PriceOverrideAmount
RecordCreatedTimestamp
RecordLastModifiedTimestamp

*Red shading indicates potential data conflicts between XML and DB.

ID_EV
ID_STR_RT
ID_ITM
ID_TMPLT_LB
MO_OVRD_PRC
TS_CRT_RCRD
TS_CRT_RCRD

DataType
INTEGER
VARCHAR(5)
VARCHAR(120)
VARCHAR(250)

Transformation
Rules

INTEGER
VARCHAR(5)
VARCHAR(10)

PricingImport/PriceChange/StoreID
PricingImport/PriceChange/Description
No mapping available
No mapping available
Derived from PricingImport/PriceChange@StartDate
No mapping available
No mapping available
No mapping available
No mapping available
No mapping available
No mapping available
PricingImport/PriceChange@StartDate
No mapping available
No mapping available
No mapping available

PricingImport/PriceChange@ID
Now()
Now()
Generated at Stores
PricingImport/PriceChange/StoreID
No mapping available

VARCHAR(120)
VARCHAR(250)
INTEGER
VARCHAR(5)
VARCHAR(120)
VARCHAR(250)
TIMESTAMP
TIMESTAMP
VARCHAR(20)
VARCHAR(20)
VARCHAR(20)
VARCHAR(20)
VARCHAR(10)
INTEGER
TIMESTAMP
TIMESTAMP
VARCHAR(12)

Field/Column Name/Xpath

Generated at Stores

VARCHAR(20)
VARCHAR(20)
VARCHAR(20)
VARCHAR(120)
VARCHAR(10)
VARCHAR(10)
VARCHAR(10)
VARCHAR(10)
TIMESTAMP
TIMESTAMP
TIMESTAMP
TIMESTAMP

INTEGER
TIMESTAMP
TIMESTAMP

SOURCE XML - Pri

PricingImport/PriceChange/LocalizedDescription@Name
No mapping available
Generated at Stores
PricingImport/PriceChange/StoreID
PricingImport/PriceChange/Description@Text
No mapping available
PricingImport/PriceChange@StartDate
No mapping available
No mapping available
Derived from PricingImport/PriceChange@StartDate
No mapping available
No mapping available
No mapping available
No mapping available
No mapping available
No mapping available
No mapping available

VARCHAR(12)
VARCHAR(20)
VARCHAR(20)
TIMESTAMP
TIMESTAMP
INTEGER
VARCHAR(5)
VARCHAR(10)

No mapping available
No mapping available
No mapping available
Now()
Now()
Generated at Stores
PricingImport/PriceChange/StoreID
No mapping available

VARCHAR(120)
VARCHAR(250)

PricingImport/PriceChange/LocalizedDescription@Name
No mapping available

INTEGER
VARCHAR(5)
VARCHAR(20)
TIMESTAMP
TIMESTAMP

Generated at Stores

INTEGER
VARCHAR(5)

Generated at Stores

VARCHAR(20)
INTEGER
CHAR(1)
VARCHAR(8)
INTEGER
TIMESTAMP
TIMESTAMP

PricingImport/PriceChange/StoreID
No mapping available
Now()
Now()

PricingImport/PriceChange/StoreID

No mapping available
No mapping available
No mapping available
PricingImport/PriceChange@TemplateType
No mapping available
Now()
Now()

INTEGER
VARCHAR(5)
DECIMAL(10,4)
VARCHAR(20)
TIMESTAMP
TIMESTAMP

Generated at Stores

INTEGER
VARCHAR(5)
VARCHAR(14)
VARCHAR(8)
DECIMAL(13,2)
TIMESTAMP
TIMESTAMP

Generated at Stores

PricingImport/PriceChange/StoreID
No mapping available
No mapping available
Now()
Now()

PricingImport/PriceChange/StoreID
PricingImport/PriceChange/Item@ID
PricingImport/PriceChange/Item@TemplateType
PricingImport/PriceChange/Item/Price
Now()
Now()

SOURCE XML - PricingImport.XSD


Field Type Length

String
String

Valid Values / Functional Notes


Maximum field size for INTEGER is typically NUMBER(10) to support Java
INT datatype in application.

5
250*

Date

For Price Changes with an Effective Date in the future, the type value will be
"PPC". For Effective Dates now or in the past, the type value will be "IPC"
Default = "PENDING"

Int

This value is used as an external index. RPM will prepend a "1" for regular
price changes or a "2" for clearance price changes when sending price
change Ids. Field size is NUMBER(10).

String

String

5
System Supported Locales
The length here is defined as the length of single byte string. If multibyte
120 characters are used, the max length should be 120/4 = 30.
Not populated
Same ID as Event table

For Price Changes with an Effective Date in the future, the type value will be
"PPC". For Effective Dates now or in the past, the type value will be "IPC"
Default = "PENDING"

Same ID as Event table


System Supported Locales
The length here is defined as the length of single byte string. If multibyte
120 characters are used, the max length should be 120/4 = 30.

String

Same ID as Event table


String

5
Default = "PRICE CHANGE"

Same ID as Event table


String

5
For Price Changes with an Effective Date in the future, the type value will be
"PPC". For Effective Dates now or in the past, the type value will be "IPC"

Defaults = "*DEFAULT" upon inserts

Same ID as Event table


String

String
String
String
Decimal

Same ID as Event table

Defaults = "*DEFAULT" upon inserts


13,2

TARGET - CO/BO Database


Logical / Physical Table

Event
CO_EV

Logical Column Name

Physical Column Name

EventID
RetailStoreID

ID_EV
ID_STR_RT

Name

NM_EV

Description
TypeCode
StatusCode
StoreOrHomeOfficeControlCode
OwnerName
ScheduledStartDate
ScheduledEndDate
ActualStartDate
ActualEndDate
PlanStartDateTimestamp
PlanEndDateTimestamp

DE_EV
TY_EV
SC_EV
CC_EV
NM_EV_OWNER
DC_DY_BSN_SS
DC_DY_BSN_SE
DC_DY_BSN_AS
DC_DY_BSN_AE
TS_EV_PL_EF
TS_EV_PL_EP

ExternalEventID
RecordCreationTimestamp
RecordLastModifiedTimestamp

ID_EV_EXT
TS_CRT_RCRD
TS_MDF_RCRD

EventI18N
CO_EV_I8

EventID
RetailStoreID
Locale
LoalizedName
LocalizedDescription

ID_EV
ID_STR_RT
LCL
NM_EV_MNT
DE_EV_MNT

MaintenanceEvent
CO_EV_MNT

EventID
RetailStoreID

ID_EV
ID_STR_RT

PromotionName

NM_EV_MNT

PromotionDescription
EffectiveDateTimestamp
ExpirationDateTimestamp
TypeCode

DE_EV_MNT
TS_EV_MNT_EF
TS_EV_MNT_EP
TY_EV_MNT

StatusCode
ReasonCode
OriginTypeCode
EmployeeID
CompetitorID
CreateDateTimestamp
AppliedTimestamp
JobStartID
JobEndID
MaintenanceEventEffectiveStatusCode
MaintenanceEventExpirationStatusCode
RecordCreationTimestamp
RecordLastModifiedTimestamp

SC_EV_MNT
RC_EV_MNT
TY_EV_MNT_ORG
ID_EM
ID_CMP
TS_EV_MNT_CRT
TS_EV_MNT_APLY
ID_JOB_ST
ID_JOB_END
SC_EV_MNT_EF
SC_EV_MNT_EP
TS_CRT_RCRD
TS_MDF_RCRD

EventID
RetailStoreID
Locale

ID_EV
ID_STR_RT
LCL

LoalizedName

NM_EV_MNT

LocalizedDescription

DE_EV_MNT

ItemMaintenanceEvent
CO_MNT_ITM

EventID
RetailStoreID
FunctionCode
RecordCreatedTimestamp
RecordLastModifiedTimestamp

ID_EV
ID_STR_RT
LU_EV_ITM_MNT
TS_CRT_RCRD
TS_CRT_RCRD

ItemPriceMaintenance
MA_PRC_ITM

EventID
RetailStoreID
TypeCode
EventPriority
PriceLastDigit
LabelTemplateID
PricingGroupID
RecordCreationTimestamp
RecordLastModifiedTimestamp

ID_EV
ID_STR_RT
TY_PRC_MNT
UN_PRI_EV
UN_DG_LS_PRC
ID_TMPLT_LB
ID_PRCGP
TS_CRT_RCRD
TS_CRT_RCRD

TemporaryPriceChange
TR_CHN_TMP_PRC

EventID
RetailStoreID

ID_EV
ID_STR_RT

SaleUnitAmount

MO_UN_TMP_PRC_CHN

SaleUnitAmountTypeCode
RecordCreationTimestamp
RecordLastModifiedTimestamp

TY_UN_TMP_PRC_CHN
TS_CRT_RCRD
TS_MDF_RCRD

MaintenanceEventI18n
CO_EV_MNT_I8

TemporaryPriceChangeItem
MA_ITM_TMP_PRC_CHN

EventID
RetailStoreID

ID_EV
ID_STR_RT

Item ID
TemporaryPriceCounter
EffectiveDate
ExpirationDate
PriceOverrideAmount
LabelTemplateID

ID_ITM
ID_CNT_TMP_PRC
TS_TPC_ITM_EF
TS_TPC_ITM_EP
MO_OVRD_PRC
ID_TMPLT_LB

PromotionID

ID_PRM

PromotionComponentId

ID_PRM_CMP

PromotionComponentDetailID
RecordCreationTimestamp
RecordLastModifiedTimestamp

ID_PRM_CMP_DTL
TS_CRT_RCRD
TS_MDF_RCRD

*Red shading indicates potential data conflicts between XML and DB.

DataType

INTEGER
VARCHAR(5)

Transformation
Rules

Generated at Stores

VARCHAR(160)

VARCHAR(640)
VARCHAR(20)
VARCHAR(20)
VARCHAR(20)
VARCHAR(120)
VARCHAR(10)
VARCHAR(10)
VARCHAR(10)
VARCHAR(10)
TIMESTAMP
TIMESTAMP

INTEGER
TIMESTAMP
TIMESTAMP

Now()
Now()

INTEGER
Generated at Stores
VARCHAR(5)
VARCHAR(10)
VARCHAR(120)
VARCHAR(250)
INTEGER
VARCHAR(5)

VARCHAR(120)

VARCHAR(250)
TIMESTAMP
TIMESTAMP

Generated at Stores

VARCHAR(20)
VARCHAR(20)
VARCHAR(20)
VARCHAR(10)
INTEGER
TIMESTAMP
TIMESTAMP
VARCHAR(12)
VARCHAR(12)
VARCHAR(20)
VARCHAR(20)
Now()
Now()
INTEGER
VARCHAR(5)
VARCHAR(10)

Generated at Stores

VARCHAR(120)

VARCHAR(250)
INTEGER
VARCHAR(5)
VARCHAR(20)
TIMESTAMP
TIMESTAMP
INTEGER
VARCHAR(5)
VARCHAR(20)
INTEGER
CHAR(1)
VARCHAR(8)
INTEGER
TIMESTAMP
TIMESTAMP
INTEGER
VARCHAR(5)

Generated at Stores

Now()
Now()

Now()
Now()
Generated at Stores

DECIMAL(10,4)

VARCHAR(20)
TIMESTAMP
TIMESTAMP

Now()
Now()

INTEGER
VARCHAR(5)

Generated at Stores

VARCHAR(14)
INTEGER
TIMESTAMP
TIMESTAMP
DECIMAL(13,2)
VARCHAR(8)
INTEGER
INTEGER
INTEGER
Now()
Now()

SOURCE XML - PricingImport.XSD


Field/Column Name/Xpath

Field Type Length

PricingImport/PricePromotion/StoreID

String

PricingImport/PricePromotion/Name

String

120

PricingImport/PricePromotion/Description
No mapping available
No mapping available
No mapping available
No mapping available
No mapping available
No mapping available
No mapping available
No mapping available
PricingImport/PricePromotion@StartDateTime
PricingImport/PricePromotion@EndDateTime

String

250

PricingImport/PricePromotion@ID

Int

PricingImport/PricePromotion/StoreID

String

PricingImport/PricePromotion/StoreID

String

PricingImport/PricePromotion/Name

String

120

PricingImport/PricePromotion/Description
PricingImport/PricePromotion@StartDateTime
PricingImport/PricePromotion@EndDateTime
No mapping available

String
DateTime
DateTime

250

DateTime
DateTime

PricingImport/PricePromotion/LocalizedNameDescription@Name
PricingImport/PricePromotion/LocalizedNameDescription@Description

No mapping available
No mapping available
No mapping available
No mapping available
No mapping available
No mapping available
No mapping available
No mapping available
No mapping available
No mapping available
No mapping available

PricingImport/PricePromotion/StoreID
No mapping available

String

PricingImport/PricePromotion/LocalizedNameDescription@Name

String

120

PricingImport/PricePromotion/LocalizedNameDescription@Description

String

250

PricingImport/PricePromotion/StoreID
No mapping available

String

String

Generated at Stores
PricingImport/PricePromotion/StoreID
No mapping available
PricingImport/PricePromotion@Priority
No mapping available
PricingImport/PricePromotion@TemplateType
PricingImport/PricePromotion@ PricingGroupID

Int
String
Int

PricingImport/PricePromotion/StoreID

String

PricingImport/PricePromotion/DiscountPercent
PricingImport/PricePromotion/DiscountAmount
PricingImport/PricePromotion/NewPrice

Decimal
Decimal
Decimal

13,2
13,2

PricingImport/PricePromotion@Type

Enum

PricingImport/PricePromotion/StoreID

String

PricingImport/PricePromotion/Item@ID

String*

PricingImport/PricePromotion/Item/StartDateTime
PricingImport/PricePromotion/Item/Price
PricingImport/PricePromotion@TemplateType

Decimal
String

PricingImport/PricePromotion@ID

Int

PricingImport/PricePromotion@PromoCompID

Int

PricingImport/PricePromotion@PromoCompDetlID

Int

13,2

port.XSD
Valid Values / Functional Notes
The Promotion ID in this column will be the Stores
Promotion ID that will be created in the import process.
The RPM promotion ID will not be updated in this
column. Maximum field size for INTEGER is typically
NUMBER(10) to support Java INT datatype in
application.
The length here is defined as the length of single byte
string. If multibyte characters are used, the max length
should be 120/4 = 30.
The length here is defined as the length of single byte
string. If multibyte characters are used, the max length
should be 250/4 = 60.
Default value = "TPC" for TemporaryPriceChange
Derived from Start Date

The RPM promotion ID will be used to derive the


stores promotion ID. Stores DB will be altered to
accommodate the RPM promotion ID. Field size is
NUMBER(10), or Java int. RPM pass through value.

Same ID as Event table


System Supported Locales

Same ID as Event table


The length here is defined as the length of single byte
string. If multibyte characters are used, the max length
should be 120/4 = 30.
The length here is defined as the length of single byte
string. If multibyte characters are used, the max length
should be 250/4 = 60.
If left null, will default to 2009-12-31 23:59:59.000
Default value = "TPC" for TemporaryPriceChange

Derived from start date

Same ID as Event table


System Supported Locales
The length here is defined as the length of single byte
string. If multibyte characters are used, the max length
should be 120/4 = 30.
The length here is defined as the length of single byte
string. If multibyte characters are used, the max length
should be 250/4 = 60.
Same ID as Event table
Default value = "PRICE CHANGE"

Same ID as Event table


Default value = "TPC" for Temporary Price Change

Default value = "*DEFAULT" upon inserts


Maximum allowable value is Number(10)

Same ID as Event table

It can be any of the 3: discount percent, discount


amount, or new price
Indicator to denote either : AmountOff or PercentOff
or NewPrice. 0 = AmountOff, 1 = PercentOff, 2 = New
Price

Same ID as Event table


Here Item ID is required, but Item occurrence can be
zero, in this case the promotion details will be stored
without storing the item details

Default value = "*DEFAULT" upon inserts


RPM pass through value - max allowed value is
Number(10)
RPM pass through value - max allowed value is
Number(10). Defaults to Zero.
RPM pass through value - max allowed value is
Number(10). Defaults to Zero.

TARGET - CO/BO Database


Logical / Physical Table

Event
CO_EV

Logical Column Name

Physical Column Name

EventID
RetailStoreID

ID_EV
ID_STR_RT

Name

NM_EV

Description
TypeCode
StatusCode
StoreOrHomeOfficeControlCode
OwnerName
ScheduledStartDate
ScheduledEndDate
ActualStartDate
ActualEndDate
PlanStartDateTimestamp
PlanEndDateTimestamp

DE_EV
TY_EV
SC_EV
CC_EV
NM_EV_OWNER
DC_DY_BSN_SS
DC_DY_BSN_SE
DC_DY_BSN_AS
DC_DY_BSN_AE
TS_EV_PL_EF
TS_EV_PL_EP

ExternalEventID
RecordCreationTimestamp
RecordLastModifiedTimestamp

ID_EV_EXT
TS_CRT_RCRD
TS_MDF_RCRD

EventI18N
CO_EV_I8

EventID
RetailStoreID
Locale
LoalizedName
LocalizedDescription

ID_EV
ID_STR_RT
LCL
NM_EV_MNT
DE_EV_MNT

MaintenanceEvent
CO_EV_MNT

EventID
RetailStoreID

ID_EV
ID_STR_RT

PromotionName

NM_EV_MNT

PromotionDescription
EffectiveDateTimestamp
ExpirationDateTimestamp
TypeCode

DE_EV_MNT
TS_EV_MNT_EF
TS_EV_MNT_EP
TY_EV_MNT

StatusCode
ReasonCode
OriginTypeCode
EmployeeID
CompetitorID
CreateDateTimestamp
AppliedTimestamp
JobStartID
JobEndID
MaintenanceEventEffectiveStatusCode
MaintenanceEventExpirationStatusCode
RecordCreationTimestamp
RecordLastModifiedTimestamp

SC_EV_MNT
RC_EV_MNT
TY_EV_MNT_ORG
ID_EM
ID_CMP
TS_EV_MNT_CRT
TS_EV_MNT_APLY
ID_JOB_ST
ID_JOB_END
SC_EV_MNT_EF
SC_EV_MNT_EP
TS_CRT_RCRD
TS_MDF_RCRD

EventID
RetailStoreID
Locale

ID_EV
ID_STR_RT
LCL

LoalizedName

NM_EV_MNT

LocalizedDescription

DE_EV_MNT

ItemMaintenanceEvent
CO_MNT_ITM

EventID
RetailStoreID
FunctionCode
RecordCreatedTimestamp
RecordLastModifiedTimestamp

ID_EV
ID_STR_RT
LU_EV_ITM_MNT
TS_CRT_RCRD
TS_CRT_RCRD

ItemPriceMaintenance
MA_PRC_ITM

EventID
RetailStoreID
TypeCode
EventPriority
PriceLastDigit
LabelTemplateID
PricingGroupID
RecordCreationTimestamp
RecordLastModifiedTimestamp

ID_EV
ID_STR_RT
TY_PRC_MNT
UN_PRI_EV
UN_DG_LS_PRC
ID_TMPLT_LB
ID_PRCGP
TS_CRT_RCRD
TS_CRT_RCRD

ClearancePriceChange
TR_CHN_CLR_PRC

EventID
RetailStoreID

ID_EV
ID_STR_RT

SaleUnitAmount

MO_UN_CLR_PRC_CHN

SaleUnitAmountTypeCode
ClearanceID
RecordCreationTimestamp

TY_UN_CLR_PRC_CHN
ID_CLR
TS_CRT_RCRD

MaintenanceEventI18n
CO_EV_MNT_I8

ClearancePriceChangeItem
MA_ITM_CLR_PRC_CHN

RecordLastModifiedTimestamp

TS_MDF_RCRD

EventID
RetailStoreID

ID_EV
ID_STR_RT

Item ID
PriceOverrideAmount
LabelTemplateID
RecordCreationTimestamp
RecordLastModifiedTimestamp

ID_ITM
MO_OVRD_PRC
ID_TMPLT_LB
TS_CRT_RCRD
TS_MDF_RCRD

*Red shading indicates potential data conflicts between XML and DB.

DataType

INTEGER
VARCHAR(5)

Transformation
Rules

Generated at Stores

VARCHAR(160)

VARCHAR(640)
VARCHAR(20)
VARCHAR(20)
VARCHAR(20)
VARCHAR(120)
VARCHAR(10)
VARCHAR(10)
VARCHAR(10)
VARCHAR(10)
TIMESTAMP
TIMESTAMP

INTEGER
TIMESTAMP
TIMESTAMP

Now()
Now()

INTEGER
Generated at Stores
VARCHAR(5)
VARCHAR(10)
VARCHAR(120)
VARCHAR(250)
INTEGER
VARCHAR(5)

VARCHAR(120)

VARCHAR(250)
TIMESTAMP
TIMESTAMP

Generated at Stores

VARCHAR(20)
VARCHAR(20)
VARCHAR(20)
VARCHAR(10)
INTEGER
TIMESTAMP
TIMESTAMP
VARCHAR(12)
VARCHAR(12)
VARCHAR(20)
VARCHAR(20)
Now()
Now()
INTEGER
VARCHAR(5)
VARCHAR(10)

Generated at Stores

VARCHAR(120)

VARCHAR(250)
INTEGER
VARCHAR(5)
VARCHAR(20)
TIMESTAMP
TIMESTAMP
INTEGER
VARCHAR(5)
VARCHAR(20)
INTEGER
CHAR(1)
VARCHAR(8)
INTEGER
TIMESTAMP
TIMESTAMP
INTEGER
VARCHAR(5)

Generated at Stores

Now()
Now()

Now()
Now()
Generated at Stores

DECIMAL(10,4)

VARCHAR(20)
INTEGER
TIMESTAMP

Now()

TIMESTAMP
INTEGER
VARCHAR(5)

Now()
Generated at Stores

VARCHAR(14)
DECIMAL(13,2)
VARCHAR(8)
Now()
Now()

SOURCE XML - PricingImport.XSD


Field/Column Name/Xpath

Field Type Length

PricingImport/PricePromotion/StoreID

String

PricingImport/PricePromotion/Name

String

120

PricingImport/PricePromotion/Description
No mapping available
No mapping available
No mapping available
No mapping available
No mapping available
No mapping available
No mapping available
No mapping available
PricingImport/PricePromotion@StartDateTime
PricingImport/PricePromotion@EndDateTime

String

250

PricingImport/PricePromotion@ID

Int

PricingImport/PricePromotion/StoreID

String

PricingImport/PricePromotion/StoreID

String

PricingImport/PricePromotion/Name

String

120

PricingImport/PricePromotion/Description
PricingImport/PricePromotion@StartDateTime
PricingImport/PricePromotion@EndDateTime
No mapping available

String
DateTime
DateTime

250

DateTime
DateTime

PricingImport/PricePromotion/LocalizedNameDescription@Name
PricingImport/PricePromotion/LocalizedNameDescription@Description

No mapping available
No mapping available
No mapping available
No mapping available
No mapping available
No mapping available
No mapping available
No mapping available
No mapping available
No mapping available
No mapping available

PricingImport/PricePromotion/StoreID
No mapping available

String

PricingImport/PricePromotion/LocalizedNameDescription@Name

String

120

PricingImport/PricePromotion/LocalizedNameDescription@Description

String

250

PricingImport/PricePromotion/StoreID
No mapping available

String

String

Generated at Stores
PricingImport/PricePromotion/StoreID
No mapping available
PricingImport/PricePromotion@Priority
No mapping available
PricingImport/PricePromotion@TemplateType
PricingImport/PricePromotion@ PricingGroupID

Int
String
Int

PricingImport/Clearance/StoreID

String

PricingImport/Clearance/DiscountPercent
PricingImport/Clearance/DiscountAmount
PricingImport/Clearance/NewPrice

Decimal
Decimal
Decimal

13,2
13,2

PricingImport/Clearance@Type

Enum

PricingImport/Clearance/StoreID

String

PricingImport/Clearance/Item@ID
PricingImport/Clearance/Item/Price
PricingImport/Clearance@TemplateType

String*
Decimal
String

13,2

port.XSD
Valid Values / Functional Notes
The Promotion ID in this column will be the Stores
Promotion ID that will be created in the import process.
The RPM promotion ID will not be updated in this
column. Maximum field size for INTEGER is typically
NUMBER(10) to support Java INT datatype in
application.
The length here is defined as the length of single byte
string. If multibyte characters are used, the max length
should be 120/4 = 30.
The length here is defined as the length of single byte
string. If multibyte characters are used, the max length
should be 250/4 = 60.
Default value = "TPC" for TemporaryPriceChange
Derived from Start Date

The RPM promotion ID will be used to derive the


stores promotion ID. Stores DB will be altered to
accommodate the RPM promotion ID. Field size is
NUMBER(10), or Java int. RPM pass through value.

Same ID as Event table


System Supported Locales

Same ID as Event table


The length here is defined as the length of single byte
string. If multibyte characters are used, the max length
should be 120/4 = 30.
The length here is defined as the length of single byte
string. If multibyte characters are used, the max length
should be 250/4 = 60.
If left null, will default to 2009-12-31 23:59:59.000
Default value = "TPC" for TemporaryPriceChange

Derived from start date

Same ID as Event table


System Supported Locales
The length here is defined as the length of single byte
string. If multibyte characters are used, the max length
should be 120/4 = 30.
The length here is defined as the length of single byte
string. If multibyte characters are used, the max length
should be 250/4 = 60.
Same ID as Event table
Default value = "PRICE CHANGE"

Same ID as Event table


Default value = "TPC" for Temporary Price Change

Default value = "*DEFAULT" upon inserts


Maximum allowable value is Number(10)

Same ID as Event table

It can be any of the 3: discount percent, discount


amount, or new price
Indicator to denote either : AmountOff or PercentOff
or NewPrice. 0 = AmountOff, 1 = PercentOff, 2 = New
Price
A unique ID to denote a clearance event.

Same ID as Event table


Here Item ID is required, but Item occurrence can be
zero, in this case the promotion details will be stored
without storing the item details
Default value = "*DEFAULT" upon inserts

TARGET - CO/BO Database


Logical / Physical Table
PriceDerivationRule

Logical Column Name


RetailStoreID

RU_PRDV

PriceDerivationRuleID
TransactionControlBreakCode
StatusCode
TypeCode
EffectiveDate
ExpirationDate
Description
EventID

PriceDerivationRuleName
ReasonCode
AdvancedDealAppliedFlag
AssignmentBasisCode
ScopeCode
MethodCode
DefaultEntryCode
DepartmentLedgerStockModifer
ListSortIndex
ApplicationLimit
SourceThresholdAmount
SourceLimitAmount
TargetThresholdAmount
TargetLimitAmount
PriceDerivationThresholdTypeCode
DealDistributionFlag
AllowRepeatingSourcesFlag
DiscountTypeID
SourceComparisonBasisCode
TargetComparisonBasisCode
SourceAnyQuantity
TargetAnyQuantity
PromotionID
PromotionComponentID
PromotionComponentDetailID
SourceItemPriceCategory
TargetItemPriceCategory
PricingGroupID
RecordCreationTimestamp
RecordLastModifiedTimestamp

PriceDerivationRuleI18N
RU_PRDV_I8

RetailStoreID
PriceDerivationRuleID
Locale

LocalizedName
ItemPriceDerivationRuleEligibility
CO_EL_PRDV_ITM

ItemID
PriceDerivationRuleEligibilityID
RetailStoreID
StoreFinancialLedgerAccountID
EventID
AccountingDispositionCode
ThresholdAmount
ThresholdQuantity
QuantityLimit
AmountLimit
EffectiveDateTimestamp
ExpirationDateTimestamp
RecordCreationTimestamp
RecordLastModifiedTimestamp

ItemPriceDerivation
CO_PRDV_ITM

RetailStoreID
PriceDerivationRuleID
ReductionAmount
ReductionPercent
DiscountPricePoint
RecordCreationTimestamp
RecordLastModifiedTimestamp

MixAndMatchPriceDerivationItem
TR_ITM_MXMH_PRDV

PriceDerivationRuleID
PromotionalProductID
RetailStoreID
ReductionMonetaryAmount
ReductionPercent
ReductionPricePoint
MixAndMatchLimitCount
ComparisonBasisCode
RecordCreationTimestamp
RecordLastModifiedTimestamp

MixAndMatchPriceDerivationRule
RU_PRDV_MXMH

PriceDerivationRuleID
RetailStoreID
MixAndMatchLimitCount

DepartmentPriceDerivationRuleEligibility

POSDepartmentID

CO_EL_PRDV_DPT

PriceDerivationRuleID

Table populated only if


DiscountRule/Sources/Source@Type is "Department" RetailStoreID
StoreFinancialLedgerAccountID
EventID
AccountingDispositionCode
ThresholdAmount
ThresholdQuantity
LimitQuantity
LimitAmount
EffectiveTimestamp
ExpirationTimestamp
RecordCreatedTimestamp
RecordLastModifiedTimestamp

MerchandiseStructurePriceDerivationRuleEligibility
CO_EL_MRST_PRDV
Table populated only if
DiscountRule/Sources/Source@Type is "Class"

PriceDerivationRuleID
RetailStoreID

ThresholdsPriceDerivationRuleEligibility
CO_EL_PRDV_TH

PriceDerivationRuleID
RetailStoreID
ThresholdID
ThresholdVal
ReductionAmount
ReductionPercent
DiscountPricePoint
RecordCreatedTimestamp
RecordLastModifiedTimestamp

ItemPriceDerivationRuleNonEligibility
CO_NEL_PRDV_ITM

PriceDerivationRuleID
RetailStoreID
ITEMID
NonEligiblilityTimestamp
RecordCreatedTimestamp
RecordLastModifiedTimestamp

MerchandiseClassificationCode
StoreFinancialLedgerAccountID
EventID
EffectiveDateTimestamp
ExpirationDateTimestamp
AccountingDispositionCode
ThresholdAmount
QuantityThreshold
AmountLimit
QuantityLimit
RecordCreatedTimestamp
RecordLastModifiedTimestamp

abase
Physical Column Name
ID_STR_RT

DataType
VARCHAR(5)

ID_RU_PRDV
LU_CBRK_PRDV_TRN
SC_RU_PRDV
TY_RU_PRDV

INTEGER
VARCHAR(2)
VARCHAR(20)
VARCHAR(2)

DC_RU_PRDV_EF
DC_RU_PRDV_EP
DE_RU_PRDV
ID_EV

TIMESTAMP
TIMESTAMP
VARCHAR(250)
INTEGER

NM_RU_PRDV
RC_RU_PRDV
FL_DL_ADVN_APLY
CD_BAS_PRDV
CD_SCP_PRDV
CD_MTH_PRDV
FL_CD_ENT_DFLT
DP_LDG_STK_MDFR
CD_ENT_SRT
QU_LM_APLY
MO_TH_SRC
MO_LM_SRC
MO_TH_TGT
MO_LM_TGT
CD_TY_TH_PRDV
FL_DL_DST
FL_ALW_RPT_SRC
ID_TY_DISC

VARCHAR(120)
INTEGER
CHAR(1)
INTEGER
INTEGER
INTEGER
CHAR(1)
VARCHAR(20)
SMALLINT
SMALLINT
DECIMAL(13,2)
DECIMAL(13,2)
DECIMAL(13,2)
DECIMAL(13,2)
VARCHAR(4)
CHAR(1)
CHAR(1)
INTEGER

CD_BAS_CMP_SRC
CD_BAS_CMP_TGT

VARCHAR(20)
VARCHAR(20)

QU_AN_SRC

SMALLINT

QU_AN_TGT
ID_PRM
ID_PRM_CMP
ID_PRM_CMP_DTL
ITM_PRC_CTGY_SRC
ITM_PRC_CTGY_TGT
ID_PRCGP
TS_CRT_RCRD
TS_MDF_RCRD

SMALLINT
INTEGER
INTEGER
INTEGER
VARCHAR(10)
VARCHAR(10)
INTEGER

Transformation
Rules

Now()
Now()

ID from the stores


system

ID_RU_PRDV
ID_STR_RT
LCL

INTEGER
VARCHAR(5)
VARCHAR(10)

NM_RU_PRDV

VARCHAR(120)

ID_ITM
ID_RU_PRDV
ID_STR_RT
ID_ACTN_LDG
ID_EV
DP_RU_PRC_DRVN
MO_TH
QU_TH
QU_UL
MO_UL
TS_RU_DRVN_EF
TS_RU_DRVN_EP
TS_CRT_RCRD
TS_MDF_RCRD

VARCHAR(14)
INTEGER
VARCHAR(5)
INTEGER
INTEGER
VARCHAR(4)
DECIMAL(13,2)
INTEGER
DECIMAL(9,2)
DECIMAL(13,2)
TIMESTAMP
TIMESTAMP
TIMESTAMP
TIMESTAMP

Now()
Now()

ID_STR_RT
ID_RU_PRDV
MO_UN_ITM_PRDV
PE_UN_ITM_PRDV
PNT_PRC_UN_ITM_PRDV
TS_CRT_RCRD
TS_MDF_RCRD

VARCHAR(5)
INTEGER
DECIMAL(13,2)
DECIMAL(5,2)
DECIMAL(13,2)
TIMESTAMP
TIMESTAMP

Now()
Now()

ID_RU_PRDV
ID_PRM_PRD
ID_STR_RT
MO_RDN_PRC_MXMH
PE_RDN_PRC_MXMH
PNT_PRC_RDN_MXMH
QU_LM_MXMH
CD_BAS_CMP
TS_CRT_RCRD
TS_MDF_RCRD

INTEGER
VARCHAR(14)
VARCHAR(5)
DECIMAL(13,2)
DECIMAL(5,2)
DECIMAL(13,2)
INTEGER
VARCHAR(20)
TIMESTAMP
TIMESTAMP

Now()
Now()

ID_RU_PRDV
ID_STR_RT
QU_LM_MXMH

INTEGER
VARCHAR(5)
INTEGER

ID_DPT_POS

VARCHAR(14)

ID_RU_PRDV

INTEGER

ID from the stores


system

ID_STR_RT
ID_ACTN_LDG
ID_EV
DP_ACNT_DPT_PRDV
MO_TH
QU_TH
QU_UL
MO_UL
TS_RU_MRST_EF
TS_RU_MRST_EP
TS_CRT_RCRD
TS_MDF_RCRD

VARCHAR(5)
INTEGER
INTEGER
VARCHAR(4)
DECIMAL(13,2)
INTEGER
DECIMAL(9,2)
DECIMAL(13,2)
TIMESTAMP
TIMESTAMP
TIMESTAMP
TIMESTAMP

ID_RU_PRDV
ID_STR_RT

INTEGER
VARCHAR(5)

ID_STRC_MR_CD
ID_ACTN_LDG
ID_EV
TS_RU_MRST_EF
TS_RU_MRST_EP
DP_ACNT_MRST
MO_TH
QU_TH
MO_UL
QU_UL
TS_CRT_RCRD
TS_MDF_RCRD

VARCHAR(10)
INTEGER
INTEGER
TIMESTAMP
TIMESTAMP
VARCHAR(4)
DECIMAL(13,2)
INTEGER
DECIMAL(13,2)
DECIMAL(9,2)
TIMESTAMP
TIMESTAMP

ID_RU_PRDV
ID_STR_RT
ID_PRDV_TH
TH_VAL
MO_UN_TH_PRDV_SLS
PE_UN_TH_PRDV_SLS
PT_PRC_TH_PRDV_SLS
TS_CRT_RCRD
TS_MDF_RCRD

INTEGER
VARCHAR(5)
INTEGER
SMALLINT
DECIMAL(13,2)
DECIMAL(13,2)
DECIMAL(13,2)
TIMESTAMP
TIMESTAMP

ID_RU_PRDV
ID_STR_RT
ID_ITM
TS_NEL_EF
TS_CRT_RCRD
TS_MDF_RCRD

INTEGER
VARCHAR(5)
VARCHAR(14)
TIMESTAMP
TIMESTAMP
TIMESTAMP

-1
-1

Now()
Now()
ID from the stores
system

-1
-1

null

0
0
Now()
Now()
ID from the stores
system
ID from RPM

Now()
Now()
ID from the stores
system

Now()
Now()

SOURCE XML - PricingImport.XSD


Field/Column Name/Xpath
PricingImport/DiscountRule/PricingRule/StoreID

Field Type Length


String
5

No mapping available
No mapping available
No mapping available
PricingImport/DiscountRule/PricingRule@StartDateTime
PricingImport/DiscountRule/PricingRule@EndDateTime
PricingImport/DiscountRule/PricingRule@Type
No mapping available

DateTime
DateTime
Enum

PricingImport/DiscountRule/PricingRule/Name
No mapping available
No mapping available
PricingImport/DiscountRule/Sources@Type
PricingImport/DiscountRule/PricingRule@Scope
No mapping available
No mapping available
PricingImport/DiscountRule/PricingRule@AccountingMethod
No mapping available
PricingImport/DiscountRule/PricingRule@NbrTimesPerTrans
PricingImport/DiscountRule/PricingRule/SourceThreshold
PricingImport/DiscountRule/PricingRule/SourceLimit
PricingImport/DiscountRule/PricingRule/TargetThreshold
PricingImport/DiscountRule/PricingRule/TargetLimit
No mapping available
PricingImport/DiscountRule/PricingRule@DealDistribution
PricingImport/DiscountRule/PricingRule@AllowSourceToRepeat
No mapping available

String

PricingImport/DiscountRule/Sources@Type
PricingImport/DiscountRule/Targets@Type

Enum
Enum

PricingImport/DiscountRule/Sources@Qty

Int

PricingImport/DiscountRule/Targets@Qty
PricingImport/DiscountRule/PricingRule@ID
PricingImport/DiscountRule/PricingRule@PromoCompID
PricingImport/DiscountRule/PricingRule@PromoCompDetlID
PricingImport/DiscountRule/PricingRule@SourceItemPriceCategory
PricingImport/DiscountRule/PricingRule@TargetItemPriceCategory
PricingImport/DiscountRule/PricingRule@PricingGroupID

Int
Int
Int
Int
String
String
Int

120

Enum
Enum

Enum
Int
Decimal
Decimal
Decimal
Decimal
Enum
Boolean

13,2
13,2
13,2
13,2

PricingImport/DiscountRule/PricingRule/StoreID
No mapping available

String

PricingImport/DiscountRule/PricingRule/LocalizedName@Name

String

120

PricingImport/DiscountRule/Sources/Source@ID
PricingImport/DiscountRule/PricingRule@ID
PricingImport/DiscountRule/PricingRule/StoreID
No mapping available
No mapping available
No mapping available
PricingImport/DiscountRule/Sources/Source/SourceAmount
PricingImport/DiscountRule/Sources/Source@Qty
No mapping available
No mapping available
PricingImport/DiscountRule/PricingRule@StartDateTime
PricingImport/DiscountRule/PricingRule@EndDateTime

String
Int
String

PricingImport/DiscountRule/PricingRule/StoreID
PricingImport/DiscountRule/PricingRule@ID
PricingImport/DiscountRule/Targets/DiscountAmount
PricingImport/DiscountRule/Targets/DiscountPercent
PricingImport/DiscountRule/Targets/NewPrice

String
Int
Decimal
Decimal
Decimal

13,2

PricingImport/DiscountRule/PricingRule@ID
PricingImport/DiscountRule/Targets/Target@ID
PricingImport/DiscountRule/PricingRule/StoreID
PricingImport/DiscountRule/Targets/PricingImport/DiscountAmount
PricingImport/DiscountRule/Targets/PricingImport/DiscountPercent
PricingImport/DiscountRule/Targets/NewPrice
PricingImport/DiscountRule/Targets/Target@Qty
No mapping available

Int
String
String
Decimal
Decimal
Decimal
Int

13,2

PricingImport/DiscountRule/PricingRule@ID
PricingImport/DiscountRule/PricingRule/StoreID
PricingImport/DiscountRule/Targets/Target@Qty

Int
String
Int

PricingImport/DiscountRule/Sources/Source@ID

String

No mapping available

Decimal
Int

13,2

DateTime
DateTime

13,2

13,2

PricingImport/DiscountRule/PricingRule/StoreID
No mapping available
No mapping available
No mapping available
PricingImport/DiscountRule/Sources/Source/SourceAmount
PricingImport/DiscountRule/Sources/Source@Qty
No mapping available
No mapping available
PricingImport/DiscountRule/PricingRule@StartDateTime
PricingImport/DiscountRule/PricingRule@EndDateTime

String

PricingImport/DiscountRule/PricingRule/StoreID

String

PricingImport/DiscountRule/Sources/Source@ID
No mapping available
No mapping available
PricingImport/DiscountRule/PricingRule@StartDateTime
PricingImport/DiscountRule/PricingRule@EndDateTime
No mapping available
PricingImport/DiscountRule/Sources/Source/SourceAmount
PricingImport/DiscountRule/Sources/Source@Qty
No mapping available
No mapping available

String

PricingImport/DiscountRule/PricingRule/StoreID
PricingImport/DiscountRule/Sources/Thresholds/Threshold@ID
PricingImport/DiscountRule/Sources/Thresholds/Threshold@Threshold
PricingImport/DiscountRule/Sources/Thresholds/Threshold/DiscountAmount
PricingImport/DiscountRule/Sources/Thresholds/Threshold/DiscountPercent
PricingImport/DiscountRule/Sources/Thresholds/Threshold/NewPrice

String
int

PricingImport/DiscountRule/PricingRule/StoreID
PricingImport/DiscountRule/CancelItems/CancelItem@ID
PricingImport/DiscountRule/CancelItems@EffectiveDateTime

String
String

Decimal
Int

13,2

DateTime
DateTime

DateTime
DateTime
Decimal
Int

13,2

Decimal
Decimal
Decimal

port.XSD
Valid Values / Functional Notes
ID from the stores system. This will not be the RPM promotion
ID

If left null, will default to 2009-12-31 23:59:59.000

The length here is defined as the length of single byte string. If


multibyte characters are used, the max length should be 120/4
= 30.

3'=Coupon, '2'=Other. Default it to 2


Transaction = 0, Item = 1, Group = 2

1' = Markdown, '0' = Discount

1'=SourceTarget, '0'=Target
0'= false, '1'= true

0'=Item, '1'=Department, '2'=Class, '3'=Coupon. Default it to 0


0'=Item, '1'=Department, '2'=Class. Default it to 0
The Any Quantity is only populated if Sources@Qualifier is set
to "Any"
The Any Quantity is only populated if Targets@Qualifier is set
to "Any"
RPM pass through value - max allowed value is Number(10)
RPM pass through value - max allowed value is Number(10)
RPM pass through value - max allowed value is Number(10)
Regular, Clearance, Both
Regular, Clearance, Both
Maximum allowable value is Number(10)

This will not be the RPM promotion ID


System supported locale
The length here is defined as the length of single byte string. If
multibyte characters are used, the max length should be 120/4
= 30.

Might be derived from the table - ID_DPT_PS column


ID_DPT_POS
This will not be the RPM promotion ID

This will not be the RPM promotion ID


Might be derived from the table - LU_CD_STRC_MR column
ID_STRC_MR_CD

This will not be the RPM promotion ID

This will not be the RPM promotion ID

SOURCE - RPM Export Files


Table, File,
Message Name Record Header Field/Column Name/Xpath
REGPC
FHEAD
Record Descriptor
Line Id
File Type
Export Timestamp
Format Version
FDETL
Record Descriptor
Line Id
Event Type
Id
Item
Location
LocationType
Effective Date
Selling Unit Change Ind
Selling Retail
Selling Retail UOM
Selling Retail Currency
Multi-Unit Change Ind
Multi-Units
Multi-Unit Retail
Multi-Unit UOM
Multi-Unit Currency
FDELE
Record Descriptor
Line Id
Id
Item
Location
LocationType
FTAIL
Record Descriptor
Line Id
Number of lines
CLRPC

FHEAD

FDETL

FDELE

Record Descriptor
Line Id
File Type
Export Timestamp
Format Version
Record Descriptor
Line Id
Event Type
Id
Item
Location
LocationType
Effective Date
Selling Retail
Selling Retail UOM
Selling Retail Currency
ResetClearanceId
Record Descriptor

Transformation
Rules

trim()
trim()

FTAIL

PRMPC

FHEAD

TSMPP

TSDTL

TTAIL
FSDEL

PRMPC

TTHRP

Line Id
Id
Item
Location
LocationType
Record Descriptor
Line Id
Number of lines
Record Descriptor
Line Id
File Type
Export Timestamp
Format Version
Record Descriptor
Line Id
Event Type
Promotion Id
Promo Comp Id
Promo Comp Detl Id
Start Date
End Date
Promo Name
Promo Desc
PricingGroupID
Promo Comp Name
Apply Order
Change Type

Change Value
Change Value UOM
Record Descriptor
Line Id
Item Id
Location Id
Location Type
Selling Retail
Selling Retail UOM
Record Descriptor
Line Id
Record Descriptor
Line Id
Promo Comp Detail Id
Item Id
Location Id
Location Type
Record Descriptor
Line Id
Event Type
Promotion Id
Promo Comp Id
Promo Comp Detl Id

TTLVL

TTDTL

TTAIL
FTDEL

PRMPC

TBGTP

TBITM

Start Date
End Date
Promo Name
Promo Desc
Promo Comp Name
Apply Order
Threshold Id
Threshold Name
Threshold Qual Type
Threshold Type
Change Type
Record Descriptor
Line Id
Threshold Value

Change Value
Change Value UOM
Record Descriptor
Line Id
Item Id
Location Id
Location Type
Record Descriptor
Line Id
Record Descriptor
Line Id
Promo Comp Detl Id
Item Id
Location Id
Location Type
Record Descriptor
Line Id
Event Type
Promotion Id
Promo Comp Id
Promo Comp Detl Id
Start Date
End Date
Promo Name
Promo Desc
Promo Comp Name
Apply Order
PricingGroupID
AllIndicator
Buy Quantity
Change Type

Change Value
Change Value UOM
Record Descriptor
Line Id

TGITM

TLOCN

TTAIL
FBDEL

FTAIL

Buy Item Id
Record Descriptor
Line Id
Get Item Id
Record Descriptor
Line Id
Location Id
Location Type
Record Descriptor
Line Id
Record Descriptor
Line Id
Promo Comp Detail Id
Item Id
Location Id
Location Type
Record Descriptor
Line Id
Number of lines

TARGET - PricingImport.XSD
Field/Column Name/Xpath

PricingImport@CreationDate
PricingImport@Version

PricingImport/PriceChange@ChangeType
PricingImport/PriceChange@ID
PricingImport/PriceChange/Item@ID
PricingImport/PriceChange/StoreID
PricingImport/PriceChange@StartDate
PricingImport/PriceChange/Item/Price
PricingImport/PriceChange/Item/Price@CurrencyCode

PricingImport/PriceChange/Item@ID
PricingImport/PriceChange/Item@ID
PricingImport/PriceChange/StoreID

PricingImport@CreationDate
PricingImport@Version

PricingImport/PriceChange@ChangeType
PricingImport/PriceChange@ID
PricingImport/PriceChange/Item@ID
PricingImport/PriceChange/StoreID
PricingImport/PriceChange@StartDate
PricingImport/PriceChange/Item/Price
PricingImport/PriceChange/Item/Price@CurrencyCode

PricingImport/PriceChange/Item@ID
PricingImport/PriceChange/Item@ID
PricingImport/PriceChange/StoreID

PricingImport@CreationDate
PricingImport@Version

PricingImport/PricePromotion@ChangeType
PricingImport/PricePromotion@Id
PricingImport/PricePromotion@PromoCompId
PricingImport/PricePromotion@PromoCompDetlId
PricingImport/PricePromotion@StartDateTime
PricingImport/PricePromotion@EndDateTime
PricingImport/PricePromotion/Name@Text
PricingImport/PricePromotion/Description@Text
PricingImport/PricePromotion@PricingGroupID

PricingImport/PricePromotion@Type
PricingImport/PricePromotion/DiscountPercent
PricingImport/PricePromotion/DiscountAmount
PricingImport/PricePromotion/Item/Price

PricingImport/PricePromotion/Item@ID
PricingImport/PricePromotion/StoreID
PricingImport/PricePromotion/Item/Price

PricingImport/PricePromotion@PromoCompDetlId
PricingImport/PricePromotion/Item@ID
PricingImport/PricePromotion/StoreID

PricingImport/DiscountRule/PricingRule@ChangeType
PricingImport/DiscountRule/PricingRule@Id
PricingImport/DiscountRule/PricingRule@PromoCompId
PricingImport/DiscountRule/PricingRule@PromoCompDetlId

PricingImport/DiscountRule/PricingRule@StartDateTime
PricingImport/DiscountRule/PricingRule@EndDateTime
PricingImport/DiscountRule/PricingRule/Name@Text

PricingImport/DiscountRule/PricingRule@Type

PricingImport/DiscountRule/Sources/Source@qty
PricingImport/DiscountRule/Targets/DiscountPercent
PricingImport/DiscountRule/Targets/DiscountAmount
PricingImport/DiscountRule/Targets/NewPrice

PricingImport/DiscountRule/Sources/Source@ID
PricingImport/DiscountRule/StoreID

PricingImport/DiscountRule/PricingRule@PromoCompDetlId
PricingImport/DiscountRule/Sources/Source@ID
PricingImport/DiscountRule/StoreID

PricingImport/DiscountRule/Pricing Rule@ChangeType
PricingImport/DiscountRule/PricingRule@Id
PricingImport/DiscountRule/PricingRule@PromoCompId
PricingImport/DiscountRule/PricingRule@PromoCompDetlId
PricingImport/DiscountRule/PricingRule@StartDateTime
PricingImport/DiscountRule/PricingRule@EndDateTime
PricingImport/DiscountRule/Pricing Rule/Name@Text

PricingImport/DiscountRule/Pricing Rule@PricingGroupID
PricingImport/DiscountRule/Sources/Source@Qty
PricingImport/DiscountRule/PricingRule@Type
PricingImport/DiscountRule/Targets/DiscountPercent
PricingImport/DiscountRule/Targets/DiscountAmount
PricingImport/DiscountRule/Targets/NewPrice

PricingImport/DiscountRule/Sources/Source@ID

PricingImport/DiscountRule/Targets/Target@ID

PricingImport/DiscountRule/StoreID

PricingImport/DiscountRule/PricingRule@PromoCompDetlId
PricingImport/DiscountRule/Sources/Source@ID
PricingImport/DiscountRule/StoreID

Sl. No.

3
4

XSD Tag

Source and Target Type


Language Code, Country Code &
Currency Code

Issue
RPM will send promotions at Item level,
not at class or department
No DB mapping exists.

Resolution
Mappings are not provided for Class and
Department tables.
Exists for future use.

Sr. No.

Issues

Corresponding fields cannot be found in


the Stores DB for the following
mappings :

Maxlength / size of the xml element fields


is not provided. So cannot compare the
sizes of the xml fields and DB columns.

Mapping for the following element is not


clear.

No mapping found for Country, Language


& Currency Codes in the stores DB

In PricePromotion the number of items


can be zero

The entries in the SCHEDULE and TASK


tables

Xpath

PricingImport/PricePromotionType/Item/Price/Amount/Currency/Code
PricingImport/PricePromotionType/PromoCompID

PricingImport/PricePromotionType/PromoCompDetlID
DiscountRule/PricingRule/PromoCompID
DiscountRule/PricingRule/PromoCompDetlId

DiscountRule/PricingRule/ID (Promotion ID)


DiscountRule/Sources/Source/type
DiscountRule/Targets/Target/type
PricingImport/PriceChange/Description/LanguageCode
PricingImport/PriceChange/Description/CountryCode
PricingImport/PriceChange/Item/Price/Currency/Code
PricingImport/PriceChange/StoreID

General Issue . For eg. : DiscountRule/PricingRule/Name/Text

PricingImport/PricePromotionType/Item/Price/Amount/Currency/Amount

PricingImport/PricePromotionType/ItemAndPrice/ID

PricingImport/PricePromotion

Description

Resolved
Flag

Yes

Yes

I18N, NO MAPPINGS
Future use, new columns will be
added in price derivations tables
Future use, new columns will be
added in price derivations tables
Future use, new columns will be
added in price derivations tables
Future use, new columns will be
added in price derivations tables

Yes

New promotion id will be created at


stores end, new column will be
added for this.

Yes
Yes
Yes

Where will the RPM Promotion ID persisted in Stores DB


because the "RPM Gaps" says "RPM promotion ID will be
stored in a separate field and the stores promotion ID will be
generated at runtime."
"RPM Gaps" says "RPM is sending the promotions at Item
level, not at class or department." So is it necessary to map
Department and Class Price Derivation Rule tables?

No length restriction in XSD but limited to 40 character in DB


MO_OVRD_PRC column in the MA_ITM_TMP_PRC_CHN
(TemporaryPriceChangeItem) stores the current selling price of the
item. But this value can also be arrived at after applying the discount
amt / discount percent to the existing price of the item present in the
DB. So which value is to be considered ?

Do we need to persist these details in the DB ?


ItemId cannot be null in the TemporaryPriceChangeItem table,
but it can be null if PricePromotion tag does not contain any
Item tags in the xml

Resolution

Yes
Yes
Yes
Yes
Yes

Only Item level will be considered.

Event tables

Yes

Analysis has been carried out


regarding the sizes and this is not in
scope of the mappings work.

Yes

The Item price which comes in the


xml will override the current price of
the item in the stores DB.

Yes

This is not in scope of DIMP project


right now, but will be taken care of
during I18N implementation.

Yes

In case an item does not come in


the xml, then the promotion details
will be stored without the item
details.

Proper elements are not present in the Promotion element to


map to the columns in these tables. But some values can be
derived based on the nature of the Promotion or Price Change.
Not sure wat kind of values go in these tables. For a single
promotion record, seems like 2 sets of records are being
inserted in the TASK table.
No

Potrebbero piacerti anche