Oracle® Retail POS Suite 14.1/Merchandising 15.0 Implementation Guide Release 15.0 E65392-02 |
|
![]() Previous |
![]() Next |
This appendix provides the XML Schema Definitions (XSD) of the following Data Import data types:
The XSD defines the rules for which external systems may interface with Stores applications through Data Import. An XSD specifies the format for XML documents that are sent to Data Import.
Note: The XML file names must begin with the following for DIMP to know which import function is being accessed and what translator to use:
|
Any XML that is imported through Data Import is expected to validate successfully against the appropriate XSD for its type. Data Import does not perform a validity check. It is the responsibility of the sending party to send proper, conforming data. Invalid XML is not parsed correctly and either the invalid parts are ignored or a parsing exception is generated.
Note: For more information about the tables presented in this appendix, see the following documents:
|
Table C-1 identifies the XSD elements in the CurrencyImport.xsd file.
Table C-1 Currency Import XSD Element Mapping Table
Log/Physical table | Target | Physical Column Name | DataType | XSD Element/Attribute Path | Notes |
---|---|---|---|---|---|
Currency CO_CNY |
CurrencyID |
ID_CNY_ICD |
INTEGER |
NA |
This ID will be generated by the system. |
IssuingCountryCode |
LU_CNY_ISSG_CY |
VARCHAR(4) |
CurrencyImport/Currency@IssuingCountryCode |
NA |
|
ISOCountryCode |
CD_CNY_ISO |
VARCHAR(3) |
CurrencyImport/Currency@ISOCode |
NA |
|
CurrencyDescription |
DE_CNY |
VARCHAR(250) |
CurrencyImport/Currency@Name |
The length here is defined as the length of a single byte string. If multibyte characters are used, the max length should be 250/4 = 60. |
|
IssuingCountryNationality |
DE_DNY_ISSG_NAT |
VARCHAR(120) |
CurrencyImport/Currency@IssuingCountryNationality |
The length here is defined as the length of a single byte string. If multibyte characters are used, the max length should be 120/4 = 30. |
|
CurrencyBaseFlag |
FL_CNY_BASE |
CHAR(1) |
CurrencyImport/Currency@IsBaseCurrency |
NA |
|
CurrencyScale |
QU_CNY_SCLE |
INTEGER |
CurrencyImport/Currency@Scale |
NA |
|
CurrencyPriority |
AI_CNY_PRI |
INTEGER |
CurrencyImport/Currency@Priority |
NA |
|
FinancialNetworkCurrencyCode |
CD_CNY_FN_NET |
VARCHAR(20) |
No mapping available |
NA |
|
ExchangeRate CO_RT_EXC |
ExchangeRateEffectiveDate |
DC_RT_EXC_EF |
DATE |
CurrencyImport/ExchangeRate@EffectiveDate |
NA |
ExchangeRateExpirationDate |
DC_RT_EXC_EP |
DATE |
CurrencyImport/ExchangeRate@ExpirationDate |
NA |
|
CurrencyID |
ID_CNY_ICD |
INTEGER |
CurrencyImport/ExchangeRate@CurrencyCode |
The CurrencyID is determined by matching the ISOCode in the Currency table. |
|
MinimumCurrencyAmount |
LL_CNY_EXC |
DECIMAL(13,2) |
CurrencyImport/ExchangeRate@MinimumAmount |
NA |
|
ToBuyAmount |
MO_RT_TO_BUY |
DECIMAL(13,6) |
CurrencyImport/ExchangeRate@ToBuyAmount |
NA |
|
ToSellAmount |
MO_RT_TO_SL |
DECIMAL(13,6) |
CurrencyImport/ExchangeRate@ToSellAmount |
NA |
|
ServiceFeeAmount |
MO_FE_SV_EXC |
DECIMAL(13,2) |
CurrencyImport/ExchangeRate@ServiceFeeAmount |
NA |
Example C-1 CurrencyImport.xsd
<xs:schema elementFormDefault="qualified"> xmlns:xs="http://www.w3.org/2001/XMLSchema"> -<xs:annotation> <xs:documentation> Currency Import Schema. Copyright 2008 Oracle. All rights reserved. </xs:documentation> </xs:annotation> <xs:include schemaLocation="../CommonImport.xsd"/> - <xs:element name="CurrencyImport" type="CurrencyImport_type"> <xs:annotation> <xs:documentation>Top-level element holding a collection of Currency and ExchangeRate elements. </xs:documentation> </xs:annotation> </xs:element> -<xs:complexType name="CurrencyImport_type"> -<xs:sequence> <xs:element type="Currency_type" name="Currency" maxOccurs="unbounded" minOccurs="0"/> <xs:element type="ExchangeRate_type" name="ExchangeRate" maxOccurs="unbounded" minOccurs="0"/> </xs:sequence> <xs:attribute type="FillType_subtype" name="FillType" use="required"/> <xs:attribute type="xs:dateTime" name="CreationDate"/> <xs:attribute type="xs:dateTime" name="ExpirationDate"/> <xs:attribute type="xs:string" name="Version"/> <xs:attribute type="xs:int" name="Priority"/> <xs:attribute type="xs:int" name="Batch"/> </xs:complexType> -<xs:complexType name="Currency_type"> -<xs:annotation> <xs:documentation> Represents a single currency's information. Note that IssuingCountryCode and Priority are required for new adds. </xs:documentation> </xs:annotation> <xs:attribute type="ChangeType_type" name="ChangeType" default="ADD"/> <xs:attribute type="CurrencyCode_type" name="ISOCode" use="required"/> <xs:attribute type="Code_type" name="IssuingCountryCode"/> <xs:attribute type="Description_type" name="Name"/> <xs:attribute type="Name_type" name="IssuingCountryNationality"/> <xs:attribute type="xs:boolean" name="IsBaseCurrency" default="false"/> <xs:attribute type="xs:int" name="Scale" default="2"/> <xs:attribute type="xs:int" name="Priority"/> </xs:complexType> -<xs:complexType name="ExchangeRate_type"> -<xs:annotation> <xs:documentation> Represents a single exchange rate information. Note that EffectiveDate and ExpirationDate are required for new adds. Because of the way exchange rate is queried, the expiration date must be the day after expiration. </xs:documentation> </xs:annotation> <xs:attribute type="ChangeType_type" name="ChangeType" default="ADD"/> <xs:attribute type="CurrencyCode_type" name="CurrencyCode" use="required"/> <xs:attribute type="Amount_type" name="MinimumAmount"/> <xs:attribute type="xs:date" name="EffectiveDate"/> <xs:attribute type="xs:date" name="ExpirationDate"/> <xs:attribute type="Rate_type" name="ToBuyAmount"/> <xs:attribute type="Rate_type" name="ToSellAmount"/> <xs:attribute type="Amount_type" name="ServiceFeeAmount"/> </xs:complexType> -<xs:simpleType name="Rate_type"> -<xs:restriction base="xs:decimal"> <xs:totalDigits value="13"/> <xs:fractionDigits value="6"/> </xs:restriction> </xs:simpleType> -<xs:simpleType name="Code_type"> -<xs:annotation> <xs:documentation> ISO-3166 based four character code denoting which country issues the Currency. </xs:documentation> </xs:annotation> -<xs:restriction base="xs:string"> <xs:maxLength value="4"/> </xs:restriction> </xs:simpleType> -<xs:simpleType name="FillType_subtype"> -<xs:restriction base="xs:string"> <xs:enumeration value="KillAndFill"/> <xs:enumeration value="FullIncremental"/> < <xs:restriction> </xs:simpleType> </xs:schema>
The following is an example CurrencyImport XML file:
Example C-2 CurrencyImport.xml
<?xml version="1.0" encoding="UTF-8"?> CurrencyImport ExpirationDate="2027-12-17T09:30:47.0Z" CreationDate="2001-12-17T09:30:47.0Z" Batch="1" Version="1.0" FillType="FullIncremental" Priority="0" xsi:noNamespaceSchemaLocation="CurrencyImport.xsd"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <!-- Example of deleting a currency by ISO code. --> <Currency ISOCode="USD" ChangeType="DEL"/> <!-- Example of adding a Currency. --> <Currency Priority="0" ISOCode="USD" ChangeType="ADD" Scale="2" IsBaseCurrency="true" IssuingCountryNationality="U.S." Name="Dollar" IssuingCountryCode="US"/> <!-- Example of updating a Currency. --> <Currency Priority="1" ISOCode="CAD" ChangeType="UPD" Scale="2" IsBaseCurrency="false" IssuingCountryNationality="Canadian" Name="Dollar" IssuingCountryCode="CA"/> <!-- An example of deleting all rates for Canadian Dollars --> <ExchangeRate ChangeType="DEL" CurrencyCode="CAD"/> <!-- An example of deleting a specific rate for Canadian Dollars. The dates are part of the primary key. --> <ExchangeRate ExpirationDate="2008-06-02" ChangeType="DEL" CurrencyCode="CAD" EffectiveDate="2008-05-26"/> <!-- An example of adding buy/sell rates for Canadian Dollars assuming base currency is USD. 1 USD=1.00598 USD. --> <ExchangeRate ExpirationDate="2008-06-02" ChangeType="ADD" CurrencyCode="CAD" EffectiveDate="2008-05-26" ServiceFeeAmount="0.00" ToSellAmount="0.994053" ToBuyAmount="0.994053" MinimumAmount="0.00"/> <!-- An example of updating buy/sell rates for Euros assuming base currency is USD. 1 EUR=1.554 USD. --> <ExchangeRate ExpirationDate="2008-06-02" ChangeType="UPD" CurrencyCode="EUR" EffectiveDate="2008-05-26" ServiceFeeAmount="0.00" ToSellAmount="0.643459" ToBuyAmount="0.643459" MinimumAmount="0.00"/> </CurrencyImport>
Table C-2 identifies the XSD elements in the CustomerImport.xsd file.
Table C-2 Customer Import XSD Element Mapping Table
Log/Physical table | Target | Physical Column Name | DataType | XSD Element/Attribute Path | Notes |
---|---|---|---|---|---|
Party PA_PRTY |
PartyID |
ID_PRTY |
INTEGER |
NA |
Generated by system for each insert of new customer. |
PartyLegalOrganizationCode |
LU_ORG_LG |
VARCHAR(20) |
No mapping available |
NA |
|
PartyTypeCode |
TY_PRTY |
VARCHAR(20) |
NA |
CUST |
|
Customer PA_CT |
CustomerID |
ID_CT |
VARCHAR(14) |
CustomerImport/Customer@ID |
NA |
PartyID |
ID_PRTY |
INTEGER |
NA |
PartyID generated above . |
|
CustomerFullName |
NM_CT |
VARCHAR(250) |
NA |
Created by system by appending last name to first name. |
|
EmployeeID |
ID_EM |
VARCHAR(10) |
CustomerImport/Customer@EmployeeID |
Should be null if this customer is not an employee of the company. |
|
CustomerStatusCode |
STS_CT |
INTEGER |
CustomerImport/Customer@Status |
|
|
EncryptedAccountNumber |
ID_NCRPT_ACTN_CRD |
VARCHAR(250) |
CustomerImport/Customer@EncryptedHouseAccountNumber |
The XML value should be a hexadecimal string of the encrypted byte array. |
|
HashedAccountNumber |
ID_HSH_ACNT |
VARCHAR(80) |
No mapping available |
NA |
|
MaskedAccountNumber |
ID_MSK_ACNT_CRD |
VARCHAR(20) |
No mapping available |
NA |
|
CustomerLocale |
LCL |
VARCHAR(10) |
CustomerImport/Customer@PreferredLanguage CustomerImport/Customer@PreferredCountry |
The combined XML values should be a string parsable by java.lang.Locale . |
|
CustomerTaxID |
ID_TAX |
VARCHAR(16) |
CustomerImport/Customer@TaxID |
NA |
|
CustomerPricingGroup |
ID_PRCGP |
INTEGER |
CustomerImport/Customer@PricingGroupID |
Maximum field size for INTEGER is typically NUMBER(10) to support Java INT datatype in application. |
|
CustomerBatchID |
ID_CT_BTCH |
INTEGER |
No mapping available |
NA |
|
BusinessCustomer ORGN_CT |
OrganizationID |
ID_ORGN |
INTEGER |
NA |
PartyID generated above . |
PartyID |
ID_PRTY |
INTEGER |
NA |
PartyID generated above. |
|
OrganizationName |
ORGN_NAME |
VARCHAR(120) |
CustomerImport/BusinessCustomer@CompanyName |
The length here is defined as the length of a single byte string. If multibyte characters are used, the max length should be 120/4 = 30. |
|
TaxExemptionCertificate |
TX_EXM_CF |
VARCHAR(30) |
CustomerImport/BusinessCustomer@TaxExemptionCertificate |
NA |
|
ExceptionReason |
EXM_RSN |
VARCHAR(30) |
CustomerImport/BusinessCustomer@ExceptionReason |
NA |
|
Contact PA_CNCT |
ContactID |
ID_CNCT |
INTEGER |
NA |
PartyID generated above . |
ContactTypeCode |
TY_CNCT |
VARCHAR(20) |
NA |
CUST |
|
PartyID |
ID_PRTY |
INTEGER |
NA |
PartyID generated above. |
|
ContactLastName |
LN_CNCT |
VARCHAR(120) |
CustomerImport/Customer@LastName |
The length here is defined as the length of a single byte string. If multibyte characters are used, the max length should be 120/4 = 30. |
|
ContactFirstName |
FN_CNCT |
VARCHAR(120) |
CustomerImport/Customer@FirstName |
The length here is defined as the length of a single byte string. If multibyte characters are used, the max length should be 120/4 = 30. |
|
ContactMiddleName |
MD_CNCT |
VARCHAR(120) |
CustomerImport/Customer@MiddleName String |
The length here is defined as the length of a single byte string. If multibyte characters are used, the max length should be 120/4 = 30. |
|
ContactFullName |
NM_CNCT |
VARCHAR(250) |
NA |
Created by system by appending last name to first name. |
|
ContactSalutation |
LU_CNCT_SLN |
VARCHAR(120) |
CustomerImport/Customer@Salutation String |
For example:
|
|
ContactSuffix |
NM_CNCT_SFX |
VARCHAR(120) |
CustomerImport/Customer@Suffix String |
For example:
|
|
ContactBirthDate |
DC_CNCT |
VARCHAR(30) |
CustomerImport/Customer@BirthDate Date |
NA |
|
ContactGender |
GNDR_CNCT |
INTEGER |
CustomerImport/Customer@Gender |
|
|
ContactCompanyName |
CO_NM_CNCT |
VARCHAR(120) |
CustomerImport/BusinessCustomer@CompanyName |
The length here is defined as the length of a single byte string. If multibyte characters are used, the max length should be 120/4 = 30. |
|
ContactMailFlag |
NO_MAIL_CNCT |
CHAR(1) |
CustomerImport/Customer@ContactByMail |
NA |
|
ContactPhoneFlag |
NO_PHN_CNCT |
CHAR(1) |
CustomerImport/Customer@ContactByPhone |
NA |
|
ContactEmailFlag |
NO_EML_CNCT |
CHAR(1) |
CustomerImport/Customer@ContactByEmail |
NA |
|
ContactFunctionCode |
LU_FNC_CNCT |
VARCHAR(20) |
NA |
No mapping available . |
|
Address LO_ADS |
AddressID |
ID_ADS |
INTEGER |
CustomerImport/Customer/Address@Type |
|
AddressTypeCode |
TY_ADS |
VARCHAR(30) |
CustomerImport/Customer/Address@Type |
|
|
PartyID |
ID_PRTY |
INTEGER |
NA |
PartyID generated above. |
|
AddressLine1 |
A1_CNCT |
VARCHAR(240) |
CustomerImport/Customer/Address@Address1 |
The length here is defined as the length of a single byte string. If multibyte characters are used, the max length should be 240/4 = 60. |
|
AddressLine2 |
A2_CNCT |
VARCHAR(240) |
CustomerImport/Customer/Address@Address2 |
The length here is defined as the length of a single byte string. If multibyte characters are used, the max length should be 240/4 = 60. |
|
AddressLine3 |
A3_CNCT |
VARCHAR(240) |
CustomerImport/Customer/Address@Address3 |
The length here is defined as the length of a single byte string. If multibyte characters are used, the max length should be 240/4 = 60. |
|
AddressCity |
CI_CNCT |
VARCHAR(120) |
CustomerImport/Customer/Address@City |
The length here is defined as the length of a single byte string. If multibyte characters are used, the max length should be 120/4 = 30. |
|
AddressState |
ST_CNCT |
VARCHAR(30) |
CustomerImport/Customer/Address@State |
NA |
|
AddressPostalCode |
PC_CNCT |
VARCHAR(30) |
CustomerImport/Customer/Address@PostalCode |
NA |
|
AddressTerritory |
TE_CNCT |
VARCHAR(120) |
CustomerImport/Customer/Address@Territory |
NA |
|
AddressCountry |
CO_CNCT |
VARCHAR(30) |
CustomerImport/Customer/Address@Country |
NA |
|
Telephone PA_PHN |
PhoneID |
ID_PHN |
INTEGER |
CustomerImport/Customer/Telephone@Type |
|
PartyID |
ID_PRTY |
INTEGER |
NA |
PartyID generated above. |
|
PhoneType |
TY_PHN |
VARCHAR(30) |
CustomerImport/Customer/Telephone@Type |
|
|
ContactAreaTelephoneCode |
TA_PHN |
VARCHAR(30) |
NA |
No mapping available . |
|
ContactLocalTelephoneNumber |
TL_CNCT |
VARCHAR(30) |
CustomerImport/Customer/Telephone@Number |
NA |
|
ContactExtension |
EXT_CNCT |
VARCHAR(30) |
CustomerImport/Customer/Telephone@Ext |
NA |
|
EmailAddress LO_EML_ADS |
PartyID |
ID_PRTY |
INTEGER |
NA |
PartyID generated above . |
EmailAddressType |
TY_EM_ADS |
INTEGER |
CustomerImport/Customer/Email@Type |
|
|
EmailAddress |
EM_ADS |
VARCHAR(64) |
CustomerImport/Customer/Email@Address |
NA |
|
CustomerAffiliation CO_CTAF |
CustomerID |
ID_CT |
VARCHAR(14) |
CustomerImport/Customer@ID |
NA |
CustomerGroupID |
ID_GP_ID |
INTEGER |
CustomerImport/Customer/CustomerGroupID |
NA |
|
IndentityVerifyRequiredFlag |
FL_IDN_CTAF_VR_RQ |
CHAR(1) |
CustomerImport/Customer/CustomerGroupID@IdentityVerificationRequired |
NA |
|
CustomerGroup PA_GP_CT |
CustomerGroupID |
ID_GP_ID |
INTEGER |
CustomerImport/CustomerGroup@ID |
Maximum field size for INTEGER is typically NUMBER(10) to support Java INT datatype in application. |
CustomerGroupName |
NM_GP |
VARCHAR(120) |
CustomerImport/CustomerGroup/Name |
Populate if no locale specified . |
|
CustomerGroupDescription |
DE_GP_CT |
VARCHAR(250) |
CustomerImport/CustomerGroup/Description String 250 |
Populate if no locale specified . |
|
CustomerGroupI18N PA_GP_CT_I8 |
CustomerGroupID |
ID_GP_ID |
INTEGER |
CustomerImport/CustomerGroup@ID Int |
NA |
Locale |
LCL |
VARCHAR(10) |
CustomerImport/CustomerGroup/Name or Description@Language CustomerImport/CustomerGroup/Name or Description@Country |
NA |
|
CustomerGroupName |
NM_GP |
VARCHAR(120) |
CustomerImport/CustomerGroup/Name |
The length here is defined as the length of a single byte string. If multibyte characters are used, the max length should be 120/4 = 30. |
|
CustomerGroupDescription |
DE_GP_CT |
VARCHAR(250) |
CustomerImport/CustomerGroup/Description |
The length here is defined as the length of a single byte string. If multibyte characters are used, the max length should be 250/4 = 60. |
|
PricingGroup CO_PRCGP |
PricingGroupID |
ID_PRCGP |
INTEGER |
CustomerImport/PricingGroup@ID |
This ID is sent from Oracle Retail Merchandising System. Maximum field size for INTEGER is typically NUMBER(10) to support Java INT datatype in application. |
Name |
NM_PRCGP |
VARCHAR(120) |
CustomerImport/PricingGroup/LocalizedName@Name |
NA |
|
Description |
DE_PRCGRP |
VARCHAR(250) |
CustomerImport/PricingGroup/LocalizedName@Description |
NA |
|
PricingGroupI8 CO_PRCGP_I8 |
PricingGroupID |
ID_PRCGP |
INTEGER |
CustomerImport/PricingGroup@ID |
NA |
Locale |
LCL |
VARCHAR(10) |
"CustomerImport/PricingGroup/LocalizedName@Language CustomerImport/PricingGroup/LocalizedName@Country |
NA |
|
Name |
NM_PRCGP |
VARCHAR(120) |
CustomerImport/PricingGroup/LocalizedName@Name |
The length here is defined as the length of a single byte string. If multibyte characters are used, the max length should be 120/4 = 30. |
|
Description |
DE_PRCGRP |
VARCHAR(250) |
CustomerImport/PricingGroup/LocalizedName@Description |
The length here is defined as the length of a single byte string. If multibyte characters are used, the max length should be 250/4 = 60. |
Example C-3 CustomerImport.xsd
<?xml version="1.0" encoding="UTF-8"?> <xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:annotation> <xs:documentation> Customer Import Schema. Copyright 2008 Oracle. All rights reserved. Use this schema in conjuction with a Oracle Store Systems Data Dictionary and the relations between the element and attribute names should be apparent. </xs:documentation> </xs:annotation> <xs:include schemaLocation="../CommonImport.xsd"/> -<xs:element type="CustomerImport_type" name="CustomerImport"> -<xs:annotation> <xs:documentation> Top-level element holding a collection of Customer elements. </xs:documentation> </xs:annotation> </xs:element> <xs:complexType name="CustomerImport_type"> <xs:sequence> <xs:element type="CustomerGroup_type" name="CustomerGroup" maxOccurs="unbounded" minOccurs="0"/> <xs:element type="PricingGroup_type" name="PricingGroup" maxOccurs="unbounded" minOccurs="0"/> <xs:element type="Customer_type" name="Customer" maxOccurs="unbounded" minOccurs="0"/> <xs:element type="BusinessCustomer_type" name="BusinessCustomer" maxOccurs="unbounded" minOccurs="0"/> </xs:sequence> <xs:attribute type="FillType_type" name="FillType" use="required"/> <xs:attribute type="xs:dateTime" name="CreationDate"/> <xs:attribute type="xs:dateTime" name="ExpirationDate"/> <xs:attribute type="xs:string" name="Version"/> <xs:attribute type="xs:int" name="Priority"/> <xs:attribute type="xs:int" name="Batch"/> </xs:complexType> -<xs:complexType name="CustomerGroup_type"> -<xs:annotation> <xs:documentation> Represents a group of customers that can be marketed to, e.g. seniors, teachers, etc. These groups are typically used to trigger transaction-level discounts.</xs:documentation> </xs:annotation> -<xs:sequence> <xs:element type="LocalizedNameDescription_type" name="LocalizedNameDescription" maxOccurs="unbounded" minOccurs="1"/> </xs:sequence> <xs:attribute type="ChangeType_type" name="ChangeType" use="required"/> <xs:attribute type="xs:int" name="ID" use="required"/> </xs:complexType> -<xs:complexType name="PricingGroup_type"> -<xs:choice> <xs:element type="LocalizedNameDescription_type" name="LocalizedName" maxOccurs="unbounded" minOccurs="0"/> <xs:element type="NameDescription_type" name="Name" maxOccurs="1" minOccurs="1"/> </xs:choice> <xs:attribute type="xs:int" name="ID"/> <xs:attribute type="ChangeType_type" name="ChangeType" default="ADD"/> </xs:complexType> -<xs:complexType name="Customer_type"> -<xs:annotation> <xs:documentation> Represents a single customer's information. Each Address, Telephone and Email should have a different Type because the Type becomes part of the primary key for that record.</xs:documentation> </xs:annotation> -<xs:sequence> <xs:element type="Address_type" name="Address" maxOccurs="5" minOccurs="0"/> <xs:element type="Telephone_type" name="Telephone" maxOccurs="7" minOccurs="0"/> <xs:element type="Email_type" name="Email" maxOccurs="4" minOccurs="0"/> <xs:element type="CustomerGroupID_type" name="CustomerGroupID" maxOccurs="unbounded" minOccurs="0"/> </xs:sequence> <xs:attribute type="ChangeType_type" name="ChangeType" use="required"/> <xs:attribute type="ID_type" name="ID" use="required"/> <xs:attribute type="xs:string" name="FirstName"/> <xs:attribute type="xs:string" name="LastName"/> <xs:attribute type="xs:string" name="MiddleName"/> <xs:attribute type="xs:string" name="Salutation"/> <xs:attribute type="xs:string" name="Suffix"/> <xs:attribute type="xs:date" name="BirthDate"/> <xs:attribute type="Gender_type" name="Gender"/> <xs:attribute type="xs:boolean" name="ContactByMail"/> <xs:attribute type="xs:boolean" name="ContactByPhone"/> <xs:attribute type="xs:boolean" name="ContactByEmail"/> <xs:attribute type="receipt_preference" name="ReceiptPreference"/> <xs:attribute type="EmployeeID_type" name="EmployeeID"/> <xs:attribute type="Status_type" name="Status"/> <xs:attribute type="xs:string" name="EncryptedHouseAccountNumber"/> <xs:attribute type="xs:int" name="PricingGroupID"/> <xs:attribute type="Language_type" name="PreferredLanguage"/> <xs:attribute type="Country_type" name="PreferredCountry"/> <xs:attribute type="xs:string" name="EncryptTaxID"/> </xs:complexType> -<xs:complexType name="BusinessCustomer_type"> -<xs:annotation> <xs:documentation> Represents a single business's information. In this case, setting any person attributes, like FirstName would be for the company's contact. </xs:documentation> </xs:annotation> -<xs:complexContent> -<xs:extension base="Customer_type"> <xs:attribute type="xs:string" name="CompanyName" use="required"/> <xs:attribute type="xs:string" name="TaxExemptionCertificate"/> <xs:attribute type="xs:string" name="ExceptionReason"/> </xs:extension> </xs:complexContent> </xs:complexType> -<xs:complexType name="CustomerGroupID_type"> -<xs:annotation> <xs:documentation> Its only necessary to specify a ChangeType when updating a customer and deleting the specified customer group. </xs:documentation> </xs:annotation> -<xs:simpleContent> -<xs:extension base="xs:int"> <xs:attribute type="xs:string" name="ChangeType" use="optional" default="DEL"/> <xs:attribute type="xs:boolean" name="IdentityVerificationRequired"/> </xs:extension> </xs:simpleContent> </xs:complexType> -<xs:complexType name="Address_type"> -<xs:annotation> <xs:documentation> Its only necessary to specify a ChangeType when updating a customer and deleting the specified address. </xs:documentation> </xs:annotation> <xs:attribute type="xs:string" name="ChangeType" use="optional" default="DEL"/> <xs:attribute type="AddressType_type" name="Type" use="required"/> <xs:attribute type="xs:string" name="Address1" use="required"/> <xs:attribute type="xs:string" name="Address2" use="optional"/> <xs:attribute type="xs:string" name="Address3" use="optional"/> <xs:attribute type="xs:string" name="City" use="required"/> <xs:attribute type="xs:string" name="State"/> <xs:attribute type="xs:string" name="PostalCode"/> <xs:attribute type="xs:string" name="Territory"/> <xs:attribute type="xs:string" name="Country"/> </xs:complexType> -<xs:complexType name="Telephone_type"> -<xs:annotation> <xs:documentation> Its only necessary to specify a ChangeType when updating a customer and deleting the specified telephone. </xs:documentation> </xs:annotation> <xs:attribute type="xs:string" name="ChangeType" use="optional" default="DEL"/> <xs:attribute type="TelephoneType_type" name="Type" use="required"/> <xs:attribute type="xs:string" name="Number" use="required"/> <xs:attribute type="xs:string" name="Ext"/> </xs:complexType> -<xs:complexType name="Email_type"> -<xs:annotation> <xs:documentation> Its only necessary to specify a ChangeType when updating a customer and deleting the specified email. </xs:documentation> </xs:annotation> <xs:attribute type="xs:string" name="ChangeType" use="optional" default="DEL"/> <xs:attribute type="EmailType_type" name="Type" use="required"/> <xs:attribute type="xs:string" name="Address" use="required"/> </xs:complexType> -<xs:simpleType name="Gender_type"> -<xs:restriction base="xs:string"> <xs:enumeration value="Unspecified"/> <xs:enumeration value="Female"/> <xs:enumeration value="Male"/> </xs:restriction> </xs:simpleType> -<xs:simpleType name="EmployeeID_type"> -<xs:restriction base="xs:string"> <xs:maxLength value="10"/> </xs:restriction> </xs:simpleType> -<xs:simpleType name="Status_type"> -<xs:restriction base="xs:string"> <xs:enumeration value="Inactive"/> <xs:enumeration value="Active"/> <xs:enumeration value="Deleted"/> </xs:restriction> </xs:simpleType> -<xs:simpleType name="AddressType_type"> -<xs:restriction base="xs:string"> <xs:enumeration value="Unspecified"/> <xs:enumeration value="Home"/> <xs:enumeration value="Work"/> <xs:enumeration value="Other"/> <xs:enumeration value="Mail"/> </xs:restriction> </xs:simpleType> -<xs:simpleType name="TelephoneType_type"> -<xs:restriction base="xs:string"> <xs:enumeration value="Unspecified"/> <xs:enumeration value="Home"/> <xs:enumeration value="Work"/> <xs:enumeration value="Mobile"/> <xs:enumeration value="Fax"/> <xs:enumeration value="Pager"/> <xs:enumeration value="Other"/> </xs:restriction> </xs:simpleType> -<xs:simpleType name="EmailType_type"> -<xs:restriction base="xs:string"> <xs:enumeration value="Unspecified"/> <xs:enumeration value="Home"/> <xs:enumeration value="Work"/> <xs:enumeration value="Other"/> </xs:restriction> </xs:simpleType> -<xs:simpleType name="receipt_preference"> -<xs:restriction base="xs:string"> <xs:maxLength value="5"/> <xs:enumeration value="NONE"/> <xs:enumeration value="PRINT"/> <xs:enumeration value="EMAIL"/> <xs:enumeration value="BOTH"/> </xs:restriction> </xs:simpleType> </xs:schema>
The following is an example CustomerImport XML file:
Example C-4 CustomerImport.xml
<?xml version="1.0" encoding="UTF-8"?> <CustomerImportExpirationDate="2027-12-17T09:30:47.0Z" CreationDate="2001-12-17T09:30:47.0Z" Batch="1" Version="1.0" FillType="FullIncremental"Priority="0" xsi:noNamespaceSchemaLocation="CustomerImport.xsd"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> -<CustomerGroup ChangeType="DEL" ID="0"> <LocalizedNameDescription Country="US" Language="en" Description="Customer Group 0 description" Name="Group0 Name"/> </CustomerGroup> -<CustomerGroup ChangeType="ADD" ID="0"> <LocalizedNameDescription Country="US" Language="en" Description="Customer Group 0 description" Name="Group0 Name"/> </CustomerGroup> -<CustomerGroup ChangeType="ADD" ID="1"> <LocalizedNameDescription Country="US" Language="en" Description="Customer Group 1 description" Name="Group1 Name"/> <LocalizedNameDescription Country="FR" Language="fr" Description="Ceci est un groupe clientèle importé" Name="Grouper le Nom"/> </CustomerGroup> -<CustomerGroup ChangeType="ADD" ID="2"> <LocalizedNameDescription Country="US" Language="en" Description="Customer Group 2 description" Name="Group2 Name"/> </CustomerGroup> -<CustomerGroup ChangeType="UPD" ID="2"> <LocalizedNameDescription Country="FR" Language="fr" Description="Ceci est un groupe clientèle importé" Name="Grouper le Nom"/> </CustomerGroup> <Customer ChangeType="DEL" ID="04241990"/> <Customer ChangeType="ADD" ID="04241990100000" LastName="Smith" FirstName="Joe"/> -<Customer ChangeType="UPD" ID="04241990100000" LastName="Smith" FirstName="Joe" PreferredCountry="US" PreferredLanguage="en" ReceiptPreference="EMAIL" EncryptTaxID="MDAxMcPaSJvzs5gP" PricingGroupID="2" EncryptedHouseAccountNumber="cWD4aIA1E4/LyabIBBlJ6+oMDSGhsdBj+DnzjVwr6Pk=" Status="Active" EmployeeID="20027" ContactByEmail="true" ContactByPhone="true" ContactByMail="true" Gender="Male" BirthDate="1970-01-01" Suffix="Jr" Salutation="Mr" MiddleName="P"> <Address Country="US" PostalCode="7878799" State="TX" City="Round Rock" Address2="Apt 12" Address1="1234 River Rd" Type="Home"/> <Address Country="US" PostalCode="78756" State="TX" City="Austin" Address2="Suite F" Address1="1111 Potomac Ave" Type="Work"/> <Telephone Type="Work" Ext="4444" Number="5125551234"/> <Telephone Type="Home" Number="5125551235"/> <Telephone Type="Mobile" Number="5125551236"/> <Email Type="Home" Address="joe.smith@example.com"/> <Email Type="Work" Address="joe.smithwork@example.com"/> <CustomerGroupID IdentityVerificationRequired="true">1</CustomerGroupID> <CustomerGroupID IdentityVerificationRequired="true">2</CustomerGroupID> </Customer> -<BusinessCustomer ChangeType="ADD" ID="04241990100001" ExceptionReason="44" TaxExemptionCertificate="MDAxN9kye/U+vHVUVpeeTgl498I=" CompanyName="Acme Inc"> <Address Country="US" PostalCode="78756" State="TX" City="Austin" Address2="Suite F" Address1="1234 River Rd" Type="Work"/> <Telephone Type="Mobile" Number="7125558989"/> </BusinessCustomer> -<BusinessCustomer ChangeType="ADD" ID="04241990100002" LastName="Doe" FirstName="Jane" PreferredCountry="FR" PreferredLanguage="fr" ReceiptPreference="PRINT" EncryptTaxID="MDAxN9kye/U+vHVUVpeeTgl498I=" PricingGroupID="2" EncryptedHouseAccountNumber="cWD4aIA1E4/LyabIBBlJ6+oMDSGhsdBj+DnzjVwr6Pk=" Status="Active" ContactByEmail="false" ContactByPhone="true" ContactByMail="true" Gender="Female" BirthDate="1971-10-10" Salutation="Mrs" MiddleName="X" ExceptionReason="44" TaxExemptionCertificate="MDAxN9kye/U+vHVUVpeeTgl498I=" CompanyName="Gizmos Inc"> <Address Country="US" PostalCode="78701" State="TX" City="Austin" Address1="101 Congress Ave" Type="Work"/> <Telephone Type="Mobile" Number="7125558989"/> <Email Type="Work" Address="info@example.com"/> <CustomerGroupID IdentityVerificationRequired="true">1</CustomerGroupID> <CustomerGroupID IdentityVerificationRequired="false">2</CustomerGroupID> </BusinessCustomer> </CustomerImport>
Table C-3 identifies the XSD elements in the EmployeeImport.xsd file.
Table C-3 Employee Import XSD Element Mapping Table
Log/Physical table | Target | Physical Column Name | DataType | XSD Element/Attribute Path | Notes |
---|---|---|---|---|---|
Employee PA_EM |
EmployeeID |
ID_EM |
VARCHAR(10) |
Employee/EmployeeID |
NA |
PartyID |
ID_PRTY |
INTEGER |
Employee/PartyID |
Link to PA_PRTY not required by application. |
|
EmployeeLoginID |
ID_LOGIN |
VARCHAR(120) |
Employee/EmployeeAccess/EmployeeLoginID |
NA |
|
EmployeeAlternateID |
ID_ALT |
VARCHAR(120) |
Employee/EmployeeAccess/EmployeeAltID |
NA |
|
EmployeeAccess |
PW_ACS_EM |
VARCHAR(250) |
Employee/EmployeeAccess/AccessPassword |
NA |
|
EmployeeName |
NM_EM |
VARCHAR(250) |
Employee/Employee |
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. |
|
Employee |
LN_EM |
VARCHAR(120) |
Employee/Employee |
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. |
|
Employee |
FN_EM |
VARCHAR(120) |
Employee/Employee |
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. |
|
EmployeeMiddleName |
MD_EM |
VARCHAR(120) |
Employee/Employee |
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. |
|
EmployeeRole |
ROLE_EM |
VARCHAR(120) |
Employee/EmployeeRole |
NA |
|
SocialSecurityNumber |
UN_NMB_SCL_SCTY |
CHAR(9) |
Employee/EmployeeSSN |
NA |
|
EmployeeStatusCode |
SC_EM |
VARCHAR(20) |
Employee/StatusCode |
NA |
|
WorkGroupID |
ID_GP_WRK |
INTEGER |
Employee/EmployeeAccess/WorkGroupID |
NA |
|
EmployeeLocale |
LCL |
VARCHAR(10) |
Employee/ |
NA |
|
NumberOfDaysValidFor |
NUMB_DYS_VLD |
INTEGER |
Employee/NumberDaysValid |
Only applies to temporary employees. |
|
ExpirationTimeFor |
DC_EXP_TMP |
DATE |
Employee/TempEmployee |
Only applies to temporary employees. |
|
EmployeeType |
TYPE_EMP |
INTEGER |
Employee/EmployeeType |
0 means Standard employee. |
|
EmployeeStore |
ID_STR_RT |
VARCHAR(5) |
Employee/EmployeeStoreOrHierarchyAssn/EmployeeStoreID |
NA |
|
NewPassword |
FL_PW_NW_REQ |
CHAR(1) |
Employee/EmployeeAccess/NewPassword |
NA |
|
PasswordCreatedDate |
TS_CRT_PW |
TIMESTAMP |
Employee/EmployeeAccess/PasswordCreationDate |
If date is not specified, a new date is used. |
|
NumberOfFailed |
NUMB_FLD_PW |
INTEGER |
0 |
No failed passwords inserted as it is calculated by each application. |
|
Employee MA_HST_PW_EM |
EmployeeID |
ID_EM |
VARCHAR(10) |
Employee/EmployeeID |
NA |
PasswordCreatedDate |
TS_CRT_PW |
TIMESTAMP |
Employee/EmployeeAccess/PasswordHistory |
If date is not specified, a new date is used. |
|
EmployeeAccessPassword |
PW_ACS_EM |
VARCHAR(250) |
Employee/EmployeeAccess/Password |
NA |
|
Employee EMPLOYEE_HIERARCHY_ASSN |
LoginID |
ID_LOGIN |
VARCHAR(120) |
Employee/EmployeeAccess/EmployeeLoginID |
NA |
FunctionID |
ID_STRGP_FNC |
INTEGER |
Employee/EmployeeStoreOrHierarchyAssn/Employee |
NA |
|
GroupID |
ID |
VARCHAR(10) |
Employee/EmployeeStoreOrHierarchyAssn/Employee |
NA |
|
GroupType |
TYPE |
VARCHAR(10) |
Employee/EmployeeStoreOrHierarchyAssn/Employee |
NA |
Example C-5 EmployeeImport.xsd
<?xml version="1.0" encoding="UTF-8" ?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xs:annotation><xs:documentation> Employee Import Schema. Copyright 2006 Oracle. All rights reserved. </xs:documentation></xs:annotation> <xs:include schemaLocation="../common.xsd"></xs:include> <xs:element name="EmployeeImport" type="EmployeeImport_type"> <xs:annotation><xs:documentation> Top-level element holding a collection of Employee elements. </xs:documentation></xs:annotation> </xs:element> <xs:complexType name="EmployeeImport_type"> <xs:sequence> <xs:element name="Employee" type="Employee_type" minOccurs="1" maxOccurs="unbounded" /> </xs:sequence> <xs:attribute name="FillType" type="FillType_type" use="required"/> <xs:attribute name="CreationDate" type="xs:dateTime"/> <xs:attribute name="ExpirationDate" type="xs:dateTime"/> <xs:attribute name="Version" type="xs:string"/> <xs:attribute name="Priority" type="xs:int"/> <xs:attribute name="Batch" type="xs:int"/> </xs:complexType> <xs:complexType name="Employee_type"> <xs:annotation><xs:documentation> Represents a single employee's information. </xs:documentation></xs:annotation> <xs:sequence> <xs:element name="ChangeType" type="ChangeType_type" default="ADD" minOccurs="1" maxOccurs="1" /> <xs:element name="EmployeeID" type="EmployeeID_type" minOccurs="1" maxOccurs="1" /> <xs:element name="EmployeeFirstName" type="xs:string" minOccurs="0" maxOccurs="1" /> <xs:element name="EmployeeLastName" type="xs:string" minOccurs="0" maxOccurs="1" /> <xs:element name="EmployeeMiddleName" type="xs:string" minOccurs="0" maxOccurs="1" /> <xs:element name="EmployeeFullName" type="xs:string" minOccurs="0" maxOccurs="1" /> <xs:element name="EmployeeSSN" type="SSN_type" minOccurs="0" maxOccurs="1" /> <xs:element name="EmployeeRole" type="xs:string" minOccurs="0" maxOccurs="1" /> <xs:element name="PartyID" type="xs:int" minOccurs="0" maxOccurs="1" /> <xs:element name="StatusCode" type="StatusCode_type" minOccurs="0" maxOccurs="1" /> <xs:element name="Locale" type="ID_type" minOccurs="0" maxOccurs="1" /> <xs:element name="EmployeeAccess" type="EmployeeAccess_type" minOccurs="0" maxOccurs="1" /> <xs:element name="EmployeeType" type="StatusCode_type"> <xs:annotation><xs:documentation> 0 means 'Standard' employee, 1 means Temporary employee </xs:documentation></xs:annotation> </xs:element> <xs:element name="NumberDaysValid" type="xs:int" minOccurs="0" maxOccurs="1"> <xs:annotation><xs:documentation> Only applies to temporary employee </xs:documentation></xs:annotation> </xs:element> <xs:element name="TempEmployeeExpirationDate" type="xs:date" minOccurs="0" maxOccurs="1"> <xs:annotation><xs:documentation> Only applies to temporary employee </xs:documentation></xs:annotation> </xs:element> <xs:element name="EmployeeStoreOrHierarchyAssn" type="EmployeeStoreOrHierarchyAssn_type" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> </xs:complexType> <xs:simpleType name="EmployeeID_type"> <xs:restriction base="xs:string"> <xs:maxLength value="10" /> </xs:restriction> </xs:simpleType> <xs:simpleType name="SSN_type"> <xs:restriction base="xs:string"> <xs:maxLength value="9" /> </xs:restriction> </xs:simpleType> <xs:simpleType name="StatusCode_type"> <xs:restriction base="xs:string"> <xs:enumeration value="0" /> <xs:enumeration value="1" /> </xs:restriction> </xs:simpleType> <xs:complexType name="EmployeeAccess_type"> <xs:annotation><xs:documentation> Holds all information regarding access to the system. </xs:documentation></xs:annotation> <xs:sequence> <xs:element name="EmployeeLoginID" type="xs:string" /> <xs:element name="AccessPassword" type="xs:string" /> <xs:element name="WorkGroupID" type="xs:int" /> <xs:element name="EmployeeAltID" type="xs:string" minOccurs="0" maxOccurs="1" /> <xs:element name="NewPasswordRequired" type="xs:boolean" /> <xs:element name="PasswordCreationDate" type="xs:dateTime" /> <xs:element name="PasswordHistory" type="PasswordHistory_type" minOccurs="0" maxOccurs="1"> </xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="PasswordHistory_type"> <xs:sequence> <xs:element name="PasswordHistoryEntry" type="PasswordHistoryEntry_type" minOccurs="1" maxOccurs="unbounded" /> </xs:sequence> </xs:complexType> <xs:complexType name="PasswordHistoryEntry_type"> <xs:annotation><xs:documentation> Holds a single password history entry. </xs:documentation></xs:annotation> <xs:sequence> <xs:element name="PasswordCreationDate" type="xs:dateTime" /> <xs:element name="AccessPassword" type="xs:string" /> </xs:sequence> </xs:complexType> <xs:complexType name="EmployeeStoreOrHierarchyAssn_type"> <xs:annotation><xs:documentation> Holds an employee association to a store and/or a hierarchy node. Generally, only one of the enclosed elements is provided; however, there may be cases where an employee needs both a store association and a hierarchy association, so a sequence with optional elements is used instead of a choice. </xs:documentation></xs:annotation> <xs:sequence> <xs:element name="EmployeeStoreID" type="RetailStoreId_type" minOccurs="0" maxOccurs="1" /> <xs:element name="EmployeeHierarchyAssn" type="EmployeeHierarchyAssn_type" minOccurs="0" maxOccurs="1" /> </xs:sequence> </xs:complexType> <xs:complexType name="EmployeeHierarchyAssn_type"> <xs:sequence> <xs:element name="NodeID" type="xs:string" minOccurs="1" maxOccurs="1" /> <xs:element name="NodeType" type="xs:string" minOccurs="1" maxOccurs="1" /> <xs:element name="StoreGroupFunctionID" type="xs:int" minOccurs="1" maxOccurs="1" /> </xs:sequence> </xs:complexType> </xs:schema>
The following is an example Employee Import XML file.
Example C-6 EmployeeImport.xml
<?xml version="1.0" encoding="UTF-8"?> <EmployeeImport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="EmployeeImport.xsd" Priority="0" FillType="FullIncremental" Version="1.0" Batch="1" CreationDate="2001-12-17T09:30:47.0Z" ExpirationDate="2027-12-17T09:30:47.0Z"> <Employee> <ChangeType>DEL</ChangeType> <EmployeeID>20027</EmployeeID> </Employee> <Employee> <ChangeType>ADD</ChangeType> <EmployeeID>20027</EmployeeID> <EmployeeFirstName>Guest</EmployeeFirstName> <EmployeeLastName>User</EmployeeLastName> <EmployeeMiddleName>P</EmployeeMiddleName> <EmployeeFullName>Guest User</EmployeeFullName> <EmployeeSSN>172372777</EmployeeSSN> <EmployeeRole>Administrator</EmployeeRole> <PartyID>1</PartyID> <StatusCode>1</StatusCode> <Locale>en_US</Locale> <EmployeeAccess> <EmployeeLoginID>pos</EmployeeLoginID> <AccessPassword>cWD4aIA1E4/LyabIBBlJ6+oMDSGhsdBj+DnzjVwr6Pk=</AccessPassword> <WorkGroupID>3</WorkGroupID> <EmployeeAltID>pos</EmployeeAltID> <NewPasswordRequired>true</NewPasswordRequired> <PasswordCreationDate>2001-12-31T12:00:00</PasswordCreationDate> <PasswordHistory> <PasswordHistoryEntry> <PasswordCreationDate>2001-12-31T12:00:00</PasswordCreationDate> <AccessPassword>cWD4aIA1E4/LyabIBBlJ6+oMDSGhsdBj+DnzjVwr6Pk=</AccessPassword> </PasswordHistoryEntry> </PasswordHistory> </EmployeeAccess> <EmployeeType>0</EmployeeType> <EmployeeStoreOrHierarchyAssn> <EmployeeStoreID>04241</EmployeeStoreID> <EmployeeHierarchyAssn> <NodeID>04241</NodeID> <NodeType>store</NodeType> <StoreGroupFunctionID>1</StoreGroupFunctionID> </EmployeeHierarchyAssn> </EmployeeStoreOrHierarchyAssn> </Employee> </EmployeeImport>
Table C-4 identifies the PreloadData element mapping for the ItemImport.xsd file.
Table C-4 Item Import XSD PreloadData Element Mapping Table
Log/Physical table | Target | Physical Column Name | DataType | XSD Element/Attribute Path | Notes |
---|---|---|---|---|---|
ItemColorCO_CLR |
ColorCode |
ED_CLR |
VARCHAR(20) |
PreloadData/Color @Code |
NA |
ColorNames |
NM_CLR |
VARCHAR(120) |
PreloadData/Color @Names |
Contains a short list of names given to this color. |
|
Description |
DE_CLR |
VARCHAR(250) |
PreloadData/Color @Description |
NA |
|
RecordCreatedTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
RecordLast |
TS_MDF_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
ItemColorI18N CO_CLR_I8 |
ColorCode |
ED_CLR |
VARCHAR(20) |
PreloadData/Color@Code |
NA |
Locale |
LCL |
VARCHAR(10) |
No mapping available |
System Supported Locales. |
|
LocalizedColorName |
NM_CLR |
VARCHAR(120) |
PreloadData/Color/LocalizedNameDescription@Name |
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. |
|
LocalizedColorDescription |
DE_CLR |
VARCHAR(250) |
PreloadData/Color/LocalizedNameDescription@Description |
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. |
|
ItemSizeCO_SZ |
SizeCode |
ED_SZ |
VARCHAR(10) |
PreloadData/Size @Code |
NA |
ActualSize |
DE_PRPTN_ACT_SZ |
VARCHAR(250) |
PreloadData/Size @ProportionDesc |
NA |
|
ActualSize |
DE_TYP_ACT_SZ |
VARCHAR(250) |
PreloadData/Size @TypeDesc |
NA |
|
ActualSize |
ED_SZ_ACT |
VARCHAR(20) |
PreloadSize/Size @ActualSizeCode |
NA |
|
TableName |
NM_TB_SZ |
VARCHAR(120) |
PreloadSize/Size @TableName |
NA |
|
TableCode |
ED_TB_SZ |
VARCHAR(20) |
PreloadSize/Size @TableCode |
NA |
|
Table |
DE_TB_SZ |
VARCHAR(250) |
PreloadSize/Size @TableDesc |
NA |
|
RecordCreatedTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
RecordLast |
TS_MDF_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
ItemSizeI18N CO_SZ_I8 |
SizeCode |
ED_SZ |
VARCHAR(10) |
PreloadData/Size@Code |
NA |
Locale |
LCL |
VARCHAR(10) |
No mapping available |
System Supported Locales |
|
LocalizedActualSizeProportionDescription |
DE_PRPTN_ACT_SZ |
VARCHAR(250) |
PreloadData/Size/LocalizedSizeData@ProportionDesc |
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. |
|
LocalizedActualSizeTypeDescription |
DE_TYP_ACT_SZ |
VARCHAR(250) |
PreloadData/Size/LocalizedSizeData@TypeDesc |
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. |
|
LocalizedTableName |
NM_TB_SZ |
VARCHAR(120) |
PreloadData/Size/LocalizedSizeData@TableName |
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. |
|
LocalizedTableDescription |
DE_TB_SZ |
VARCHAR(250) |
PreloadData/Size/LocalizedSizeData@TableDesc |
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. |
|
ItemStyleCO_STYL |
StyleCode |
LU_STYL |
VARCHAR(4) |
PreloadData/Style @Code |
NA |
StyleName |
NM_STYL |
VARCHAR(120) |
PreloadData/Style @Name |
Contains a short list of names given to this color. |
|
Description |
DE_STYL |
VARCHAR(250) |
PreloadData/Style @Description |
NA |
|
RecordCreatedTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
RecordLast |
TS_MDF_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
ItemStyleI18N CO_STYL_I8 |
StyleCode |
LU_STYL |
VARCHAR(4) |
PreloadData/Style@Code |
NA |
Locale |
LCL |
VARCHAR(10) |
No mapping available |
System Supported Locales |
|
LocalizedStyleName |
NM_STYL |
VARCHAR(120) |
PreloadData/Style/LocalizedNameDescription@Name |
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. |
|
LocalizedStyleDescription |
DE_STYL |
VARCHAR(250) |
PreloadData/Style/LocalizedNameDescription@Description |
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. |
|
UnitOf CO_UOM |
UnitOf |
LU_UOM |
VARCHAR(2) |
PreloadData/UOM @Code |
NA |
UnitOf |
TY_UOM |
VARCHAR(2) |
PreloadData/UOM @TypeCode |
NA |
|
EnglishMetricFlag |
FL_UOM_ENG_MC |
CHAR(1) |
PreloadData/UOM @System |
"Metric" = 1 |
|
Name |
NM_UOM |
VARCHAR(120) |
PreloadData/UOM @Name |
NA |
|
Description |
DE_UOM |
VARCHAR(250) |
PreloadData/UOM @Description |
NA |
|
DefaultUnitOfMeasureFlag |
FL_DFLT_UOM |
CHAR(1) |
PreloadData/UOM @IsDefault |
NA |
|
DefaultEntry |
FL_CD_ENT_DFLT |
CHAR(1) |
PreloadData/UOM @DefaultEntry |
NA |
|
EnabledFlag |
FL_CD_ENT_ENAB |
CHAR(1) |
PreloadData/UOM @Enabled |
NA |
|
ListSortIndex |
CD_ENT_SRT |
SMALLINT |
PreloadData/UOM @SortIndex |
NA |
|
UnitOfMeasureI18N CO_UOM_I8 |
UnitOfMeasureCode |
LU_UOM |
VARCHAR(2) |
PreloadData/UOM@Code |
NA |
Locale |
LCL |
VARCHAR(10) |
No mapping available |
System Supported Locales |
|
UnitOfMeasureName |
NM_UOM |
VARCHAR(120) |
PreloadData/UOM/LocalizedNameDescription@Name |
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. |
|
UnitOfMeasureDescription |
DE_UOM |
VARCHAR(250) |
PreloadData/UOM/LocalizedNameDescription@Description |
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. |
|
Manufacturer PA_MF |
ManufacturerID |
ID_MF |
VARCHAR(22) |
PreloadData/Manufacturer@ID |
NA |
Name |
NM_MF |
VARCHAR(120) |
PreloadData/Manufacturer@Name |
NA |
|
PartyID |
ID_PRTY |
Null value to be stored |
NA |
NA |
|
RecordCreatedTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
NA |
NA |
|
RecordLastModifiedTimestamp |
TS_MDF_RCRD |
TIMESTAMP |
NA |
NA |
|
ManufacturerI18N PA_MF_I8 |
ManufacturerID |
ID_MF |
VARCHAR(22) |
PreloadData/Manufacturer@ID |
NA |
Locale |
LCL |
VARCHAR(10) |
No mapping available |
System Supported Locales |
|
LocalizedName |
NM_MF |
VARCHAR(120) |
PreloadData/Manufacturer/LocalizedName@Name |
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. |
|
Merchandise LU_CD_STRC_MR |
Merchandise |
ID_STRC_MR_CD |
VARCHAR(10) |
PreloadData/Merchandise |
NA |
Merchandise |
DE_STRC_MR_CD |
VARCHAR(250) |
PreloadData/Merchandise |
NA |
|
RecordCreatedTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
RecordLast |
TS_MDF_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
MerchandiseClassificationCodeI18N LU_CD_STRC_MR_I8 |
MerchandiseClassificationCode |
ID_STRC_MR_CD |
VARCHAR(10) |
PreloadData/MerchandiseClassification@Code |
NA |
Locale |
LCL |
VARCHAR(10) |
No mapping available |
NA |
|
LocalizedMerchandiseClassificationCodeDescription |
DE_UOM |
VARCHAR(250) |
PreloadData/MerchandiseClassification/LocalizedDescription@Description |
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. |
|
SupplierPA_SPR |
Supplier |
ID_SPR |
VARCHAR(20) |
PreloadData/Supplier @ID |
NA |
DUNSNumber |
DU_SPR |
VARCHAR(9) |
PreloadData/Supplier @DUNSNumber |
NA |
|
Name |
NM_SPR |
VARCHAR(120) |
PreloadData/Supplier @Name |
NA |
|
SupplierIs |
FL_MF_SPR_IS |
CHAR(1) |
PreloadData/Supplier @IsManufacturer |
NA |
|
PartyRoleTypeCode |
TY_RO_PRTY |
VARCHAR(20) |
No Mapping Found |
Null value is entered. Column is not used in database. |
|
PartyID |
ID_PRTY |
INTEGER |
No Mapping Found |
Null value is entered. Column is used in database. |
|
SupplierI18N PA_SPR_I8 |
Supplier |
LU_UOM |
VARCHAR(20) |
PreloadData/Supplier@ID |
NA |
Locale |
LCL |
VARCHAR(10) |
No mapping available |
System Supported Locales |
|
LocalizedName |
NM_SPR |
VARCHAR(120) |
PreloadData/Supplier/LocalizedName@Name |
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. |
|
DO_MSG |
Message ID |
ID_MSG |
INTEGER |
PreloadData/Message@ID |
Maximum field size for INTEGER is typically NUMBER(10) to support Java INT datatype in application. |
ItemMessageI18N DO_MSG_I8 |
Message ID |
ID_MSG |
INTEGER |
PreloadData/Message@ID |
NA |
Locale |
LCL |
VARCHAR(10) |
PreloadData/Message/MsgText@Language |
NA |
|
MessageDisplayName |
NM_MSG_DPLY |
VARCHAR(120) |
PreloadData/Message/MsgText@Name |
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. |
|
MessageDisplayText |
NA_MSG_DPLY |
CLOB |
PreloadData/Message/MsgText |
NA |
Table C-5 identifies the item element mapping for the ItemImport.xsd file.
Table C-5 Item Import XSD Item Element Mapping Table
Log/Physical table | Target | Physical Column Name | DataType | XSD Element/Attribute Path | Notes |
---|---|---|---|---|---|
ItemAS_ITM |
ItemID |
ID_ITM |
VARCHAR(14) |
Item @ID |
NA |
ItemProductID |
ID_ITM_PDT |
VARCHAR(14) |
No Mapping |
NA |
|
DiscountFlag |
FL_ITM_DSC |
CHAR(1) |
Item @Discountable |
true = 1, false= 0 |
|
Damage |
FL_ITM_DSC_DMG |
CHAR(1) |
Item @Damage |
true = 1, false= 0 |
|
ItemSize |
FL_ITM_SZ_REQ |
CHAR(1) |
Item @SizeRequired |
true = 1, false= 0 |
|
POS |
ID_DPT_POS |
VARCHAR(14) |
Item @POS |
NA |
|
AuthorizedForSaleFlag |
FL_AZN_FR_SLS |
CHAR(1) |
Item @Authorized |
true = 1, false= 0 |
|
TaxExempt |
LU_EXM_TX |
VARCHAR(20) |
Item @Taxable |
true = 1, false= 0 |
|
Description |
DE_ITM |
VARCHAR(250) |
Item/Description |
NA |
|
Abbreviated |
DE_ITM_SHRT |
VARCHAR(120) |
Item/ShortName |
Based on the default locale. The ShortName specific to the locale is inserted into the column. When application is i81N aware, locale-specific data is inserted into the locale table. |
|
TypeCode |
TY_ITM |
VARCHAR(20) |
Item @Type |
Stock=STCK Service=SRVC Coupon=SCPN |
|
KitSetCode |
LU_KT_ST |
VARCHAR(20) |
Item @KitSetCode |
0 (Default Value) means item is not part of a kit. 1 means it is a kit and this item is the header of the kit. 2 means this item is one of the component of the kit. |
|
Merchandise |
ID_STRC_MR |
INTEGER |
Item/Merchandise |
Notes: Some question as to whether we are actually using this. |
|
Merchandise |
LU_HRC_MR_LV |
VARCHAR(4) |
Item/Merchandise |
NA |
|
Merchandise |
ID_MRHRC_GP |
VARCHAR(14) |
Item/Merchandise |
NA |
|
TaxGroupID |
ID_GP_TX |
INTEGER |
|
If the vatcode or the taxgroup attributes are given in the retailstoreitem tag the corresponding value only will be inserted in the ID_GP_TX column. If both of the vatcode and taxgroup attributes are not provided, the Item@taxgroup attribute is considered; otherwise it is ignored. |
|
Activation |
FL_ACTVN_RQ |
CHAR(1) |
Item @Activation |
true = 1, false= 0 |
|
Registry |
FL_ITM_RGSTRY |
CHAR(1) |
Item @RegistryEligible |
true = 1, false= 0 |
|
Merchandise |
ID_STRC_MR_CD0 |
VARCHAR(10) |
Item @Classification1 |
NA |
|
Merchandise |
ID_STRC_MR_CD1 |
VARCHAR(10) |
Item @Classification2 |
NA |
|
Merchandise |
ID_STRC_MR_CD2 |
VARCHAR(10) |
Item @Classification3 |
NA |
|
Merchandise |
ID_STRC_MR_CD3 |
VARCHAR(10) |
Item @Classification4 |
NA |
|
Merchandise |
ID_STRC_MR_CD4 |
VARCHAR(10) |
Item @Classification5 |
NA |
|
Merchandise |
ID_STRC_MR_CD5 |
VARCHAR(10) |
Item @Classification6 |
NA |
|
Merchandise |
ID_STRC_MR_CD6 |
VARCHAR(10) |
Item @Classification7 |
NA |
|
Merchandise |
ID_STRC_MR_CD7 |
VARCHAR(10) |
Item @Classification8 |
NA |
|
Merchandise |
ID_STRC_MR_CD8 |
VARCHAR(10) |
Item @Classification9 |
NA |
|
Merchandise |
ID_STRC_MR_CD9 |
VARCHAR(10) |
Item @Classification10 |
NA |
|
PriceAudit |
FL_ADT_ITM_PRC |
CHAR(1) |
No Mapping |
Null value to be entered. |
|
UsageCode |
LU_ITM_USG |
VARCHAR(20) |
No Mapping |
Null value to be entered. |
|
Name |
NM_ITM |
VARCHAR(120) |
No Mapping |
Null value to be entered. |
|
Substitute |
FL_ITM_SBST_IDN |
CHAR(1) |
No Mapping |
Default value of 0. |
|
Order |
LU_CLN_ORD |
VARCHAR(20) |
No Mapping |
Null value to be entered. |
|
PriceLineID |
ID_LN_PRC |
INTEGER |
No Mapping |
Null value to be entered. |
|
BrandName |
NM_BRN |
VARCHAR(120) |
No Mapping |
Null value to be entered. |
|
SeasonCode |
LU_SN |
VARCHAR(20) |
No Mapping |
Null value to be entered. |
|
FiscalYear |
FY |
VARCHAR(4) |
No Mapping |
Null value to be entered. |
|
Subseason |
LU_SBSN |
VARCHAR(20) |
No Mapping |
Null value to be entered. |
|
RecordCreatedTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
RecordLast |
TS_MDF_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
ManufacturerID |
ID_MF |
INTEGER |
NA |
NA |
|
ItemI18N AS_ITM_I8 |
ItemID |
ID_ITM |
VARCHAR(14) |
Item@ID |
NA |
Locale |
LCL |
VARCHAR(10) |
No mapping available |
System SupportedLocale |
|
Description |
DE_ITM |
VARCHAR(250) |
Item/LocalizedNameDescription@Description |
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. |
|
ItemName |
NM_ITM |
VARCHAR(120) |
No mapping available |
NA |
|
AbbreviatedDescription |
DE_ITM_SHRT |
VARCHAR(120) |
Item/LocalizedNameDescription@Name |
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. |
|
BrandName |
NM_BRN |
VARCHAR(120) |
No mapping available |
NA |
|
StockItem AS_ITM_STK |
ItemID |
ID_ITM |
VARCHAR(14) |
Item @ID |
NA |
StockItemSaleUnitOf |
LU_UOM_SLS |
VARCHAR(20) |
Item @UOMCode |
Default to UN for units is not specified. |
|
ColorCode |
ED_CLR |
VARCHAR(20) |
Item @Color |
NA |
|
SizeCode |
ED_SZ |
VARCHAR(10) |
Item @Size |
NA |
|
StyleCode |
LU_STYL |
VARCHAR(4) |
Item @Style |
NA |
|
SupplierID |
ID_SPR |
VARCHAR(20) |
Item/RetailStoreItem/POSIdentity @SupplierID |
NA |
|
PackItem |
QW_ITM_PCK |
DECIMAL(9,2) |
Item @PackItemWeightCount |
NA |
|
SerializedItemValidationFlag |
FL_VLD_SRZ_ITM |
CHAR(1) |
Item @SerializedItem |
true = 1, false= 0 |
|
RestockingFeeFlag |
FL_FE_RSTK |
CHAR(1) |
Item @RestockingFee |
true = 1, false= 0 |
|
Record |
TS_CRT_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
RecordLast |
TS_MDF_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
No mapping available |
NA |
|
ShelfItemConsumerPackageHeight |
QL_HT_PCKG_CNS |
DECIMAL(9,2) |
No mapping available |
NA |
|
SerializedItemModelNumber |
NM_NMB_SRZ_ITM_MDL |
VARCHAR(40) |
No mapping available |
NA |
|
ShelfItemConsumerPackageWidth |
QL_UOM_WD_PCKG_CNS |
DECIMAL(9,2) |
No mapping available |
NA |
|
BulkToSellingUnitWasteTypeCode |
TY_WST_BLK_SLS |
VARCHAR(20) |
No mapping available |
NA |
|
SerializedItemModelYear |
CY_MDL_SRZ_ITM |
VARCHAR(4) |
No mapping available |
NA |
|
ShelfItemsHeldCapacityCount |
QU_CPC_HLD |
DECIMAL(9,2) |
No mapping available |
NA |
|
UnitOfMeasureCode |
LU_UOM |
VARCHAR(2) |
No mapping available |
NA |
|
DisplayUnitTypeCode |
TY_UN_DPLY |
VARCHAR(20) |
No mapping available |
NA |
|
PackItemCubeCount |
QU_CB_PCK_ITM |
DECIMAL(9,2) |
No mapping available |
NA |
|
ShelfItemConsumerPackageDepth |
QL_PCKG_CNS |
DECIMAL(9,2) |
No mapping available |
NA |
|
SerializedItemManufacturerColorDescription |
DE_CLR_MF_SRZ_ITM |
VARCHAR(250) |
No mapping available |
NA |
|
StockItemTypeCode |
TY_ITM_STK |
VARCHAR(20) |
No mapping available |
NA |
|
BulkToSellingUnitWasteFactorPercent |
PE_WST_BLK_SLS |
DECIMAL(5,2) |
No mapping available |
NA |
|
ShelfItemConsumerPackageDimensionUnitOfMeasureCode |
LU_UOM_PCKG_CNS_DMN |
VARCHAR(20) |
No mapping available |
NA |
|
StockItemSaleUnitPrimaryMeasurementSystemCode |
LU_SYS_PRMRY_MS |
VARCHAR(20) |
No mapping available |
NA |
|
SerializedItemManufacturerSizeDescription |
DE_SZ_MF_SRZ_ITM |
VARCHAR(250) |
No mapping available |
NA |
|
PackItemUnitNumberCount |
QU_UN_PCK_ITM |
DECIMAL(9,2) |
No mapping available |
NA |
|
DisplayUnitSetUpDate |
DC_UN_DPLY_ST_UP |
DATE |
No mapping available |
NA |
|
SerializedItemManufacturerWarrantyDescriptionCode |
LU_WRTY_MF_SRZ_ITM |
VARCHAR(20) |
No mapping available |
NA |
|
ShelfItemConsumerPackageWeight |
QW_WT_PCKG_CNS |
DECIMAL(9,2) |
No mapping available |
NA |
|
DisplayUnitTakeDownDate |
DC_UN_DPLY_TK_DWN |
DATE |
No mapping available |
NA |
|
FabricDescription |
DE_FBRC |
VARCHAR(250) |
No mapping available |
NA |
|
DisplayUnitDispositionCode |
DP_UN_DPLY |
VARCHAR(20) |
No mapping available |
NA |
|
StockItemSaleWeightOrUnitCountCode |
LU_CNT_SLS_WT_UN |
VARCHAR(20) |
No mapping available |
NA |
|
SerializedItemStoreWarrantyDescriptionCode |
LU_WRTY_STR_SRZ |
VARCHAR(20) |
No mapping available |
NA |
|
ShelfItemConsumerPackageWeightUnitOfMeasureCode |
LU_UOM_WT_PCKG_CNS |
VARCHAR(20) |
No mapping available |
NA |
|
StockItemCustomerPickupTypeCode |
TY_PKP_CT_STK_ITM |
VARCHAR(20) |
No mapping available |
NA |
|
ShelfItemConsumerPackageSizeUnitOfMeasureCode |
LU_UOM_SZ_PCKG_CNS |
VARCHAR(20) |
No mapping available |
NA |
|
SilhouetteDescription |
DE_SLH |
VARCHAR(250) |
No mapping available |
NA |
|
StockItemUnitPriceFactor |
FA_PRC_UN_STK_ITM |
DECIMAL(9,2) |
No mapping available |
NA |
|
ShelfItemDsdAuthorizedFlag |
FL_DSD_AZN |
CHAR(1) |
No mapping available |
NA |
|
StockItemShelfLifePeriodDayCount |
DI_PRD_SH_LF |
DECIMAL(3) |
No mapping available |
NA |
|
ShelfItemShelfLifeDayCount |
DI_LF_SH |
DECIMAL(3) |
No mapping available |
NA |
|
ShelfItemBrokerID |
ID_BRKR |
INTEGER |
No mapping available |
NA |
|
StockItemAvailableForSaleDate |
DC_AVLB_FR_SLS |
DATE |
No mapping available |
NA |
|
ShelfItemStaplePerishableTypeCode |
TY_ITM_STPL_PRSH |
VARCHAR(20) |
No mapping available |
NA |
|
StockItemEnvironmentTypeCode |
TY_ENV_STK_ITM |
VARCHAR(20) |
No mapping available |
NA |
|
ShelfItemAisleLocation |
NM_LCN_ASL |
VARCHAR(250) |
No mapping available |
NA |
|
StockItemSecurityRequiredTypeCode |
TY_SCTY_RQ |
VARCHAR(20) |
No mapping available |
NA |
|
ShelfItemShelfLocation |
NM_LCN_SH |
VARCHAR(250) |
No mapping available |
NA |
|
ShelfItemSideLocation |
NM_LCN_SID |
VARCHAR(250) |
No mapping available |
NA |
|
StockItemHazardousMaterialTypeCode |
TY_MTR_HZ_STK_ITM |
VARCHAR(20) |
No mapping available |
NA |
|
ShelfItemFacingsCount |
QU_FCG |
DECIMAL(9,2) |
No mapping available |
NA |
|
StockItemSellUnitLastReceivedBaseCostAmount |
CP_UN_SL_LS_RCV_BS |
DECIMAL(7,3) |
No mapping available |
NA |
|
StockItemSellUnitLastReceivedNetCostAmount |
CP_CST_NT_LS_RCV |
DECIMAL(7,3) |
No mapping available |
NA |
|
StockItemSellUnitLandedCostAmount |
CP_UN_SL_LND |
DECIMAL(7,3) |
No mapping available |
NA |
|
StockItemSellUnitLastReceivedCostsEstablishedDate |
DC_CST_EST_LS_RCV |
DATE |
No mapping available |
NA |
|
StockItemShrinkFlag |
FL_SHRK_SH_ITM |
CHAR(1) |
No mapping available |
NA |
|
StockItemSwellFlag |
FL_SWL_SH_ITM |
CHAR(1) |
No mapping available |
NA |
|
ShelfItemUnitPricingRequiredFlag |
FL_RQ_UN_PRC |
CHAR(1) |
No mapping available |
NA |
|
DispositionCodeID |
ID_DPSN_CD |
INTEGER |
No mapping available |
NA |
|
SerializedItemType |
TY_SRZ_ITM |
VARCHAR(40) |
ItemImport/Item@UINType String |
NA |
|
SerializedItemLabelID |
ID_SRZ_ITM_LB |
INTEGER |
NA |
NA |
|
SerialNumberCaptureTimeCode |
CD_SRZ_CPT_TM |
VARCHAR(20) |
ItemImport/Item@UINCaptureTime |
NA |
|
ExternalSerialNumberCreateFlag |
FL_SRZ_CRT |
CHAR(1) |
ItemImport/Item@ExternalSystemCreateUIN |
true = 1, false= 0 |
|
RetailStore AS_ITM_RTL_STR |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
ItemImport/Item/RetailStoreItem/RetailStoreID |
This value can be different from the bundle's metadata, that is, the bundle file name or manifest.mf property. |
ItemID |
ID_ITM |
VARCHAR(14) |
Item @ID |
NA |
|
TaxGroupID |
ID_GP_TX |
INTEGER |
Item/RetailStoreItem @TaxGroup Item/RetailStoreItem@VatCode |
If VatCode is not provided, then only ID_GP_TX will be filled with the value of the taxgroup attribute. The VatCode will be the VAT Code Name. VatCode will have to be translated from some String (xs:string) to an Integer. The VatCode should match a name specified in RU_TX_GP.NM_RU_TX. The ID_GP_TX of the name will be the ID used to insert into AS_ITM_RTL_STR.ID_GP_TAX for the incoming VatCode. |
|
PermanentSaleUnitRetail |
RP_PR_SLS |
DECIMAL(8,2) |
Item/RetailStoreItem/RegularPrice @PermanentPrice |
NA |
|
CompareAt |
RP_PRC_CMPR_AT_SLS |
DECIMAL(8,2) |
Item/RetailStoreItem/RegularPrice @CompareAtPrice |
NA |
|
SalesAge |
IDN_SLS_AG_RST |
INTEGER |
Item/RetailStoreItem @AgeRestrictionID |
NA |
|
LabelTemplateID |
ID_TMPLT_LB |
VARCHAR(8) |
Item/RetailStoreItem @TemplateID |
NA |
|
Record |
TS_CRT_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
RecordLast |
TS_MDF_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
UpdateStockOnHandFlag |
FL_STK_UPT_ON_HD |
CHAR(1) |
No mapping available |
NA |
|
SellingStatusCodeEffectiveDate |
DC_ITM_SLS |
DATE |
No mapping available |
NA |
|
SellingStatusCode |
SC_ITM_SLS |
VARCHAR(2) |
No mapping available |
NA |
|
ManufacturerSaleUnitRecommendedRetailPriceEffectiveDate |
DC_PRC_MF_REC_RT |
DATE |
No mapping available |
NA |
|
ManufacturerSaleUnitRecommendedRetailPriceAmount |
RP_PRC_MF_REC_RT |
DECIMAL(8,2) |
No mapping available |
NA |
|
CurrentSaleUnitRetailPriceExpirationDate |
DC_PRC_SLS_EP_CRT |
DATE |
No mapping available |
NA |
|
CurrentSaleUnitRetailPriceEffectiveDate |
DC_PRC_SLS_EF_CRT |
DATE |
No mapping available |
NA |
|
CurrentSaleUnitRetailPricePointAllowedFlag |
FL_PRC_RT_PNT_ALW |
CHAR(1) |
No mapping available |
NA |
|
CurrentSaleUnitRetailPriceTypeCode |
TY_PRC_RT |
VARCHAR(2) |
No mapping available |
NA |
|
CurrentSaleUnitRetailPriceAmount |
RP_SLS_CRT |
DECIMAL(8,2) |
No mapping available |
NA |
|
PermanentRetailPriceEffectiveDate |
DC_PRC_EF_PRN_RT |
DATE |
No mapping available |
NA |
|
PermanentRetailPricePermanentMarkdownCount |
QU_MKD_PR_PRC_PR |
DECIMAL(7,3) |
No mapping available |
NA |
|
PermanentSaleUnitRetailPriceOriginalMarkdownFlag |
FL_MKD_ORGL_PRC_PR |
CHAR(1) |
No mapping available |
NA |
|
StatusCode |
SC_ITM |
VARCHAR(2) |
No mapping available |
NA |
|
POSIdentity ID_IDN_PS |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
ItemImport/Item/RetailStoreItem/RetailStoreID |
This value can be different from the bundle's metadata, that is, the bundle file name or manifest.mf property. |
POSItemID |
ID_ITM_POS |
VARCHAR(14) |
ItemImport/Item/RetailStoreItem/POSIdentity@POSItemID |
NA |
|
ItemID |
ID_ITM |
VARCHAR(14) |
ItemImport/Item@ID |
NA |
|
ItemDescription |
DE_ITM_POS |
VARCHAR(250) |
No mapping available |
NA |
|
CurrentSaleUnitPOSRetailPriceAmount |
RP_SLS_POS_CRT |
DECIMAL(8,2) |
No mapping available |
NA |
|
FrequentShopperPointsEligibleFlag |
FL_PNT_FQ_SHPR_EL |
CHAR(1) |
No mapping available |
NA |
|
ManufacturerID |
ID_MF |
INTEGER |
ItemImport/Item/RetailStoreItem/POSIdentity@ManufacturerID |
NA |
|
ManufacturerUPC |
ID_ITM_MF_UPC |
VARCHAR(14) |
ItemImport/Item/RetailStoreItem/POSIdentity@UPC |
NA |
|
ReturnAgentID |
ID_AGNT_RTN |
INTEGER |
No mapping available |
NA |
|
CustomerAffiliationDiscountAllowedFlag |
FL_DSC_AF_DSC_ALW |
CHAR(1) |
No mapping available |
NA |
|
CouponValueCode |
LU_VT_PS_CPN |
CHAR(2) |
No mapping available |
NA |
|
CouponEndOfOfferDate |
DT_END_PS_CPN_OFR |
VARCHAR(4) |
No mapping available |
NA |
|
MinimumSaleUnitCount |
QU_UN_BLK_MNM |
DECIMAL(5,2) |
ItemImport/Item/RetailStoreItemImport/Item/POSIdentity@MinimumSaleUnitCount |
NA |
|
MaximumSaleUnitCount |
QU_UN_BLK_MXM |
DECIMAL(5,2) |
ItemImport/Item/RetailStoreItemImport/Item/POSIdentity@MaximumSaleUnitCount |
NA |
|
MarketBasketDiscountAllowedFlag |
FL_DSC_MRK_BSK_ALW |
CHAR(1) |
No mapping available |
NA |
|
CustomerAccountDiscountAllowedFlag |
FL_DSC_CT_ACNT_ALW |
CHAR(1) |
No mapping available |
NA |
|
EmployeeDiscountAllowedFlag |
FL_DSC_EM_ALW |
CHAR(1) |
ItemImport/Item/RetailStoreItem/POSIdentity@EmployeeDiscountAllowed |
true = 1 false= 0 |
|
AllowCouponMultiplyFlag |
FL_CPN_ALW_MULTY |
CHAR(1) |
ItemImport/Item/RetailStoreItemImport/Item/POSIdentity@AllowCouponMultiply |
true = 1 false= 0 |
|
AllowFoodStampFlag |
FL_FD_STP_ALW |
CHAR(1) |
No mapping available |
NA |
|
ElectronicCouponFlag |
FL_CPN_ELNTC |
CHAR(1) |
ItemImport/Item/RetailStoreItemImport/Item/POSIdentity@ElectronicCoupon |
true = 1 false= 0 |
|
CouponRestrictedFlag |
FL_CPN_RST |
CHAR(1) |
ItemImport/Item/RetailStoreItemImport/Item/POSIdentity@CouponRestricted |
true = 1 false= 0 |
|
PriceEntryRequiredFlag |
FL_ENTR_PRC_RQ |
CHAR(1) |
ItemImport/Item/RetailStoreItem/POSIdentity@PriceEntryRequired |
true = 1 false= 0 |
|
WeightEntryRequiredFlag |
FL_QR_ENR_WT |
CHAR(1) |
No mapping available |
NA |
|
QuantityKeyProhibitFlag |
FL_KY_PRH_QTY |
CHAR(1) |
ItemImport/Item/RetailStoreItem/POSIdentity@QuantityModifiable |
QuantityModifiable will have values Optional, Required and Prohibited. For Optional and Required we have to set a value of 0 which means that Quantity modification is allowed. For Prohibited we set a value of 1 which means that quantity modification is not allowed. |
|
ProhibitReturnFlag |
FL_RTN_PRH |
CHAR(1) |
ItemImport/Item/RetailStoreItemImport/Item/POSIdentity@Returnable |
true = 1 false= 0 |
|
GiveawayFlag |
FL_ITM_GWY |
CHAR(1) |
No mapping available |
NA |
|
WICFlag |
FL_ITM_WIC |
CHAR(1) |
No mapping available |
NA |
|
VisualVerifyPriceFlag |
FL_PRC_VS_VR |
CHAR(1) |
No mapping available |
NA |
|
ProhibitRepeatKeyFlag |
FL_KY_PRH_RPT |
CHAR(1) |
No mapping available |
NA |
|
SpecialOrderEligibleFlag |
FL_SPO_ITM |
CHAR(1) |
ItemImport/Item/RetailStoreItemImport/Item/POSIdentity@SpecialOrderEligible |
true = 1 false= 0 |
|
FrequentShopperPointsCount |
QU_PNT_FQ_SHPR |
DECIMAL(9,2) |
No mapping available |
NA |
|
ItemTenderRestrictionGroupCode |
LU_GP_TND_RST |
VARCHAR(20) |
No mapping available |
NA |
|
ManufacturerFamilyCode |
FC_FMY_MF |
VARCHAR(3) |
No mapping available |
NA |
|
PriceModifiableFlag |
FL_MDFR_RT_PRC |
CHAR(1) |
ItemImport/Item/RetailStoreItemImport/Item/POSIdentity@PriceModifiable |
true = 1 false= 0 |
|
PromotionID |
ID_PRM |
INTEGER |
No mapping available |
NA |
|
PromotionComponentID |
ID_PRM_CMP |
INTEGER |
No mapping available |
NA |
|
PromotionComponentDetailID |
ID_PRM_CMP_DTL |
INTEGER |
No mapping available |
NA |
|
RecordCreationTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
NA |
Now( ) |
|
RecordLastModifiedTimestamp |
TS_MDF_RCRD |
TIMESTAMP |
NA |
Now( ) |
|
SupplierItemCatalogBaseCostBreak CO_BRK_SPR_ITM_BS |
SupplierID |
ID_SPR |
VARCHAR(20) |
Item/RetailStoreItem/POSIdentity @SupplierID |
Note that SupplierID is required for deleting items. |
SupplierItem |
ID_ITM_SPR |
VARCHAR(20) |
Item @ID |
NA |
|
SupplierItem |
TY_UN_CST |
VARCHAR(3) |
NA |
SLU |
|
SupplierItem |
QU_PNT_UND_BRK |
DECIMAL(9,2) |
NA |
0 |
|
CostPerUnit |
CP_PNT_BRK_BS_CST |
DECIMAL(13,4) |
Item @ItemCost |
NA |
|
Record |
TS_CRT_RCRD |
TIMESTAMP |
NA |
Now( ) |
|
RecordLast |
TS_MDF_RCRD |
TIMESTAMP |
NA |
Now( ) |
|
PermanentPriceChange TR_CHN_PRN_PRC |
EventID |
ID_EV |
INTEGER |
NA |
NA |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
ItemImport/Item/RetailStoreItem/RetailStoreID |
This value can be different from the bundle's metadata, that is, the bundle file name or manifest.mf property. |
|
SaleUnitAmount |
MO_CHN_PRN_UN_PRC |
DECIMAL(10,4) |
Item/RetailStoreItem/RegularPrice |
NA |
|
SaleUnitAmountTypeCode |
TY_CHN_PRN_UN_PRC |
VARCHAR(20) |
NA |
NA |
|
RecordCreatedTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
NA |
NA |
|
RecordLastModifiedTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
NA |
NA |
|
ItemImage AS_ITM_IMG |
ItemID |
ID_ITM |
VARCHAR(14) |
Item@ID |
NA |
ImageLocation |
ITM_IMG_LOC |
VARCHAR(200) |
Item@ImageLocation |
This location should be a valid URL to retrieve the item information. |
|
ImageFileName |
ITM_DET_IMG |
BLOB |
Item@ImageFileName |
This file name is specified in the XML if an image file is present in the bundle. |
|
ItemMessageAssociation AS_ITM_ASCTN_MSG |
ItemID |
ID_ITM |
VARCHAR(14) |
Item@ID |
NA |
MessageID |
ID_MSG |
INTEGER |
Item/DisplayMessage/ItemMsgAscn@ID |
NA |
|
UsageTransactionType |
TY_TRN_USG |
INTEGER |
Item/DisplayMessage/ItemMsgAscn@TransactionType |
Allowable values are "Sale"=21, "Return"=22 |
|
DisplayLocationType |
TY_DPLY_LOC |
INTEGER |
Item/DisplayMessage/ItemMsgAscn@MessageType |
Allowable values are "Screen"=1, "Receipt"=2, "Footer"=3, "Rebate"=4. |
|
SerializedItemLabel AS_ITM_SRZ_LB |
SerializedItemLabelID |
ID_SRZ_ITM_LB |
INTEGER |
This ID is generated by the system |
NA |
SerializedItemLabelName |
NM_SRZ_ITM_LB |
VARCHAR(120) |
ItemImport/Item/UINLabel@Name |
NA |
|
SerializedItemLabelI8 AS_ITM_SRZ_LB_I8 |
SerializedItemLabelID |
ID_SRZ_ITM_LB |
INTEGER |
This ID is generated by the system |
NA |
Locale |
LCL |
VARCHAR(10) |
ItemImport/Item/UINLabel/LocalizedName@Language |
NA |
|
SerializedItemLabelName |
NM_SRZ_ITM_LB |
VARCHAR(120) |
ItemImport/Item/UINLabel/LocalizedName@Name |
NA |
|
ItemMerchandiseClassificationCodeAssociation AS_ITM_STRC_ASC |
ItemID |
ID_ITM |
VARCHAR2(14) |
ItemImport/Item@ID |
NA |
ClassificationCode |
ID_STRC_MR_CD |
VARCHAR2(10) |
ItemImport/Item/Classification@ID |
NA |
The following is an example Item Import XSD file.
Example C-7 ItemImport.xsd
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xs:annotation><xs:documentation> Item Import Schema. Copyright 2007 Oracle Inc. All rights reserved. Use this schema in conjuction with a Oracle Store Systems Data Dictionary and the relations between the element and attribute names should be apparent. </xs:documentation> </xs:annotation> <xs:include schemaLocation="../CommonImport.xsd"></xs:include> <xs:element name="ItemImport"> <xs:annotation><xs:documentation> Top-level element holding a collection of Item records. </xs:documentation></xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="PreloadData" type="PreloadData_type" minOccurs="0" maxOccurs="1"/> <xs:element name="Item" type="Item_type" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="FillType" type="FillType_type" use="required"/> <xs:attribute name="CreationDate" type="xs:dateTime"/> <xs:attribute name="ExpirationDate" type="xs:dateTime"/> <xs:attribute name="Version" type="xs:string"/> <xs:attribute name="Priority" type="xs:int"/> <xs:attribute name="Batch" type="xs:int"/> </xs:complexType> </xs:element> <xs:complexType name="PreloadData_type"> <xs:sequence> <xs:element name="Color" type="Color_type" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="Size" type="Size_type" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="Style" type="Style_type" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="UOM" type="UOM_type" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="Manufacturer" type="Manufacturer_type" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="MerchandiseClassification" type="MerchandiseClassification_type" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="Supplier" type="Supplier_type" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="Message" type="DisplayMessage_type" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> <xs:complexType name="DisplayMessage_type"> <xs:annotation> <xs:documentation>Multiple Item Level Messages based on the type of Transaction</xs:documentation> </xs:annotation> <xs:sequence> <xs:element name="MsgText" type="LocalizedMessageDescription_type" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="ID" type="xs:int" use="required"/> <xs:attribute name="ChangeType" type="ChangeType_subtype" default="UPS"/> </xs:complexType> <xs:complexType name="Color_type"> <xs:sequence> <xs:annotation><xs:documentation> A list of names and descriptions in different locale to this color. If attributes Name/Description are defined simultaneously with LocalizedNameDescription, they will be ignored. The Names and Description attributes are deprecated for 13.1. </xs:documentation></xs:annotation> <xs:element name="LocalizedNameDescription" type="LocalizedNameDescription_type" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="ChangeType" type="ChangeType_subtype" default="UPS"/> <xs:attribute name="Code" type="Code_type" use="required"/> <xs:attribute name="Description" type="Description_type"/> <xs:attribute name="Names" type="Name_type"/> </xs:complexType> <xs:complexType name="Size_type"> <xs:sequence> <xs:annotation><xs:documentation> A list of names and descriptions in different locale to this size. If attributes TableName, TableDesc, TypeDesc and ProportionDesc are defined simultaneously with localizedSizeDescription, they will be ignored. The TableName,TableDesc, TypeDesc and ProportionDesc are deprecated for 13.1. </xs:documentation></xs:annotation> <xs:element name="LocalizedSizeData" type="LocalizedItemSizeDescription_type" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="ChangeType" type="ChangeType_subtype" default="UPS"/> <xs:attribute name="Code" use="required"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="10"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="ProportionDesc" type="Description_type"/> <xs:attribute name="TypeDesc" type="Name_type"/> <xs:attribute name="ActualSizeCode"> <xs:simpleType> <xs:annotation><xs:documentation> This simple code type is restricted to only accepted values from 1 to 20 digits long. See NRF Size code documents </xs:documentation></xs:annotation> <xs:restriction base="Code_type"> <xs:pattern value="\d+"></xs:pattern> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="TableName" type="Name_type"/> <xs:attribute name="TableCode"> <xs:simpleType> <xs:annotation><xs:documentation> Use zero "0" for in-house size codes. See NRF Size code documents for valid size table values. </xs:documentation></xs:annotation> <xs:restriction base="xs:string"> <xs:length value="1"></xs:length> <xs:pattern value="\d"></xs:pattern> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="TableDesc" type="Description_type"/> </xs:complexType> <xs:complexType name="Style_type"> <xs:annotation><xs:documentation> A list of names and descriptions in different locale to this style. If attributes Name/Description are defined simultaneously with LocalizedNameDescription, they will be ignored. The TableName,TableDesc, TypeDesc and ProportionDesc are deprecated for 13.1. </xs:documentation></xs:annotation> <xs:sequence> <xs:element name="LocalizedNameDescription" type="LocalizedNameDescription_type" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="ChangeType" type="ChangeType_subtype" default="UPS"/> <xs:attribute name="Code" use="required"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="4"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="Name" type="Name_type"/> <xs:attribute name="Description" type="Description_type"/> </xs:complexType> <xs:complexType name="UOM_type"> <xs:sequence> <xs:annotation><xs:documentation> A list of names and descriptions in different locale to this uom. If attributes Name/Description are defined simultaneously with LocalizedNameDescription, they will be ignored. The Names and Description attributes are deprecated for 13.1. </xs:documentation></xs:annotation> <xs:element name="LocalizedNameDescription" type="LocalizedNameDescription_type" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="ChangeType" type="ChangeType_subtype" default="UPS"/> <xs:attribute name="Code" use="required"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="TypeCode"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="System"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="Standard"/> <xs:enumeration value="Metric"/> <!-- xs:enumeration value="Imperial"/ --> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="Name" type="Name_type"/> <xs:attribute name="Description" type="Description_type"/> <xs:attribute name="IsDefault" type="xs:boolean" default="false"/> <xs:attribute name="DefaultEntryCode" type="xs:boolean" default="false"/> <xs:attribute name="Enabled" type="xs:boolean" default="true"/> <xs:attribute name="SortIndex" type="xs:int" use="required"/> </xs:complexType> <xs:complexType name="Manufacturer_type"> <xs:sequence> <xs:annotation><xs:documentation> A list of localized names defined here. The Description attribute is not used. The Names attribute is deprecated for 13.1. </xs:documentation></xs:annotation> <xs:element name="LocalizedName" type="LocalizedNameDescription_type" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="ChangeType" type="ChangeType_subtype" default="UPS"/> <xs:attribute name="ID" type="Code_type" use="required"/> <xs:attribute name="Name" type="Name_type"/> </xs:complexType> <xs:complexType name="MerchandiseClassification_type"> <xs:sequence> <xs:annotation><xs:documentation> A list of localized descriptions defined here. The Name attribute is not used. The Description attribute is deprecated for 13.1. </xs:documentation></xs:annotation> <xs:element name="LocalizedDescription" type="LocalizedNameDescription_type" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="ChangeType" type="ChangeType_subtype" default="UPS"/> <xs:attribute name="Code" type="Class_type" use="required"/> <xs:attribute name="Description" type="Description_type"/> </xs:complexType> <xs:complexType name="Supplier_type"> <xs:sequence> <xs:annotation><xs:documentation> A list of localized names defined here. The Description attribute is not used. The Name attribute is deprecated for 13.1. </xs:documentation></xs:annotation> <xs:element name="LocalizedName" type="LocalizedNameDescription_type" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="ChangeType" type="ChangeType_subtype" default="UPS"/> <xs:attribute name="ID" type="Code_type" use="required"/> <xs:attribute name="DUNSNumber"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="9"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="Name" type="Name_type"/> <xs:attribute name="IsManufacturer" type="xs:boolean" default="false"/> </xs:complexType> <xs:complexType name="UINLabel_type"> <xs:annotation><xs:documentation> A list of Unique Identifier labels. </xs:documentation></xs:annotation> <xs:sequence> <xs:annotation><xs:documentation> A list of localized names defined here. The Description attribute is not used. The Name attribute is deprecated for 13.1. </xs:documentation></xs:annotation> <xs:element name="LocalizedName" type="LocalizedNameDescription_type" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="Name" type="Name_type"/> </xs:complexType> <xs:complexType name="Classification_type"> <xs:annotation><xs:documentation> This type holds ClassificationID.This is used to get classification associated to Item.We can get the itemImport in multiple batches . E.g first we may get import for creating base item.Then we may get second import to attach classifications to the item. And we may get third import to delete some classification and add some more classifications. To handle these scenarios, we must have ChangeType. </xs:documentation></xs:annotation> <xs:attribute name="ID" type="Class_type" use="required"></xs:attribute> <xs:attribute name="ChangeType" type="ChangeType_subtype" use="optional" default="UPS"/> </xs:complexType> <xs:complexType name="RelatedItemAssociation_type"> <xs:attribute name="ChangeType" type="ChangeType_subtype" default="UPS"/> <xs:attribute name="RelatedItemID" type="ID_type" use="required"/> <xs:attribute name="TypeCode" use="required"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="AUTO"/> <xs:enumeration value="UPSELL"/> <xs:enumeration value="CROSSSELL"/> <xs:enumeration value="SUBSTITUTE"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="ReturnAllowed" type="xs:boolean" default="true"/> <xs:attribute name="RemoveAllowed" type="xs:boolean" default="true"/> </xs:complexType> <xs:complexType name="Item_type"> <xs:annotation><xs:documentation> Upper level item information. This element requires a child element to specify which store it belongs to. This element can be repeated if this item should belong to multiple stores. The LocalizedNameDescription elements may also be repeated with the intention that each specifies a different language or country. </xs:documentation></xs:annotation> <xs:sequence> <xs:annotation><xs:documentation> This element holds localized ShortName and LongDescription. The ShortName and LongDescription elements are deprecated for 13.1 </xs:documentation></xs:annotation> <xs:element name="ShortName" type="LocalizedName_type" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="LongDescription" type="LocalizedDescription_type" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="LocalizedNameDescription" type="LocalizedNameDescription_type" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="MerchandiseHierarchy" type="MerchandiseHierarchy_type" minOccurs="0"/> <xs:element name="RetailStoreItem" type="RetailStoreItem_type" maxOccurs="unbounded"/> <xs:element name="DisplayMessage" type="ItemLevelMessages_type" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="UINLabel" type="UINLabel_type" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="Classification" type="Classification_type" minOccurs="0" maxOccurs="unbounded" /> <xs:element name="RelatedItemAssociation" type="RelatedItemAssociation_type" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="ChangeType" type="ChangeType_subtype" default="ADD"/> <xs:attribute name="ID" type="ID_type" use="required"/> <xs:attribute name="Type"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="Stock"/> <xs:enumeration value="Service"/> <xs:enumeration value="Coupon"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="POSDepartmentID" type="Class_type"/> <xs:attribute name="ItemCost" type="Amount_type"/> <xs:attribute name="KitSetCode" type="Code_type" default="0"/> <xs:attribute name="UOMCode" type="Code_type"/> <xs:attribute name="PackItemWeightCount" type="xs:decimal"/> <xs:attribute name="Size"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="10"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="Color" type="Code_type"/> <xs:attribute name="Style"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="4"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="TaxGroup" type="xs:int"/> <xs:attribute name="Taxable" type="xs:boolean" default="true"/> <xs:attribute name="Discountable" type="xs:boolean" default="true"/> <xs:attribute name="DamageDiscountable" type="xs:boolean" default="true"/> <xs:attribute name="RegistryEligible" type="xs:boolean"/> <xs:attribute name="AuthorizedForSale" type="xs:boolean"/> <xs:attribute name="RestockingFee" type="xs:boolean"/> <xs:attribute name="WillCall" type="xs:boolean"/> <xs:attribute name="SerializedItem" type="xs:boolean"/> <xs:attribute name="UINType" type="xs:string"/> <xs:attribute name="UINCaptureTime"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="20"/> <xs:enumeration value="Sale"/> <xs:enumeration value="StoreReceiving"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="ExternalSystemCreateUIN" type="xs:boolean" default="true"/> <xs:attribute name="SizeRequired" type="xs:boolean"/> <xs:attribute name="ActivationRequired" type="xs:boolean"/> <xs:attribute name="ImageFileName" type="xs:string"> <xs:annotation><xs:documentation> A file name specified here is expected to be a JPG or other image file existing in the same bundle as the XML file. The image will be imported as a blob into the database. </xs:documentation></xs:annotation> </xs:attribute> <xs:attribute name="ImageLocation" type="xs:string"> <xs:annotation><xs:documentation> This locations should be a valid url for use by the application in retrieving images. </xs:documentation></xs:annotation> </xs:attribute> </xs:complexType> <xs:complexType name="ItemLevelMessages_type"> <xs:annotation><xs:documentation> Associates Item with a Preloaded Message. </xs:documentation></xs:annotation> <xs:sequence> <xs:element name="ItemMsgAscn" type="Message_type" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> <xs:complexType name="Message_type"> <xs:annotation><xs:documentation> Identifying a particular message and attach it to an item </xs:documentation></xs:annotation> <xs:attribute name="ID" type="xs:int" use="required"/> <xs:attribute name="MessageType" use="required"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="Screen"/> <xs:enumeration value="Receipt"/> <xs:enumeration value="Rebate"/> <xs:enumeration value="Footer"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="TransactionType" use="required"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="Sale"/> <xs:enumeration value="Return"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:complexType> <xs:complexType name="RetailStoreItem_type"> <xs:annotation><xs:documentation> Item-location information. This element requires a child element to specify a store id. This element can be repeated if this same info should belong to multiple stores. The price element may be repeated to support foreign currency by specifying differnt currency codes. Even though RegularPrice can be defined with different currency code, Currently only the price in base currency is supported. If a list of REgularPrice elements used, the very last one will be picked up. </xs:documentation></xs:annotation> <xs:sequence> <xs:element name="RetailStoreID" type="RetailStoreId_type" maxOccurs="unbounded"/> <xs:element name="RegularPrice" type="RegularPrice_type" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="POSIdentity" type="POSIdentity_type" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="ChangeType" type="ChangeType_subtype" default="ADD"/> <xs:attribute name="TaxGroup" type="xs:int" use="optional"/> <xs:attribute name="VatCode" type="Code_type"/> <xs:attribute name="AgeRestrictionId" type="xs:int"/> <xs:attribute name="TemplateId" default="*DEFAULT"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="8"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:complexType> <xs:complexType name="POSIdentity_type"> <xs:annotation><xs:documentation> Multiple POSIdentity elements may be specified when different UPCs apply to the same item. </xs:documentation></xs:annotation> <xs:attribute name="ChangeType" type="ChangeType_subtype" default="ADD"/> <xs:attribute name="POSItemID" type="ID_type" use="required"/> <xs:attribute name="UPC" type="ID_type"/> <xs:attribute name="SupplierID" type="xs:string"/> <xs:attribute name="ManufacturerID" type="xs:int"/> <xs:attribute name="QuantityModifiable" default="Optional"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="Required"/> <xs:enumeration value="Prohibited"/> <xs:enumeration value="Optional"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="Returnable" type="xs:boolean"/> <xs:attribute name="PriceEntryRequired" type="xs:boolean" default="false"/> <xs:attribute name="PriceModifiable" type="xs:boolean"/> <xs:attribute name="AllowCouponMultiply" type="xs:boolean"/> <xs:attribute name="ElectronicCoupon" type="xs:boolean"/> <xs:attribute name="CouponRestricted" type="xs:boolean"/> <xs:attribute name="SpecialOrderEligible" type="xs:boolean"/> <xs:attribute name="EmployeeDiscountAllowed" type="xs:boolean" default="true"/> <xs:attribute name="MinimumSaleUnitCount" type="xs:decimal" default="1.0"/> <xs:attribute name="MaximumSaleUnitCount" type="xs:decimal" default="-1.0"/> </xs:complexType> <xs:complexType name="MerchandiseHierarchy_type"> <xs:annotation><xs:documentation> This is the ID of the group in the MerchandiseHierarchy that this item belongs to. Usually this is a class or subclass. </xs:documentation></xs:annotation> <xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute name="StructureID" type="xs:string" default="-1"> <xs:annotation><xs:documentation> Merchandise Structure ID. </xs:documentation></xs:annotation> </xs:attribute> <xs:attribute name="Level" default="UNDF"> <xs:annotation><xs:documentation> Merchandise Hierarchy Level Code. </xs:documentation></xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="4"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:complexType name="RegularPrice_type"> <xs:annotation><xs:documentation> The regular price is the initial permanent price for a new item. This price will effectively become amount of the first PermanentPriceChange for this item. Do not attempt to change the regular price afterwards through this element. Instead see PermanentPriceChange in the PricingImport.xsd. Any effective promotions or discounts will override, but not replace, the regular price. </xs:documentation></xs:annotation> <xs:simpleContent> <xs:extension base="CurrencyAmount_type"> <xs:attribute name="CompareAtPrice" type="Amount_type"/> <xs:attribute name="IncludesTax" type="xs:boolean" default="false"> <xs:annotation><xs:documentation> Attribute reserved for future use. To be implemented at a future date. </xs:documentation></xs:annotation> </xs:attribute> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:simpleType name="Class_type"> <xs:restriction base="xs:string"> <xs:maxLength value="10"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="Code_type"> <xs:restriction base="xs:string"> <xs:maxLength value="20"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="ChangeType_subtype"> <xs:annotation><xs:documentation> The change type is named slightly different from the one in CommonImport.xsd to avoid a conflict. It allows for the "UPS" upsert change type which will instruct the Data Import to update the specified record then insert it if the update failed. "UPS" (upsert) and ""DEL" (delete) are the only operations supported for Preload data when using an Incremental fill type. If "DEL"" is not specified as ChangeType, Then "UPS" is assumed. It is recommended that the "ADD" and "UPD" change types are used for "KillAndFill" fill type. "UPD" in this case would only affect records previously inserted by "ADD" in the batch. </xs:documentation></xs:annotation> <xs:restriction base="xs:string"> <xs:enumeration value="ADD"/> <xs:enumeration value="UPD"/> <xs:enumeration value="DEL"/> <xs:enumeration value="UPS"/> </xs:restriction> </xs:simpleType> </xs:schema>
The following is an example Item Import XML file.
Example C-8 ItemImport.xml
<?xml version="1.0" encoding="UTF-8"?> <ItemImport Priority="0" FillType="FullIncremental" Version="1.0" Batch="1" CreationDate="2001-12-17T09:30:47.0Z" ExpirationDate="2027-12-17T09:30:47.0Z" xsi:noNamespaceSchemaLocation="ItemImport.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <PreloadData> <Color ChangeType="UPS" Code="203"> <LocalizedNameDescription Language="en" Name="Red" Description="Red Description" /> </Color> <Size ChangeType="UPS" TableCode="1" ActualSizeCode="1001" Code="XS"> <LocalizedSizeData Language="en" TypeDesc="XSTypeDesc" TableName="Basic" TableDesc="xsmall" ProportionDesc="XSProportionDesc"/> </Size> <Style ChangeType="UPS" Code="CLSC"> <LocalizedNameDescription Language="en" Name="Classic" Description="Classic"/> </Style> <UOM ChangeType="UPS" TypeCode="CD" IsDefault="false" SortIndex="0" System="Metric" DefaultEntryCode="false" Code="KG" Enabled="true"> <LocalizedNameDescription Language="en" Name="Kilograms" Description="Kilograms description"/> </UOM> <MerchandiseClassification ChangeType="UPS" Code="SPGD"> <LocalizedDescription Language="en" Description="Sporting Goods"/> </MerchandiseClassification> <Supplier ChangeType="UPS" ID="0002" IsManufacturer="true" DUNSNumber="123456789"> <LocalizedName Language="en" Name="Gizmos Inc."/> </Supplier> </PreloadData> <Item ChangeType="ADD" ID="1234" Type="Stock" ItemCost="5.12" Taxable="true" TaxGroup="100" POSDepartmentID="1" KitSetCode="0" Size="null" Color="null" Style="null" ActivationRequired="false" RegistryEligible="true" SizeRequired="false" AuthorizedForSale="true" SerializedItem="false" UINType="Serial" UINCaptureTime="Sale" ExternalSystemCreateUIN="true" Discountable="true" DamageDiscountable="true" PackItemWeightCount="1.0" RestockingFee="true" UOMCode="UN"> <LocalizedNameDescription Language="en" Country="US" Name="CoolBox" Description="Like a toolbox but cooler"/> <LocalizedNameDescription Language="fr" Country="CA" Name="Boîte Chouette" Description="Like a Boîte Chouette but cooler"/> <MerchandiseHierarchy StructureID="1" Level="DIV">1234</MerchandiseHierarchy> <RetailStoreItem TemplateId="SALTEMPL" TaxGroup="100" VatCode="A" AgeRestrictionId="0"> <RetailStoreID>04241</RetailStoreID> <RetailStoreID>01291</RetailStoreID> <RegularPrice CurrencyCode="EUR" CompareAtPrice="12.00" IncludesTax="false">9.99</RegularPrice> <RegularPrice CurrencyCode="CAD" CompareAtPrice="13.00" IncludesTax="false">109.99</RegularPrice> <POSIdentity POSItemID="1234" UPC="12340000000000" ManufacturerID="0" SupplierID="0" MinimumSaleUnitCount="1" MaximumSaleUnitCount="-1" QuantityModifiable="Optional" PriceEntryRequired="false" PriceModifiable="true" SpecialOrderEligible="true" Returnable="false" EmployeeDiscountAllowed="true" AllowCouponMultiply="true" ElectronicCoupon="true" CouponRestricted="false"/> </RetailStoreItem> <UINLabel Name="SERIAL NUMBER"> <LocalizedName Country="US" Language="en" Name="In en SERIAL NUMBER"/> </UINLabel> <Classification ID="SPGD" ChangeType="ADD"/> <Classification ID="BDGM" ChangeType="ADD"/> <Classification ID="SOCA" ChangeType="ADD"/> </Item> </ItemImport>
Table C-6 identifies the PreloadData element mapping for the MerchandiseHierarchyImport.xsd file.
Table C-6 Merchandise Hierarchy Import XSD PreloadData Element Mapping Table
Log/Physical table | Target | Physical Column Name | DataType | XSD Element/Attribute Path | Notes |
---|---|---|---|---|---|
Merchandise CO_MRHRC_GP |
Merchandise |
ID_MRHRC_GP |
VARCHAR(14) |
PreloadData/MerchandiseGroup/ID |
NA |
Merchant |
ID_PST |
INTEGER |
PreloadData/MerchandiseGroup/MerchantID |
NA |
|
Name |
NM_MRHRC_GP |
VARCHAR(120) |
PreloadData/MerchandiseGroup/Name |
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. |
|
Description |
DE_MRHRC_GP |
VARCHAR(250) |
PreloadData/MerchandiseGroup/Description |
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. |
|
RecordCreate |
TS_CRT_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
RecordModify |
TS_MDF_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
POSDepartment ID_DPT_PS |
POSDepartmentID |
ID_DPT_POS |
VARCHAR(14) |
PreloadData/POSDepartment/POSDepartmentID |
NA |
ParentPOS |
ID_DPT_POS_PRNT |
VARCHAR(14) |
PreloadData/POSDepartment/ParentPOS |
NA |
|
Name |
NM_DPT_POS |
VARCHAR(120) |
PreloadData/POSDepartment/POSDepartment |
NA |
|
TaxGroupID |
ID_GP_TX |
INTEGER |
PreloadData/POSDepartment/DepartmentDefaultTaxGroup |
NA |
|
POSDepartment I18N ID_DPT_PS_I8 |
POSDepartmentID |
ID_DPT_POS |
VARCHAR(14) |
PreloadData/POSDepartment/POSDepartmentID |
NA |
Locale |
LCL |
VARCHAR(10) |
PreloadData/POSDepartment/POSDepartment PreloadData/POSDepartment/POSDepartment |
Concatenate Lower |
|
POSDepartment |
NM_DPT_POS |
VARCHAR(120) |
PreloadData/POSDepartment/POSDepartment |
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. |
|
RetailStorePOS LO_DPT_POS_RTL_STR |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
PreloadData/POSDepartment/RetailStorePOS |
NA |
POSDepartmentID |
ID_DPT_POS |
VARCHAR(14) |
PreloadData/POSDepartment/POSDepartmentID |
NA |
|
DefaultEntryCode |
FL_CD_ENT_DFLT |
CHAR(1) |
PreloadData/POSDepartment/RetailStorePOS |
NA |
|
EnabledFlag |
FL_CD_ENT_ENAB |
CHAR(1) |
PreloadData/POSDepartment/RetailStorePOS |
NA |
|
ListSortIndex |
CD_ENT_SRT |
SMALLINT |
PreloadData/POSDepartment/RetailStorePOS |
NA |
Table C-7 identifies the element mapping for the MerchandiseHierarchyImport.xsd file.
Table C-7 Merchandise Hierarchy Import XSD Element Mapping Table
Log/Physical table | Target | Physical Column Name | DataType | XSD Element/Attribute Path | Notes |
---|---|---|---|---|---|
Merchandise CO_MRHRC_FNC |
Merchandise |
ID_MRHRC_FNC |
INTEGER |
HierarchyList/Hierarchy@ |
Maximum field size for INTEGER is typically NUMBER(10) to support Java INT datatype in application. |
Name |
NM_MRHRC_FNC |
VARCHAR(250) |
HierarchyList/Hierarchy@Name |
NA |
|
RecordCreate |
TS_CRT_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
RecordModify |
TS_MDF_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
Merchandise CO_MRHRC_LV |
Merchandise |
ID_MRHRC_FNC |
INTEGER |
HierarchyList/Hierarchy@ |
NA |
Merchandise |
ID_MRHRC_LV |
INTEGER |
HierarchyList/Hierarchy/LevelList/Level@ID |
Maximum field size for INTEGER is typically NUMBER(10) to support Java INT datatype in application. |
|
Parent |
ID_MRHRC_LV_PRNT |
INTEGER |
HierarchyList/Hierarchy/LevelList/Level@ParentID |
NA |
|
Name |
NM_MRHRC_LV |
VARCHAR(120) |
HierarchyList/Hierarchy/LevelList/Level@Name |
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. |
|
RecordCreate |
TS_CRT_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
RecordModify |
TS_MDF_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
Merchandise ST_ASCTN_MRHRC |
Merchandise |
ID_MRHRC_FNC |
INTEGER |
HierarchyList/Hierarchy@ |
NA |
Parent |
ID_MRHRC_GP_PRNT |
VARCHAR(14) |
HierarchyList/Hierarchy/ |
NA |
|
Child |
ID_MRHRC_GP_CHLD |
VARCHAR(14) |
HierarchyList/Hierarchy/NodeList/Node@ID |
NA |
|
Parent |
ID_MRHRC_LV |
INTEGER |
HierarchyList/Hierarchy/NodeList/Node@LevelID |
NA |
|
RecordCreate |
TS_CRT_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
RecordModify |
TS_MDF_RCRD |
TIMESTAMP |
Now( ) |
NA |
The following is an example Merchandise Hierarchy Import XSD file.
Example C-9 MerchandiseHierarchyImport.xsd
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:include schemaLocation="../common.xsd"></xs:include> <xs:annotation><xs:documentation> Merchandise Hierarchy Import Schema. Copyright 2006 Oracle. All rights reserved. </xs:documentation></xs:annotation> <xs:element name="MerchandiseHierarchy"> <xs:annotation><xs:documentation> Top level element containing the hierarchy and the data that must be preloaded before the hierarchy. </xs:documentation></xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="PreloadData" type="PreloadData_type" minOccurs="0" maxOccurs="1"> <xs:annotation><xs:documentation> The data that must be preloaded into the datasource before the actual hierarchy is persisted. Consists of departments and merchandise groups. </xs:documentation></xs:annotation> </xs:element> <xs:element name="HierarchyList" type="HierarchyList_type" minOccurs="0" maxOccurs="unbounded"> <xs:annotation><xs:documentation> The actual merchandise hierarchy data being imported. Contains a grouping (list) of hierarchies. </xs:documentation></xs:annotation> </xs:element> </xs:sequence> <xs:attribute name="FillType" type="FillType_subtype" use="required" fixed="KillAndFill"/> <xs:attribute name="CreationDate" type="xs:dateTime"/> <xs:attribute name="ExpirationDate" type="xs:dateTime"/> <xs:attribute name="Version" type="xs:string"/> <xs:attribute name="Priority" type="xs:int"/> <xs:attribute name="Batch" type="xs:int"/> </xs:complexType> </xs:element> <xs:complexType name="PreloadData_type"> <xs:sequence> <xs:element name="POSDepartment" type="POSDepartment_type" minOccurs="0" maxOccurs="unbounded" /> <xs:element name="MerchandiseGroup" type="MerchandiseGroup_type" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> </xs:complexType> <xs:complexType name="MerchandiseGroup_type"> <xs:sequence> <xs:element name="ChangeType" type="ChangeType_subtype" minOccurs="1" maxOccurs="1" /> <xs:element name="ID" type="xs:string" minOccurs="1" maxOccurs="1" /> <xs:element name="Name" minOccurs="0" maxOccurs="1"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="120"></xs:maxLength> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MerchantID" type="xs:int" minOccurs="0" maxOccurs="1" /> <xs:element name="Description" type="xs:string" minOccurs="0" maxOccurs="1" /> <xs:element name="LocalizedNameDescription" type="LocalizedNameDescription_type" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> </xs:complexType> <xs:complexType name="POSDepartment_type"> <xs:sequence> <xs:element name="ChangeType" type="ChangeType_subtype" minOccurs="1" maxOccurs="1" /> <xs:element name="POSDepartmentID" type="xs:string" minOccurs="1" maxOccurs="1" /> <xs:element name="ParentPOSDepartmentID" type="xs:string" minOccurs="0" maxOccurs="1" /> <xs:choice> <xs:annotation><xs:documentation> POSDepartmentName is deprecated as 13.1 </xs:documentation></xs:annotation> <xs:element name="POSDepartmentName" type="LocalizedPOSDepartmentName_type" minOccurs="0" maxOccurs="unbounded" /> <xs:element name="LocalizedName" type="LocalizedNameDescription_type" minOccurs="0" maxOccurs="unbounded" /> </xs:choice> <xs:element name="DepartmentDefaultTaxGroup" type="xs:int" minOccurs="1" maxOccurs="1" /> <xs:element name="RetailStorePOSDepartment" type="RetailStorePOSDepartment_type" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> </xs:complexType> <xs:complexType name="LocalizedPOSDepartmentName_type"> <xs:attribute name="Text" type="Name_type" /> <xs:attribute name="LanguageCode" type="Language_type"/> <xs:attribute name="CountryCode" type="Country_type"/> </xs:complexType> <xs:complexType name="RetailStorePOSDepartment_type"> <xs:sequence> <xs:element name="ChangeType" type="ChangeType_subtype" minOccurs="1" maxOccurs="1" /> <xs:element name="RetailStoreId" type="RetailStoreId_type" minOccurs="1" maxOccurs="1" /> <xs:element name="DefaultEntryCode" type="xs:string" minOccurs="1" maxOccurs="1" /> <xs:element name="EnabledFlag" type="xs:boolean" minOccurs="1" maxOccurs="1" /> <xs:element name="ListSortIndex" type="xs:int" minOccurs="1" maxOccurs="1" /> </xs:sequence> </xs:complexType> <xs:complexType name="HierarchyList_type"> <xs:sequence> <xs:element name="Hierarchy" type="Hierarchy_type" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> </xs:complexType> <xs:complexType name="Hierarchy_type"> <xs:sequence> <xs:element name="LevelList" type="LevelList_type" minOccurs="0" maxOccurs="1" /> <xs:element name="NodeList" type="NodeList_type" minOccurs="0" maxOccurs="1" /> </xs:sequence> <xs:attribute name="FunctionID" type="xs:int" use="required" /> <xs:attribute name="Name" type="xs:string"/> </xs:complexType> <xs:complexType name="LevelList_type"> <xs:sequence> <xs:element name="Level" type="Level_type" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> </xs:complexType> <xs:complexType name="NodeList_type"> <xs:sequence> <xs:element name="Node" type="Node_type" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> </xs:complexType> <xs:complexType name="Level_type"> <xs:sequence> <xs:element name="LocalizedName" type="LocalizedNameDescription_type" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> <xs:attribute name="ID" type="xs:int" use="required" /> <xs:attribute name="Name" type="xs:string" /> <xs:attribute name="ParentID" type="xs:int"> <xs:annotation><xs:documentation> If the parent id is missing, this is assumed to be the root. </xs:documentation></xs:annotation> </xs:attribute> </xs:complexType> <xs:complexType name="Node_type"> <xs:attribute name="ID" type="xs:string" use="required" /> <xs:attribute name="Name" type="xs:string" /> <xs:attribute name="LevelID" type="xs:int" use="required" /> <xs:attribute name="ParentNodeID" type="xs:string" /> </xs:complexType> <xs:simpleType name="ChangeType_subtype"> <xs:restriction base="xs:string"> <xs:enumeration value="ADD" /> </xs:restriction> </xs:simpleType> <xs:simpleType name="FillType_subtype"> <xs:restriction base="xs:string"> <xs:enumeration value="KillAndFill"/> </xs:restriction> </xs:simpleType> </xs:schema>
The following is an example Merchandise Hierarchy Import XML file.
Example C-10 MerchandiseHierarchyImport.xml
<?xml version="1.0" encoding="UTF-8"?> <MerchandiseHierarchy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="MerchandiseHierarchyImport.xsd" Priority="0" FillType="KillAndFill" Version="1.0" Batch="1" CreationDate="2001-12-17T09:30:47.0Z" ExpirationDate="2027-12-17T09:30:47.0Z"> <PreloadData> <POSDepartment> <ChangeType>ADD</ChangeType> <POSDepartmentID>1</POSDepartmentID> <ParentPOSDepartmentID>0</ParentPOSDepartmentID> <POSDepartmentName Text="Miscellaneous"/> <!--This is the old format to define POS department name.--> <!--deprecated as 13.1--> <POSDepartmentName CountryCode="PR" LanguageCode="es" Text="es_PR Miscellaneous"/> <POSDepartmentName CountryCode="CA" LanguageCode="fr" Text="fr_CA Miscellaneous"/> <DepartmentDefaultTaxGroup>0</DepartmentDefaultTaxGroup> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>01291</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>true</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>04241</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>true</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>CORP</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>true</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> </POSDepartment> <POSDepartment> <ChangeType>ADD</ChangeType> <POSDepartmentID>2</POSDepartmentID> <ParentPOSDepartmentID>0</ParentPOSDepartmentID> <!--This is what we should use to define POS department names as 13.1 --> <LocalizedName Country="US" Language="en" Name="Sporting Goods"/> <LocalizedName Country="PR" Language="es" Name="es_PR Sporting Goods"/> <LocalizedName Country="CA" Language="fr" Name="fr_CA Sporting Goods"/> <DepartmentDefaultTaxGroup>0</DepartmentDefaultTaxGroup> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>01291</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>true</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>04241</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>true</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>CORP</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>true</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> </POSDepartment> <POSDepartment> <ChangeType>ADD</ChangeType> <POSDepartmentID>3</POSDepartmentID> <ParentPOSDepartmentID>0</ParentPOSDepartmentID> <POSDepartmentName CountryCode="US" LanguageCode="en" Text="Garden"/> <POSDepartmentName CountryCode="PR" LanguageCode="es" Text="In es_PR Garden"/> <POSDepartmentName CountryCode="CA" LanguageCode="fr" Text="In fr_CA Garden"/> <DepartmentDefaultTaxGroup>0</DepartmentDefaultTaxGroup> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>01291</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>true</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>04241</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>true</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>CORP</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>true</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> </POSDepartment> <POSDepartment> <ChangeType>ADD</ChangeType> <POSDepartmentID>4</POSDepartmentID> <ParentPOSDepartmentID>0</ParentPOSDepartmentID> <POSDepartmentName CountryCode="US" LanguageCode="en" Text="Music"/> <POSDepartmentName CountryCode="PR" LanguageCode="es" Text="In es_PR Music"/> <POSDepartmentName CountryCode="CA" LanguageCode="fr" Text="In fr_CA Music"/> <DepartmentDefaultTaxGroup>0</DepartmentDefaultTaxGroup> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>01291</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>true</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>04241</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>true</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>CORP</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>true</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> </POSDepartment> <POSDepartment> <ChangeType>ADD</ChangeType> <POSDepartmentID>5</POSDepartmentID> <ParentPOSDepartmentID>0</ParentPOSDepartmentID> <POSDepartmentName CountryCode="US" LanguageCode="en" Text="Hardware"/> <POSDepartmentName CountryCode="PR" LanguageCode="es" Text="In es_PR Hardware"/> <POSDepartmentName CountryCode="CA" LanguageCode="fr" Text="In fr_CA Hardware"/> <DepartmentDefaultTaxGroup>0</DepartmentDefaultTaxGroup> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>01291</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>true</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>04241</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>true</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>CORP</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>true</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> </POSDepartment> <POSDepartment> <ChangeType>ADD</ChangeType> <POSDepartmentID>6</POSDepartmentID> <ParentPOSDepartmentID>0</ParentPOSDepartmentID> <POSDepartmentName CountryCode="US" LanguageCode="en" Text="Office"/> <POSDepartmentName CountryCode="PR" LanguageCode="es" Text="In es_PR Office"/> <POSDepartmentName CountryCode="CA" LanguageCode="fr" Text="In fr_CA Office"/> <DepartmentDefaultTaxGroup>0</DepartmentDefaultTaxGroup> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>01291</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>true</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>04241</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>true</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>CORP</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>true</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> </POSDepartment> <POSDepartment> <ChangeType>ADD</ChangeType> <POSDepartmentID>7</POSDepartmentID> <ParentPOSDepartmentID>0</ParentPOSDepartmentID> <POSDepartmentName CountryCode="US" LanguageCode="en" Text="Toys"/> <POSDepartmentName CountryCode="PR" LanguageCode="es" Text="In es_PR Toys"/> <POSDepartmentName CountryCode="CA" LanguageCode="fr" Text="In fr_CA Toys"/> <DepartmentDefaultTaxGroup>0</DepartmentDefaultTaxGroup> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>01291</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>false</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>04241</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>false</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>CORP</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>true</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> </POSDepartment> <POSDepartment> <ChangeType>ADD</ChangeType> <POSDepartmentID>8</POSDepartmentID> <ParentPOSDepartmentID>0</ParentPOSDepartmentID> <POSDepartmentName CountryCode="US" LanguageCode="en" Text="Infant"/> <POSDepartmentName CountryCode="PR" LanguageCode="es" Text="In es_PR Infant"/> <POSDepartmentName CountryCode="CA" LanguageCode="fr" Text="In fr_CA Infant"/> <DepartmentDefaultTaxGroup>0</DepartmentDefaultTaxGroup> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>01291</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>false</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>04241</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>false</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>CORP</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>true</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> </POSDepartment> <POSDepartment> <ChangeType>ADD</ChangeType> <POSDepartmentID>9</POSDepartmentID> <ParentPOSDepartmentID>0</ParentPOSDepartmentID> <POSDepartmentName CountryCode="US" LanguageCode="en" Text="Women Apparel"/> <POSDepartmentName CountryCode="PR" LanguageCode="es" Text="es_PR Women Apparel"/> <POSDepartmentName CountryCode="CA" LanguageCode="fr" Text="fr_CA Women Apparel"/> <DepartmentDefaultTaxGroup>0</DepartmentDefaultTaxGroup> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>01291</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>false</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>04241</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>false</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>CORP</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>true</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> </POSDepartment> <POSDepartment> <ChangeType>ADD</ChangeType> <POSDepartmentID>10</POSDepartmentID> <ParentPOSDepartmentID>0</ParentPOSDepartmentID> <POSDepartmentName CountryCode="US" LanguageCode="en" Text="Electronics"/> <POSDepartmentName CountryCode="PR" LanguageCode="es" Text="In es_PR Electronics"/> <POSDepartmentName CountryCode="CA" LanguageCode="fr" Text="In fr_CA Electronics"/> <DepartmentDefaultTaxGroup>0</DepartmentDefaultTaxGroup> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>01291</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>false</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>04241</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>false</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>CORP</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>true</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> </POSDepartment> <POSDepartment> <ChangeType>ADD</ChangeType> <POSDepartmentID>11</POSDepartmentID> <ParentPOSDepartmentID>0</ParentPOSDepartmentID> <POSDepartmentName CountryCode="US" LanguageCode="en" Text="Outdoor"/> <POSDepartmentName CountryCode="PR" LanguageCode="es" Text="In es_PR Outdoor"/> <POSDepartmentName CountryCode="CA" LanguageCode="fr" Text="In fr_CA Outdoor"/> <DepartmentDefaultTaxGroup>0</DepartmentDefaultTaxGroup> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>01291</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>false</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>04241</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>false</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>CORP</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>true</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> </POSDepartment> <POSDepartment> <ChangeType>ADD</ChangeType> <POSDepartmentID>1414</POSDepartmentID> <ParentPOSDepartmentID>0</ParentPOSDepartmentID> <POSDepartmentName CountryCode="US" LanguageCode="en" Text="ReSA Dept 1"/> <DepartmentDefaultTaxGroup>0</DepartmentDefaultTaxGroup> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>04241</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>false</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> </POSDepartment> <POSDepartment> <ChangeType>ADD</ChangeType> <POSDepartmentID>1221</POSDepartmentID> <ParentPOSDepartmentID>0</ParentPOSDepartmentID> <POSDepartmentName CountryCode="US" LanguageCode="en" Text="ReSA Dept 2"/> <DepartmentDefaultTaxGroup>0</DepartmentDefaultTaxGroup> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>04241</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>false</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> </POSDepartment> <POSDepartment> <ChangeType>ADD</ChangeType> <POSDepartmentID>99</POSDepartmentID> <ParentPOSDepartmentID>0</ParentPOSDepartmentID> <POSDepartmentName CountryCode="US" LanguageCode="en" Text="Tax Test Department"/> <POSDepartmentName CountryCode="PR" LanguageCode="es" Text="es_PR Tax Test Dept"/> <POSDepartmentName CountryCode="CA" LanguageCode="fr" Text="fr_CA Tax Test Dept"/> <DepartmentDefaultTaxGroup>0</DepartmentDefaultTaxGroup> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>04241</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>false</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> </POSDepartment> <POSDepartment> <ChangeType>ADD</ChangeType> <POSDepartmentID>8888602</POSDepartmentID> <ParentPOSDepartmentID>0</ParentPOSDepartmentID> <POSDepartmentName CountryCode="US" LanguageCode="en" Text="VAT Dept 8888640"/> <POSDepartmentName CountryCode="PR" LanguageCode="es" Text="[es_PR] VAT Dept"/> <DepartmentDefaultTaxGroup>8888640</DepartmentDefaultTaxGroup> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>01291</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>false</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>04241</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>false</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> </POSDepartment> <POSDepartment> <ChangeType>ADD</ChangeType> <POSDepartmentID>8888603</POSDepartmentID> <ParentPOSDepartmentID>0</ParentPOSDepartmentID> <POSDepartmentName CountryCode="US" LanguageCode="en" Text="VAT Dept 8888670"/> <POSDepartmentName CountryCode="PR" LanguageCode="es" Text="[es_PR] VAT Dept"/> <DepartmentDefaultTaxGroup>8888670</DepartmentDefaultTaxGroup> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>01291</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>false</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>04241</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>false</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> </POSDepartment> <POSDepartment> <ChangeType>ADD</ChangeType> <POSDepartmentID>8888604</POSDepartmentID> <ParentPOSDepartmentID>0</ParentPOSDepartmentID> <POSDepartmentName CountryCode="US" LanguageCode="en" Text="VAT Dept"/> <POSDepartmentName CountryCode="PR" LanguageCode="es" Text="[es_PR] VAT Dept"/> <DepartmentDefaultTaxGroup>8888999</DepartmentDefaultTaxGroup> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>01291</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>false</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> <RetailStorePOSDepartment> <ChangeType>ADD</ChangeType> <RetailStoreId>04241</RetailStoreId> <DefaultEntryCode>false</DefaultEntryCode> <EnabledFlag>false</EnabledFlag> <ListSortIndex>0</ListSortIndex> </RetailStorePOSDepartment> </POSDepartment> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>0</ID> <Name>Root</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>1</ID> <Name>Gardening</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>2</ID> <Name>Multi-Media</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>3</ID> <Name>Music</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>4</ID> <Name>DVD</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>5</ID> <Name>CD</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>6</ID> <Name>Movies</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>7</ID> <Name>DVD</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>8</ID> <Name>Video</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>9</ID> <Name>Equipment</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>45</ID> <Name>Hardware</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>11</ID> <Name>Building Materials</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>12</ID> <Name>Tools</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>13</ID> <Name>Office Supplies</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>14</ID> <Name>Furniture</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>15</ID> <Name>Equipment</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>16</ID> <Name>Computers</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>17</ID> <Name>Printers</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>18</ID> <Name>Sporting Goods</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>19</ID> <Name>Board Games</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>20</ID> <Name>Balls</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>21</ID> <Name>Camping & Hunting</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>10</ID> <Name>Camping</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>22</ID> <Name>Firearms</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>23</ID> <Name>Cycling</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>24</ID> <Name>Bicycles</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>49</ID> <Name>Cycling Jersies</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>50</ID> <Name>Cycling Gloves</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>51</ID> <Name>Cycling Shorts</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>52</ID> <Name>Cycling Sun Glasses</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>53</ID> <Name>Cycling Shoes</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>54</ID> <Name>Bicycle Helmets</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>55</ID> <Name>Bicycle Spares</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>62</ID> <Name>Wheels & Tires</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>63</ID> <Name>Chains & Guides</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>64</ID> <Name>Brakes, Pads & Shoes</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>65</ID> <Name>Handlebars & Grips</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>66</ID> <Name>Lights</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>69</ID> <Name>Pedals</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>70</ID> <Name>Seats</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>76</ID> <Name>Bicycle Accessories</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>75</ID> <Name>Bicycle Pumps</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>67</ID> <Name>Bicycle Computers</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>68</ID> <Name>Locks</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>71</ID> <Name>Bags, Racks & Carriers</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>74</ID> <Name>Sports Drinks</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>77</ID> <Name>Water Bottles</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>27</ID> <Name>Apparel</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>28</ID> <Name>Jackets & Coats</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>29</ID> <Name>Pants</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>85</ID> <Name>Jeans</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>72</ID> <Name>Casual Shorts</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>80</ID> <Name>Dress Pants</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>30</ID> <Name>Tops</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>31</ID> <Name>Sweaters</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>32</ID> <Name>Shirts</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>33</ID> <Name>Hosiery</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>34</ID> <Name>Shoes</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>57</ID> <Name>Athletic Shoes</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>58</ID> <Name>Dress Shoes</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>81</ID> <Name>Accessories</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>86</ID> <Name>Ties & Scarves</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>35</ID> <Name>Cosmetics</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>36</ID> <Name>Lipstick</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>37</ID> <Name>Perfume</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>38</ID> <Name>Cream</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>39</ID> <Name>Grocery</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>40</ID> <Name>Beverages</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>41</ID> <Name>Juices</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>42</ID> <Name>Sodas</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>43</ID> <Name>Dairy</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>44</ID> <Name>Toys</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>82</ID> <Name>Misc. Toys</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>60</ID> <Name>Baby Stuff</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>59</ID> <Name>Baby Strollers</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>61</ID> <Name>Baby Bicycle Carriers</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>78</ID> <Name>Baby Cribs</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>79</ID> <Name>Baby Car Seats</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>73</ID> <Name>Misc. Items</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>46</ID> <Name>Gift Cards</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>83</ID> <Name>Store Coupons</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>47</ID> <Name>Service Items</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>48</ID> <Name>Testing</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>84</ID> <Name>Promotional Kits</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>102</ID> <Name>Multi-Media</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>103</ID> <Name>Music</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>106</ID> <Name>Movies</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>145</ID> <Name>Hardware</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>113</ID> <Name>Office Supplies</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>118</ID> <Name>Sporting Goods</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>121</ID> <Name>Camping & Hunting</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>123</ID> <Name>Cycling</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>125</ID> <Name>Cycling Apparel</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>155</ID> <Name>Bicycle Spares</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>176</ID> <Name>Bicycle Accessories</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>127</ID> <Name>Apparel</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>129</ID> <Name>Pants</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>130</ID> <Name>Tops</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>134</ID> <Name>Shoes</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>181</ID> <Name>Accessories</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>156</ID> <Name>Safety Apparel</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>135</ID> <Name>Cosmetics</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>139</ID> <Name>Grocery</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>140</ID> <Name>Beverages</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>144</ID> <Name>Toys</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>160</ID> <Name>Baby Stuff</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>173</ID> <Name>Misc Items</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>1200</ID> <Name>ReSA Company</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>1201</ID> <Name>ReSA Division</Name> <LocalizedNameDescription Language="en" Country="US" Name="ReSA Division in en_US" Description="ReSA Division Description in en_US"/> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>1202</ID> <Name>ReSA Group</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>1221</ID> <Name>Plain Items</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>1414</ID> <Name>KG Items</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>99</ID> <Name>Tax Testing Department</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>8888602</ID> <Name>VAT Testing Department 8888602</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>8888603</ID> <Name>VAT Testing Department 8888603</Name> </MerchandiseGroup> <MerchandiseGroup> <ChangeType>ADD</ChangeType> <ID>8888604</ID> <Name>VAT Testing Department 8888604</Name> </MerchandiseGroup> </PreloadData> <HierarchyList> <Hierarchy FunctionID="1" Name="Sales Reporting"> <LevelList> <Level ID="0" Name="RootLevel" > <LocalizedName Language="en" Country="US" Name="RootLevel in en_US"/> <LocalizedName Language="fr" Country="US" Name="RootLevel in fr"/> </Level> <Level ID="1" Name="Department" ParentID="0"/> <Level ID="2" Name="Group" ParentID="1"/> <Level ID="3" Name="Class" ParentID="2"/> <Level ID="4" Name="SubClass" ParentID="3"/> </LevelList> <NodeList> <Node ID="0" LevelID="0" /> <Node ID="1" LevelID="0" ParentNodeID="0" /> <Node ID="2" LevelID="0" ParentNodeID="0" /> <Node ID="45" LevelID="0" ParentNodeID="0" /> <Node ID="13" LevelID="0" ParentNodeID="0" /> <Node ID="18" LevelID="0" ParentNodeID="0" /> <Node ID="27" LevelID="0" ParentNodeID="0" /> <Node ID="35" LevelID="0" ParentNodeID="0" /> <Node ID="39" LevelID="0" ParentNodeID="0" /> <Node ID="44" LevelID="0" ParentNodeID="0" /> <Node ID="60" LevelID="0" ParentNodeID="0" /> <Node ID="73" LevelID="0" ParentNodeID="0" /> <Node ID="99" LevelID="0" ParentNodeID="0" /> <Node ID="8888602" LevelID="0" ParentNodeID="0" /> <Node ID="8888603" LevelID="0" ParentNodeID="0" /> <Node ID="8888604" LevelID="0" ParentNodeID="0" /> <Node ID="3" LevelID="1" ParentNodeID="2" /> <Node ID="6" LevelID="1" ParentNodeID="2" /> <Node ID="9" LevelID="1" ParentNodeID="2" /> <Node ID="11" LevelID="1" ParentNodeID="45" /> <Node ID="12" LevelID="1" ParentNodeID="45" /> <Node ID="14" LevelID="1" ParentNodeID="13" /> <Node ID="15" LevelID="1" ParentNodeID="13" /> <Node ID="16" LevelID="1" ParentNodeID="13" /> <Node ID="17" LevelID="1" ParentNodeID="13" /> <Node ID="20" LevelID="1" ParentNodeID="18" /> <Node ID="21" LevelID="1" ParentNodeID="18" /> <Node ID="23" LevelID="1" ParentNodeID="18" /> <Node ID="28" LevelID="1" ParentNodeID="27" /> <Node ID="29" LevelID="1" ParentNodeID="27" /> <Node ID="30" LevelID="1" ParentNodeID="27" /> <Node ID="33" LevelID="1" ParentNodeID="27" /> <Node ID="34" LevelID="1" ParentNodeID="27" /> <Node ID="53" LevelID="1" ParentNodeID="34" /> <Node ID="81" LevelID="1" ParentNodeID="27" /> <Node ID="86" LevelID="1" ParentNodeID="81" /> <Node ID="52" LevelID="1" ParentNodeID="81" /> <Node ID="36" LevelID="1" ParentNodeID="35" /> <Node ID="37" LevelID="1" ParentNodeID="35" /> <Node ID="38" LevelID="1" ParentNodeID="35" /> <Node ID="40" LevelID="1" ParentNodeID="39" /> <Node ID="43" LevelID="1" ParentNodeID="39" /> <Node ID="19" LevelID="1" ParentNodeID="44" /> <Node ID="82" LevelID="1" ParentNodeID="44" /> <Node ID="59" LevelID="1" ParentNodeID="60" /> <Node ID="61" LevelID="1" ParentNodeID="60" /> <Node ID="46" LevelID="1" ParentNodeID="73" /> <Node ID="83" LevelID="1" ParentNodeID="73" /> <Node ID="47" LevelID="1" ParentNodeID="73" /> <Node ID="48" LevelID="1" ParentNodeID="73" /> <Node ID="84" LevelID="1" ParentNodeID="73" /> <Node ID="4" LevelID="2" ParentNodeID="3" /> <Node ID="5" LevelID="2" ParentNodeID="3" /> <Node ID="7" LevelID="2" ParentNodeID="6" /> <Node ID="8" LevelID="2" ParentNodeID="6" /> <Node ID="10" LevelID="2" ParentNodeID="21" /> <Node ID="22" LevelID="2" ParentNodeID="21" /> <Node ID="24" LevelID="2" ParentNodeID="23" /> <Node ID="54" LevelID="2" ParentNodeID="23" /> <Node ID="55" LevelID="2" ParentNodeID="23" /> <Node ID="76" LevelID="2" ParentNodeID="23" /> <Node ID="85" LevelID="2" ParentNodeID="29" /> <Node ID="51" LevelID="2" ParentNodeID="29" /> <Node ID="72" LevelID="2" ParentNodeID="29" /> <Node ID="80" LevelID="2" ParentNodeID="29" /> <Node ID="31" LevelID="2" ParentNodeID="30" /> <Node ID="32" LevelID="2" ParentNodeID="30" /> <Node ID="49" LevelID="2" ParentNodeID="30" /> <Node ID="57" LevelID="2" ParentNodeID="34" /> <Node ID="58" LevelID="2" ParentNodeID="34" /> <Node ID="50" LevelID="2" ParentNodeID="81" /> <Node ID="41" LevelID="2" ParentNodeID="40" /> <Node ID="42" LevelID="2" ParentNodeID="40" /> <Node ID="74" LevelID="2" ParentNodeID="40" /> <Node ID="78" LevelID="2" ParentNodeID="60" /> <Node ID="79" LevelID="2" ParentNodeID="60" /> <Node ID="62" LevelID="3" ParentNodeID="55" /> <Node ID="63" LevelID="3" ParentNodeID="55" /> <Node ID="64" LevelID="3" ParentNodeID="55" /> <Node ID="65" LevelID="3" ParentNodeID="55" /> <Node ID="66" LevelID="3" ParentNodeID="55" /> <Node ID="69" LevelID="3" ParentNodeID="55" /> <Node ID="70" LevelID="3" ParentNodeID="55" /> <Node ID="75" LevelID="3" ParentNodeID="76" /> <Node ID="67" LevelID="3" ParentNodeID="76" /> <Node ID="68" LevelID="3" ParentNodeID="76" /> <Node ID="71" LevelID="3" ParentNodeID="76" /> <Node ID="77" LevelID="3" ParentNodeID="76" /> </NodeList> </Hierarchy> <Hierarchy FunctionID="2" Name="Category Management"> <LevelList> <Level ID="0" Name="RootLevel" /> <Level ID="1" Name="Department" ParentID="0"/> <Level ID="2" Name="Group" ParentID="1"/> <Level ID="3" Name="Class" ParentID="2"/> <Level ID="4" Name="SubClass" ParentID="3"/> </LevelList> <NodeList> <Node ID="0" LevelID="0" /> <Node ID="1" LevelID="0" ParentNodeID="0" /> <Node ID="102" LevelID="0" ParentNodeID="0" /> <Node ID="145" LevelID="0" ParentNodeID="0" /> <Node ID="113" LevelID="0" ParentNodeID="0" /> <Node ID="118" LevelID="0" ParentNodeID="0" /> <Node ID="127" LevelID="0" ParentNodeID="0" /> <Node ID="135" LevelID="0" ParentNodeID="0" /> <Node ID="139" LevelID="0" ParentNodeID="0" /> <Node ID="144" LevelID="0" ParentNodeID="0" /> <Node ID="160" LevelID="0" ParentNodeID="0" /> <Node ID="173" LevelID="0" ParentNodeID="0" /> <Node ID="103" LevelID="1" ParentNodeID="102" /> <Node ID="106" LevelID="1" ParentNodeID="102" /> <Node ID="9" LevelID="1" ParentNodeID="102" /> <Node ID="11" LevelID="1" ParentNodeID="145" /> <Node ID="12" LevelID="1" ParentNodeID="145" /> <Node ID="155" LevelID="1" ParentNodeID="145" /> <Node ID="14" LevelID="1" ParentNodeID="113" /> <Node ID="15" LevelID="1" ParentNodeID="113" /> <Node ID="16" LevelID="1" ParentNodeID="113" /> <Node ID="17" LevelID="1" ParentNodeID="113" /> <Node ID="19" LevelID="1" ParentNodeID="118" /> <Node ID="20" LevelID="1" ParentNodeID="118" /> <Node ID="121" LevelID="1" ParentNodeID="118" /> <Node ID="123" LevelID="1" ParentNodeID="118" /> <Node ID="28" LevelID="1" ParentNodeID="127" /> <Node ID="129" LevelID="1" ParentNodeID="127" /> <Node ID="130" LevelID="1" ParentNodeID="127" /> <Node ID="33" LevelID="1" ParentNodeID="127" /> <Node ID="134" LevelID="1" ParentNodeID="127" /> <Node ID="53" LevelID="1" ParentNodeID="134" /> <Node ID="181" LevelID="1" ParentNodeID="127" /> <Node ID="86" LevelID="1" ParentNodeID="181" /> <Node ID="52" LevelID="1" ParentNodeID="181" /> <Node ID="156" LevelID="1" ParentNodeID="127" /> <Node ID="36" LevelID="1" ParentNodeID="135" /> <Node ID="37" LevelID="1" ParentNodeID="135" /> <Node ID="38" LevelID="1" ParentNodeID="135" /> <Node ID="140" LevelID="1" ParentNodeID="139" /> <Node ID="43" LevelID="1" ParentNodeID="139" /> <Node ID="19" LevelID="1" ParentNodeID="144" /> <Node ID="82" LevelID="1" ParentNodeID="144" /> <Node ID="59" LevelID="1" ParentNodeID="160" /> <Node ID="61" LevelID="1" ParentNodeID="160" /> <Node ID="46" LevelID="1" ParentNodeID="173" /> <Node ID="83" LevelID="1" ParentNodeID="173" /> <Node ID="47" LevelID="1" ParentNodeID="173" /> <Node ID="48" LevelID="1" ParentNodeID="173" /> <Node ID="84" LevelID="1" ParentNodeID="173" /> <Node ID="4" LevelID="2" ParentNodeID="103" /> <Node ID="5" LevelID="2" ParentNodeID="103" /> <Node ID="7" LevelID="2" ParentNodeID="106" /> <Node ID="8" LevelID="2" ParentNodeID="106" /> <Node ID="10" LevelID="2" ParentNodeID="121" /> <Node ID="22" LevelID="2" ParentNodeID="121" /> <Node ID="24" LevelID="2" ParentNodeID="123" /> <Node ID="125" LevelID="2" ParentNodeID="123" /> <Node ID="54" LevelID="2" ParentNodeID="123" /> <Node ID="155" LevelID="2" ParentNodeID="123" /> <Node ID="176" LevelID="2" ParentNodeID="123" /> <Node ID="85" LevelID="2" ParentNodeID="129" /> <Node ID="51" LevelID="2" ParentNodeID="129" /> <Node ID="72" LevelID="2" ParentNodeID="129" /> <Node ID="80" LevelID="2" ParentNodeID="129" /> <Node ID="31" LevelID="2" ParentNodeID="130" /> <Node ID="32" LevelID="2" ParentNodeID="130" /> <Node ID="49" LevelID="2" ParentNodeID="130" /> <Node ID="57" LevelID="2" ParentNodeID="134" /> <Node ID="58" LevelID="2" ParentNodeID="134" /> <Node ID="50" LevelID="2" ParentNodeID="156" /> <Node ID="54" LevelID="2" ParentNodeID="156" /> <Node ID="41" LevelID="2" ParentNodeID="140" /> <Node ID="42" LevelID="2" ParentNodeID="140" /> <Node ID="74" LevelID="2" ParentNodeID="140" /> <Node ID="78" LevelID="2" ParentNodeID="160" /> <Node ID="79" LevelID="2" ParentNodeID="160" /> <Node ID="49" LevelID="3" ParentNodeID="125" /> <Node ID="50" LevelID="3" ParentNodeID="125" /> <Node ID="51" LevelID="3" ParentNodeID="125" /> <Node ID="52" LevelID="3" ParentNodeID="125" /> <Node ID="53" LevelID="3" ParentNodeID="125" /> <Node ID="62" LevelID="3" ParentNodeID="155" /> <Node ID="63" LevelID="3" ParentNodeID="155" /> <Node ID="64" LevelID="3" ParentNodeID="155" /> <Node ID="65" LevelID="3" ParentNodeID="155" /> <Node ID="66" LevelID="3" ParentNodeID="155" /> <Node ID="69" LevelID="3" ParentNodeID="155" /> <Node ID="70" LevelID="3" ParentNodeID="155" /> <Node ID="75" LevelID="3" ParentNodeID="176" /> <Node ID="61" LevelID="3" ParentNodeID="176" /> <Node ID="67" LevelID="3" ParentNodeID="176" /> <Node ID="68" LevelID="3" ParentNodeID="176" /> <Node ID="71" LevelID="3" ParentNodeID="176" /> <Node ID="74" LevelID="3" ParentNodeID="176" /> <Node ID="77" LevelID="3" ParentNodeID="176" /> </NodeList> </Hierarchy> <Hierarchy FunctionID="3" Name="ReSA"> <LevelList> <Level ID="0" Name="RootLevel" /> <Level ID="1" Name="Company" ParentID="0"/> <Level ID="2" Name="Division" ParentID="1"/> <Level ID="3" Name="Group" ParentID="2"/> <Level ID="4" Name="Department" ParentID="3"/> <Level ID="5" Name="Class" ParentID="4"/> <Level ID="6" Name="SubClass" ParentID="5"/> </LevelList> <NodeList> <Node ID="0" LevelID="0" /> <Node ID="1200" LevelID="0" ParentNodeID="0" /> <Node ID="1201" LevelID="1" ParentNodeID="1200" /> <Node ID="1202" LevelID="2" ParentNodeID="1201" /> <Node ID="1221" LevelID="3" ParentNodeID="1202" /> <Node ID="1414" LevelID="3" ParentNodeID="1202" /> </NodeList> </Hierarchy> </HierarchyList> </MerchandiseHierarchy>
Table C-8 identifies the PriceChange element mapping for the PricingImport.xsd file.
Table C-8 Pricing Import XSD PriceChange Element Mapping Table
Log/Physical table | Target | Physical Column Name | DataType | XSD Element/Attribute Path | Notes |
---|---|---|---|---|---|
EventCO_EV |
EventID |
ID_EV |
INTEGER |
Generated |
Generated at Stores. Maximum field size for INTEGER is typically NUMBER(10) to support Java INT datatype in application. |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
PricingImport/PriceChange/StoreID |
NA |
|
External |
ID_EV_EXT |
INTEGER |
PricingImport/PriceChange @ID |
This value is used as an external index. |
|
Name |
NM_EV |
VARCHAR(120) |
PricingImport/PriceChange/Description |
NA |
|
TypeCode |
TY_EV |
VARCHAR(20) |
PricingImport/PriceChange @Type |
PPC = Permanent Price Change Default value = PPC for Permanent Price Change. |
|
PlanStartTimestamp |
TS_EV_PL_EF |
TIMESTAMP |
PricingImport/PriceChange @StartDate |
NA |
|
StatusCode |
SC_EV |
VARCHAR(20) |
Derived from PricingImport/PriceChange @StartDate |
Default = PENDING |
|
Description |
DE_EV |
VARCHAR(250) |
No mapping available |
NA |
|
StoreOrHomeOfficeControlCode |
CC_EV |
VARCHAR(20) |
No mapping available |
NA |
|
OwnerName |
NM_EV_OWNER |
VARCHAR(120) |
No mapping available |
NA |
|
ScheduledStartDate |
DC_DY_BSN_SS |
VARCHAR(10) |
No mapping available |
NA |
|
ScheduledEndDate |
DC_DY_BSN_SE |
VARCHAR(10) |
No mapping available |
NA |
|
ActualStartDate |
DC_DY_BSN_AS |
VARCHAR(10) |
No mapping available |
NA |
|
ActualEndDate |
DC_DY_BSN_AE |
VARCHAR(10) |
No mapping available |
NA |
|
PlanEndTimestamp |
TS_EV_PL_EP |
TIMESTAMP |
No mapping available |
NA |
|
ActualStartTimestamp |
TS_EV_ACT_EF |
TIMESTAMP |
No mapping available |
NA |
|
ActualEndTimestamp |
TS_EV_ACT_EP |
TIMESTAMP |
No mapping available |
NA |
|
RecordCreatedTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
No mapping available |
NA |
|
RecordLastModifiedTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
No mapping available |
NA |
|
EventI18N CO_EV_I8 |
EventID |
ID_EV |
INTEGER |
Generated at Stores |
NA |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
PricingImport/PriceChange/StoreID |
NA |
|
Locale |
LCL |
VARCHAR(10) |
No mapping available |
System Supported Locales. |
|
LocalizedName |
NM_EV |
VARCHAR(120) |
PricingImport/PriceChange/LocalizedDescription@Name |
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. |
|
LocalizedDescription |
DE_EV |
VARCHAR(250) |
No mapping available |
Not populated |
|
Permanent MA_ITM_PRN_PRC_ITM |
EventID |
ID_EV |
INTEGER |
Generated |
Same ID as Event table |
ItemID |
ID_ITM |
VARCHAR(14) |
PricingImport/PriceChange/Item @ID |
NA |
|
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
PricingImport/PriceChange/StoreID |
NA |
|
PriceOverride |
MO_OVRD_PRC |
DECIMAL(13,2) |
PricingImport/PriceChange/Item/Price |
NA |
|
Label |
ID_TMPLT_LB |
VARCHAR(8) |
PricingImport/PriceChange/Item @TemplateType |
NA |
|
RecordCreatedTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
NA |
NA |
|
RecordLastModifiedTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
NA |
NA |
|
ItemPrice MA_PRC_ITM |
EventID |
ID_EV |
INTEGER |
Generated |
Same ID as Event table. |
Retail |
ID_STR_RT |
VARCHAR(5) |
PricingImport/PriceChange/StoreID |
NA |
|
Label |
ID_TMPLT_LB |
VARCHAR(8) |
PricingImport/PriceChange @TemplateType |
NA |
|
TypeCode |
TY_PRC_MNT |
VARCHAR(20) |
No mapping available |
PPC = Permanent Price Change |
|
EventPriority |
UN_PRI_EV |
INTEGER |
No mapping available |
NA |
|
PriceLastDigit |
UN_DG_LS_PRC |
CHAR(1) |
No mapping available |
NA |
|
PricingGroupID |
ID_PRCGP |
INTEGER |
No mapping available |
NA |
|
RecordCreatedTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
NA |
NA |
|
RecordLastModifiedTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
NA |
NA |
|
Maintenance CO_EV_MNT |
EventID |
ID_EV |
INTEGER |
Generated |
Same ID as Event table. |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
PricingImport/PriceChange/StoreID |
NA |
|
Name |
NM_EV_MNT |
VARCHAR(120) |
PricingImport/PriceChange/Description @Text |
NA |
|
TypeCode |
TY_EV |
VARCHAR(20) |
No mapping available |
PPC = Permanent Price Change |
|
EffectiveDate |
TS_EV_MNT_EF |
TIMESTAMP |
PricingImport/PriceChange @StartDate |
NA |
|
StatusCode |
SC_EV_MNT |
VARCHAR(20) |
Derived from PricingImport/PriceChange @StartDate |
Default = PENDING |
|
Description |
DE_EV_MNT |
VARCHAR(250) |
No mapping available |
NA |
|
ExpirationDateTimestamp |
TS_EV_MNT_EP |
TIMESTAMP |
No mapping available |
NA |
|
ReasonCode |
RC_EV_MNT |
VARCHAR(20) |
No mapping available |
NA |
|
OriginTypeCode |
TY_EV_MNT_ORG |
VARCHAR(20) |
No mapping available |
NA |
|
EmployeeID |
ID_EM |
VARCHAR(10) |
No mapping available |
NA |
|
CompetitorID |
ID_CMP |
INTEGER |
No mapping available |
NA |
|
CreateDateTimestamp |
TS_EV_MNT_CRT |
TIMESTAMP |
No mapping available |
NA |
|
AppliedTimestamp |
TS_EV_MNT_APLY |
TIMESTAMP |
No mapping available |
NA |
|
JobStartID |
ID_JOB_ST |
VARCHAR(12) |
No mapping available |
NA |
|
JobEndID |
ID_JOB_END |
VARCHAR(12) |
No mapping available |
NA |
|
MaintenanceEventEffectiveStatusCode |
SC_EV_MNT_EF |
VARCHAR(20) |
No mapping available |
NA |
|
MaintenanceEventExpirationStatusCode |
SC_EV_MNT_EP |
VARCHAR(20) |
No mapping available |
NA |
|
RecordCreatedTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
NA |
NA |
|
RecordLastModifiedTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
NA |
NA |
|
MaintenanceEventI18N CO_EV_MNT_I8 |
EventID |
ID_EV |
INTEGER |
Generated at Stores |
Same ID as Event table. |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
PricingImport/PriceChange/StoreID |
NA |
|
Locale |
LCL |
VARCHAR(10) |
No mapping available |
System Supported Locales. |
|
LocalizedName |
NM_EV_MNT |
VARCHAR(120) |
PricingImport/PriceChange/LocalizedDescription@Name |
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. |
|
LocalizedDescription |
DE_EV_MNT |
VARCHAR(250) |
No mapping available |
NA |
|
Item CO_MNT_ITM |
EventID |
ID_EV |
INTEGER |
Generated at Stores |
Same ID as Event table. |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
PricingImport/PriceChange/StoreID |
NA |
|
FunctionCode |
LU_EV_ITM_MNT |
VARCHAR(20) |
No mapping available |
Default = PRICE CHANGE |
|
RecordCreatedTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
NA |
NA |
|
RecordLastModifiedTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
NA |
NA |
|
Permanent TR_CHN_PRN_PRC |
EventID |
ID_EV |
INTEGER |
Generated |
Same ID as Event table. |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
PricingImport/PriceChange/StoreID |
NA |
|
SaleUnitAmount |
MO_CHN_PRN_UN_PRC |
DECIMAL(10,4) |
No mapping available |
NA |
|
SaleUnitAmountTypeCode |
TY_CHN_PRN_UN_PRC |
VARCHAR(20) |
No mapping available |
NA |
|
RecordCreatedTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
NA |
NA |
|
RecordLastModifiedTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
NA |
NA |
|
Threshold Price Derivation Rule Eligibility CO_EL_PRDV_TH |
Price Derivation Rule ID |
ID_RU_PRDV |
NUMBER(38,0) |
NA |
NA |
Threshold Id |
ID_PRDV_TH |
NUMBER(38,0) |
PricingImport/DiscountRule/Sources/Thresholds/Threshold@ID |
NA |
|
Retail Store Id |
ID_STR_RT |
VARCHAR2(5) |
PricingImport/DiscountRule/PricingRule/StoreID |
NA |
|
Threshold Value |
TH_VAL |
NUMBER(38,0) |
PricingImport/DiscountRule/Sources/Thresholds/Threshold@Threshold |
NA |
|
Reduction Amount |
MO_UN_TH_PRDV_SLS |
NUMBER(13,2) |
PricingImport/DiscountRule/Sources/Thresholds/Threshold/DiscountAmount |
NA |
|
Reduction Percent |
PE_UN_TH_PRDV_SLS |
NUMBER(5,2) |
PricingImport/DiscountRule/Sources/Thresholds/Threshold/DiscountPercent |
NA |
|
Discount Price Point |
PT_PRC_TH_PRDV_SLS |
NUMBER(13,2) |
PricingImport/DiscountRule/Sources/Thresholds/Threshold/NewPrice |
NA |
|
Record Creation Timestamp |
TS_CRT_RCRD |
TIMESTAMP(9) |
NA |
NA |
|
Record Last Modified Timestamp |
TS_MDF_RCRD |
TIMESTAMP(9) |
NA |
NA |
|
ItemPriceDerivationRuleNonEligibility CO_NEL_PRDV_ITM |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
PricingImport/DiscountRule/PricingRule/StoreID |
NA |
Item Id |
ID_ITM |
VARCHAR(14) |
PricingImport/DiscountRule/CancelItems/CancelItem@ID |
NA |
|
NonEligiblilityTimestamp |
TS_NEL_EF |
TIMESTAMP |
PricingImport/DiscountRule/CancelItems@EffectiveDateTime |
NA |
|
RecordCreatedTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
NA |
NA |
|
RecordLastModifiedTimestamp |
TS_MDF_RCRD |
TIMESTAMP |
NA |
NA |
|
PriceDerivationRule RU_PRDV |
SourceItemPriceCategory |
ITM_PRC_CTGY_SRC |
VARCHAR2(10) |
PricingImport/DiscountRule/PricingRule@SourceItemPriceCategory |
Valid values are REG/CLE and BOTH. |
TargetItemPriceCategory |
ITM_PRC_CTGY_TGT |
VARCHAR2(10) |
PricingImport/DiscountRule/PricingRule@TargetItemPriceCategory |
Valid values are REG/CLE and BOTH . |
|
PriceRuleDerivationCode |
CD_PRDV |
VARCHAR2(10) |
No Mapping |
Discriminator column added to support JPA . |
|
ClearancePriceChange TR_CHN_CLR_PRC |
EventID |
ID_EV |
INTEGER |
NA |
NA |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
PricingImport/Clearance/StoreID |
NA |
|
SaleUnitAmount |
MO_UN_CLR_PRC_CHN |
DECIMAL(10,4) |
PricingImport/Clearance/DiscountPercent PricingImport/Clearance/DiscountAmount PricingImport/Clearance/NewPrice |
NA |
|
SaleUnitAmountTypeCode |
TY_UN_CLR_PRC_CHN |
VARCHAR(20) |
PricingImport/Clearance@Type |
NA |
|
ClearanceID |
ID_CLR |
INTEGER |
PricingImport/Clearance@ID |
NA |
|
RecordCreationTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
NA |
NA |
|
RecordLastModifiedTimestamp |
TS_MDF_RCRD |
TIMESTAMP |
NA |
NA |
|
MA_ITM_CLR_PRC_CHN |
EventID |
ID_EV |
INTEGER |
NA |
Same ID as Event table. |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
PricingImport/Clearance/StoreID |
NA |
|
Item ID |
ID_ITM |
VARCHAR(14) |
PricingImport/Clearance/Item@ID |
The Item ID is required, but Item occurrence can be zero. In this case, the promotion details is stored without storing the item details. |
|
PriceOverrideAmount |
MO_OVRD_PRC |
DECIMAL(13,2) |
PricingImport/Clearance/Item/Price |
NA |
|
LabelTemplateID |
ID_TMPLT_LB |
VARCHAR(8) |
PricingImport/Clearance@TemplateType |
Default value = "DEFAULT". |
|
RecordCreationTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
Now() |
NA |
|
RecordLastModifiedTimestamp |
TS_MDF_RCRD |
TIMESTAMP |
Now() |
NA |
|
MA_ITM_TMP_PRC_CHN |
TemporaryPriceCounter |
ID_CNT_TMP_PRC |
INTEGER |
No mapping. |
Added to give a unique identifier for overlapping promotions |
EffectiveDate |
TS_TPC_ITM_EF |
TIMESTAMP |
PricingImport/PricePromotion/Item@StartDateTime |
NA |
|
ExpirationDate |
TS_TPC_ITM_EP |
TIMESTAMP |
PricingImport/PricePromotion/Item@EndDateTime |
NA |
Table C-9 identifies the Price Promotion element mapping for the PricingImport.xsd file.
Table C-9 Pricing Import XSD Price Promotion Element Mapping Table
Log/Physical table | Target | Physical Column Name | DataType | XSD Element/Attribute Path | Notes |
---|---|---|---|---|---|
Event CO_EV |
EventID |
ID_EV |
INTEGER |
NA |
The Promotion ID in this column is the Stores Promotion ID that is created in the import process. Oracle Retail Price Management promotion ID is not updated in this column. |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
PricingImport/PricePromotion/StoreID |
NA |
|
External |
ID_EV_EXT |
INTEGER |
PricingImport/PricePromotion @ID |
Oracle Retail Price Management promotion ID will be used to derive the stores promotion ID. Stores DB will be altered to accommodate Oracle Retail Price Management promotion ID. Field size is NUMBER(10), or Java int. Oracle Retail Price Management pass through value. |
|
Name |
NM_EV |
VARCHAR(160) |
PricingImport/PricePromotion/Name |
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. |
|
Description |
DE_EV |
VARCHAR(640) |
PricingImport/PricePromotion/Description |
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. |
|
PlanStartDateTimestamp |
TS_EV_PL_EF |
TIMESTAMP |
PricingImport/PricePromotion @StartDateTime |
NA |
|
PlanEndDateTimestamp |
TS_EV_PL_EP |
TIMESTAMP |
PricingImport/PricePromotion @EndDateTime |
NA |
|
StatusCode |
SC_EV |
VARCHAR(20) |
No mapping found |
Derived from Start Date. |
|
TypeCode |
TY_EV |
VARCHAR(20) |
No mapping found |
Default value = TPC (Temporary |
|
RecordCreationTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
Now() |
NA |
|
RecordLast |
TS_MDF_RCRD |
TIMESTAMP |
Now() |
NA |
|
StoreOrHomeOfficeControlCode |
CC_EV |
VARCHAR(20) |
No mapping available |
NA |
|
OwnerName |
NM_EV_OWNER |
VARCHAR(120) |
No mapping available |
NA |
|
ScheduledStartDate |
DC_DY_BSN_SS |
VARCHAR(10) |
No mapping available |
NA |
|
ScheduledEndDate |
DC_DY_BSN_SE |
VARCHAR(10) |
No mapping available |
NA |
|
ActualStartDate |
DC_DY_BSN_AS |
VARCHAR(10) |
No mapping available |
NA |
|
ActualEndDate |
DC_DY_BSN_AE |
VARCHAR(10) |
No mapping available |
NA |
|
EventI18N CO_EV_I8 |
EventID |
ID_EV |
INTEGER |
Generated at Stores |
Same ID as Event table. |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
PricingImport/PricePromotion/StoreID |
NA |
|
Locale |
LCL |
VARCHAR(10) |
NA |
System Supported Locales. |
|
LocalizedName |
NM_EV |
VARCHAR(120) |
PricingImport/PricePromotion/LocalizedNameDescription@Name |
NA |
|
LocalizedDescription |
DE_EV |
VARCHAR(250) |
PricingImport/PricePromotion/LocalizedNameDescription@Description |
NA |
|
Maintenance CO_EV_MNT |
EventID |
ID_EV |
INTEGER |
Generated |
Same ID as Event table. |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
PricingImport/PricePromotion/StoreID |
NA |
|
Promotion Name |
NM_EV_MNT |
VARCHAR(120) |
PricingImport/PricePromotion/Name |
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. |
|
PromotionDescription |
DE_EV_MNT |
VARCHAR(250) |
PricingImport/PricePromotion/Description |
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. |
|
EffectiveDateTimestamp |
TS_EV_ |
TIMESTAMP |
PricingImport/PricePromotion @StartDateTime |
NA |
|
ExpirationDateTimestamp |
TS_EV_ |
TIMESTAMP |
PricingImport/PricePromotion @EndDateTime |
If left null, will default to 2099-12-31 11:59:59.000 |
|
StatusCode |
SC_EV_MNT |
VARCHAR(20) |
No mapping |
Derived from start date. |
|
TypeCode |
TY_EV_MNT |
VARCHAR(20) |
No mapping |
Default value = TPC for Temporary |
|
RecordCreationTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
Now() |
NA |
|
RecordLast |
TS_MDF_RCRD |
TIMESTAMP |
Now() |
NA |
|
ReasonCode |
RC_EV_MNT |
VARCHAR(20) |
No mapping available |
NA |
|
OriginTypeCode |
TY_EV_MNT_ORG |
VARCHAR(20) |
No mapping available |
NA |
|
EmployeeID |
ID_EM |
VARCHAR(10) |
No mapping available |
NA |
|
CompetitorID |
ID_CMP |
INTEGER |
No mapping available |
NA |
|
CreateDateTimestamp |
TS_EV_MNT_CRT |
TIMESTAMP |
No mapping available |
NA |
|
AppliedTimestamp |
TS_EV_MNT_APLY |
TIMESTAMP |
No mapping available |
NA |
|
JobStartID |
ID_JOB_ST |
VARCHAR(12) |
No mapping available |
NA |
|
JobEndID |
ID_JOB_END |
VARCHAR(12) |
No mapping available |
NA |
|
MaintenanceEventEffectiveStatusCode |
SC_EV_MNT_EF |
VARCHAR(20) |
No mapping available |
NA |
|
MaintenanceEventExpirationStatusCode |
SC_EV_MNT_EP |
VARCHAR(20) |
No mapping available |
NA |
|
MaintenanceEventI18N CO_EV_MNT_I8 |
EventID |
ID_EV |
INTEGER |
Generated at Stores |
NA |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
PricingImport/PricePromotion/StoreID |
NA |
|
Locale |
LCL |
VARCHAR(10) |
No mapping available |
NA |
|
LocalizedName |
NM_EV_MNT |
VARCHAR(120) |
PricingImport/PricePromotion/LocalizedNameDescription@Name |
NA |
|
LocalizedDescription |
DE_EV_MNT |
VARCHAR(250) |
PricingImport/PricePromotion/LocalizedNameDescription@Description |
NA |
|
Item CO_MNT_ITM |
EventID |
ID_EV |
INTEGER |
Generated |
Same ID as Event table. |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
PricingImport/PricePromotion/StoreID |
NA |
|
FunctionCode |
LU_EV_ITM_MNT |
VARCHAR(20) |
No mapping |
Default value = PRICE CHANGE |
|
RecordCreationTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
Now() |
NA |
|
RecordLast |
TS_MDF_RCRD |
TIMESTAMP |
Now() |
NA |
|
TemporaryPriceChange TR_CHN_TMP_PRC |
EventID |
ID_EV |
INTEGER |
Generated |
Same ID as Event table. |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
PricingImport/PricePromotion/StoreID |
NA |
|
SaleUnit |
MO_UN_TMP_PRC_CHN |
DECIMAL(10,4) |
PricingImport/PricePromotion/DiscountPercent PricingImport/PricePromotion/DiscountAmount PricingImport/PricePromotion/NewPrice |
It can be any of the following:
|
|
SaleUnit |
TY_UN_TMP_PRC_CHN |
VARCHAR(20) |
PricingImport/PricePromotion @Type |
Indicator to denote:
|
|
RecordCreationTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
Now() |
NA |
|
RecordLast |
TS_MDF_RCRD |
TIMESTAMP |
Now() |
NA |
|
ItemPrice MA_PRC_ITM |
EventID |
ID_EV |
INTEGER |
Generated |
Same ID as Event table. |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
PricingImport/PricePromotion/StoreID |
NA |
|
EventPriority |
UN_PRI_EV |
INTEGER |
PricingImport/PricePromotion @Priority |
NA |
|
LabelTemplateID |
ID_TMPLT_LB |
VARCHAR(8) |
PricingImport/PricePromotion @TemplateType |
"DEFAULT" |
|
TypeCode |
TY_PRC_MNT |
VARCHAR(20) |
No mapping |
Default value = TPC for Temporary Price Change. |
|
PriceLastDigit |
UN_DG_LS_PRC |
CHAR(1) |
No mapping |
NA |
|
PricingGroupID |
ID_PRCGP |
INTEGER |
PricingImport/PricePromotion@ PricingGroupID |
Maximum allowable value is Number(10) |
|
RecordCreationTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
Now() |
NA |
|
RecordLast |
TS_MDF_RCRD |
TIMESTAMP |
Now() |
NA |
|
ClearancePriceChange TR_CHN_CLR_PRC |
EventID |
ID_EV |
INTEGER |
NA |
NA |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
PricingImport/Clearance/StoreID |
NA |
|
SaleUnitAmount |
MO_UN_CLR_PRC_CHN |
DECIMAL(10,4) |
PricingImport/Clearance/DiscountPercent PricingImport/Clearance/DiscountAmount PricingImport/Clearance/NewPrice |
NA |
|
SaleUnitAmountTypeCode |
TY_UN_CLR_PRC_CHN |
VARCHAR(20) |
PricingImport/Clearance@Type |
NA |
|
ClearanceID |
ID_CLR |
INTEGER |
PricingImport/Clearance@ID |
NA |
|
RecordCreationTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
NA |
NA |
|
RecordLastModifiedTimestamp |
TS_MDF_RCRD |
TIMESTAMP |
NA |
NA |
|
MA_ITM_CLR_PRC_CHN |
EventID |
ID_EV |
INTEGER |
NA |
Same ID as Event table. |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
PricingImport/Clearance/StoreID |
NA |
|
Item ID |
ID_ITM |
VARCHAR(14) |
PricingImport/Clearance/Item@ID |
The Item ID is required, but Item occurrence can be zero. In this case, the promotion details is stored without storing the item details. |
|
PriceOverrideAmount |
MO_OVRD_PRC |
DECIMAL(13,2) |
PricingImport/Clearance/Item/Price |
NA |
|
LabelTemplateID |
ID_TMPLT_LB |
VARCHAR(8) |
PricingImport/Clearance@TemplateType |
Default value = "DEFAULT". |
|
RecordCreationTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
Now() |
NA |
|
RecordLastModifiedTimestamp |
TS_MDF_RCRD |
TIMESTAMP |
Now() |
NA |
|
TemporaryPriceChangeItem MA_ITM_TMP_PRC_CHN |
EventID |
ID_EV |
INTEGER |
Generated |
Same ID as Event table. |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
PricingImport/PricePromotion/StoreID |
NA |
|
Item ID |
ID_ITM |
VARCHAR(14) |
PricingImport/PricePromotion/Item @ID |
The Item ID is required, but Item occurrence can be zero. In this case, the promotion details are stored without storing the item details. |
|
LabelTemplateID |
ID_TMPLT_LB |
VARCHAR(8) |
PricingImport/PricePromotion @TemplateType |
Default value = DEFAULT. |
|
Price Override Amount |
MO_OVRD_PRC |
DECIMAL(13,2) |
PricingImport/PricePromotion/Item/Price/Amount |
NA |
|
PromotionID |
ID_PRM |
INTEGER |
PricingImport/PricePromotion @ID |
Oracle Retail Price Management pass through value - max allowed value is Number(10). |
|
Promotion |
ID_PRM_CMP |
INTEGER |
PricingImport/PricePromotion @PromoCompID |
Oracle Retail Price Management pass through value - max allowed value is Number(10). Defaults to Zero. |
|
Promotion |
ID_PRM_CMP_DTL |
INTEGER |
PricingImport/PricePromotion @PromoComp |
Oracle Retail Price Management pass through value - max allowed value is Number(10). Defaults to Zero. |
|
RecordCreationTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
Now() |
NA |
|
RecordLast |
TS_MDF_RCRD |
TIMESTAMP |
Now() |
NA |
Table C-10 identifies the Discount Rule element mapping for the PricingImport.xsd file.
Table C-10 Pricing Import XSD Discount Rule Element Mapping Table
Log/Physical table | Target | Physical Column Name | DataType | XSD Element/Attribute Path | Notes |
---|---|---|---|---|---|
PriceDerivationRule RU_PRDV |
PriceDerivationRuleID |
ID_RU_PRDV |
INTEGER |
NA |
ID from the stores system. This is not the Oracle Retail Price Management promotion ID. |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
DiscountRule/PricingRule/StoreID |
NA |
|
PromotionID |
ID_PRM |
INTEGER |
DiscountRule/PricingRule @ID |
Oracle Retail Price Management pass through value - max allowed value is Number(10) |
|
PromotionComponentID |
ID_PRM_CMP |
INTEGER |
DiscountRule/PricingRule @PromoCompID |
Oracle Retail Price Management pass through value - max allowed value is Number(10). |
|
Promotion |
ID_PRM_CMP_DTL |
INTEGER |
DiscountRule/PricingRule @PromoComp |
Oracle Retail Price Management pass through value - max allowed value is Number(10). |
|
EffectiveDate |
DC_RU_PRDV_EF |
TIMESTAMP |
DiscountRule/PricingRule @StartDateTime |
NA |
|
ExpirationDate |
DC_RU_PRDV_EP |
TIMESTAMP |
DiscountRule/PricingRule @EndDateTime |
If left null, will default to 2099-12-31 11:59:59.000 |
|
Description |
DE_RU_PRDV |
VARCHAR(250) |
DiscountRule/PricingRule @Type |
NA |
|
Assignment |
CD_BAS_PRDV |
INTEGER |
DiscountRule/Sources@Type |
3=Coupon |
|
Source |
CD_BAS_CMP_SRC |
VARCHAR(20) |
DiscountRule/Sources@Type |
0=Item 1=Department 2=Class |
|
Target |
CD_BAS_CMP_TGT |
VARCHAR(20) |
DiscountRule/Targets@Type |
0=Item 1=Department 2=Class |
|
Application |
QU_LM_APLY |
SMALLINT |
DiscountRule/PricingRule @NbrTimes |
NA |
|
Department |
DP_LDG_STK_MDFR |
VARCHAR(20) |
DiscountRule/PricingRule @Accounting |
1 = Markdown |
|
AllowRepeatingSourcesFlag |
FL_ALW_RPT_SRC |
CHAR(1) |
DiscountRule/PricingRule @AllowSource |
0= false, 1= true |
|
Deal |
FL_DL_DST |
CHAR(1) |
DiscountRule/PricingRule @DealDistribution |
1=SourceTarget, 0=Target |
|
PriceDerivationRuleName |
NM_RU_PRDV |
VARCHAR(160) |
DiscountRule/PricingRule/Name |
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. |
|
Source |
MO_TH_SRC |
DECIMAL(13,2) |
DiscountRule/PricingRule/SourceThreshold |
NA |
|
SourceLimit |
MO_LM_SRC |
DECIMAL(13,2) |
DiscountRule/PricingRule/SourceLimit |
NA |
|
TargetThresholdAmount |
MO_TH_TGT |
DECIMAL(13,2) |
DiscountRule/PricingRule/TargetThreshold |
NA |
|
TargetLimit |
MO_LM_TGT |
DECIMAL(13,2) |
DiscountRule/PricingRule/TargetLimit |
NA |
|
SourceAnyQuantity |
QU_AN_SRC |
SMALLINT |
DiscountRule/Sources @Qty |
The Any Quantity is only populated if Sources@Qualifier is set to Any. |
|
TargetAnyQuantity |
QU_AN_TGT |
SMALLINT |
DiscountRule/Targets @Qty |
The Any Quantity is only populated if Targets@Qualifier is set to Any. |
|
RecordCreationTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
Now() |
NA |
|
RecordLast |
TS_MDF_RCRD |
TIMESTAMP |
Now() |
NA |
|
TransactionControlBreakCode |
LU_CBRK_PRDV_TRN |
VARCHAR(2) |
No mapping available |
NA |
|
StatusCode |
SC_RU_PRDV |
VARCHAR(20) |
No mapping available |
NA |
|
TypeCode |
TY_RU_PRDV |
VARCHAR(2) |
No mapping available |
NA |
|
EventID |
ID_EV |
INTEGER |
No mapping available |
NA |
|
PriceDerivationRuleName |
NM_RU_PRDV |
VARCHAR(120) |
No mapping available |
NA |
|
ReasonCode |
RC_RU_PRDV |
INTEGER |
No mapping available |
NA |
|
AdvancedDealAppliedFlag |
FL_DL_ADVN_APLY |
CHAR(1) |
No mapping available |
NA |
|
ScopeCode |
CD_SCP_PRDV |
INTEGER |
PricingImport/DiscountRule/PricingRule@Scope |
Transaction = 0 Item = 1, Group = 2. |
|
MethodCode |
CD_MTH_PRDV |
INTEGER |
No mapping available |
NA |
|
DefaultEntryCode |
FL_CD_ENT_DFLT |
CHAR(1) |
No mapping available |
NA |
|
ListSortIndex |
CD_ENT_SRT |
SMALLINT |
No mapping available |
NA |
|
PriceDerivationThresholdTypeCode |
CD_TY_TH_PRDV |
VARCHAR(4) |
No mapping available |
NA |
|
DiscountTypeID |
ID_TY_DISC |
INTEGER |
No mapping available |
NA |
|
PricingGroupID |
ID_PRCGP |
INTEGER |
PricingImport/DiscountRule/PricingRule@PricingGroupID |
Maximum allowable value is Number(10). |
|
PriceDerivationRuleI18N RU_PRDV_I8 |
RetailStoreID |
ID_RU_PRDV |
INTEGER |
ID from the stores system |
This will not be a Oracle Retail Price Management promotion ID. |
PriceDerivationRuleID |
ID_STR_RT |
VARCHAR(5) |
PricingImport/DiscountRule/PricingRule/StoreID |
NA |
|
Locale |
LCL |
VARCHAR(10) |
No mapping available |
System supported locale. |
|
LocalizedName |
NM_RU_PRDV |
VARCHAR(120) |
PricingImport/DiscountRule/PricingRule/LocalizedName@Name |
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. |
|
ItemPrice CO_EL_PRDV_ITM |
ItemID |
ID_ITM |
VARCHAR(14) |
DiscountRule/Sources/Source @ID |
NA |
PriceDerivationRuleEligibility |
ID_RU_PRDV |
INTEGER |
DiscountRule/PricingRule @ID |
NA |
|
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
DiscountRule/PricingRule/StoreID |
NA |
|
Threshold |
QU_TH |
INTEGER |
DiscountRule/Sources/Source @Qty |
NA |
|
Threshold |
MO_TH |
DECIMAL(13,2) |
DiscountRule/Sources/Source/SourceAmount |
NA |
|
EffectiveDate |
TS_RU_DRVN_EF |
TIMESTAMP |
DiscountRule/PricingRule @StartDateTime |
NA |
|
ExpirationDateTimestamp |
TS_RU_DRVN_EP |
TIMESTAMP |
DiscountRule/PricingRule @EndDateTime |
NA |
|
RecordCreationTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
Now() |
NA |
|
RecordLast |
TS_MDF_RCRD |
TIMESTAMP |
Now() |
NA |
|
StoreFinancialLedgerAccountID |
ID_ACTN_LDG |
INTEGER |
No mapping available |
NA |
|
EventID |
ID_EV |
INTEGER |
No mapping available |
NA |
|
AccountingDispositionCode |
DP_RU_PRC_DRVN |
VARCHAR(4) |
No mapping available |
NA |
|
QuantityLimit |
QU_UL |
DECIMAL(9,2) |
No mapping available |
NA |
|
AmountLimit |
MO_UL |
DECIMAL(13,2) |
No mapping available |
NA |
|
MixAndMatch TR_ITM_MXMH_PRDV |
PriceDerivationRuleID |
ID_RU_PRDV |
INTEGER |
DiscountRule/PricingRule @ID |
NA |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
DiscountRule/PricingRule/StoreID |
NA |
|
Promotional |
ID_PRM_PRD |
VARCHAR(14) |
DiscountRule/Targets/Target @ID |
NA |
|
Reduction |
MO_RDN_PRC_MXMH |
DECIMAL(13,2) |
DiscountRule/Targets/DiscountAmount |
NA |
|
Reduction |
PE_RDN_PRC_MXMH |
DECIMAL(5,2) |
DiscountRule/Targets/DiscountPercent |
NA |
|
ReductionPricePoint |
PNT_PRC_RDN_MXMH |
DECIMAL(13,2) |
DiscountRule/Targets/NewPrice |
NA |
|
MixAndMatch |
QU_LM_MXMH |
INTEGER |
DiscountRule/Targets/Target @Qty |
NA |
|
RecordCreationTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
Now() |
NA |
|
RecordLast |
TS_MDF_RCRD |
TIMESTAMP |
Now() |
NA |
|
ComparisonBasisCode |
CD_BAS_CMP |
VARCHAR(20) |
No mapping available |
NA |
|
ItemPrice CO_PRDV_ITM |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
DiscountRule/PricingRule/StoreID |
NA |
PriceDerivationRuleID |
ID_RU_PRDV |
INTEGER |
DiscountRule/PricingRule @ID |
NA |
|
Reduction |
MO_UN_ITM_PRDV |
DECIMAL(13,2) |
DiscountRule/Targets/DiscountAmount |
NA |
|
Reduction |
PE_UN_ITM_PRDV |
DECIMAL(5,2) |
DiscountRule/Targets/DiscountPercent |
NA |
|
DiscountPrice |
PNT_PRC_UN_ITM_PRDV |
DECIMAL(13,2) |
DiscountRule/Targets/NewPrice |
NA |
|
RecordCreationTimestamp |
TS_CRT_RCRD |
TIMESTAMP |
Now() |
NA |
|
RecordLast |
TS_MDF_RCRD |
TIMESTAMP |
Now() |
NA |
|
MixAndMatch RU_PRDV_MXMH |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
DiscountRule/PricingRule/StoreID |
NA |
PriceDerivationRuleID |
ID_RU_PRDV |
INTEGER |
DiscountRule/PricingRule @ID |
NA |
|
MixAndMatch |
QU_LM_MXMH |
INTEGER |
DiscountRule/Targets/Target @Qty |
NA |
|
DepartmentPriceDerivation CO_EL_PRDV_DPT Populated only if DiscountRule/Sources/Source @type is Department |
POSDepartmentID |
ID_DPT_POS |
VARCHAR(14) |
DiscountRule/Sources/Source @ID |
Might be derived from the table |
PriceDerivationRuleID |
ID_RU_PRDV |
INTEGER |
No mapping available |
ID from the stores system. This is not the Oracle Retail Price Management promotion ID. |
|
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
DiscountRule/PricingRule/StoreID |
NA |
|
StoreFinancial |
ID_ACTN_LDG |
INTEGER |
No mapping available |
NA |
|
EventID |
ID_EV |
INTEGER |
No mapping available |
NA |
|
Accounting |
DP_ACNT_DPT_PRDV |
VARCHAR(4) |
No mapping available |
NA |
|
Threshold |
MO_TH |
DECIMAL(13,2) |
DiscountRule/Sources/Source/SourceAmount |
NA |
|
Threshold |
QU_TH |
INTEGER |
DiscountRule/Sources/Source @Qty |
NA |
|
LimitQuantity |
QU_UL |
DECIMAL(9,2) |
No mapping available |
NA |
|
LimitAmount |
MO_UL |
DECIMAL(13,2) |
No mapping available |
NA |
|
Effective |
TS_RU_MRST_EF |
TIMESTAMP |
DiscountRule/PricingRule @StartDateTime |
NA |
|
Expiration |
TS_RU_MRST_EP |
TIMESTAMP |
DiscountRule/PricingRule @EndDateTime |
NA |
|
RecordCreated |
TS_CRT_RCRD |
TIMESTAMP |
Now() |
NA |
|
RecordLast |
TS_MDF_RCRD |
TIMESTAMP |
Now() |
NA |
|
Merchandise CO_EL_MRST_PRDV Populated only if DiscountRule/Sources/Source @type is "Class" |
PriceDerivationRuleID |
ID_RU_PRDV |
INTEGER |
ID from the stores system. |
This is not the Oracle Retail Price Management promotion ID. |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
Store ID |
NA |
|
Merchandise |
ID_STRC_MR_CD |
VARCHAR(10) |
DiscountRule/Sources/Source @ID |
Might be derived from the table |
|
StoreFinancial |
ID_ACTN_LDG |
INTEGER |
No mapping available |
NA |
|
EventID |
ID_EV |
INTEGER |
No mapping available |
NA |
|
EffectiveDate |
TS_RU_MRST_EF |
TIMESTAMP |
DiscountRule/PricingRule @StartDateTime |
NA |
|
ExpirationDateTimestamp |
TS_RU_MRST_EP |
TIMESTAMP |
DiscountRule/PricingRule @EndDateTime |
NA |
|
Accounting |
DP_ACNT_MRST |
VARCHAR(4) |
No mapping available |
NA |
|
Threshold |
MO_TH |
DECIMAL(13,2) |
DiscountRule/Sources/Source/SourceAmount |
NA |
|
Quantity |
QU_TH |
INTEGER |
DiscountRule/Sources/Source @Qty |
NA |
|
AmountLimit |
MO_UL |
DECIMAL(13,2) |
No mapping available |
NA |
|
QuantityLimit |
QU_UL |
DECIMAL(9,2) |
No mapping available |
NA |
|
RecordCreated |
TS_CRT_RCRD |
TIMESTAMP |
Now() |
NA |
|
RecordLast |
TS_MDF_RCRD |
TIMESTAMP |
Now() |
NA |
The following is an example Pricing Import XSD file.
Example C-11 PricingImport.xsd
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xs:annotation><xs:documentation> Pricing Import Schema. Copyright 2007 Oracle Inc. All rights reserved. Use this schema in conjunction with a Oracle Store Systems Data Dictionary and the relations between the element and attribute names should be apparent. </xs:documentation></xs:annotation> <xs:include schemaLocation="../common.xsd"></xs:include> <xs:element name="PricingImport"> <xs:annotation><xs:documentation> Top-level element holding a collection of Price records. </xs:documentation></xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="PriceChange" type="PriceChange_type" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="PricePromotion" type="PricePromotion_type" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="DiscountRule" type="DiscountRule_type" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="FillType" type="FillType_type" use="required"/> <xs:attribute name="CreationDate" type="xs:dateTime"/> <xs:attribute name="ExpirationDate" type="xs:dateTime"/> <xs:attribute name="Version" type="xs:string"/> <xs:attribute name="Priority" type="xs:int"/> <xs:attribute name="Batch" type="xs:int"/> </xs:complexType> </xs:element> <xs:complexType name="PriceChange_type"> <xs:sequence> <xs:choice> <xs:element name="Description" type="LocalizedDescription_type" minOccurs="0" maxOccurs="1"/> <xs:element name="LocalizedDescription" type="LocalizedNameDescription_type" minOccurs="0" maxOccurs="unbounded"/> </xs:choice> <xs:element name="Item" type="ItemAndPrice_type" minOccurs="1" maxOccurs="unbounded" /> <xs:element name="StoreID" type="RetailStoreId_type" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="ChangeType" type="ChangeType_type" default="ADD"/> <xs:attribute name="ID" type="xs:int" use="required"/> <xs:attribute name="StartDate" type="xs:date" use="required"/> <xs:attribute name="TemplateType" default="*DEFAULT"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="8"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:complexType> <xs:complexType name="ItemAndPrice_type"> <xs:sequence> <xs:element name="Price" type="CurrencyAmount_type" minOccurs="1" maxOccurs="unbounded" /> </xs:sequence> <xs:attribute name="ID" type="xs:string" use="required"/> <xs:attribute name="TemplateType" default="*DEFAULT"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="8"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:complexType> <xs:group name="DiscountTypeChoice"> <xs:choice> <xs:element name="DiscountPercent" type="xs:decimal"/> <xs:element name="DiscountAmount" type="CurrencyAmount_type"/> <xs:element name="NewPrice" type="CurrencyAmount_type"/> </xs:choice> </xs:group> <xs:attributeGroup name="PromotionComponentAttributes"> <xs:attribute name="PromoCompID" type="xs:int" use="optional"/> <xs:attribute name="PromoCompDetlID" type="xs:int" use="optional"/> </xs:attributeGroup> <xs:complexType name="PricePromotion_type"> <xs:sequence> <xs:choice> <xs:sequence> <xs:element name="Name" type="LocalizedName_type" minOccurs="1" maxOccurs="1"/> <xs:element name="Description" type="LocalizedDescription_type" minOccurs="0" maxOccurs="1"/> </xs:sequence> <xs:element name="LocalizedNameDescription" type="LocalizedNameDescription_type" minOccurs="0" maxOccurs="unbounded"/> </xs:choice> <xs:group ref="DiscountTypeChoice" minOccurs="0" maxOccurs="1"/> <xs:element name="Item" type="ItemAndPrice_type" minOccurs="0" maxOccurs="unbounded" /> <xs:element name="StoreID" type="RetailStoreId_type" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="ChangeType" type="ChangeType_type" default="ADD"/> <xs:attribute name="ID" type="xs:int" use="required"/> <xs:attributeGroup ref="PromotionComponentAttributes"/> <xs:attribute name="StartDateTime" type="xs:dateTime" use="required"/> <xs:attribute name="EndDateTime" type="xs:dateTime" use="optional"> <xs:annotation><xs:documentation> If the EndDateTime is not specified, it will be assumed that it was intentionally left blank to denote an never-ending pricing rule. The value will then be persisted as '2099-12-31 11:59:59.000' </xs:documentation></xs:annotation> </xs:attribute> <xs:attribute name="Type" type="PricePromotionType_type" use="required"/> <xs:attribute name="Priority" type="xs:int" default="0"/> <xs:attribute name="TemplateType" default="*DEFAULT"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="8"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="PricingGroupID" type="xs:int"/> </xs:complexType> <xs:simpleType name="PricePromotionType_type"> <xs:restriction base="xs:string"> <xs:enumeration value="AmountOff"/> <xs:enumeration value="PercentOff"/> <xs:enumeration value="NewPrice"/> </xs:restriction> </xs:simpleType> <xs:complexType name="DiscountRule_type"> <xs:sequence> <xs:element name="PricingRule" type="PricingRule_type" minOccurs="1" maxOccurs="1"/> <xs:element name="Sources" type="Sources_type" minOccurs="1" maxOccurs="1"/> <xs:element name="Targets" type="Targets_type" minOccurs="1" maxOccurs="1"/> </xs:sequence> </xs:complexType> <xs:complexType name="PricingRule_type"> <xs:sequence> <xs:choice> <xs:element name="Name" type="LocalizedName_type" minOccurs="1" maxOccurs="1"/> <xs:element name="LocalizedName" type="LocalizedNameDescription_type" minOccurs="0" maxOccurs="unbounded"/> </xs:choice> <xs:element name="SourceThreshold" type="CurrencyAmount_type" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="SourceLimit" type="CurrencyAmount_type" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="TargetThreshold" type="CurrencyAmount_type" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="TargetLimit" type="CurrencyAmount_type" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="StoreID" type="RetailStoreId_type" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="ChangeType" type="ChangeType_type" default="ADD"/> <xs:attribute name="ID" type="xs:int" use="required"/> <xs:attributeGroup ref="PromotionComponentAttributes"/> <xs:attribute name="StartDateTime" type="xs:dateTime" use="required"/> <xs:attribute name="EndDateTime" type="xs:dateTime" use="optional"> <xs:annotation><xs:documentation> If the EndDateTime is not specified, it will be assumed that it was intentionally left blank to denote an never-ending pricing rule. The value will then be persisted as '2099-12-31 11:59:59.000' </xs:documentation></xs:annotation> </xs:attribute> <xs:attribute name="Type" type="RuleType_type" use="required"/> <xs:attribute name="NbrTimesPerTrans" type="xs:int" default="-1"/> <xs:attribute name="AccountingMethod" type="AccountingMethodType_type" default="Discount" /> <xs:attribute name="AllowSourceToRepeat" type="xs:boolean" default="true"/> <xs:attribute name="DealDistribution" type="DealDistributionType_type" default="Target"/> <xs:attribute name="Scope" type="ScopeType_type" default="Item" /> <xs:attribute name="PricingGroupID" type="xs:int"/> </xs:complexType> <xs:attributeGroup name="SourceTargetAttributes"> <xs:attribute name="Type" type="SourceTargetType_type" default="Item" /> <xs:attribute name="Qualifier" type="QualifierType_type" default="Any"> <xs:annotation><xs:documentation> If not specified, it is assumed that the Qualifier is Any. </xs:documentation></xs:annotation> </xs:attribute> <xs:attribute name="Qty" type="xs:int" default="1"> <xs:annotation><xs:documentation> It is only necessary to specify Qty if Qualifier has been set to Any. If not specified, it is assumed that Qty for Any is one (1). </xs:documentation></xs:annotation> </xs:attribute> </xs:attributeGroup> <xs:complexType name="Sources_type"> <xs:sequence> <xs:element name="Source" minOccurs="1" maxOccurs="unbounded"> <xs:complexType> <xs:sequence> <xs:element name="SourceAmount" type="CurrencyAmount_type" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> <xs:attribute name="ID" type="xs:string" use="required" /> <xs:attribute name="Qty" type="xs:int" use="required" /> </xs:complexType> </xs:element> </xs:sequence> <xs:attributeGroup ref="SourceTargetAttributes"/> </xs:complexType> <xs:complexType name="Targets_type"> <xs:sequence> <xs:group ref="DiscountTypeChoice" minOccurs="1" maxOccurs="1"/> <xs:element name="Target" minOccurs="0" maxOccurs="unbounded"> <xs:complexType> <xs:attribute name="ID" type="xs:string" use="required"/> <xs:attribute name="Qty" type="xs:int" default="1"/> </xs:complexType> </xs:element> </xs:sequence> <xs:attributeGroup ref="SourceTargetAttributes"/> </xs:complexType> <xs:simpleType name="RuleType_type"> <xs:restriction base="xs:string"> <xs:enumeration value="BuyNofXgetYatZ%off"/> <xs:enumeration value="BuyNofXgetYatZ$off"/> <xs:enumeration value="BuyNofXgetYatZ$"/> <xs:enumeration value="BuyNofXgetHighestPricedXatZ%off"/> <xs:enumeration value="BuyNofXgetLowestPricedXatZ%off"/> <xs:enumeration value="Buy$NorMoreOfXgetYatZ$off"/> <xs:enumeration value="Buy$NorMoreOfXgetYatZ%off"/> <xs:enumeration value="Buy$NorMoreOfXgetYatZ$"/> <xs:enumeration value="BuyNofXforZ$"/> <xs:enumeration value="BuyNofXforZ%off"/> <xs:enumeration value="BuyNofXforZ$off"/> <xs:enumeration value="BuyNorMoreOfXforZ%off"/> <xs:enumeration value="BuyNorMoreOfXforZ$Each"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="AccountingMethodType_type"> <xs:restriction base="xs:string"> <xs:enumeration value="Discount"/> <xs:enumeration value="Markdown"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="DealDistributionType_type"> <xs:restriction base="xs:string"> <xs:enumeration value="Target"/> <xs:enumeration value="SourceTarget"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="ScopeType_type"> <xs:restriction base="xs:string"> <xs:enumeration value="Item"/> <xs:enumeration value="Group"/> <xs:enumeration value="Transaction"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="SourceTargetType_type"> <xs:restriction base="xs:string"> <xs:enumeration value="Item"/> <xs:enumeration value="Coupon"/> <xs:enumeration value="Class"/> <xs:enumeration value="Department"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="QualifierType_type"> <xs:annotation><xs:documentation> Used to qualify a list whereby Any element in the list must be used versus requiring All elements in the list. </xs:documentation></xs:annotation> <xs:restriction base="xs:string"> <xs:enumeration value="Any"></xs:enumeration> <xs:enumeration value="All"></xs:enumeration> </xs:restriction> </xs:simpleType> </xs:schema>
The following is an example Pricing Import XML file.
Example C-12 PricingImport.xml
<?xml version="1.0" encoding="UTF-8"?> <PricingImport Priority="0" FillType="FullIncremental" Version="1.0" Batch="1" CreationDate="2001-12-17T09:30:47.0Z" ExpirationDate="2027-12-17T09:30:47.0Z" xsi:noNamespaceSchemaLocation="PricingImport.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <!-- Price Change, multiple stores --> <PriceChange ChangeType="ADD" ID="40000859" StartDate="2007-01-28" TemplateType="Default"> <Description>Board Games</Description> <Item ID="20020002" TemplateType="Default"> <Price>199.99</Price> <Price CurrencyCode="CAD">299.99</Price> </Item> <Item ID="40040004" TemplateType="Default"> <Price>299.99</Price> <Price CurrencyCode="CAD">399.99</Price> </Item> <StoreID>04241</StoreID> <StoreID>04242</StoreID> <StoreID>04243</StoreID> </PriceChange> <PriceChange ChangeType="ADD" StartDate="2007-01-28" ID="40000860" TemplateType="Default"> <Description>Board Games</Description> <Item ID="40020002" TemplateType="Default"> <Price>199.99</Price> <Price CurrencyCode="CAD">299.99</Price> </Item> <Item ID="80080008" TemplateType="Default"> <Price>299.99</Price> <Price CurrencyCode="CAD">399.99</Price> </Item> <StoreID>04241</StoreID> <StoreID>04242</StoreID> </PriceChange> <!-- Promotion - Percent Off --> <PricePromotion ChangeType="ADD" ID="40000113" PromoCompID="123" PromoCompDetlID="456" StartDateTime="2007-09-10T00:00:00" EndDateTime="2007-09-24T23:59:50" Type="PercentOff" Priority="1" TemplateType="Default"> <Name>Boy's Polo's</Name> <Description>BTS - All PK and knit boy's polos on promo</Description> <DiscountPercent>15</DiscountPercent> <Item ID="1234"> <Price>4.25</Price> <Price CurrencyCode="CAD">5.25</Price> </Item> <Item ID="3333" TemplateType="Default"> <Price>4.99</Price> </Item> <StoreID>04241</StoreID> <StoreID>04242</StoreID> <StoreID>04243</StoreID> </PricePromotion> <!-- Promotion - Amount Off --> <PricePromotion ChangeType="ADD" ID="40000113" PromoCompID="123" PromoCompDetlID="456" StartDateTime="2007-09-10T00:00:00" EndDateTime="2007-09-24T23:59:50" Type="AmountOff" Priority="1" TemplateType="Default"> <Name>Boy's Polo's</Name> <Description>BTS - All PK and knit boy's polos on promo</Description> <DiscountAmount>10.00</DiscountAmount> <Item ID="1234"> <Price>4.25</Price> <Price CurrencyCode="CAD">5.25</Price> </Item> <Item ID="3333" TemplateType="Default"> <Price>4.99</Price> </Item> <StoreID>04241</StoreID> <StoreID>04242</StoreID> <StoreID>04243</StoreID> </PricePromotion> <!-- Promotion - New Price --> <PricePromotion ChangeType="ADD" ID="40000113" PromoCompID="123" PromoCompDetlID="456" StartDateTime="2007-09-10T00:00:00" EndDateTime="2007-09-24T23:59:50" Type="NewPrice" Priority="1" TemplateType="Default"> <Name>Boy's Polo's</Name> <Description>BTS - All PK and knit boy's polos on promo</Description> <Item ID="1234" TemplateType="Default"> <Price>4.25</Price> <Price CurrencyCode="CAD">5.25</Price> </Item> <StoreID>04241</StoreID> <StoreID>04242</StoreID> <StoreID>04243</StoreID> </PricePromotion> <!-- Overlapping Promotion --> <PricePromotion ChangeType="ADD" ID="40000113" PromoCompID="123" PromoCompDetlID="456" StartDateTime="2013-07-20T00:00:00" EndDateTime="2013-07-28T23:59:50" Type="NewPrice" Priority="1" TemplateType="Default"> <Name>Overlap promo</Name> <Description>Overlap promo for 6073 and 6074</Description> <Item ID="6074" StartDateTime="2013-07-20T00:00:00.00"> <Price>8.00</Price> </Item> <Item ID="6074" StartDateTime="2013-07-22T00:00:00.00"> <Price>12.00</Price> </Item> <Item ID="6074" StartDateTime="2013-07-26T00:00:00.00"> <Price>11.00</Price> </Item> <Item ID="6073" StartDateTime="2013-07-20T00:00:00.00"> <Price>7.00</Price> </Item> <Item ID="6073" StartDateTime="2013-07-22T00:00:00.00"> <Price>10.00</Price> </Item> <Item ID="6073" StartDateTime="2013-07-26T00:00:00.00"> <Price>09.00</Price> </Item> </PricePromotion> <!-- Clearance event --> <Clearance ChangeType="ADD" ID="1882" StartDateTime="2013-10-19T00:00:00.00" ResetDateTime="2013-10-26T00:00:00.00" TemplateType="Default"> <Item ID="100330082" TemplateType="Default"> <Price>10.99</Price> </Item> </Clearance> <!-- Clearance reset event --> <ClearanceReset ChangeType="ADD" ID="1883" ResetDateTime="2013-10-26T00:00:00.00" TemplateType="Default"> <Item ID="100330082" TemplateType="Default"> <Price>12.22</Price> </Item> </ClearanceReset> <!-- Discount Rules --> <!-- BuyNofXgetYatZ%off - Multiple source items, multiple target items. --> <DiscountRule> <PricingRule ChangeType="ADD" ID="11150335" PromoCompID="123" PromoCompDetlID="456" StartDateTime="2007-01-28T00:00:00" EndDateTime="2007-01-28T23:59:59" Type="BuyNofXgetYatZ%off" NbrTimesPerTrans="1" AccountingMethod="Discount" AllowSourceToRepeat="true" DealDistribution="Target"> <Name>Bootcut Jean/Sweater Rule</Name> <SourceThreshold>5.00</SourceThreshold> <SourceLimit>100.00</SourceLimit> <TargetThreshold>5.00</TargetThreshold> <TargetLimit>100.00</TargetLimit> <StoreID>04241</StoreID> <StoreID>04242</StoreID> <StoreID>04243</StoreID> </PricingRule> <Sources Type="Item"> <Source ID="1234" Qty="2"/> <Source ID="4567" Qty="2"/> </Sources> <Targets Type="Item"> <DiscountPercent>10</DiscountPercent> <Target ID="1234" Qty="1"/> <Target ID="20020002" Qty="1"/> </Targets> </DiscountRule> <!-- BuyNofXgetYatZ$off - Multiple source items, multiple target items. --> <DiscountRule> <PricingRule ChangeType="ADD" ID="11150335" PromoCompID="123" PromoCompDetlID="456" StartDateTime="2007-01-28T00:00:00" EndDateTime="2007-01-28T23:59:59" Type="BuyNofXgetYatZ$off" NbrTimesPerTrans="1" AccountingMethod="Discount" AllowSourceToRepeat="true" DealDistribution="Target"> <Name>Bootcut Jean/Sweater Rule</Name> <SourceThreshold>5.00</SourceThreshold> <SourceLimit>100.00</SourceLimit> <TargetThreshold>5.00</TargetThreshold> <TargetLimit>100.00</TargetLimit> <StoreID>04241</StoreID> <StoreID>04242</StoreID> <StoreID>04243</StoreID> </PricingRule> <Sources Type="Item"> <Source ID="1234" Qty="2"/> <Source ID="4567" Qty="2"/> </Sources> <Targets Type="Item"> <DiscountAmount>1.00</DiscountAmount> <Target ID="1234" Qty="1"/> <Target ID="20020002" Qty="1"/> </Targets> </DiscountRule> <!-- BuyNofXgetYatZ$ - One source item, one target item. --> <DiscountRule> <PricingRule ChangeType="ADD" ID="11150335" PromoCompID="123" PromoCompDetlID="456" StartDateTime="2007-01-28T00:00:00" EndDateTime="2007-01-28T23:59:59" Type="BuyNofXgetYatZ$" NbrTimesPerTrans="1" AccountingMethod="Discount" AllowSourceToRepeat="true" DealDistribution="Target"> <Name>Bootcut Jean/Sweater Rule</Name> <SourceThreshold>5.00</SourceThreshold> <SourceLimit>100.00</SourceLimit> <TargetThreshold>5.00</TargetThreshold> <TargetLimit>100.00</TargetLimit> </PricingRule> <Sources> <Source ID="1234" Qty="2"/> </Sources> <Targets> <NewPrice>10.00</NewPrice> <Target ID="5678" Qty="1"/> </Targets> </DiscountRule> <!-- BuyNofXgetLowestPricedXatZ%off - Multiple source items --> <DiscountRule> <PricingRule ChangeType="ADD" ID="11150335" PromoCompID="123" PromoCompDetlID="456" StartDateTime="2007-01-28T00:00:00" EndDateTime="2007-01-28T23:59:59" Type="BuyNofXgetLowestPricedXatZ%off" NbrTimesPerTrans="1" AccountingMethod="Discount" AllowSourceToRepeat="true" DealDistribution="Target"> <Name>Bootcut Jean/Sweater Rule</Name> <SourceThreshold>5.00</SourceThreshold> <SourceLimit>100.00</SourceLimit> </PricingRule> <Sources> <Source ID="1234" Qty="2"/> <Source ID="20020002" Qty="2"/> </Sources> <Targets> <DiscountPercent>10</DiscountPercent> </Targets> </DiscountRule> <!-- BuyNofXgetHighestPricedXatZ%off - Multiple source items --> <DiscountRule> <PricingRule ChangeType="ADD" ID="11150335" PromoCompID="123" PromoCompDetlID="456" StartDateTime="2007-01-28T00:00:00" EndDateTime="2007-01-28T23:59:59" Type="BuyNofXgetHighestPricedXatZ%off" NbrTimesPerTrans="1" AccountingMethod="Discount" AllowSourceToRepeat="true" DealDistribution="Target"> <Name>Bootcut Jean/Sweater Rule</Name> <SourceThreshold>5.00</SourceThreshold> <SourceLimit>100.00</SourceLimit> </PricingRule> <Sources Type="Item"> <Source ID="1234" Qty="2"/> <Source ID="20020002" Qty="2"/> </Sources> <Targets> <DiscountPercent>10</DiscountPercent> </Targets> </DiscountRule> <!-- BuyNofXforZ%off - Multiple source items. --> <DiscountRule> <PricingRule ChangeType="ADD" ID="11150335" PromoCompID="123" PromoCompDetlID="456" StartDateTime="2007-01-28T00:00:00" EndDateTime="2007-01-28T23:59:59" Type="BuyNofXforZ%off" NbrTimesPerTrans="1" AccountingMethod="Discount" AllowSourceToRepeat="true" DealDistribution="Target"> <Name>Bootcut Jean/Sweater Rule</Name> <SourceThreshold>5.00</SourceThreshold> <SourceLimit>100.00</SourceLimit> </PricingRule> <Sources> <Source ID="1234" Qty="2"/> <Source ID="20020002" Qty="2"/> </Sources> <Targets> <DiscountPercent>10</DiscountPercent> </Targets> </DiscountRule> <!-- BuyNofXforZ$off - Multiple source items. --> <DiscountRule> <PricingRule ChangeType="ADD" ID="11150335" PromoCompID="123" PromoCompDetlID="456" StartDateTime="2007-01-28T00:00:00" EndDateTime="2007-01-28T23:59:59" Type="BuyNofXforZ$off" NbrTimesPerTrans="1" AccountingMethod="Discount" AllowSourceToRepeat="true" DealDistribution="Target"> <Name>Bootcut Jean/Sweater Rule</Name> <SourceThreshold>5.00</SourceThreshold> <SourceLimit>100.00</SourceLimit> </PricingRule> <Sources> <Source ID="1234" Qty="2"/> <Source ID="20020002" Qty="2"/> </Sources> <Targets> <DiscountAmount>2.00</DiscountAmount> </Targets> </DiscountRule> <!-- BuyNofXforZ$ - Multiple source items. --> <DiscountRule> <PricingRule ChangeType="ADD" ID="11150335" PromoCompID="123" PromoCompDetlID="456" StartDateTime="2007-01-28T00:00:00" EndDateTime="2007-01-28T23:59:59" Type="BuyNofXforZ$" NbrTimesPerTrans="1" AccountingMethod="Discount" AllowSourceToRepeat="true" DealDistribution="Target"> <Name>Bootcut Jean/Sweater Rule</Name> <SourceThreshold>5.00</SourceThreshold> <SourceLimit>100.00</SourceLimit> </PricingRule> <Sources> <Source ID="1234" Qty="2"/> <Source ID="20020002" Qty="2"/> </Sources> <Targets> <NewPrice>2.00</NewPrice> </Targets> </DiscountRule> <!-- Buy$NorMoreOfXgetYatZ$off - Single department source, single item target --> <DiscountRule> <PricingRule ChangeType="ADD" ID="11150335" PromoCompID="123" PromoCompDetlID="456" StartDateTime="2007-01-28T00:00:00" EndDateTime="2007-01-28T23:59:59" Type="Buy$NorMoreOfXgetYatZ$off" NbrTimesPerTrans="1" AccountingMethod="Discount" AllowSourceToRepeat="true" DealDistribution="Target"> <Name>Bootcut Jean/Sweater Rule</Name> <SourceThreshold>5.00</SourceThreshold> <SourceLimit>100.00</SourceLimit> <TargetThreshold>5.00</TargetThreshold> <TargetLimit>100.00</TargetLimit> </PricingRule> <Sources Type="Department"> <Source ID="Women's Apparel" Qty="1"> <SourceAmount>100.00</SourceAmount> </Source> </Sources> <Targets> <DiscountAmount>10.00</DiscountAmount> <Target ID="1234" Qty="1"/> </Targets> </DiscountRule> <!-- Buy$NorMoreOfXgetYatZ%off - Single class source, single item target --> <DiscountRule> <PricingRule ChangeType="ADD" ID="11150335" PromoCompID="123" PromoCompDetlID="456" StartDateTime="2007-01-28T00:00:00" EndDateTime="2007-01-28T23:59:59" Type="Buy$NorMoreOfXgetYatZ%off" NbrTimesPerTrans="1" AccountingMethod="Discount" AllowSourceToRepeat="true" DealDistribution="Target"> <Name>Bootcut Jean/Sweater Rule</Name> <SourceThreshold>5.00</SourceThreshold> <SourceLimit>100.00</SourceLimit> <TargetThreshold>5.00</TargetThreshold> <TargetLimit>100.00</TargetLimit> </PricingRule> <Sources Type="Class"> <Source ID="Jeans" Qty="1"> <SourceAmount>100.00</SourceAmount> </Source> </Sources> <Targets> <DiscountPercent>10</DiscountPercent> <Target ID="1234" Qty="1"/> </Targets> </DiscountRule> <!-- Buy$NorMoreOfXgetYatZ$ - Single class source, single item target --> <DiscountRule> <PricingRule ChangeType="ADD" ID="11150335" PromoCompID="123" PromoCompDetlID="456" StartDateTime="2007-01-28T00:00:00" EndDateTime="2007-01-28T23:59:59" Type="Buy$NorMoreOfXgetYatZ$" NbrTimesPerTrans="1" AccountingMethod="Discount" AllowSourceToRepeat="true" DealDistribution="Target"> <Name>Bootcut Jean/Sweater Rule</Name> <SourceThreshold>5.00</SourceThreshold> <SourceLimit>100.00</SourceLimit> <TargetThreshold>5.00</TargetThreshold> <TargetLimit>100.00</TargetLimit> </PricingRule> <Sources Type="Class"> <Source ID="Jeans" Qty="1"> <SourceAmount>100.00</SourceAmount> </Source> </Sources> <Targets> <NewPrice>10.00</NewPrice> <Target ID="1234" Qty="1"/> </Targets> </DiscountRule> </PricingImport>
Example C-13 PricingImport.xml with Multi-Threshold Rules
<?xml version="1.0" encoding="UTF-8"?> <PricingImport Priority="0" FillType="FullIncremental" Version="1.0" Batch="1" CreationDate="2012-04-07T09:30:47.0Z" ExpirationDate="2027-12-17T09:30:47.0Z" xsi:noNamespaceSchemaLocation="PricingImport.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <!-- BuyNofXforZ$off multithreshold discount rule --> <DiscountRule> <PricingRule ChangeType="ADD" ID="11150346" PromoCompID="123" PromoCompDetlID="456" SourceItemPriceCategory="Regular" TargetItemPriceCategory="Regular" StartDateTime="2012-07-04T10:00:00" EndDateTime="2030-01-28T23:59:59" Type="BuyNofXforZ$off" NbrTimesPerTrans="1" AccountingMethod="Discount" AllowSourceToRepeat="true" DealDistribution="SourceTarget"> <Name>Multithreshold BuyNofXforZ$off</Name> </PricingRule> <Sources Type="Item"> <Source ID="4321"> </Source> <Thresholds> <Threshold ID="221" Threshold="10"> <DiscountAmount>30</DiscountAmount> </Threshold> <Threshold ID="222" Threshold="20"> <DiscountAmount>40</DiscountAmount> </Threshold> <Threshold ID="223" Threshold="30"> <DiscountAmount>50</DiscountAmount> </Threshold><Threshold ID="224" Threshold="40"> <DiscountAmount>60</DiscountAmount> </Threshold> </Thresholds> </Sources> </DiscountRule> <!-- BuyNofXforZ%off multithreshold discount rule --> <DiscountRule> <PricingRule ChangeType="ADD" ID="11150335" PromoCompID="123" PromoCompDetlID="456" SourceItemPriceCategory="Regular" TargetItemPriceCategory="Regular" StartDateTime="2012-07-04T10:00:00" EndDateTime="2030-01-28T23:59:59" Type="BuyNofXforZ%off" NbrTimesPerTrans="1" AccountingMethod="Discount" AllowSourceToRepeat="true" DealDistribution="SourceTarget"> <Name>Multithreshold BuyNofXforZ%off</Name> </PricingRule> <Sources Type="Item"> <Source ID="1234"> </Source> <Thresholds> <Threshold ID="221" Threshold="10"> <DiscountPercent>30</DiscountPercent> </Threshold> <Threshold ID="222" Threshold="20"> <DiscountPercent>40</DiscountPercent> </Threshold> <Threshold ID="223" Threshold="30"> <DiscountPercent>50</DiscountPercent> </Threshold><Threshold ID="224" Threshold="40"> <DiscountPercent>60</DiscountPercent> </Threshold> </Thresholds> </Sources> </DiscountRule> <!-- BuyNorMoreOfXforZ$Each multithreshold discount rule --> <DiscountRule> <PricingRule ChangeType="ADD" ID="11150336" PromoCompID="123" PromoCompDetlID="456" SourceItemPriceCategory="Regular" TargetItemPriceCategory="Regular" StartDateTime="2012-07-04T10:00:00" EndDateTime="2030-01-28T23:59:59" Type="BuyNorMoreOfXforZ$Each" NbrTimesPerTrans="1" AccountingMethod="Discount" AllowSourceToRepeat="true" DealDistribution="SourceTarget"> <Name>Multithreshold BuyNorMoreOfXforZ$Each</Name> </PricingRule> <Sources Type="Item"> <Source ID="2341"> </Source> <Thresholds> <Threshold ID="221" Threshold="10"> <NewPrice>89</NewPrice> </Threshold> <Threshold ID="222" Threshold="20"> <NewPrice>79</NewPrice> </Threshold> <Threshold ID="223" Threshold="30"> <NewPrice>69</NewPrice> </Threshold><Threshold ID="224" Threshold="40"> <NewPrice>59</NewPrice> </Threshold> </Thresholds> </Sources> </DiscountRule> <!-- BuyNofXforZ%off - Quantity based Threshold level multithreshold rule --> <DiscountRule> <PricingRule ChangeType="ADD" ID="11150378" PromoCompID="123" PromoCompDetlID="456" SourceItemPriceCategory="Both" TargetItemPriceCategory="Both" StartDateTime="2012-07-04T10:00:00" EndDateTime="2015-01-28T23:59:59" Type="BuyNofXforZ%off" AccountingMethod="Discount" AllowSourceToRepeat="true" DealDistribution="SourceTarget"> <Name>Multithreshold BuyNofXforZ%off</Name> </PricingRule> <Sources Type="Item" Qualifier="AnyCombo"> <Source ID="4321"/> <Source ID="1234"/> <Source ID="917"/> <Thresholds> <Threshold ID="351" Threshold="3"> <DiscountPercent>10</DiscountPercent> </Threshold> <Threshold ID="352" Threshold="6"> <DiscountPercent>20</DiscountPercent> </Threshold> <Threshold ID="353" Threshold="10"> <DiscountPercent>30</DiscountPercent> </Threshold> </Thresholds> </Sources> </DiscountRule> <!-- Buy$NofXforZ$off - Amount based Item level multi threshold rule --> <DiscountRule> <PricingRule ChangeType="ADD" ID="11150378" PromoCompID="123" PromoCompDetlID="456" SourceItemPriceCategory="Clearance" TargetItemPriceCategory="Clearance" StartDateTime="2012-07-04T10:00:00" EndDateTime="2015-01-28T23:59:59" Type="Buy$NofXforZ$off" AccountingMethod="Discount" AllowSourceToRepeat="true" DealDistribution="SourceTarget"> <Name>Multithreshold Buy$NofXforZ$off</Name> </PricingRule> <Sources Type="Item"> <Source ID="4321"/> <Source ID="1234"/> <Source ID="917"/> <Thresholds> <Threshold ID="351" Threshold="700"> <DiscountAmount>10</DiscountAmount> </Threshold> <Threshold ID="352" Threshold="1500"> <DiscountAmount>20</DiscountAmount> </Threshold> <Threshold ID="353" Threshold="2600"> <DiscountAmount>30</DiscountAmount> </Threshold><Threshold ID="354" Threshold="3800"> <DiscountAmount>40</DiscountAmount> </Threshold> </Thresholds> </Sources> </DiscountRule> </PricingImport>
Example C-14 PricingImport.xml with Transaction Level Discounts
<?xml version="1.0" encoding="UTF-8"?> <PricingImport Priority="0" FillType="FullIncremental" Version="1.0" Batch="1" CreationDate="2001-12-17T09:30:47.0Z" ExpirationDate="2027-12-17T09:30:47.0Z" xsi:noNamespaceSchemaLocation="PricingImport.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <!-- Coupon example 10% off transaction --> <DiscountRule> <PricingRule ChangeType="ADD" ID="9910" StartDateTime="2007-01-28T00:00:00" EndDateTime="2027-01-28T23:59:59" Type="BuyNofXgetYatZ%off" NbrTimesPerTrans="1" AccountingMethod="Discount" AllowSourceToRepeat="false" DealDistribution="Target" Scope="Transaction"> <Name>CouponTransactionRule1</Name> <StoreID>04241</StoreID> </PricingRule> <Sources Type="Coupon"> <Source ID="27600" Qty="1" /> </Sources> <Targets> <DiscountPercent>10</DiscountPercent> </Targets> </DiscountRule> <!-- Simple "Any" example 20% off transaction --> <DiscountRule> <PricingRule ChangeType="ADD" ID="9910" StartDateTime="2007-01-28T00:00:00" EndDateTime="2027-01-28T23:59:59" Type="BuyNofXgetYatZ%off" NbrTimesPerTrans="1" AccountingMethod="Discount" AllowSourceToRepeat="false" DealDistribution="Target" Scope="Transaction"> <Name>AnySourceTransactionRule1</Name> <StoreID>04241</StoreID> </PricingRule> <Sources Qualifier="Any" Qty="1"> <Source ID="1001" Qty="1" /> <Source ID="1002" Qty="1" /> <Source ID="1003" Qty="1" /> </Sources> <Targets> <DiscountPercent>20</DiscountPercent> </Targets> </DiscountRule> <!-- Buy$NofXforZ%off - Multiple source items, sources are targets. --> <DiscountRule> <PricingRule ChangeType="ADD" ID="11150335" SourceItemPriceCategory="Clearance" TargetItemPriceCategory="Clearance" PromoCompID="123" PromoCompDetlID="456" StartDateTime="2012-05-17T10:40:00" EndDateTime="2014-05-09T14:12:00" Type="Buy$NofXforZ%off" NbrTimesPerTrans="1" AccountingMethod="Discount" AllowSourceToRepeat="true" Scope="Transaction" DealDistribution="Target"> <Name>Item Level Discount Rule</Name> <SourceThreshold>5.00</SourceThreshold> <SourceLimit>500.00</SourceLimit> <TargetThreshold>5.00</TargetThreshold> <TargetLimit>500.00</TargetLimit> <StoreID>04241</StoreID> <StoreID>04242</StoreID> <StoreID>04243</StoreID> </PricingRule> <Sources Qualifier="All"> <Source ID="1234"> <SourceAmount>30</SourceAmount> </Source> <Source ID="4321"> <SourceAmount>150</SourceAmount> </Source> </Sources> <Targets Type="Item"> <DiscountPercent>40</DiscountPercent> </Targets> </DiscountRule> <!-- Buy$NofXforZ$off - Single source items, sources are targets. --> <DiscountRule> <PricingRule ChangeType="ADD" ID="11150336" SourceItemPriceCategory="Clearance" TargetItemPriceCategory="Clearance" PromoCompID="124" PromoCompDetlID="457" StartDateTime="2012-05-17T10:40:00" EndDateTime="2014-05-09T14:12:00" Type="Buy$NofXforZ$off" NbrTimesPerTrans="1" AccountingMethod="Discount" AllowSourceToRepeat="true" Scope="Transaction" DealDistribution="Target"> <Name>Item Level Discount Rule</Name> <SourceThreshold>5.00</SourceThreshold> <SourceLimit>500.00</SourceLimit> <TargetThreshold>5.00</TargetThreshold> <TargetLimit>500.00</TargetLimit> <StoreID>04241</StoreID> <StoreID>04242</StoreID> <StoreID>04243</StoreID> </PricingRule> <Sources Qualifier="All"> <Source ID="1234"> <SourceAmount>30</SourceAmount> </Source> </Sources> <Targets Type="Item"> <DiscountAmount>5</DiscountAmount> </Targets> </DiscountRule> <!-- BuyNofXgetYatZ%off - On All store items --> <DiscountRule> <PricingRule ChangeType="ADD" ID="11150335" SourceItemPriceCategory="Both" TargetItemPriceCategory="Both" PromoCompID="123" PromoCompDetlID="456" StartDateTime="2012-05-17T10:40:00" EndDateTime="2014-05-09T14:12:00" Type="Buy$NofXforZ%off" NbrTimesPerTrans="1" AccountingMethod="Discount" AllowSourceToRepeat="true" Scope="Transaction" DealDistribution="Target"> <Name>Item Level Discount Rule</Name> <SourceThreshold>5.00</SourceThreshold> <SourceLimit>500.00</SourceLimit> <TargetThreshold>5.00</TargetThreshold> <TargetLimit>500.00</TargetLimit> <StoreID>04241</StoreID> <StoreID>04242</StoreID> <StoreID>04243</StoreID> </PricingRule> <Sources> <Source ID="*"> <SourceAmount>30</SourceAmount> </Source> </Sources> <Targets Type="Item"> <DiscountPercent>40</DiscountPercent> </Targets> </DiscountRule> </PricingImport>
Table C-11 identifies the XSD elements in the RM-CustomerImport.xsd file.
Table C-11 Returns Customer Import XSD Element Mapping Table
Log/Physical table | Target | Physical Column Name | DataType | XSD Element/Attribute Path | Notes |
---|---|---|---|---|---|
Party PA_PRTY |
PartyID |
ID_PRTY |
INTEGER |
NA |
NA |
PartyLegalOrganizationCode |
LU_ORG_LG |
VARCHAR(20) |
NA |
NA |
|
PartyTypeCode |
TY_PRTY |
VARCHAR(20) |
NA |
NA |
|
Customer PA_CT |
CustomerID |
ID_CT |
VARCHAR(14) |
NA |
NA |
PartyID |
ID_PRTY |
INTEGER |
NA |
NA |
|
CustomerFullName |
NM_CT |
VARCHAR(250) |
NA |
NA |
|
EmployeeID |
ID_EM |
VARCHAR(10) |
NA |
Should be null if this customer is not an employee of the company. |
|
CustomerStatusCode |
STS_CT |
INTEGER |
NA |
Inactive=0, Active=1, Deleted=2 |
|
EncryptedAccountNumber |
ID_NCRPT_ACTN_CRD |
VARCHAR(250) |
NA |
The XML value should be a hexadecimal string of the encrypted byte array. |
|
MaskedAccountNumber |
ID_MSK_ACNT_CRD |
VARCHAR(20) |
NA |
NA |
|
CustomerLocale |
LCL |
VARCHAR(10) |
NA |
2-character code |
|
CustomerTaxID |
ID_TAX |
VARCHAR(16) |
NA |
NA |
|
CustomerPricingGroup |
ID_PRCGP |
INTEGER |
NA |
Maximum field size for INTEGER is typically NUMBER(10) to support Java INT datatype in application. |
|
CustomerBatchID |
ID_CT_BTCH |
INTEGER |
NA |
NA |
|
Contact PA_CNCT |
ContactID |
ID_CNCT |
INTEGER |
NA |
NA |
ContactTypeCode |
TY_CNCT |
VARCHAR(20) |
NA |
NA |
|
PartyID |
ID_PRTY |
INTEGER |
NA |
NA |
|
ContactLastName |
LN_CNCT |
VARCHAR(120) |
ReturnsCustomer/customerInfo/lastName |
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. |
|
ContactFirstName |
FN_CNCT |
VARCHAR(120) |
ReturnsCustomer/customerInfo/firstName |
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. |
|
ContactMiddleName |
MD_CNCT |
VARCHAR(120) |
ReturnsCustomer/customerInfo/middleName |
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. |
|
ContactFullName |
NM_CNCT |
VARCHAR(250) |
NA |
NA |
|
ContactSalutation |
LU_CNCT_SLN |
VARCHAR(120) |
NA |
Such as "Mr", "Mrs", "Ms" |
|
ContactSuffix |
NM_CNCT_SFX |
VARCHAR(120) |
NA |
Such as "Jr", "III" |
|
ContactBirthDate |
DC_CNCT |
VARCHAR(30) |
ReturnsCustomer/customerInfo/birthDate |
NA |
|
ContactGender |
GNDR_CNCT |
INTEGER |
ReturnsCustomer/customerInfo/gender |
Unspecified=0, Female=1, Male=2 |
|
ContactCompanyName |
CO_NM_CNCT |
VARCHAR(120) |
NA |
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. |
|
ContactMailFlag |
NO_MAIL_CNCT |
CHAR(1) |
NA |
NA |
|
ContactPhoneFlag |
NO_PHN_CNCT |
CHAR(1) |
NA |
NA |
|
ContactEmailFlag |
NO_EML_CNCT |
CHAR(1) |
No mapping available |
NA |
|
ContactFunctionCode |
LU_FNC_CNCT |
VARCHAR(20) |
NA |
Not used |
|
Address LO_ADS |
AddressID |
ID_ADS |
INTEGER |
NA |
Unspecified=-1, Home=0, Work=1, Other=2, Mail=3 |
PartyID |
ID_PRTY |
INTEGER |
NA |
NA |
|
AddressTypeCode |
TY_ADS |
VARCHAR(30) |
NA |
Unspecified=-1, Home=0, Work=1, Other=2, Mail=3 |
|
AddressLine1 |
A1_CNCT |
VARCHAR(240) |
ReturnsCustomer/customerInfo/address1 |
The length here is defined as the length of single byte string. If multibyte characters are used, the max length should be 240/4 = 60. |
|
AddressLine2 |
A2_CNCT |
VARCHAR(240) |
ReturnsCustomer/customerInfo/address2 |
The length here is defined as the length of single byte string. If multibyte characters are used, the max length should be 240/4 = 60. |
|
AddressLine3 |
A3_CNCT |
VARCHAR(240) |
NA |
The length here is defined as the length of single byte string. If multibyte characters are used, the max length should be 240/4 = 60. |
|
AddressCity |
CI_CNCT |
VARCHAR(120) |
ReturnsCustomer/customerInfo/city |
The length here is defined as the length of single byte string. If multibyte characters are used, the max length should be 240/4 = 60. |
|
AddressState |
ST_CNCT |
VARCHAR(30) |
ReturnsCustomer/customerInfo/state |
NA |
|
AddressPostalCode |
PC_CNCT |
VARCHAR(30) |
ReturnsCustomer/customerInfo/postalCode |
NA |
|
AddressTerritory |
TE_CNCT |
VARCHAR(120) |
NA |
NA |
|
AddressCountry |
CO_CNCT |
VARCHAR(30) |
ReturnsCustomer/customerInfo/country |
NA |
|
Telephone PA_PHN |
PhoneID |
ID_PHN |
INTEGER |
NA |
Unspecified=-1, Home=0, Work=1, Mobile=2, Fax=3, Pager=4, Other=5 |
PartyID |
ID_PRTY |
INTEGER |
NA |
NA |
|
PhoneType |
TY_PHN |
VARCHAR(30) |
NA |
Unspecified=-1, Home=0, Work=1, Mobile=2, Fax=3, Pager=4, Other=5 |
|
ContactAreaTelephoneCode |
TA_PHN |
VARCHAR(30) |
No mapping available |
NA |
|
ContactLocalTelephoneNumber |
TL_CNCT |
VARCHAR(30) |
ReturnsCustomer/customerInfo/telephoneLocalNumber |
NA |
|
ContactExtension |
EXT_CNCT |
VARCHAR(30) |
NA |
NA |
|
RMCustomer RM_CT |
RMCustomerID |
ID_CT_RM |
INTEGER |
NA |
NA |
CustomerPositiveIDNumber |
ID_CT_PSTV |
VARCHAR(1000) |
ReturnsCustomer/positiveID/number |
NA |
|
HashedCustomerPositiveIDNumber |
ID_HSH_CT_PSTV |
VARCHAR(2500) |
NA |
NA |
|
CustomerPositiveIDType |
ID_TY_CT_PSTV |
INTEGER |
ReturnsCustomer/positiveID/type |
Types are defined in RM_LU_CD table. |
|
PositiveIDIssuerCountryName |
NM_CO_ID_PSTV_ISSR |
VARCHAR(2) |
ReturnsCustomer/positiveID/issuerCountry |
NA |
|
PositiveIDIssuerStateName |
NM_ST_ID_PSTV_ISSR |
VARCHAR(3) |
ReturnsCustomer/positiveID/issuerState |
NA |
|
PositiveIDIssuedDate |
DT_ID_PSTV_EF |
DATE |
ReturnsCustomer/positiveID/issued |
NA |
|
PositiveIDExpirationDate |
DT_ID_PSTV_EP |
DATE |
ReturnsCustomer/positiveID/expiration |
NA |
|
CustomerType |
TY_CT |
VARCHAR(25) |
ReturnsCustomer/customerType |
NA |
|
RMCustomerScore RM_CT_SCR |
RMCustomerID |
ID_CT_RM |
INTEGER |
NA |
NA |
CustomerScore |
QU_CT_SCR |
INTEGER |
ReturnsCustomer/exceptionCount |
NA |
|
ScoreFrozenEndDate |
TS_SCR_FRZ_EP |
TIMESTAMP |
NA |
NA |
The following is an example Returns Management Customer Import XSD file.
Example C-15 RM-CustomerImport.xsd
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:element name="ReturnsCustomers" type="ReturnsCustomersType"/> <xsd:complexType name="ReturnsCustomersType"> <xsd:sequence> <xsd:element name="ReturnsCustomer" type="ReturnsCustomerType" maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="ReturnsCustomerType"> <xsd:sequence> <xsd:element name="positiveID" type="PositiveIDInfo" /> <xsd:element name="customerInfo" type="MoreCustInformation" /> <xsd:element name="exceptionCount" type="xsd:integer" /> <xsd:element name="customerType" type="xsd:string" minOccurs="0" maxOccurs="1" /> <xsd:element name="notes" type="xsd:string" /> </xsd:sequence> </xsd:complexType> <xsd:complexType name="PositiveIDInfo"> <xsd:sequence> <xsd:element name="number" type="xsd:string" minOccurs="1" maxOccurs="1" /> <xsd:element name="type" type="xsd:string" minOccurs="1" maxOccurs="1" /> <xsd:element name="issuerCountry" type="xsd:string" minOccurs="1" maxOccurs="1" /> <xsd:element name="issuerState" type="xsd:string" minOccurs="1" maxOccurs="1" /> <xsd:element name="issued" type="xsd:date" minOccurs="0" maxOccurs="1" /> <xsd:element name="expiration" type="xsd:date" minOccurs="0" maxOccurs="1" /> </xsd:sequence> </xsd:complexType> <xsd:complexType name="MoreCustInformation"> <xsd:sequence> <xsd:element name="lastName" type="xsd:string" minOccurs="1" maxOccurs="1" /> <xsd:element name="firstName" type="xsd:string" minOccurs="1" maxOccurs="1" /> <xsd:element name="middleName" type="xsd:string" minOccurs="0" maxOccurs="1" /> <xsd:element name="gender" minOccurs="0" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:enumeration value="Male" /> <xsd:enumeration value="Female" /> </xsd:restriction> </xsd:simpleType> </xsd:element><!-- format of yyyyMMdd --> <xsd:element name="birthDate" type="xsd:string" minOccurs="0" maxOccurs="1" /> <xsd:element name="address1" type="xsd:string" minOccurs="1" maxOccurs="1" /> <xsd:element name="address2" type="xsd:string" minOccurs="0" maxOccurs="1" /> <xsd:element name="city" type="xsd:string" minOccurs="1" maxOccurs="1" /> <xsd:element name="state" type="xsd:string" minOccurs="1" maxOccurs="1" /><!-- zip code--> <xsd:element name="postalCode" type="xsd:string" minOccurs="1" maxOccurs="1" /> <xsd:element name="country" type="xsd:string" minOccurs="1" maxOccurs="1" /> <xsd:element name="telephoneLocalNumber" type="xsd:string" minOccurs="0" maxOccurs="1" /> </xsd:sequence> </xsd:complexType> </xsd:schema>
The following is an example Returns Management Customer Import XML file.
Example C-16 RM-CustomerImport.xml
<?xml version="1.0" encoding="UTF-8"?> <ReturnsCustomers> <ReturnsCustomer> <positiveID> <number>MDAxMGbGwbmQ1Xj6usAD03MY8pQ=</number> <type>DriversLicense</type> <issuerCountry>US</issuerCountry> <issuerState>TX</issuerState> <issued>2005-01-01</issued> <expiration>2030-01-01</expiration> </positiveID> <customerInfo> <lastName>TX1000000</lastName> <firstName>Oracle1000000</firstName> <address1>Some address1</address1> <address2>Some address2</address2> <city>Austin</city> <state>TX</state> <postalCode>78759</postalCode> <country>US</country> <telephoneLocalNumber>5125550100</telephoneLocalNumber> </customerInfo> <exceptionCount>100</exceptionCount> <customerType>Gold</customerType> <notes>by ReturnsCustomerImport</notes> </ReturnsCustomer> <ReturnsCustomer> <positiveID> <number>MDAxMfBMnSRVaYWVaArn9a17O68=</number> <type>DriversLicense</type> <issuerCountry>US</issuerCountry> <issuerState>TX</issuerState> <issued>2005-01-01</issued> <expiration>2030-01-01</expiration> </positiveID> <customerInfo> <lastName>TX1000001</lastName> <firstName>Oracle1000001</firstName> <address1>Some address1</address1> <address2>Some address2</address2> <city>Austin</city> <state>TX</state> <postalCode>78759</postalCode> <country>US</country> <telephoneLocalNumber>5125550100</telephoneLocalNumber> </customerInfo> <exceptionCount>100</exceptionCount> <customerType>Gold</customerType> <notes>by ReturnsCustomerImport</notes> </ReturnsCustomer> <ReturnsCustomer> <positiveID> <number>MDAxMsKg6lDLRZTaT1HkTWB9Mqc=</number> <type>DriversLicense</type> <issuerCountry>US</issuerCountry> <issuerState>TX</issuerState> <issued>2005-01-01</issued> <expiration>2030-01-01</expiration> </positiveID> <customerInfo> <lastName>TX1000002</lastName> <firstName>Oracle1000002</firstName> <address1>Some address1</address1> <address2>Some address2</address2> <city>Austin</city> <state>TX</state> <postalCode>78759</postalCode> <country>US</country> <telephoneLocalNumber>5125550100</telephoneLocalNumber> </customerInfo> <exceptionCount>100</exceptionCount> <customerType>Gold</customerType> <notes>by ReturnsCustomerImport</notes> </ReturnsCustomer> </ReturnsCustomers>
Table C-12 identifies the element mapping for the ScanSheetImport.xsd file.
Table C-12 ScanSheet Import XSD Element Mapping Table
Log/Physical table | Target | Physical Column Name | DataType | XSD Element/Attribute Path | Notes |
---|---|---|---|---|---|
ScanSheet CO_CFG_SC_SHT |
ScanSheetComponentID |
ID_SC_SHT_COM |
INTEGER |
ScanSheetImport/ScanSheet/ScanSheetComponentID |
Should be unique. (Should also have data for CO_CFG_SC_SHT_I8 Components to work properly). |
ItemID |
ID_ITM |
VARCHAR(14) |
ScanSheetImport/ScanSheet/ItemID |
Occurs only if TY_COM is 'I' (Should be one of the existing Items in AS_ITM table) . |
|
CategoryID |
ID_CTGY |
VARCHAR(14) |
ScanSheetImport/ScanSheet/CategoryID |
Occurs only if TY_COM is 'C'. (Should match with NM_CTGY of CO_CFG_SC_SHT_I8 table and its corresponding replica here). |
|
ScanSheetComponentOrder |
AI_ORD |
INTEGER |
ScanSheetImport/ScanSheet/ScanSheetComponentOrder |
NA |
|
ComponentType |
TY_COM |
VARCHAR(1) |
ScanSheetImport/ScanSheet/ComponentType |
Either 'C' or 'I' (Category or Item) . |
|
ParentCategoryID |
ID_CTGY_PRNT |
VARCHAR(14) |
ScanSheetImport/ScanSheet/ParentCategoryID |
Should be one of the ID_CTGY. (Should match with NM_CTGY of CO_CFG_SC_SHT_I8 table and its corresponding replica here). |
|
ScanSheetI18N CO_CFG_SC_SHT_I8 |
ScanSheetComponentID |
ID_SC_SHT_COM |
INTEGER |
ScanSheetImport/ScanSheetI18N/ScanSheetComponentID |
Should be unique |
Locale |
LCL |
VARCHAR(10) |
ScanSheetImport/ScanSheetI18N/Locale |
NA |
|
CategoryName |
NM_CTGY |
VARCHAR(120) |
ScanSheetImport/ScanSheetI18N/CategoryName |
NA |
|
ComponentImage |
DO_SC_COM_IMG |
BLOB |
ScanSheetImport/ScanSheetI18N/ScanSheetImageFileName |
Image File |
|
ComponentImageLocationURL |
COM_IMG_LOC |
VARCHAR(200) |
ScanSheetImport/ScanSheetI18N/ScanSheetImageLocation |
Image File Location |
The following is an example ScanSheet Import XSD file.
Example C-17 ScanSheetImport.xsd
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xs:annotation> <xs:documentation> ScanSheet Import Schema. Copyright 2008 Oracle. All rights reserved. Use this schema in conjunction with a Oracle Store Systems Data Dictionary and the relations between the element and attribute names should be apparent. </xs:documentation> </xs:annotation> <xs:include schemaLocation="../CommonImport.xsd" /> <xs:element name="ScanSheetImport" type="ScanSheetImport_type"> <xs:annotation> <xs:documentation> Top-level element holding a collection of ScanSheet elements. </xs:documentation> </xs:annotation> </xs:element> <xs:complexType name="ScanSheetImport_type"> <xs:sequence> <xs:element name="ScanSheet" type="ScanSheet_type" minOccurs="0" maxOccurs="unbounded" /> <xs:element name="ScanSheetI18N" type="ScanSheetI18N_type" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> <xs:attribute name="Priority" type="xs:int" /> <xs:attribute name="FillType" type="FillType_type" use="required" /> <xs:attribute name="Version" type="xs:string" /> <xs:attribute name="Batch" type="xs:int" /> <xs:attribute name="CreationDate" type="xs:dateTime" /> <xs:attribute name="ExpirationDate" type="xs:dateTime" /> </xs:complexType> <xs:complexType name="ScanSheet_type"> <xs:annotation> <xs:documentation> Represents a single ScanSheet's information. Each Address, Telephone and Email should have a different Type because the Type becomes part of the primary key for that record. </xs:documentation> </xs:annotation> <xs:attribute name="ChangeType" type="xs:string" use="required" /> <xs:attribute name="ScanSheetComponentID" type="xs:int" use="required" /> <xs:attribute name="ItemID" type="xs:string" /> <xs:attribute name="CategoryID" type="xs:string" /> <xs:attribute name="ScanSheetComponentOrder" type="xs:int" /> <xs:attribute name="ComponentType" type="xs:string" /> <xs:attribute name="ParentCategoryID" type="xs:string" /> </xs:complexType> <xs:complexType name="ScanSheetI18N_type"> <xs:annotation> <xs:documentation> Represents a single business's information. In this case, setting any person attributes, like FirstName would be for the company's contact. </xs:documentation> </xs:annotation> <xs:attribute name="ChangeType" type="xs:string" use="required" /> <xs:attribute name="ScanSheetComponentID" type="xs:int" use="required" /> <xs:attribute name="Locale" type="xs:string" use="required" /> <xs:attribute name="CategoryName" type="xs:string" /> <xs:attribute name="ScanSheetImageFileName" type="xs:string"> <xs:annotation> <xs:documentation> A file name specified here is expected to be a JPG or other image file existing in the same bundle as the XML file. The image will be imported as a blob into the database. </xs:documentation> </xs:annotation> </xs:attribute> <xs:attribute name="ScanSheetImageLocation" type="xs:string"> <xs:annotation> <xs:documentation> This locations should be a valid url for use by the application in retrieving images. </xs:documentation> </xs:annotation> </xs:attribute> </xs:complexType> </xs:schema>
The following is an example ScanSheet Import XML file.
Example C-18 ScanSheetImport.xml Full Incremental
<ScanSheetImport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ScanSheetImport.xsd" Priority="0" FillType="FullIncremental" Version="1.0" Batch="1" CreationDate="2001-12-17T09:30:47.0Z" ExpirationDate="2027-12-17T09:30:47.0Z"> <ScanSheetI18N ChangeType="UPS" ScanSheetComponentID="67" Locale="en" CategoryName="software" ScanSheetImageFileName="001.jpg"> </ScanSheetI18N> <ScanSheetI18N ChangeType="UPS" ScanSheetComponentID="80" Locale="en" CategoryName="TEST" ScanSheetImageFileName="001.jpg"> </ScanSheetI18N> <ScanSheetI18N ChangeType="UPD" ScanSheetComponentID="67" Locale="en" CategoryName="softwares"> </ScanSheetI18N> <ScanSheetI18N ChangeType="UPS" ScanSheetComponentID="68" Locale="en" CategoryName="pedals" ScanSheetImageFileName="002.jpg"> </ScanSheetI18N> <ScanSheet ChangeType="UPS" ScanSheetComponentID="67" CategoryID="softwares" ScanSheetComponentOrder="13" ComponentType="C"> </ScanSheet> <ScanSheet ChangeType="UPS" ScanSheetComponentID="69" ItemID="1234" ScanSheetComponentOrder="1" ComponentType="I" ParentCategoryID="softwares"> </ScanSheet> <ScanSheet ChangeType="UPS" ScanSheetComponentID="68" CategoryID="pedals" ScanSheetComponentOrder="14" ComponentType="C"> </ScanSheet> <ScanSheet ChangeType="UPS" ScanSheetComponentID="80" CategoryID="TEST" ScanSheetComponentOrder="15" ComponentType="C"> </ScanSheet> <ScanSheet ChangeType="UPS" ScanSheetComponentID="70" ItemID="911" ScanSheetComponentOrder="1" ComponentType="I" ParentCategoryID="pedals"> </ScanSheet> <ScanSheet ChangeType="UPS" ScanSheetComponentID="83" ItemID="917" ScanSheetComponentOrder="1" ComponentType="I" ParentCategoryID="TEST"> </ScanSheet> </ScanSheetImport>
Table C-13 identifies the PreloadData element mapping for the StoreHierarchyImport.xsd file.
Table C-13 Store Hierarchy Import XSD Preload Data Mapping Table
Log/Physical table | Target | Physical Column Name | DataType | XSD Element/Attribute Path | Notes |
---|---|---|---|---|---|
StoreRegions LO_STR_RGN |
RegionID |
ID_STR_RGN(LO_STR_DSTRCT, PA_STR_RTL) |
VARCHAR(14) |
PreloadData/StoreRegion/RegionID |
NA |
RegionName |
NM_STR_RGN |
VARCHAR(120) |
PreloadData/StoreRegion/RegionName PreloadData/StoreRegion/LocalizedRegionName@Name |
NM_* is either <*Name> or <Localized*Name@Name>. If a <Localized*Name@Name> element is not found for a supported lanaguage (locale), the last <Localized*Name@Name> in the list is used for that language. |
|
RecordCreate |
TS_CRT_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
RecordModify |
TS_MDF_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
StoreRegionsI18N LO_STR_RGN_I8 |
RegionID |
ID_STR_RGN |
VARCHAR(14) |
PreloadData/StoreRegion/RegionID |
NA |
Locale |
LCL |
VARCHAR(10) |
PreloadData/StoreRegion/LocalizedRegionName@Language |
LCL is a supported langage in the system, for example, "en" or "en_US". If an exact match is not found in the <Localized*Name> list, the best match, or last value in the list is used. |
|
RegionName |
NM_STR_RGN |
VARCHAR(120) |
PreloadData/StoreRegion/RegionName PreloadData/StoreRegion/LocalizedRegionName@Name |
NM_* is either <*Name> or <Localized*Name@Name>. If a <Localized*Name@Name> element is not found for a supported lanaguage (locale), the last <Localized*Name@Name> in the list is used for that language. 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. |
|
StoreDistricts LO_STR_DSTRCT |
DistrictID |
ID_STR_DISTRICT |
VARCHAR(14) |
PreloadData/StoreDistrict/DistrictID |
NA |
RegionID |
ID_STR_RGN |
VARCHAR(14) |
PreloadData/StoreDistrict/RegionID |
NA |
|
DistrcitName |
NM_STR_DSTRCT |
VARCHAR(120) |
PreloadData/StoreDistrict/DistrictName PreloadData/StoreDistrict/LocalizedDistrictName@Name |
NM_* is either <*Name> or <Localized*Name@Name>. If a <Localized*Name@Name> element is not found for a supported lanaguage (locale), the last <Localized*Name@Name> in the list is used for that language. |
|
RecordCreate |
TS_CRT_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
RecordModify |
TS_MDF_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
StoreDistrictsI18N LO_STR_DSTRCT_I8 |
DistrictID |
ID_STR_DISTRICT |
VARCHAR(14) |
PreloadData/StoreDistrict/DistrictID |
NA |
Locale |
LCL |
VARCHAR(10) |
PreloadData/StoreDistrict/LocalizedDistrictName@Language |
LCL is a supported langage in the system, for example, en or en_US. If an exact match is not found in the <Localized*Name> list, the best match, or last value in the list is used. |
|
DistrcitName |
NM_STR_DSTRCT |
VARCHAR(120) |
PreloadData/StoreDistrict/DistrictName PreloadData/StoreDistrict/LocalizedDistrictName@Name |
NM_* is either <*Name> or <Localized*Name@Name>. If a <Localized*Name@Name> element is not found for a supported lanaguage (locale), the last <Localized*Name@Name> in the list is used for that language. 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. |
|
RetailStore PA_STR_RTL |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
PreloadData/RetailStore/RetailStoreID |
NA |
LocationName |
NM_LOC |
VARCHAR(150) |
PreloadData/RetailStore/LocationName PreloadData/RetailStore/LocalizedLocationName@Name |
NM_* is either <*Name> or <Localized*Name@Name>. If a <Localized*Name@Name> element is not found for a supported lanaguage (locale), the last <Localized*Name@Name> in the list is used for that language. |
|
DistrictID |
ID_STR_DSTRCT |
VARCHAR(14) |
PreloadData/RetailStore/DistrictID |
NA |
|
RegionID |
ID_STR_RGN |
VARCHAR(14) |
PreloadData/RetailStore/RegionID |
NA |
|
GeoCode |
ID_CD_GEO |
VARCHAR(10) |
PreloadData/RetailStore/GeoCode |
NA |
|
RecordCreate |
TS_CRT_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
RecordModify |
TS_MDF_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
RetailStoreI18N PA_STR_RTL_I8 |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
PreloadData/RetailStore/RetailStoreID |
NA |
Locale |
LCL |
VARCHAR(10) |
PreloadData/RetailStore/LocalizedLocationName@Language |
LCL is a supported langage in the system, for example, en or en_US. If an exact match is not found in the <Localized*Name> list, the best match, or last value in the list is used. |
|
LocationName |
NM_LOC |
VARCHAR(150) |
PreloadData/RetailStore/LocationName PreloadData/RetailStore/LocalizedLocationName |
NM_* is either <*Name> or <Localized*Name@Name>. If a <Localized*Name@Name> element is not found for a supported lanaguage (locale), the last <Localized*Name@Name> in the list is used for that language. 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. |
|
AddressLO_ADS |
AddressID |
ID_ADS |
INTEGER |
PreloadData/RetailStore/Address/AddressID |
NA |
AddressType |
TY_ADS |
VARCHAR(30) |
PreloadData/RetailStore/Address/AddressTypeCode |
Home=0 |
|
PartyID |
ID_PRTY |
INTEGER |
NA |
Derive from TY_ADS |
|
ContactAddressLine1 |
A1_CNCT |
VARCHAR(240) |
PreloadData/RetailStore/Address/AddressLine1 |
NA |
|
ContactAddressLine2 |
A2_CNCT |
VARCHAR(240) |
PreloadData/RetailStore/Address/AddressLine2 |
NA |
|
ContactAddressLine3 |
A3_CNCT |
VARCHAR(240) |
PreloadData/RetailStore/Address/AddressLine3 |
NA |
|
ContactAddressCity |
CI_CNCT |
VARCHAR(120) |
PreloadData/RetailStore/Address/City |
NA |
|
ContactAddressState |
ST_CNCT |
VARCHAR(30) |
PreloadData/RetailStore/Address/State |
NA |
|
ContactAddressPostalCode |
PC_CNCT |
VARCHAR(30) |
PreloadData/RetailStore/Address/PostalCode |
NA |
|
ContactAddressTerritory |
TE_CNCT |
VARCHAR(120) |
PreloadData/RetailStore/Address/Territory |
NA |
|
ContactAddressCountry |
CO_CNCT |
VARCHAR(30) |
PreloadData/RetailStore/Address/Country |
NA |
|
Contact |
CC_CNCT |
VARCHAR(30) |
PreloadData/RetailStore/Address/TelephoneCountryCode |
NA |
|
Contact |
TA_CNCT |
VARCHAR(3) |
PreloadData/RetailStore/Address/Telephone |
NA |
|
Contact |
TL_CNCT |
VARCHAR(30) |
PreloadData/RetailStore/Address/Telephone |
NA |
Table C-14 identifies the element mapping for the StoreHierarchyImport.xsd file.
Table C-14 Store Hierarchy Import XSD Element Mapping Table
Log/Physical table | Target | Physical Column Name | DataType | XSD Element/Attribute Path | Notes |
---|---|---|---|---|---|
RetailStoreGroup CO_STRGP_FNC |
RetailStore |
ID_STRGP_FNC |
INTEGER |
HierarchyList/Hierarchy@ |
NA |
RetailStore |
NM_STRGP_FNC |
VARCHAR(120) |
HierarchyList/Hierarchy@Name HierarchyList/Hierarchy/LocalizedName@Name |
NM_STRGP_FNC is either <Hierarchy@Name> or <LocalizedName@Name>; <LocalizedName@Name> takes precedence. If a <LocalizedName@Name> element is not found for a supported lanaguage (locale), the last <LocalizedName@Name> in the list is used for that language. |
|
MultipleStoreGroupParentCode |
CD_STRGP_MULT_PRNT |
INTEGER |
No mapping available |
NA |
|
RecordCreate |
TS_CRT_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
RecordModify |
TS_MDF_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
RetailStoreGroupFunctionI18N CO_STRGP_FNC_I8 |
RetailStoreGroupFunctionID |
ID_STRGP_FNC |
INTEGER |
HierarchyList/Hierarchy@FunctionID |
NA |
Locale |
LCL |
VARCHAR(10) |
HierarchyList/Hierarchy/LocalizedName@Language |
LCL is a supported langage in the system, e.g., "en" or "en_US". If an exact match is not found in the <Localized*Name> list, the best match, or last value in the lsit is used. |
|
RetailStoreGroupFunctionName |
NM_STRGP_FNC |
VARCHAR(120) |
HierarchyList/Hierarchy@Name HierarchyList/Hierarchy/LocalizedName@Name |
NM_STRGP_FNC is either <Hierarchy@Name> or <LocalizedName@Name>; <LocalizedName@Name> takes precedence. If a <LocalizedName@Name> element is not found for a supported lanaguage (locale), the last <LocalizedName@Name> in the list is used for that language. 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. |
|
RetailStore CO_STRGP_LV |
RetailStore |
ID_STRGP_FNC |
INTEGER |
HierarchyList/Hierarchy@ |
NA |
StoreHierarchy |
ID_STRGP_LV |
INTEGER |
HierarchyList/Hierarchy/LevelList/Level@ID |
NA |
|
RetailStore |
ID_STRGP_LV_PRNT |
INTEGER |
HierarchyList/Hierarchy/LevelList/Level@ParentID |
NA |
|
RetailStore |
NM_STRGP_LV |
VARCHAR(120) |
HierarchyList/Hierarchy/LevelList/Level@Name HierarchyList/Hierarchy/LevelList/Level/LocalizedName@Name |
NM_STRGP_LV is either <Level@Name> or <LocalizedName@Name>; <LocalizedName@Name> takes precedence. If a <LocalizedName@Name> element is not found for a supported lanaguage (locale), the last <LocalizedName@Name> in the list is used for that language. |
|
RecordCreate |
TS_CRT_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
RecordModify |
TS_MDF_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
AssociatedRetail ST_ASCTN_STRGP |
RetailStore |
ID_STRGP_FNC |
INTEGER |
HierarchyList/Hierarchy@ |
NA |
RetailStore |
ID_STRGP_PRNT |
VARCHAR(14) |
HierarchyList/Hierarchy/NodeList/Node@ParentNodeID |
NA |
|
RetailStore |
ID_STRGP_CHLD |
VARCHAR(14) |
HierarchyList/Hierarchy/NodeList/Node@ID |
NA |
|
RecordCreate |
TS_CRT_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
RecordModify |
TS_MDF_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
AssociatedRetail ST_ASCTN_STRGP_STR |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
HierarchyList/Hierarchy/NodeList/RetailStoreID |
NA |
RetailStore |
ID_STRGP |
VARCHAR(14) |
HierarchyList/Hierarchy/NodeList/Node@ID |
NA |
|
RetailStore |
ID_STRGP_FNC |
INTEGER |
HierarchyList/Hierarchy@ |
NA |
|
RecordCreate |
TS_CRT_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
RecordModify |
TS_MDF_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
RetailStoreGroup CO_STRGP |
RetailStore |
ID_STRGP |
VARCHAR(14) |
HierarchyList/Hierarchy/NodeList/Node@ID |
NA |
RetailStore |
ID_STRGP_FNC |
INTEGER |
HierarchyList/Hierarchy@ |
NA |
|
ParentStore |
ID_STRGP_LV |
INTEGER |
HierarchyList/Hierarchy/NodeList/Node@LevelID |
NA |
|
RetailStore |
NM_STRGP |
VARCHAR(120) |
HierarchyList/Hierarchy/NodeList/Node@Name HierarchyList/Hierarchy/NodeList/Node/LocalizedNameDescription@Name |
NM_STRGRP is either <Node@Name> or <LocalizedDescriptionName@Name>; <LocalizedDescriptionName@Name> takes precedence. If a <LocalizedDescriptionName@Name> element is not found for a supported lanaguage (locale), the last <LocalizedDescriptionName@Name> in the list is used for that language. |
|
RetailStore |
DE_STRGP |
VARCHAR(250) |
HierarchyList/Hierarchy/NodeList/Node@Descripton |
NA |
|
RecordCreate |
TS_CRT_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
RecordModify |
TS_MDF_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
StoreHierarchy ST_STR_HRY |
StoreHierarchyGroupID |
ID_STRGP |
VARCHAR(14) |
HierarchyList/Hierarchy/NodeList/Node@ID |
NA |
RetailStoreID |
ID_STR_RT |
VARCHAR(5) |
HierarchyList/Hierarchy/NodeList/RetailStoreID |
NA |
|
RecordCreate |
TS_CRT_RCRD |
TIMESTAMP |
Now( ) |
NA |
|
RecordModify |
TS_MDF_RCRD |
TIMESTAMP |
Now( ) |
NA |
The following is an example Store Hierarchy Import XSD file.
Example C-19 StoreHierarchyImport.xsd
<?xml version="1.0" encoding="UTF-8" ?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xs:annotation><xs:documentation> Store Hierarchy Import Schema. Copyright 2008 Oracle Inc. All rights reserved. Use this schema in conjuction with a Oracle Store Systems Data Dictionary and the relations between the element and attribute names should be apparent. </xs:documentation></xs:annotation> <xs:include schemaLocation="../common.xsd"/> <xs:element name="StoreHierarchy"> <xs:annotation><xs:documentation> Top level element containing the hierarchy and the data that must be preloaded before the hierarchy. </xs:documentation></xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="PreloadData" type="PreloadData_type" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> The data that must be preloaded into the datasource before the actual hierarchy is persisted. Consists of regions, districts and stores. </xs:documentation> </xs:annotation> </xs:element> <xs:element name="HierarchyList" type="HierarchyList_type" minOccurs="0" maxOccurs="unbounded"> <xs:annotation> <xs:documentation> The actual store hierarchy data being imported. Contains a grouping (list) of hierarchies. </xs:documentation> </xs:annotation> </xs:element> </xs:sequence> <xs:attribute name="FillType" type="FillType_subtype" use="required"/> <xs:attribute name="CreationDate" type="xs:dateTime"/> <xs:attribute name="ExpirationDate" type="xs:dateTime"/> <xs:attribute name="Version" type="xs:string"/> <xs:attribute name="Priority" type="xs:int"/> <xs:attribute name="Batch" type="xs:int"/> </xs:complexType> </xs:element> <xs:complexType name="PreloadData_type"> <xs:sequence> <xs:element name="StoreRegion" type="StoreRegion_type" minOccurs="0" maxOccurs="unbounded" /> <xs:element name="StoreDistrict" type="StoreDistrict_type" minOccurs="0" maxOccurs="unbounded" /> <xs:element name="RetailStore" type="RetailStore_type" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> </xs:complexType> <xs:complexType name="StoreRegion_type"> <xs:sequence> <xs:element name="ChangeType" type="ChangeType_type" maxOccurs="1" minOccurs="1" /> <xs:element name="RegionID" type="xs:string" maxOccurs="1" minOccurs="1"/> <xs:choice> <xs:element name="RegionName" type="xs:string" maxOccurs="1" minOccurs="0"/> <xs:element name="LocalizedRegionName" type="LocalizedNameDescription_type" maxOccurs="unbounded" minOccurs="0"/> </xs:choice> </xs:sequence> </xs:complexType> <xs:complexType name="StoreDistrict_type"> <xs:sequence> <xs:element name="ChangeType" type="ChangeType_type" maxOccurs="1" minOccurs="1" /> <xs:element name="DistrictID" type="xs:string" maxOccurs="1" minOccurs="1"/> <xs:element name="RegionID" type="xs:string" maxOccurs="1" minOccurs="1"/> <xs:choice> <xs:element name="DistrictName" type="xs:string" maxOccurs="1" minOccurs="0"/> <xs:element name="LocalizedDistrictName" type="LocalizedNameDescription_type" maxOccurs="unbounded" minOccurs="0"/> </xs:choice> </xs:sequence> </xs:complexType> <xs:complexType name="RetailStore_type"> <xs:sequence> <xs:element name="ChangeType" type="ChangeType_type" maxOccurs="1" minOccurs="1" /> <xs:element name="RetailStoreID" type="RetailStoreId_type" maxOccurs="1" minOccurs="1"/> <xs:choice> <xs:element name="LocationName" type="xs:string" maxOccurs="1" minOccurs="0"/> <xs:element name="LocalizedLocationName" type="LocalizedNameDescription_type" maxOccurs="unbounded" minOccurs="0"/> </xs:choice> <xs:element name="DistrictID" type="xs:string" maxOccurs="1" minOccurs="0"/> <xs:element name="RegionID" type="xs:string" maxOccurs="1" minOccurs="0"/> <xs:element name="GeoCode" type="xs:string" maxOccurs="1" minOccurs="0"/> <xs:element name="Address" type="Address_type" maxOccurs="1" minOccurs="0" /> </xs:sequence> </xs:complexType> <xs:complexType name="Address_type"> <xs:sequence> <xs:element name="AddressID" type="xs:int" maxOccurs="1" minOccurs="1"/> <xs:element name="AddressTypeCode" maxOccurs="1" minOccurs="1"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="Home"></xs:enumeration> <xs:enumeration value="Work"></xs:enumeration> <xs:enumeration value="Mail"></xs:enumeration> <xs:enumeration value="Other"></xs:enumeration> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="AddressLine1" type="xs:string" maxOccurs="1" minOccurs="1"/> <xs:element name="AddressLine2" type="xs:string" maxOccurs="1" minOccurs="0"/> <xs:element name="AddressLine3" type="xs:string" maxOccurs="1" minOccurs="0"/> <xs:element name="City" type="xs:string" maxOccurs="1" minOccurs="1"/> <xs:element name="State" type="xs:string" maxOccurs="1" minOccurs="0"/> <xs:element name="PostalCode" type="xs:string" maxOccurs="1" minOccurs="1"/> <xs:element name="Territory" type="xs:string" maxOccurs="1" minOccurs="0"/> <xs:element name="Country" type="xs:string" maxOccurs="1" minOccurs="0"/> <xs:element name="TelephoneCountryCode" type="xs:string" maxOccurs="1" minOccurs="0"/> <xs:element name="TelephoneAreaCode" type="xs:string" maxOccurs="1" minOccurs="0"/> <xs:element name="TelephoneLocalNumber" type="xs:string" maxOccurs="1" minOccurs="0"/> </xs:sequence> </xs:complexType> <xs:complexType name="HierarchyList_type"> <xs:sequence> <xs:element name="Hierarchy" type="Hierarchy_type" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> </xs:complexType> <xs:complexType name="Hierarchy_type"> <xs:sequence> <xs:element name="LocalizedName" type="LocalizedNameDescription_type" maxOccurs="unbounded" minOccurs="0"/> <xs:element name="LevelList" type="LevelList_type" minOccurs="0" maxOccurs="1" /> <xs:element name="NodeList" type="NodeList_type" minOccurs="0" maxOccurs="1" /> </xs:sequence> <xs:attribute name="FunctionID" type="xs:int" use="required" /> <xs:attribute name="Name" type="xs:string"/> </xs:complexType> <xs:complexType name="LevelList_type"> <xs:sequence> <xs:element name="Level" type="Level_type" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> </xs:complexType> <xs:complexType name="NodeList_type"> <xs:sequence> <xs:element name="Node" type="Node_type" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> </xs:complexType> <xs:complexType name="Level_type"> <xs:sequence> <xs:element name="LocalizedName" type="LocalizedNameDescription_type" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> <xs:attribute name="ID" type="xs:int" use="required"> <!-- =============================================================================== RESTRICTION 1: The following restriction may be imposed if we want to limit the number of level IDs in the store hierarcy. The enumeration will contain the level IDs starting from zero, and will correspond with the number of levels within the store hierarchy. =============================================================================== <xs:simpleType> <xs:restriction base="xs:NMTOKEN"> <xs:enumeration value="0"/> <xs:enumeration value="1"/> <xs:enumeration value="2"/> <xs:enumeration value="3"/> </xs:restriction> </xs:simpleType> --> </xs:attribute> <xs:attribute name="Name" type="xs:string"> <!-- =============================================================================== RESTRICTION 2: The following restriction may be imposed if we want to limit the number of levels in the store hierarchy. The enumeration will contain the store hierarchy level names, which should have a corresponding level ID in the attribute, above. =============================================================================== <xs:simpleType> <xs:restriction base="xs:NMTOKEN"> <xs:enumeration value="Level1"/> <xs:enumeration value="Level2"/> <xs:enumeration value="Level3"/> <xs:enumeration value="root"/> </xs:restriction> </xs:simpleType> --> </xs:attribute> <xs:attribute name="ParentID" type="xs:int"> <xs:annotation><xs:documentation> If the parent id is missing, this is assumed to be the root. </xs:documentation></xs:annotation> <!-- =============================================================================== RESTRICTION 3: The following restriction may be imposed to tie a specific parent level to the current node within the store hierarchy. Ensure that the IDs defined in RESTRICTION 1 will correspond to the IDs defined in the enumeration of this restriction. =============================================================================== <xs:simpleType> <xs:restriction base="xs:NMTOKEN"> <xs:enumeration value="0"/> <xs:enumeration value="1"/> <xs:enumeration value="2"/> </xs:restriction> </xs:simpleType> --> </xs:attribute> </xs:complexType> <xs:complexType name="Node_type"> <xs:sequence> <xs:element name="LocalizedNameDescription" type="LocalizedNameDescription_type" minOccurs="0" maxOccurs="unbounded" /> <xs:element name="RetailStoreId" type="RetailStoreId_type" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> <xs:attribute name="ID" type="xs:int" use="required" /> <xs:attribute name="Name" type="xs:string" /> <xs:attribute name="Description" type="xs:string" /> <xs:attribute name="LevelID" type="xs:int" use="required"> <!-- =============================================================================== RESTRICTION 4: The following restriction may be imposed if we want to limit the number of levels within the store hierarchy. The number of levels should correspond with the number of level IDs imposed by RESTRICTION 1. =============================================================================== <xs:simpleType> <xs:restriction base="xs:NMTOKEN"> <xs:enumeration value="0"/> <xs:enumeration value="1"/> <xs:enumeration value="2"/> <xs:enumeration value="3"/> </xs:restriction> </xs:simpleType> --> </xs:attribute> <xs:attribute name="ParentNodeID" type="xs:int"/> </xs:complexType> <xs:simpleType name="FillType_subtype"> <xs:restriction base="xs:string"> <xs:enumeration value="KillAndFill"/> <xs:enumeration value="FullIncremental"> <xs:annotation><xs:documentation> Usage of FullIncremental with a StoreHierarchyImport is strictly restricted to the PreloadData elements. This means only Regions, Districts and Stores can be ADDed, UPDated or DELeted via FullIncremental. No HierarchyList elements may be processed in this way. </xs:documentation></xs:annotation> </xs:enumeration> </xs:restriction> </xs:simpleType> </xs:schema>
The following is an example Store Hierarchy Import XML file.
Example C-20 StoreHierarchyImport.xml
<?xml version="1.0" encoding="UTF-8"?> <StoreHierarchy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="StoreHierarchyImport.xsd" Priority="0" FillType="KillAndFill" Version="1.0" Batch="1" CreationDate="2001-12-17T09:30:47.0Z" ExpirationDate="2027-12-17T09:30:47.0Z"> <PreloadData> <StoreRegion> <ChangeType>ADD</ChangeType> <RegionID>00001</RegionID> <RegionName>Texas</RegionName> </StoreRegion> <StoreRegion> <ChangeType>ADD</ChangeType> <RegionID>00002</RegionID> <LocalizedRegionName Name="in zh Florida" Description="in zh Florida desc" Language="zh" Country="CH"/> <LocalizedRegionName Name="in fr Florida" Language="fr" Country="FR"/> </StoreRegion> <StoreRegion> <ChangeType>ADD</ChangeType> <RegionID>00003</RegionID> <LocalizedRegionName Name="in en Louisiana" Language="en" Country="US"/> <LocalizedRegionName Name="in zh Louisiana" Language="zh" Country="CH"/> <LocalizedRegionName Name="in fr Louisiana" Language="fr" Country="FR"/> </StoreRegion> <StoreRegion> <ChangeType>ADD</ChangeType> <RegionID>00004</RegionID> <LocalizedRegionName Name="in en New Mexico" Language="en" Country="US"/> <LocalizedRegionName Name="in zh New Mexico" Language="zh" Country="CH"/> <LocalizedRegionName Name="in fr New Mexico" Language="fr" Country="FR"/> </StoreRegion> <StoreDistrict> <ChangeType>ADD</ChangeType> <DistrictID>00001</DistrictID> <RegionID>00001</RegionID> <DistrictName>Round Rock</DistrictName> </StoreDistrict> <StoreDistrict> <ChangeType>ADD</ChangeType> <DistrictID>00002</DistrictID> <RegionID>00001</RegionID> <LocalizedDistrictName Name="in zh Austin" Description="in zh Austin desc" Language="zh" Country="CH"/> <LocalizedDistrictName Name="in fr Austin" Language="fr" Country="FR"/> </StoreDistrict> <StoreDistrict> <ChangeType>ADD</ChangeType> <DistrictID>00003</DistrictID> <RegionID>00001</RegionID> <LocalizedDistrictName Name="in en Cedar Park" Language="en" Country="US"/> <LocalizedDistrictName Name="in zh Cedar Park" Language="zh" Country="CH"/> <LocalizedDistrictName Name="in fr Cedar Park" Language="fr" Country="FR"/> </StoreDistrict> <StoreDistrict> <ChangeType>ADD</ChangeType> <DistrictID>00004</DistrictID> <RegionID>00002</RegionID> <LocalizedDistrictName Name="in en Boca Raton" Language="en" Country="US"/> <LocalizedDistrictName Name="in zh Boca Raton" Language="zh" Country="CH"/> <LocalizedDistrictName Name="in fr Boca Raton" Language="fr" Country="FR"/> </StoreDistrict> <StoreDistrict> <ChangeType>ADD</ChangeType> <DistrictID>00005</DistrictID> <RegionID>00002</RegionID> <LocalizedDistrictName Name="in en Boynton Beach" Language="en" Country="US"/> <LocalizedDistrictName Name="in zh Boynton Beach" Language="zh" Country="CH"/> <LocalizedDistrictName Name="in fr Boynton Beach" Language="fr" Country="FR"/> </StoreDistrict> <StoreDistrict> <ChangeType>ADD</ChangeType> <DistrictID>00006</DistrictID> <RegionID>00004</RegionID> <LocalizedDistrictName Name="in en Lea" Language="en" Country="US"/> <LocalizedDistrictName Name="in zh Lea" Language="zh" Country="CH"/> <LocalizedDistrictName Name="in fr Lea" Language="fr" Country="FR"/> </StoreDistrict> <StoreDistrict> <ChangeType>ADD</ChangeType> <DistrictID>00007</DistrictID> <RegionID>00004</RegionID> <LocalizedDistrictName Name="in en Eddy" Language="en" Country="US"/> <LocalizedDistrictName Name="in zh Eddy" Language="zh" Country="CH"/> <LocalizedDistrictName Name="in fr Eddy" Language="fr" Country="FR"/> </StoreDistrict> <StoreDistrict> <ChangeType>ADD</ChangeType> <DistrictID>00008</DistrictID> <RegionID>00004</RegionID> <LocalizedDistrictName Name="in en Chaves" Language="en" Country="US"/> <LocalizedDistrictName Name="in zh Chaves" Language="zh" Country="CH"/> <LocalizedDistrictName Name="in fr Chaves" Language="fr" Country="FR"/> </StoreDistrict> <RetailStore> <ChangeType>ADD</ChangeType> <RetailStoreID>04241</RetailStoreID> <LocationName>Lakeline Mall</LocationName> <DistrictID>00003</DistrictID> <RegionID>00001</RegionID> <Address> <AddressID>0</AddressID> <AddressTypeCode>Other</AddressTypeCode> <AddressLine1>8876 Piney Point</AddressLine1> <AddressLine2>Suite 220A</AddressLine2> <City>Austin</City> <State>TX</State> <PostalCode>78729</PostalCode> <Country>USA</Country> </Address> </RetailStore> <RetailStore> <ChangeType>ADD</ChangeType> <RetailStoreID>04242</RetailStoreID> <LocalizedLocationName Name="in zh Barton Creek Square Mall" Description="in zh BCS Mall desc" Language="zh" Country="CH"/> <LocalizedLocationName Name="in fr Barton Creek Square Mall" Language="fr" Country="FR"/> <DistrictID>00002</DistrictID> <RegionID>00001</RegionID> <Address> <AddressID>0</AddressID> <AddressTypeCode>Other</AddressTypeCode> <AddressLine1>2901 S. Capitol of Texas Hwy</AddressLine1> <AddressLine2>Suite 60</AddressLine2> <City>Austin</City> <State>TX</State> <PostalCode>78746-8100</PostalCode> <Country>USA</Country> </Address> </RetailStore> <RetailStore> <ChangeType>ADD</ChangeType> <RetailStoreID>01291</RetailStoreID> <LocalizedLocationName Name="in en Cactus Shopping Emporium" Language="en" Country="US"/> <LocalizedLocationName Name="in zh Cactus Shopping Emporium" Language="zh" Country="CH"/> <LocalizedLocationName Name="in fr Cactus Shopping Emporium" Language="fr" Country="FR"/> <DistrictID>00001</DistrictID> <RegionID>00001</RegionID> <Address> <AddressID>0</AddressID> <AddressTypeCode>Other</AddressTypeCode> <AddressLine1>1201 Second Avenue</AddressLine1> <AddressLine2>Suite 201</AddressLine2> <City>Notrees</City> <State>TX</State> <PostalCode>79759-0002</PostalCode> <Country>USA</Country> <TelephoneAreaCode>915</TelephoneAreaCode> <TelephoneLocalNumber>2701200</TelephoneLocalNumber> </Address> </RetailStore> <RetailStore> <ChangeType>ADD</ChangeType> <RetailStoreID>01232</RetailStoreID> <LocalizedLocationName Name="in en Rattlesnake Mall" Language="en" Country="US"/> <LocalizedLocationName Name="in zh Rattlesnake Mall" Language="zh" Country="CH"/> <LocalizedLocationName Name="in fr Rattlesnake Mall" Language="fr" Country="FR"/> <DistrictID>00003</DistrictID> <RegionID>00001</RegionID> <Address> <AddressID>0</AddressID> <AddressTypeCode>Other</AddressTypeCode> <AddressLine1>1305 Pecos Highway</AddressLine1> <City>Pyote</City> <State>TX</State> <PostalCode>79777-2783</PostalCode> <Country>USA</Country> <TelephoneAreaCode>915</TelephoneAreaCode> <TelephoneLocalNumber>4313501</TelephoneLocalNumber> </Address> </RetailStore> <RetailStore> <ChangeType>ADD</ChangeType> <RetailStoreID>01445</RetailStoreID> <LocalizedLocationName Name="in en Gaines Square Mall" Language="en" Country="US"/> <LocalizedLocationName Name="in zh Gaines Square Mall" Language="zh" Country="CH"/> <LocalizedLocationName Name="in fr Gaines Square Mall" Language="fr" Country="FR"/> <DistrictID>00002</DistrictID> <RegionID>00001</RegionID> <Address> <AddressID>0</AddressID> <AddressTypeCode>Other</AddressTypeCode> <AddressLine1>10200 Airline Road</AddressLine1> <City>Odessa</City> <State>TX</State> <PostalCode>79761-0302</PostalCode> <Country>USA</Country> <TelephoneAreaCode>915</TelephoneAreaCode> <TelephoneLocalNumber>2732000</TelephoneLocalNumber> </Address> </RetailStore> <RetailStore> <ChangeType>ADD</ChangeType> <RetailStoreID>01502</RetailStoreID> <LocalizedLocationName Name="in en Horsehead Center" Language="en" Country="US"/> <LocalizedLocationName Name="in zh Horsehead Center" Language="zh" Country="CH"/> <LocalizedLocationName Name="in fr Horsehead Center" Language="fr" Country="FR"/> <DistrictID>00004</DistrictID> <RegionID>00002</RegionID> <Address> <AddressID>0</AddressID> <AddressTypeCode>Other</AddressTypeCode> <AddressLine1>1235 Main Street</AddressLine1> <City>Odessa</City> <State>TX</State> <PostalCode>79760-0552</PostalCode> <Country>USA</Country> <TelephoneAreaCode>915</TelephoneAreaCode> <TelephoneLocalNumber>2734100</TelephoneLocalNumber> </Address> </RetailStore> <RetailStore> <ChangeType>ADD</ChangeType> <RetailStoreID>02991</RetailStoreID> <LocalizedLocationName Name="in en Courthouse Square" Language="en" Country="US"/> <LocalizedLocationName Name="in zh Courthouse Square" Language="zh" Country="CH"/> <LocalizedLocationName Name="in fr Courthouse Square" Language="fr" Country="FR"/> <DistrictID>00001</DistrictID> <RegionID>00001</RegionID> <Address> <AddressID>0</AddressID> <AddressTypeCode>Other</AddressTypeCode> <AddressLine1>1207 Avenue B</AddressLine1> <City>North Zulch</City> <State>TX</State> <PostalCode>77872-0001</PostalCode> <Country>USA</Country> <TelephoneAreaCode>409</TelephoneAreaCode> <TelephoneLocalNumber>2990100</TelephoneLocalNumber> </Address> </RetailStore> <RetailStore> <ChangeType>ADD</ChangeType> <RetailStoreID>01234</RetailStoreID> <LocalizedLocationName Name="in en La Frontera" Language="en" Country="US"/> <LocalizedLocationName Name="in zh La Frontera" Language="zh" Country="CH"/> <LocalizedLocationName Name="in fr La Frontera" Language="fr" Country="FR"/> <DistrictID>00001</DistrictID> <RegionID>00001</RegionID> <Address> <AddressID>0</AddressID> <AddressTypeCode>Other</AddressTypeCode> <AddressLine1>null</AddressLine1> <City>null</City> <State>TX</State> <PostalCode>null</PostalCode> </Address> </RetailStore> <RetailStore> <ChangeType>ADD</ChangeType> <RetailStoreID>01235</RetailStoreID> <LocalizedLocationName Name="in en Lake Creek Plaza" Language="en" Country="US"/> <LocalizedLocationName Name="in zh Lake Creek Plaza" Language="zh" Country="CH"/> <LocalizedLocationName Name="in fr Lake Creek Plaza" Language="fr" Country="FR"/> <DistrictID>00001</DistrictID> <RegionID>00001</RegionID> <Address> <AddressID>0</AddressID> <AddressTypeCode>Other</AddressTypeCode> <AddressLine1>null</AddressLine1> <City>null</City> <State>TX</State> <PostalCode>null</PostalCode> </Address> </RetailStore> <RetailStore> <ChangeType>ADD</ChangeType> <RetailStoreID>01236</RetailStoreID> <LocalizedLocationName Name="in en Gateway Plaza" Language="en" Country="US"/> <LocalizedLocationName Name="in zh Gateway Plaza" Language="zh" Country="CH"/> <LocalizedLocationName Name="in fr Gateway Plaza" Language="fr" Country="FR"/> <DistrictID>00002</DistrictID> <RegionID>00001</RegionID> <Address> <AddressID>0</AddressID> <AddressTypeCode>Other</AddressTypeCode> <AddressLine1>null</AddressLine1> <City>null</City> <State>TX</State> <PostalCode>null</PostalCode> </Address> </RetailStore> <RetailStore> <ChangeType>ADD</ChangeType> <RetailStoreID>01237</RetailStoreID> <LocalizedLocationName Name="in en The Arboretum" Language="en" Country="US"/> <LocalizedLocationName Name="in zh The Arboretum" Language="zh" Country="CH"/> <LocalizedLocationName Name="in fr The Arboretum" Language="fr" Country="FR"/> <DistrictID>00002</DistrictID> <RegionID>00001</RegionID> <Address> <AddressID>0</AddressID> <AddressTypeCode>Other</AddressTypeCode> <AddressLine1>null</AddressLine1> <City>null</City> <State>TX</State> <PostalCode>null</PostalCode> </Address> </RetailStore> <RetailStore> <ChangeType>ADD</ChangeType> <RetailStoreID>01238</RetailStoreID> <LocalizedLocationName Name="in en The Crossings" Language="en" Country="US"/> <LocalizedLocationName Name="in zh The Crossings" Language="zh" Country="CH"/> <LocalizedLocationName Name="in fr The Crossings" Language="fr" Country="FR"/> <DistrictID>00002</DistrictID> <RegionID>00001</RegionID> <Address> <AddressID>0</AddressID> <AddressTypeCode>Other</AddressTypeCode> <AddressLine1>null</AddressLine1> <City>null</City> <State>TX</State> <PostalCode>null</PostalCode> </Address> </RetailStore> <RetailStore> <ChangeType>ADD</ChangeType> <RetailStoreID>02345</RetailStoreID> <LocalizedLocationName Name="in en Town Centre" Language="en" Country="US"/> <LocalizedLocationName Name="in zh Town Centre" Language="zh" Country="CH"/> <LocalizedLocationName Name="in fr Town Centre" Language="fr" Country="FR"/> <DistrictID>00003</DistrictID> <RegionID>00001</RegionID> <Address> <AddressID>0</AddressID> <AddressTypeCode>Other</AddressTypeCode> <AddressLine1>null</AddressLine1> <City>null</City> <State>TX</State> <PostalCode>null</PostalCode> </Address> </RetailStore> <RetailStore> <ChangeType>ADD</ChangeType> <RetailStoreID>02346</RetailStoreID> <LocalizedLocationName Name="in en Palmetto Mall" Language="en" Country="US"/> <LocalizedLocationName Name="in zh Palmetto Mall" Language="zh" Country="CH"/> <LocalizedLocationName Name="in fr Palmetto Mall" Language="fr" Country="FR"/> <DistrictID>00003</DistrictID> <RegionID>00001</RegionID> <Address> <AddressID>0</AddressID> <AddressTypeCode>Other</AddressTypeCode> <AddressLine1>null</AddressLine1> <City>null</City> <State>TX</State> <PostalCode>null</PostalCode> </Address> </RetailStore> <RetailStore> <ChangeType>ADD</ChangeType> <RetailStoreID>02347</RetailStoreID> <LocalizedLocationName Name="in en Boynton Mall" Language="en" Country="US"/> <LocalizedLocationName Name="in zh Boynton Mall" Language="zh" Country="CH"/> <LocalizedLocationName Name="in fr Boynton Mall" Language="fr" Country="FR"/> <DistrictID>00004</DistrictID> <RegionID>00002</RegionID> <Address> <AddressID>0</AddressID> <AddressTypeCode>Other</AddressTypeCode> <AddressLine1>null</AddressLine1> <City>null</City> <State>FL</State> <PostalCode>null</PostalCode> </Address> </RetailStore> <RetailStore> <ChangeType>ADD</ChangeType> <RetailStoreID>02348</RetailStoreID> <LocalizedLocationName Name="in en Buena Vista Plaza" Language="en" Country="US"/> <LocalizedLocationName Name="in zh Buena Vista Plaza" Language="zh" Country="CH"/> <LocalizedLocationName Name="in fr Buena Vista Plaza" Language="fr" Country="FR"/> <DistrictID>00004</DistrictID> <RegionID>00002</RegionID> <Address> <AddressID>0</AddressID> <AddressTypeCode>Other</AddressTypeCode> <AddressLine1>null</AddressLine1> <City>null</City> <State>FL</State> <PostalCode>null</PostalCode> </Address> </RetailStore> <RetailStore> <ChangeType>ADD</ChangeType> <RetailStoreID>04332</RetailStoreID> <LocalizedLocationName Name="in en Red Crow Center" Language="en" Country="US"/> <LocalizedLocationName Name="in zh Red Crow Center" Language="zh" Country="CH"/> <LocalizedLocationName Name="in fr Red Crow Center" Language="fr" Country="FR"/> <DistrictID>00006</DistrictID> <RegionID>00004</RegionID> <Address> <AddressID>0</AddressID> <AddressTypeCode>Other</AddressTypeCode> <AddressLine1>null</AddressLine1> <City>null</City> <State>NM</State> <PostalCode>null</PostalCode> </Address> </RetailStore> <RetailStore> <ChangeType>ADD</ChangeType> <RetailStoreID>04335</RetailStoreID> <LocalizedLocationName Name="in en Buckeye Mall" Language="en" Country="US"/> <LocalizedLocationName Name="in zh Buckeye Mall" Language="zh" Country="CH"/> <LocalizedLocationName Name="in fr Buckeye Mall" Language="fr" Country="FR"/> <DistrictID>00006</DistrictID> <RegionID>00004</RegionID> <Address> <AddressID>0</AddressID> <AddressTypeCode>Other</AddressTypeCode> <AddressLine1>null</AddressLine1> <City>null</City> <State>NM</State> <PostalCode>null</PostalCode> </Address> </RetailStore> <RetailStore> <ChangeType>ADD</ChangeType> <RetailStoreID>04337</RetailStoreID> <LocalizedLocationName Name="in en Monument Center" Language="en" Country="US"/> <LocalizedLocationName Name="in zh Monument Center" Language="zh" Country="CH"/> <LocalizedLocationName Name="in fr Monument Center" Language="fr" Country="FR"/> <DistrictID>00006</DistrictID> <RegionID>00004</RegionID> <Address> <AddressID>0</AddressID> <AddressTypeCode>Other</AddressTypeCode> <AddressLine1>null</AddressLine1> <City>null</City> <State>NM</State> <PostalCode>null</PostalCode> </Address> </RetailStore> <RetailStore> <ChangeType>ADD</ChangeType> <RetailStoreID>04339</RetailStoreID> <LocalizedLocationName Name="in en Caverns Center" Language="en" Country="US"/> <LocalizedLocationName Name="in zh Caverns Center" Language="zh" Country="CH"/> <LocalizedLocationName Name="in fr Caverns Center" Language="fr" Country="FR"/> <DistrictID>00007</DistrictID> <RegionID>00004</RegionID> <Address> <AddressID>0</AddressID> <AddressTypeCode>Other</AddressTypeCode> <AddressLine1>null</AddressLine1> <City>null</City> <State>NM</State> <PostalCode>null</PostalCode> </Address> </RetailStore> <RetailStore> <ChangeType>ADD</ChangeType> <RetailStoreID>04343</RetailStoreID> <LocalizedLocationName Name="in en Yucca Crossing" Language="en" Country="US"/> <LocalizedLocationName Name="in zh Yucca Crossing" Language="zh" Country="CH"/> <LocalizedLocationName Name="in fr Yucca Crossing" Language="fr" Country="FR"/> <DistrictID>00007</DistrictID> <RegionID>00004</RegionID> <Address> <AddressID>0</AddressID> <AddressTypeCode>Other</AddressTypeCode> <AddressLine1>null</AddressLine1> <City>null</City> <State>NM</State> <PostalCode>null</PostalCode> </Address> </RetailStore> <RetailStore> <ChangeType>ADD</ChangeType> <RetailStoreID>04349</RetailStoreID> <LocalizedLocationName Name="in en Chaparral Mall" Language="en" Country="US"/> <LocalizedLocationName Name="in zh Chaparral Mall" Language="zh" Country="CH"/> <LocalizedLocationName Name="in fr Chaparral Mall" Language="fr" Country="FR"/> <DistrictID>00007</DistrictID> <RegionID>00004</RegionID> <Address> <AddressID>0</AddressID> <AddressTypeCode>Other</AddressTypeCode> <AddressLine1>null</AddressLine1> <City>null</City> <State>NM</State> <PostalCode>null</PostalCode> </Address> </RetailStore> <RetailStore> <ChangeType>ADD</ChangeType> <RetailStoreID>04350</RetailStoreID> <LocalizedLocationName Name="in en Coyote Place" Language="en" Country="US"/> <LocalizedLocationName Name="in zh Coyote Place" Language="zh" Country="CH"/> <LocalizedLocationName Name="in fr Coyote Place" Language="fr" Country="FR"/> <DistrictID>00008</DistrictID> <RegionID>00004</RegionID> <Address> <AddressID>0</AddressID> <AddressTypeCode>Other</AddressTypeCode> <AddressLine1>null</AddressLine1> <City>null</City> <State>NM</State> <PostalCode>null</PostalCode> </Address> </RetailStore> <RetailStore> <ChangeType>ADD</ChangeType> <RetailStoreID>04352</RetailStoreID> <LocalizedLocationName Name="in en Goddard Mall" Language="en" Country="US"/> <LocalizedLocationName Name="in zh Goddard Mall" Language="zh" Country="CH"/> <LocalizedLocationName Name="in fr Goddard Mall" Language="fr" Country="FR"/> <DistrictID>00008</DistrictID> <RegionID>00004</RegionID> <Address> <AddressID>0</AddressID> <AddressTypeCode>Other</AddressTypeCode> <AddressLine1>null</AddressLine1> <City>null</City> <State>NM</State> <PostalCode>null</PostalCode> </Address> </RetailStore> <RetailStore> <ChangeType>ADD</ChangeType> <RetailStoreID>04357</RetailStoreID> <LocalizedLocationName Name="in en Artesia" Language="en" Country="US"/> <LocalizedLocationName Name="in zh Artesia" Language="zh" Country="CH"/> <LocalizedLocationName Name="in fr Artesia" Language="fr" Country="FR"/> <DistrictID>00008</DistrictID> <RegionID>00004</RegionID> <Address> <AddressID>0</AddressID> <AddressTypeCode>Other</AddressTypeCode> <AddressLine1>null</AddressLine1> <City>null</City> <State>NM</State> <PostalCode>null</PostalCode> </Address> </RetailStore> <RetailStore> <ChangeType>ADD</ChangeType> <RetailStoreID>03233</RetailStoreID> <LocalizedLocationName Name="in en NorthCross Mall" Language="en" Country="US"/> <LocalizedLocationName Name="in zh NorthCross Mall" Language="zh" Country="CH"/> <LocalizedLocationName Name="in fr NorthCross Mall" Language="fr" Country="FR"/> <DistrictID>00003</DistrictID> <RegionID>00001</RegionID> <Address> <AddressID>1</AddressID> <AddressTypeCode>Other</AddressTypeCode> <AddressLine1>null</AddressLine1> <City>null</City> <State>TX</State> <PostalCode>78729</PostalCode> </Address> </RetailStore> <RetailStore> <ChangeType>ADD</ChangeType> <RetailStoreID>03234</RetailStoreID> <LocalizedLocationName Name="in en Hidden Cove Plaza" Language="en" Country="US"/> <LocalizedLocationName Name="in zh Hidden Cove Plaza" Language="zh" Country="CH"/> <LocalizedLocationName Name="in fr Hidden Cove Plaza" Language="fr" Country="FR"/> <DistrictID>00003</DistrictID> <RegionID>00001</RegionID> <Address> <AddressID>1</AddressID> <AddressTypeCode>Other</AddressTypeCode> <AddressLine1>null</AddressLine1> <City>null</City> <State>TX</State> <PostalCode>78729</PostalCode> </Address> </RetailStore> <RetailStore> <ChangeType>ADD</ChangeType> <RetailStoreID>03235</RetailStoreID> <LocalizedLocationName Name="in en Limestone Court" Language="en" Country="US"/> <LocalizedLocationName Name="in zh Limestone Court" Language="zh" Country="CH"/> <LocalizedLocationName Name="in fr Limestone Court" Language="fr" Country="FR"/> <DistrictID>00003</DistrictID> <RegionID>00001</RegionID> <Address> <AddressID>1</AddressID> <AddressTypeCode>Other</AddressTypeCode> <AddressLine1>null</AddressLine1> <City>null</City> <State>TX</State> <PostalCode>78729</PostalCode> </Address> </RetailStore> </PreloadData> <HierarchyList> <Hierarchy FunctionID="1" Name="Default Hierarchy Group" > <LevelList> <Level ID="0"> <LocalizedName Name="in en root" Description="in en root desc" Language="en" Country="US"/> <LocalizedName Name="in zh root" Language="zh" Country="CH"/> <LocalizedName Name="in fr root" Language="fr" Country="FR"/> </Level> <Level ID="1" Name="Corporate" ParentID="0"> </Level> <Level ID="2" Name="Region" ParentID="1"> <LocalizedName Name="in en Region" Language="en" Country="US"/> <LocalizedName Name="in zh Region" Language="zh" Country="CH"/> <LocalizedName Name="in fr Region" Language="fr" Country="FR"/> </Level> <Level ID="3" Name="District" ParentID="2"> <LocalizedName Name="in en District" Language="en" Country="US"/> <LocalizedName Name="in zh District" Language="zh" Country="CH"/> <LocalizedName Name="in fr District" Language="fr" Country="FR"/> </Level> <Level ID="4" Name="City" ParentID="3"> <LocalizedName Name="in en City" Language="en" Country="US"/> <LocalizedName Name="in zh City" Language="zh" Country="CH"/> <LocalizedName Name="in fr City" Language="fr" Country="FR"/> </Level> </LevelList> <NodeList> <Node ID="1" LevelID="0" Name="360Commerce Hierarchy" Description="360C H desc"> </Node> <Node ID="2" LevelID="1" Name="360Enterprise" ParentNodeID="1" > <LocalizedNameDescription Name="in en 360Enterprise" Description="in en Description" Language="en" Country="US"/> <LocalizedNameDescription Name="in zh 360Enterprise" Description="in zh Description" Language="zh" Country="CH"/> <LocalizedNameDescription Name="in fr 360Enterprise" Description="in fr Description" Language="fr" Country="FR"/> </Node> <Node ID="3" LevelID="2" Name="North" ParentNodeID="2"> <LocalizedNameDescription Name="in en North" Description="in en Description" Language="en" Country="US"/> <LocalizedNameDescription Name="in zh North" Description="in zh Description" Language="zh" Country="CH"/> <LocalizedNameDescription Name="in fr North" Description="in fr Description" Language="fr" Country="FR"/> <RetailStoreId>04242</RetailStoreId> </Node> <Node ID="4" LevelID="2" Name="South" ParentNodeID="2" > <LocalizedNameDescription Name="in en South" Description="in en Description" Language="en" Country="US"/> <LocalizedNameDescription Name="in zh South" Description="in zh Description" Language="zh" Country="CH"/> <LocalizedNameDescription Name="in fr South" Description="in fr Description" Language="fr" Country="FR"/> </Node> <Node ID="5" LevelID="3" Name="New York" ParentNodeID="3" > <LocalizedNameDescription Name="in en New York" Description="in en Description" Language="en" Country="US"/> <LocalizedNameDescription Name="in zh New York" Description="in zh Description" Language="zh" Country="CH"/> <LocalizedNameDescription Name="in fr New York" Description="in fr Description" Language="fr" Country="FR"/> </Node> <Node ID="6" LevelID="3" Name="Texas" ParentNodeID="4" > <LocalizedNameDescription Name="in en Texas" Description="in en Description" Language="en" Country="US"/> <LocalizedNameDescription Name="in zh Texas" Description="in zh Description" Language="zh" Country="CH"/> <LocalizedNameDescription Name="in fr Texas" Description="in fr Description" Language="fr" Country="FR"/> </Node> <Node ID="7" LevelID="4" Name="Austin" ParentNodeID="6"> <LocalizedNameDescription Name="in en Austin" Description="in en Description" Language="en" Country="US"/> <LocalizedNameDescription Name="in zh Austin" Description="in zh Description" Language="zh" Country="CH"/> <LocalizedNameDescription Name="in fr Austin" Description="in fr Description" Language="fr" Country="FR"/> <RetailStoreId>04241</RetailStoreId> </Node> <Node ID="8" LevelID="4" Name="Dallas" ParentNodeID="6"> <LocalizedNameDescription Name="in en Dallas" Description="in en Description" Language="en" Country="US"/> <LocalizedNameDescription Name="in zh Dallas" Description="in zh Description" Language="zh" Country="CH"/> <LocalizedNameDescription Name="in fr Dallas" Description="in fr Description" Language="fr" Country="FR"/> <RetailStoreId>01291</RetailStoreId> </Node> </NodeList> </Hierarchy> </HierarchyList> </StoreHierarchy>
Table C-15 identifies the element mapping for the TaxImport.xsd file.
Table C-15 Tax Import XSD Element Mapping Table
Log/Physical table | Target | Physical Column Name | DataType | XSD Element/Attribute Path | Notes |
---|---|---|---|---|---|
GeoCodeCD_GEO |
GeoCodeID |
ID_CD_GEO |
VARCHAR(10) |
GEOCode/GeoCodeID |
NA |
TaxJurisdiction |
NM_TX_JUR |
VARCHAR(120) |
GEOCode/TaxJurisdiction |
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. |
|
GeoTax GEO_TX_JUR |
GeoCodeID |
ID_CD_GEO |
VARCHAR(10) |
GEOTax |
NA |
PostalCode |
TS_CRT_PW |
VARCHAR(30) |
GEOTax |
NA |
|
TaxAuthority PA_ATHY_TX |
TaxAuthorityID |
ID_ATHY_TX |
INTEGER |
TaxAuthority/TaxAuthorityID |
Maximum field size for INTEGER is typically NUMBER(10) to support Java INT datatype in application. |
PartyRole |
TY_RO_PRTY |
VARCHAR(20) |
<null> |
could be CITY, STATE, VAT |
|
PartyID |
ID_PRTY |
INTEGER |
select |
NA |
|
TaxAuthorityName |
NM_ATHY_TX |
VARCHAR(120) |
TaxAuthority/TaxAuthorityName |
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. |
|
RoundingCode |
SC_RND |
INTEGER |
TaxAuthority/RoundingCode |
NA |
|
RoundingDigits |
QU_DGT_RND |
DECIMAL(9,3) |
TaxAuthority/RoundingDigits |
NA |
|
RecordCreation |
TS_CRT_RCRD |
TIMESTAMP |
NOW() |
NA |
|
RecordLast |
TS_MDF_RCRD |
TIMESTAMP |
NOW() |
NA |
|
TaxJurisdictionAuthLink CO_TX_JUR_ATHY_LNK |
GeoCodeID |
ID_CD_GEO |
VARCHAR(10) |
TaxAuthority/GeoCodeID |
NA |
TaxAuthorityID |
ID_ATHY_TX |
INTEGER |
TaxAuthority/TaxAuthorityID |
NA |
|
TaxableGroup CO_GP_TX_ITM |
TaxGroupID |
ID_GP_TX |
INTEGER |
TaxableGroup/TaxGroupID |
Maximum field size for INTEGER is typically NUMBER(10) to support Java INT datatype in application. |
TaxGroupName |
NM_GP_TX |
VARCHAR(120) |
TaxableGroup/TaxGroupName |
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. |
|
RecieptPrintCode |
CD_RCV_PRT |
INTEGER |
TaxableGroup/ReceiptPrintCode |
NA |
|
TaxGroup |
DE_GP_TX |
VARCHAR(250) |
TaxableGroup/TaxGroup |
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. |
|
RecordCreation |
TS_CRT_RCRD |
TIMESTAMP |
NOW() |
NA |
|
RecordLast |
TS_MDF_RCRD |
TIMESTAMP |
NOW() |
NA |
|
PartyPA_PRTY |
PartyID |
ID_PRTY |
INTEGER |
TaxAuthority. |
Same value from select statement above. |
PartyLegal |
LU_ORG_LG |
VARCHAR(20) |
Tax |
NA |
|
PartyTypeCode |
TY_PRTY |
VARCHAR(20) |
"JURISDICTION" |
NA |
|
AddressLO_ADS |
AddressID |
ID_STR_RT |
INTEGER |
0 |
NA |
AddressTypeCode |
ID_DPT_POS |
VARCHAR(30) |
TAX ADDRESS |
NA |
|
PartyID |
ID_PRTY |
INTEGER |
TaxAuthority. |
Same value from select statement above. |
|
AddressLine1 |
A1_CNCT |
VARCHAR(240) |
TaxAuthority/AddressLine |
NA |
|
AddressLine2 |
A2_CNCT |
VARCHAR(240) |
No mapping available |
NA |
|
AddressLine3 |
A3_CNCT |
VARCHAR(240) |
No mapping available |
NA |
|
City |
CI_CNCT |
VARCHAR(30) |
TaxAuthority/City |
NA |
|
State |
ST_CNCT |
VARCHAR(30) |
TaxAuthority/State |
NA |
|
PostalCode |
PC_CNCT |
VARCHAR(30) |
TaxAuthority/PostalCode |
NA |
|
Country |
CO_CNCT |
VARCHAR(30) |
TaxAuthority/CountryCode |
NA |
|
TaxTypePA_TY_TX |
TaxTypeID |
TY_TX |
INTEGER |
TaxGroupRule/TaxTypeID |
NA |
TaxTypeName |
NM_TY_TX |
VARCHAR(30) |
TaxGroupRule/TaxTypeName |
NA |
|
TaxGroupRule RU_TX_GP |
TaxAuthorityID |
ID_ATHY_TX |
INTEGER |
TaxGroupRule/TaxAuthorityID |
NA |
TaxGroupID |
ID_GP_TX |
INTEGER |
TaxGroupRule/TaxGroupID |
NA |
|
TaxType |
TY_TX |
INTEGER |
TaxGroupRule/TaxTypeID |
NA |
|
TaxHolidayFlag |
FLG_TX_HDY |
CHAR(1) |
TaxGroupRule/TaxHolidayFlag |
false=0, true=1 |
|
TaxRuleName |
NM_RU_TX |
VARCHAR(120) |
TaxGroupRule/TaxRuleName |
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. |
|
TaxRule |
DE_RU_TX |
VARCHAR(250) |
TaxGroupRule/TaxRule |
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. |
|
Compound |
AI_CMPND |
SMALLINT |
TaxGroupRule/CompoundRate |
NA |
|
TaxOnGross |
FL_TX_GS_AMT |
CHAR(1) |
TaxGroupRule/TaxOnGross |
false=0, true=1 |
|
CalculationMethodCode |
CD_CAL_MTH |
INTEGER |
TaxGroupRule/CalculationMethodCode |
LineItem=1 |
|
TaxRateRuleUsageCode |
CD_TX_RT_RU_USG |
INTEGER |
TaxGroupRule/TaxRateRuleUsageCode |
PercentageOr |
|
InclusiveTaxFlag |
FL_TX_INC |
CHAR(1) |
TaxGroupRule/InclusiveTaxFlag |
NA |
|
RecordCreation |
TS_CRT_RCRD |
TIMESTAMP |
NOW() |
NA |
|
RecordLast |
TS_MDF_RCRD |
TIMESTAMP |
NOW() |
NA |
|
TaxRateRule RU_TX_RT |
TaxAuthorityID |
ID_ATHY_TX |
INTEGER |
TaxGroupRule/TaxAuthorityID |
NA |
TaxGroupID |
ID_GP_TX |
INTEGER |
TaxGroupRule/TaxGroupID |
NA |
|
TaxType |
TY_TX |
INTEGER |
TaxGroupRule/TaxTypeID |
NA |
|
TaxHolidayFlag |
FLG_TX_HDY |
CHAR(1) |
TaxGroupRule/TaxHolidayFlag |
NA |
|
TaxRateRuleSequenceNumber |
AI_TX_RT_RU |
SMALLINT |
Element position (First element = 1). If not specified, defaults to 1. |
NA |
|
TypeCode |
CD_TYP |
INTEGER |
TaxGroupRule/TaxRateRule/RateTypeCode |
Percentage=1 Amount=2 |
|
TaxPercentage |
PE_TX |
DECIMAL(8,5) |
TaxGroupRule/TaxRateRule/TaxPercentageRate |
NA |
|
TaxAmount |
MO_TX |
DECIMAL(8,2) |
TaxGroupRule/TaxRateRule/TaxAmount |
NA |
|
TaxAbove |
FL_TX_ABV_TH_MO |
CHAR(1) |
TaxGroupRule/TaxRateRule/TaxAboveThresholdAmountFlag |
TaxAbove TaxEntire |
|
TaxThreshold |
MO_TX_TH |
DECIMAL(8,2) |
TaxGroupRule/TaxRateRule/ThresholdAmount |
NA |
|
Minimum |
MO_TXBL_MIN |
DECIMAL(8,2) |
TaxGroupRule/TaxRateRule/Minimum |
NA |
|
MaximumTaxableAmount |
MO_TXBL_MAX |
DECIMAL(8,2) |
TaxGroupRule/TaxRateRule/MaximumTaxableAmount |
NA |
|
TaxRateEffectiveTimestamp |
TS_RT_TX_EF |
TIMESTAMP |
TaxGroupRule/TaxRateRule/TaxRateEffectiveTimestamp |
NA |
|
TaxRateExpirationTimestamp |
TS_RT_TX_EP |
TIMESTAMP |
TaxGroupRule/TaxRateRule/TaxRateExpirationTimestamp |
NA |
|
RecordCreation |
TS_CRT_RCRD |
TIMESTAMP |
NOW() |
NA |
|
RecordLast |
TS_MDF_RCRD |
TIMESTAMP |
NOW() |
NA |
The following is an example Tax Import XSD file.
Example C-21 TaxImport.xsd
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:include schemaLocation="../common.xsd"></xs:include> <xs:element name="TaxImport" type="TaxImport_type"> <xs:annotation><xs:documentation> Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. XML Schema for data import of Tax Information. For Oracle Retail Store and Enterprise Applications. Contains Tax Authorities, Taxable Groups, Tax Rules and Rates data. </xs:documentation></xs:annotation> </xs:element> <xs:complexType name="TaxImport_type"> <xs:sequence> <xs:element name="GEOCode" type="GEOCode_type" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="GEOTaxJurisdiction" type="GEOTaxJurisdiction_type" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="TaxAuthority" type="TaxAuthority_type" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="TaxableGroup" type="TaxableGroup_type" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="TaxGroupRule" type="TaxGroupRule_type" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="FillType" type="FillType_subtype" use="required" fixed="KillAndFill"/> <xs:attribute name="CreationDate" type="xs:dateTime"/> <xs:attribute name="ExpirationDate" type="xs:dateTime"/> <xs:attribute name="Version" type="xs:string"/> <xs:attribute name="Priority" type="xs:int"/> <xs:attribute name="Batch" type="xs:int"/> </xs:complexType> <xs:complexType name="TaxAuthority_type"> <xs:sequence> <xs:element name="TaxAuthorityID" type="xs:integer"/> <xs:element name="TaxAuthorityName" type="xs:string"/> <xs:element name="RoundingCode"> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="RoundingDigitsQuantity" type="xs:integer" minOccurs="0"/> <xs:element name="AddressLine" type="xs:string"/> <xs:element name="City" type="xs:string"/> <xs:element name="State" type="xs:string"/> <xs:element name="PostalCode" type="xs:string"/> <xs:element name="CountryCode" type="xs:string"/> <xs:element name="GeoCodeID" type="xs:string" maxOccurs="unbounded"/> <xs:element name="JurisdictionTypeCode" type="xs:string"> <xs:annotation><xs:documentation> When a store is set up to use US Sales Tax and the Oracle Merchandising Application, JurisdictionTypeCode with be sent to ReSA as the TaxCode. </xs:documentation></xs:annotation> </xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="TaxableGroup_type"> <xs:sequence> <xs:element name="TaxGroupID" type="xs:integer"/> <xs:element name="TaxGroupName" type="xs:string" minOccurs="1" maxOccurs="1"/> <xs:element name="TaxGroupDescription" type="xs:string"/> <xs:element name="ReceiptPrintCode" type="xs:integer" minOccurs="0"/> <xs:element name="LocalizedTaxGroupNameDescription" type="LocalizedNameDescription_type" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> </xs:complexType> <xs:complexType name="TaxGroupRule_type"> <xs:sequence> <xs:element name="TaxAuthorityID" type="xs:integer"/> <xs:element name="TaxGroupID" type="xs:string"/> <xs:element name="TaxTypeID" type="xs:integer"/> <xs:element name="TaxTypeName" type="xs:string" minOccurs="0"> <xs:annotation><xs:documentation> When a store is set up to use VAT and the Oracle Merchandising Application, TaxTypeName with be sent to ReSA as the TaxCode. </xs:documentation></xs:annotation> </xs:element> <xs:element name="TaxHolidayFlag" type="xs:boolean"/> <xs:element name="TaxRuleName" type="xs:string"/> <xs:element name="TaxRuleDescription" type="xs:string"/> <xs:element name="CompoundRateSequenceNumber" type="xs:integer" minOccurs="0"/> <xs:element name="TaxOnGrossAmountFlag" type="xs:boolean" minOccurs="0"/> <xs:element name="CalculationMethodCode" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:NMTOKEN"> <xs:enumeration value="LineItem"/> <xs:enumeration value="Transaction"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="TaxRateRuleUsageCode"> <xs:simpleType> <xs:restriction base="xs:NMTOKEN"> <xs:enumeration value="PercentageOrAmount"/> <xs:enumeration value="DeriveFromTaxTable"/> <xs:enumeration value="UseThresholdAmount"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="InclusiveTaxFlag" type="xs:boolean"/> <xs:element name="TaxRateRule" type="TaxRateRule_type" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> <xs:complexType name="TaxRateRule_type"> <xs:sequence> <xs:element name="RateTypeCode" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:NMTOKEN"> <xs:enumeration value="Percentage"/> <xs:enumeration value="Amount"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:choice> <xs:element name="TaxAmount" type="Amount_type"/> <xs:element name="TaxPercentageRate"> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:fractionDigits value="5"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:choice> <xs:element name="TaxAboveThresholdAmountFlag" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:NMTOKEN"> <xs:enumeration value="TaxAboveThresholdAmount"/> <xs:enumeration value="TaxEntireAmount"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ThresholdAmount" type="Amount_type" minOccurs="0"/> <xs:element name="TaxRateEffectiveTimestamp" type="xs:dateTime" minOccurs="0"/> <xs:element name="TaxRateExpirationTimestamp" type="xs:dateTime" minOccurs="0"/> <xs:element name="MinimumTaxableAmount" type="Amount_type" minOccurs="0"/> <xs:element name="MaximumTaxableAmount" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:fractionDigits value="2"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="GEOCode_type"> <xs:sequence> <xs:element name="GeoCodeID" type="xs:string"/> <xs:element name="TaxJurisdictionName" type="xs:string"/> </xs:sequence> </xs:complexType> <xs:complexType name="GEOTaxJurisdiction_type"> <xs:sequence> <xs:element name="GeoCodeID" type="xs:string"/> <xs:element name="PostalCode" type="xs:string"/> </xs:sequence> </xs:complexType> <xs:simpleType name="FillType_subtype"> <xs:restriction base="xs:string"> <xs:enumeration value="KillAndFill"/> </xs:restriction> </xs:simpleType> </xs:schema>
The following is an example Tax Import XML file.
Example C-22 TaxImport.xml
<?xml version="1.0" encoding="UTF-8"?> <TaxImport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="TaxImport.xsd" Priority="0" FillType="KillAndFill" Version="1.0" Batch="1" CreationDate="2001-12-17T09:30:47.0Z" ExpirationDate="2027-12-17T09:30:47.0Z"> <GEOCode> <GeoCodeID>0015</GeoCodeID> <TaxJurisdictionName>Austin Tax Jurisdiction</TaxJurisdictionName> </GEOCode> <GEOTaxJurisdiction> <GeoCodeID>0015</GeoCodeID> <PostalCode>78759</PostalCode> </GEOTaxJurisdiction> <TaxAuthority> <TaxAuthorityID>4440</TaxAuthorityID> <TaxAuthorityName>Updated Bubba's Tax Authority</TaxAuthorityName> <RoundingCode>4</RoundingCode> <RoundingDigitsQuantity>3</RoundingDigitsQuantity> <AddressLine>Updated 2538 Elm St.</AddressLine> <City>Updated Houston</City> <State>Updated Texas</State> <PostalCode>78777</PostalCode> <CountryCode>USA</CountryCode> <GeoCodeID>0015</GeoCodeID> <JurisdictionTypeCode>CITY</JurisdictionTypeCode> </TaxAuthority> <TaxableGroup> <TaxGroupID>444</TaxGroupID> <TaxGroupName/> <TaxGroupDescription>Tax Group 444 description</TaxGroupDescription> </TaxableGroup> <!-- Sample Tax Group Rule using Tax Percentage Rate --> <TaxGroupRule> <TaxAuthorityID>4440</TaxAuthorityID> <TaxGroupID>444</TaxGroupID> <TaxTypeID>111</TaxTypeID> <TaxTypeName>Tax Type 111</TaxTypeName> <TaxHolidayFlag>false</TaxHolidayFlag> <TaxRuleName>Updated Cigarette Tax Rule</TaxRuleName> <TaxRuleDescription>Updated Cigarette Tax Rule</TaxRuleDescription> <CompoundRateSequenceNumber>0</CompoundRateSequenceNumber> <TaxOnGrossAmountFlag>false</TaxOnGrossAmountFlag> <CalculationMethodCode>LineItem</CalculationMethodCode> <TaxRateRuleUsageCode>PercentageOrAmount</TaxRateRuleUsageCode> <InclusiveTaxFlag>true</InclusiveTaxFlag> <TaxRateRule> <RateTypeCode>Percentage</RateTypeCode> <TaxPercentageRate>10.99</TaxPercentageRate> </TaxRateRule> </TaxGroupRule> </TaxImport>