
Transcription
Oracle Transportation ManagementKewill Flagship Parcel Rate RequestsIntegration GuideRelease 6.4.2Part No. E81541-01December 2016
Copyright NoticeOracle Transportation Management Kewill Flagship Parcel Rate Requests Integration Guide, Release6.4.2Part No. E81541-01Copyright 2010, 2016, Oracle and/or its affiliates. All rights reserved.This software and related documentation are provided under a license agreement containingrestrictions on use and disclosure and are protected by intellectual property laws. Except as expresslypermitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate,broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in anyform, or by any means. Reverse engineering, disassembly, or decompilation of this software, unlessrequired by law for interoperability, is prohibited.The information contained herein is subject to change without notice and is not warranted to be errorfree. If you find any errors, please report them to us in writing.If this is software or related documentation that is delivered to the U.S. Government or anyonelicensing it on behalf of the U.S. Government, then the following notice is applicable:U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integratedsoftware, any programs installed on the hardware, and/or documentation, delivered to U.S.Government end users are "commercial computer software" pursuant to the applicable FederalAcquisition Regulation and agency-specific supplemental regulations. As such, use, duplication,disclosure, modification, and adaptation of the programs, including any operating system, integratedsoftware, any programs installed on the hardware, and/or documentation, shall be subject to licenseterms and license restrictions applicable to the programs. No other rights are granted to the U.S.Government.This software or hardware is developed for general use in a variety of information managementapplications. It is not developed or intended for use in any inherently dangerous applications, includingapplications that may create a risk of personal injury. If you use this software or hardware indangerous applications, then you shall be responsible to take all appropriate fail-safe, backup,redundancy, and other measures to ensure its safe use. Oracle Corporation and its affiliates disclaimany liability for any damages caused by use of this software or hardware in dangerous applications.Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may betrademarks of their respective owners.Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARCtrademarks are used under license and are trademarks or registered trademarks of SPARCInternational, Inc. AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks orregistered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group.This software or hardware and documentation may provide access to or information about content,products, and services from third parties. Oracle Corporation and its affiliates are not responsible forand expressly disclaim all warranties of any kind with respect to third-party content, products, andservices unless otherwise set forth in an applicable agreement between you and Oracle. OracleCorporation and its affiliates will not be responsible for any loss, costs, or damages incurred due toyour access to or use of third-party content, products, or services, except as set forth in an applicableagreement between you and Oracle.Documentation AccessibilityFor information about Oracle's commitment to accessibility, visit the Oracle Accessibility Programwebsite at http://www.oracle.com/pls/topic/lookup?ctx acc&id docacc.Access to Oracle SupportOracle customers that have purchased support have access to electronic support through My OracleSupport. For information, visit http://www.oracle.com/pls/topic/lookup?ctx acc&id info or visithttp://www.oracle.com/pls/topic/lookup?ctx acc&id trs if you are hearing impaired.Copyright 2010, 2016, Oracle and/or its affiliates. All rights reserved.iii
ContentsCOPYRIGHT NOTICE . IIICONTENTS. IVSEND US YOUR COMMENTS . VIPREFACE . VIICHANGE HISTORY . VII1. INSTALL FLAGSHIP . 1-12. SET UP FLAGSHIP . 2-1LOCATIONS . 2-1CARRIERS/SERVICES . 2-13. SETUP BASE ORACLE TRANSPORTATION MANAGEMENT . 3-1LOCATIONS . 3-1ORDER RELEASES. 3-1SERVICE PROVIDERS/CARRIERS . 3-1RATE SERVICE/CARRIER SERVICE LEVEL . 3-2DHL CANADA TO USA RATING . 3-34. RATING . 4-1SETTING UP TO INVOKE FLAGSHIP FROM A RATE OFFERING . 4-1RATE OFFERING TYPE . 4-1RATE OFFERING . 4-1RATE RECORD . 4-1SAMPLE RATE INQUIRY . 4-1SETTING UP TO INVOKE FLAGSHIP FROM A RATE COST . 4-2RATE OFFERING TYPE . 4-2RATE OFFERING . 4-2RATE RECORD COST . 4-2UNDERSTANDING RATE RESPONSES . 4-2CALCULATING DISCOUNTS . 4-35. ACCESSORIALS. 5-1HAZMAT. 5-46. RATING ENGINE FATAL EXCEPTION . 6-17. APPENDIX: SUPPORTED CARRIER SERVICE CODES . 7-1DHL U.S ORIGIN: CARRIER CODE “DHL” . 7-1FEDEX U.S. ORIGIN: CARRIER CODE “FDX” . 7-2GENERIC RATED OR NON-RATED – LTL: CARRIER CODE “GEN” . 7-3UPS U.S. ORIGIN: CARRIER CODE “UPS” . 7-3ivCopyright 2010, 2016, Oracle and/or its affiliates. All rights reserved.
U.S. POSTAL SERVICE U.S. ORIGIN: CARRIER CODE “USPS”. 7-4UPS SUPPLY CHAIN SOLUTIONS (SCS) US ORIGIN: CARRIER CODE “EMRY” . 7-5PUROLATOR (LEGACY) CA ORIGIN: CARRIER CODE “PURO” . 7-6FEDEX SMARTPOST US ORIGIN: CARRIER CODE “SPO” . 7-6CZAR - USING SMC3 RATEWARE SERVER: CARRIER CODE “CZAR” . 7-6DHL CANADA CA ORIGIN: CARRIER CODE “DHCA” . 7-7BAX GLOBAL US ORIGIN: CARRIER CODE “BAX” . 7-7UPS CANADA CA ORIGIN: CARRIER CODE “UPCA” . 7-8TNT UK: CARRIER CODE “TNTUK” . 7-98. APPENDIX: CERTIFIED CARRIER LIST AND SUPPORT DETAIL . 8-1Copyright 2010, 2016, Oracle and/or its affiliates. All rights reserved.v
Send Us Your CommentsOracle Transportation Management Kewill Flagship Parcel Rate Requests Integration Guide, Release6.4.2Part No. E81541-01Oracle welcomes your comments and suggestions on the quality and usefulness of this publication.Your input is an important part of the information used for revision. Did you find any errors? Is the information clearly presented? Do you need more information? If so, where? Are the examples correct? Do you need more examples? What features did you like most about this manual?If you find any errors or have any other suggestions for improvement, please indicate the title andpart number of the documentation and the chapter, section, and page number (if available). You cansend comments to us in the following ways: Electronic mail: otm-doc [email protected] you have problems with the software, contact Support at https://support.oracle.com or find theSupport phone number for your region at ight 2010, 2016, Oracle and/or its affiliates. All rights reserved.
PrefaceThis guide provides instructions and simple examples that demonstrate how to set up rates andextract costs for parcel mode shipments via Oracle Transportation Management to Kewill Flagshipexternal rating engine link.Change HistoryDateDocument RevisionSummary of Changes12/2016-01Initial release.Copyright 2010, 2016, Oracle and/or its affiliates. All rights reserved.vii
1. Install FlagshipFollow the instructions provided by Kewill to install Flagship on a machine. This machine should beconnected to the same network as the application server to minimize communications performancebottlenecks.Once Flagship is installed, you will need to define the Oracle Transportation Management propertiesthat specify the communication information. For example:glog.RatingEngine.Kewill.URL otm-kewillglog.RatingEngine.Kewill.port 1200Copyright 2010, 2016, Oracle and/or its affiliates. All rights reserved.1-1
2. Set Up FlagshipLocationsAt least one shipper location should be created. This will correspond to the origin location of shipmentscreated and rated within Oracle Transportation Management. You will assign a code to this locationwithin Flagship, referred to as the CUSTNUM (customer number, but you can use letters). Ex:PHILAPA. In Flagship itself, this will be referred to as the Shipper ID when you add the customer.Carriers/ServicesOnce a customer location has been created in Flagship, you must install one or more supportedcarriers and services. Each carrier you install for a particular location must be assigned a carrier code.This is a code that should be unique to the carrier for this location. When you install a carrier, you willbe given the opportunity to select which services are supported.Copyright 2010, 2016, Oracle and/or its affiliates. All rights reserved.2-1
3. Setup Base Oracle Transportation ManagementOracle Transportation Management and Flagship are orthogonal solutions to similar problems withvastly different implementations and points of view. Oracle Transportation Management is built tohandle multi-modal transportation and generic costing solutions, and Flagship is designed to solve acustomer-centric problem of consolidated parcel-mode shipping. This makes interfacing between thetwo products a little particular.LocationsThe first and most important thing to understand is that all shipments rated via the OracleTransportation Management-Flagship combination must originate at a location that corresponds to acustomer location setup in Flagship. This is done by identifying the Flagship CUSTNUM using a speciallocation reference number. The reference number qualifier is user-definable and is specified by theglobal property: glog.RatingEngine.Kewill.RefnumQual. Using the example CUSTNUM seen in theSet Up Flagship section, it would be:glog.RatingEngine.kewill.RefnumQual KEWILL SFCUSTNUMOrder ReleasesAs of 6.1.4, it is possible to specify the SFCUSTNUM on the order release using the same referencenumber qualifier ID as was used on the location. If the SFCUSTNUM is specified here, it willautomatically override the SFCUSTNUM (if any) found on the origin location. In addition, OracleTransportation Management will now take advantage of Kewill's ability (post v4.0) to rate usingorigin address components that are not directly related to SFCUSTNUM.If a shipment originates at a location without a CUSTNUM reference number and an override is notfound on the order release, the rate request will fail and be flagged as infeasible.Note: If an order is from DHL Canada to USA, then ‘KEWILL EXPORT REASON’ Refnumneed to be added with one of the possible values (Permanent (p),Temporary (T), ReExport(R)). This Refnum is added in Shipment Refnums as well as in Order ReleaseRefnums.Service Providers/CarriersThe concept of a Carrier in Flagship is nearly equivalent to the Service Provider in OracleTransportation Management. The difference is a matter of scope. A carrier is a specific subset ofOracle Transportation Management service providers. A service provider that can act as a carrier forKewill-based rating must be explicitly identified as such. This is done by assigning carrier codes (seethe Service Providers/Carriers section) to a service provider alias using the following alias IDs:“KEWILL GLOBAL CARRIER CODE” and 'KEWILL CARRIER CODE'. The 'KEWILL CARRIER GLOBAL ID'records the actual name of the carrier as listed in the table below (ex:TNT,UPS,FDX) while ‘KEWILLCARRIER CODE’ records the value as configured in Kewill Flagship (please see below screen shot).Example: If ‘TNT’ is the actual carrier associated with the carrier code ‘TNTUK’, then in the carrier datasetup, the user will need to define ‘TNT’ as the ‘KEWILL CARRIER GLOBAL ID’ and ‘TNTUK’ as the‘KEWILL CARRIER CODE’.Carrier NameKewill Carrier CodeKewill Global Carrier CodeDHLDHLDHEUCopyright 2010, 2016, Oracle and/or its affiliates. All rights reserved.3-1
FexExFDXFDXUPSUPSUPSU.S.Postal ServiceUSPSUSPSBAX GlobalBAXBAXDHL CanadaDHCADHCAUPS CanadaUPSCUPSCTNT UKTNTUKTNTUPS SCSUPSSCEMRYPurolatorPURLPURLRate Service/Carrier Service LevelEach carrier installed in Flagship can provide one or more parcel services. For example, UPS providesstandard Ground delivery service, Next Day Air, Second Day, etc. In Oracle TransportationManagement, carrier service levels correspond to rate services, which are user-configurable and canbe assigned to a contract-level rate offering or a geographical rate record. Rate services in OracleTransportation Management specify exactly how to calculate the amount of time it takes for ashipment to travel from its origin to its destination, with stops along the way. When defining a rate forFlagship, it is necessary to pass a code that specifies the requested service level for the shipmentbeing rated. These codes are pre-defined by Kewill. The code for UPS Next Day Air, for example, isNDA. For UPS Ground, it is GND. For USPS Priority Mail, it is PRTY. (The full list of codes can be foundat the end of this document).There is a one-to-one relationship between Oracle Transportation Management Rate Services andFlagship Service Levels. There is no need to use a secondary attribute of rate service to associate witha Flagship service, so you can define these services directly in Oracle Transportation Management. Themost important restriction is that the rate service ID absolutely must match the desired Flagshipservice level. This is illustrated in the screenshot below.In addition, Flagship has the ability to calculate and return to Oracle Transportation Management theexpected pickup and delivery dates for certain carrier service levels, thus allowing OracleTransportation Management to skip this calculation itself. To do this, you must specify a rate servicetype of TIMEDEFINITESERVICE.Note: The TIMEDEFINITESERVICE should not be used in scenarios where applying stoptimes and re-driving of the shipment is required, since the re-drive logic dies not supportTIMEDEFINITESERVICE.Some carriers do not provide expected pickup and delivery dates for all service levels. For thesecarrier/service level combinations, an alternate rate service type should be selected, such asSIMULATION or LOOKUP. Check with Flagship Support for an up-to-date listing of these carrier/servicelevel combinations.Carriers3-2Domestic Rate ServiceInternational Rate ServiceCopyright 2010, 2016, Oracle and/or its affiliates. All rights reserved.
CarriersDomestic Rate ServiceInternational Rate OOKUPLOOKUPTNTNot SupportedLOOKUPDHL Canada to USA RatingFor DHL Canada to USA rating, it is necessary to pass an Export Reason Code to the rating engine.This can be done by using the order release and setting the mQual to KEWILL EXPORT REASON. Additionally, youneed to configure the refnum (KEWILL EXPORT REASON) at Order Release level to one of thefollowing values (P,T,R) - (Permanent, Temporary, Re-Export). No support from Rate Inquiry.Copyright 2010, 2016, Oracle and/or its affiliates. All rights reserved.3-3
4. RatingThis section will discuss how to set up basic rating information, using the previous section’s locations,carriers, and rate services, to invoke and extract costs and time of service information from Flagship.In Oracle Transportation Management 6.1, there are different ways to invoke an external engine. Inprevious versions of Oracle Transportation Management, external engines could only be invoked asthe major part of the contract-level rate offering structure. Only the SMC external rating engine wasavailable for use at this level. It is now possible to invoke an external rating engine as part of thecalculation of a standard rate cost, including the ability to impose shipment data-based conditions. Asimple example of each will be provided below.Setting Up to Invoke Flagship from a Rate OfferingThis simplest way to invoke Flagship is from a rate offering. This is very similar to how OracleTransportation Management invokes SMC Rateware, also done from a rate offering.Rate Offering TypeAll rating calculations are controlled by an entity called the rate offering type. A rate offering type istwo sets of attributes that describe the characteristics and the main calculations performed by therating engine. For example, a standard TL rate may require stop off charges, accessorial costcalculations, and standard costing. Rate offering types are not going to be discussed in detail here,beyond what is necessary to setup the invocation of Flagship. To invoke Flagship from a rate offeringtype, only one attribute is needed: EXTERNALRATINGENGINE. The attribute must be specified in therate offering type’s main attribute list, and in the costing sequence.Rate OfferingWhen setting up the rate offering type, the correct service provider must be chosen, along with thecorrect rate service and rate offering type. On the Oracle Transportation Management rate offeringAttributes page, the Kewill Flagship external rating engine is chosen.On the Attributes page, select the Kewill external rating engine:On this page, choose the internal representation of a package on a shipment. You can choose torepresent a package using either ship units or ship unit lines.Rate RecordThe rate record’s geography must at least accommodate the location that is associated with thecustomer location defined in Flagship.Sample Rate InquiryThe following rate inquiry (RIQ) shows an example of how a rate can be retrieved from Flagship usingthe sample setup described in the previous sections. The origin location must be one of the supportedlocations created in Flagship and flagged with the appropriate location refnum (KEWILL SFCUSTNUM)in Oracle Transportation Management. The destination can be anywhere supported by the carrier.Three dimensions and weight must be specified for each package (defined by ship units in thisexample). A ship unit count greater than 1 indicates multiple packages represented by a single line.These packages will be rated on an individual basis.Copyright 2010, 2016, Oracle and/or its affiliates. All rights reserved.4-1
In addition to package information, one can specify each package as hazmat using Is Hazardous,Package Item ID, and Hazmat Item ID attributes. The working of hazmat request depends on theparameter called ‘Run Hazmat Qualification Process’.Flagship has the ability to calculate many different accessorial costs that can then be returned anddisplayed separately from the base shipment cost. Oracle Transportation Management currentlysupports few of these accessorials. These are discussed in the Accessorials section of this document.Setting Up to Invoke Flagship from a Rate CostThere are occasions when a rate will require calculations to be retrieved from an external source (suchas Flagship), and then combined with additional calculations done within Oracle TransportationManagement. When this is necessary, external engines can be invoked from a rate cost.Rate Offering TypeThe rate offering type must include the GRID rate attribute, the ACCESSORIALS rate attribute, orboth. EXTERNALRATINGENGINE should NOT be included in this case, since you are not invoking theexternal engine from the rate offering.This rate offering type instructs the Oracle Transportation Management rating engine to performcalculations using both rate costs and accessorial costs (if any). Rate costs are defined on the raterecord.Rate OfferingThe only important difference in this example is that the Kewill external rating engine is not chosen onthe attributes page.Rate Record CostA cost must be created and added to the rate record that invokes the external rating engine. Theengine is chosen in much the same way as seen earlier on the rate offering Attributes tab in the RateManager. First, you must select External from the Cost Type dropdown. Then, you select whichexternal rating engine to invoke. In this case, the only option is Kewill.Note: When invoking Flagship from a rate cost, it is not possible to retrieve the calculatedpickup and delivery dates, so the Rate Service must not be defined using theTIMEDEFINITESERVICE rate service type.Understanding Rate ResponsesBecause Oracle Transportation Management and Kewill Flagship capture costs differently, there is aspecific mapping required between applications. Individual costs are identified by API keys inFlagship’s response. These keys are mapped and combined within Oracle Transportation Managementto present this data in a familiar format. Below is a summary of these API keys and their associatedcalculations:4-2 CALCFREIGHT represents the total shipment cost. This includes all costs and applicablediscounts associated with the shipment. FREIGHT represents the Base Cost (B). Accessorial Costs are either anticipated or unanticipated.Copyright 2010, 2016, Oracle and/or its affiliates. All rights reserved.
Anticipated accessorials are the API keys which are defined as part of a Kewill charge tokenset and are recognized in Oracle Transportation Management using the planning parameterKEWILL CHARGE TOKEN SET. These accessorials (A) are: CUSTOMS CLEARANCE CHRG,DRYICE CHRG/DRY ICE CHRG/ DRYICECHRG, FUELCHG, SATPICKCHG, DECVALCHG,HAZCHG, SATDLVYCHG, CHG ADD HNDL, CHG DLVY AREA, CHG DLVY CONF, CODFEE,EXTAREA CHG, HST SURCHARGE, AVN INS CHARGE, DIRECT CHG, DROP CHG,NAV CANADA CHARGE and CHG RESIDENTIAL. Any anticipated accessorials which have notbeen manually mapped in the Kewill charge token set to an accessorial code by the user willdisplay in Oracle Transportation Management with a cost type of OTHER (O). Unanticipated accessorials are those which are not specifically requested by OracleTransportation Management however they are returned by Flagship. These costs arecalculated as remaining costs (uncategorized costs). These costs, if not mapped to anaccessorial code, are captured as other costs with a cost type of OTHER (O).The remaining (uncategorized) costs are included in the CALCFREIGHT key and is calculatedby Oracle Transportation Management’s rating logic.This relationship can be expressed as follows:Remaining( Uncategorized ) Costs CALCFREIGHT – [FREIGHT (B) Accessorial Costs (A) Other Costs (O)]Calculating DiscountsAll costs returned from Flagship reflect any applicable discounts. If you want to see a summary ofcalculated discounts in Oracle Transportation Management, set the following property to tWith this property set to true, a shipment’s freight cost will be adjusted upward to simulate a “prediscounted” cost, then a separate discount cost line will appear with the discount amount. Finally theshipment’s total cost will match the CALCFREIGHT cost received from Kewill.Presently, this feature is only available for the carrier FEDEX, as Flagship only returns a discount keyfor this carrier. For this carrier, the API key for discounts is called TOTDISCOUNT. Again, because alldiscounts are already reflected in the costs returned from Flagship, the TOTDISCOUNT key is onlyreturned for reference. The calculation for remaining costs (including discounts) can be expressed asfollows:Remaining (Uncategorized) Costs CALCFREIGHT – [ FREIGHT(B) Accessorial Charges (A) OtherCosts (O) Discount (negative)]Copyright 2010, 2016, Oracle and/or its affiliates. All rights reserved.4-3
5. AccessorialsFlagship has the ability to calculate many different types of accessorial costs. Oracle TransportationManagement can recognize and support some of these accessorial costs. In order to betterunderstand the accessorial costs returned from Flagship, OTM provides the ability to map Flagshipcodes to OTM accessorial codes.The API keys which represent these accessorials returned by Flagship are represented in OracleTransportation Management as Kewill charge tokens. A list of Kewill charge tokens supported byOracle Transportation Management can be viewed on the user interface via Contract and RateManagement Power Data Rates and Codes Kewill Charge Tokens.KeyShortDescriptionDescriptionAVN INS CHARGEAviation insurancesurchargeThis accessorial is automatically calculated if theappropriate carrier and service is specified.CHG ADD HNDLAdditionalhandling chargeThis accessorial may be automatically calculatedand returned by Flagship. The choice is madeaccording to the parameters of the shipmentbeing rated and is entirely up to the carrier. Ifthe carrier does not automatically calculate thischarge, but the shipper needs the charges to becalculated, it can be requested by assigning theaccessorial code to the order release.CHG DLVY AREAExtended deliveryarea chargeThis accessorial must be requested by theshipment. In order to do this, it must have anassigned accessorial code, and that accessorialcode must be assigned to the order beingplanned or included in the accessorial codes listof an RIQ query.CHG DLVY CONFDeliveryconfirmationchargeThis accessorial must be requested by theshipment. In order to do this, it must have anassigned accessorial code, and that accessorialcode must be assigned to the order beingplanned or included in the accessorial codes listof an RIQ query.CHG RESIDENTIALResidential areadelivery chargeResidential delivery charges are often treateddifferently by different carriers. Some carrierswill calculate and return it as an accessorial cost,while others will calculate a different base costusing a residential vs. commercial tariff. In allcases, the Oracle Transportation Managementdestination location determines whether thedelivery address is residential or commercial.This is then passed into Flagship for appropriatetreatment. It is not necessary to explicitlyrequest the charge calculation. The key whichrepresents this charge is CHG RESIDENTIAL.Copyright 2010, 2016, Oracle and/or its affiliates. All rights reserved.5-1
COD FEECollect on deliveryfeeThis accessorial is automatically calculated if theappropriate carrier and service is specified.CUSTOMS CLEARANCE CHRGCustomsclearance chargeThis accessorial is automatically calculated if theappropriate carrier and service is specified. If nocode is assigned, the cost will be returned with acost type of OTHER. The key which representsthis charge is CUSTOMS CLEARANCE CHRG.DECVALCHGDeclared valuechargeThis accessorial must be requested by theshipment. In order to do this, it must have anassigned accessorial code, and that accessorialcode must be assigned to the order beingplanned or included in the accessorial codes listof an RIQ query. In addition, th
3. Setup Base Oracle Transportation Management Oracle Transportation Management and Flagship are orthogonal solutions to similar problems with vastly different implementations and points of view. Oracle Transportation Management is built to handle multi-modal transportation and generic costing solutions, and Flagship is designed to solve aFile Size: 563KBPage Count: 54Explore furtherOTM Shipment Management Data Structure - Oracle OTMwww.oracle-otm.comOracle Transportation Management Cloudwww.oracle.comOracle Transportation Management Integrating Oracle .docs.oracle.comOracle Transportation Managementdocs.oracle.comTransportation Management - Oraclewww.oracle.comRecommended to you b