Siebel eSales Administration Guide > Setting Up Siebel eSales >

Setting Up Shipping Charge Calculations for Siebel eSales


Shipping charges are calculated for quotes as part of the checkout process of Siebel eSales. Siebel eScripts are used for the calculations and have been provided as templates. You modify the scripts to reflect your shipping processes.

Shipping Calculation Process Workflow

The Shipping Calculation Process workflow is shown in Figure 1.

Figure 1. Shipping Calculation Process
Click for full size image

When the Shipping Calculation Process workflow is called by the eSales - Complete Checkout Process workflow (eSales - Complete Checkout Process), the following events happen:

  • The EAI Siebel Adapter business service passes Siebel data to the Shipping Cost Service (eScript) business service, using the business service method argument SiebelMessage.
  • The Siebel eScripts in the Shipping Cost Service business service calculate the shipping charges based on the cost, the carrier, and the shipping method.
  • The EAI Siebel Adapter business service passes the results to the Siebel database, using the business service method argument SiebelMessage.

Business Services

Two business services are used as part of the Shipping Calculation Process workflow, one of them twice:

  • EAI Siebel Adapter, in step 1: Get data from Siebel and step 3: Write data into Siebel
  • Shipping Cost Service (eScript), in step 2: Calculate Shipping Cost

    The call to the Shipping Cost Service (eScript) business service sets the business service method argument values shown in Table 5.

    Table 5. Business Service Method Argument Values
    Business Service Method Argument
    Value

    MapName

    CalculateShippingCost

    SiebelMessage

    SiebelMessage is what is passed back and forth between the business service and the workflow. It contains the input and output information in a structured format.

    Input Integration Object Name

    If you want to use this business service for another business component, you must create a new input integration object and define its value here. The value should match the equivalent value for the business service in the workflow.

    Output Integration Object Name

    If you want to use this business service for another business component, you must create a new output integration object and define its value here. The value should match the equivalent value for the business service in the workflow.

Integration Objects

Integration objects are used to pass static or dynamic values to business services. The architecture is modular in that you can create and use different integration objects for the same core business service.

Shipping charge calculation uses the following integration objects:

  • ShippingCost - Quote (Siebel Output). Its integration components are shown in Table 6.
    Table 6. ShippingCost - Quote (Siebel Output) Integration Components
    Integration Component
    Fields

    Quote

    Account Id

    Carrier Priority

    Currency Code

    Current Quote Ship To City

    Current Quote Ship To Country

    Current Quote Ship To Postal Code

    Current Quote Ship To State

    Quote Number

    Shipping Method

    Quote Item

    Line Total

    Part Number

    Quantity

    Sales Product Flag

  • ShippingCost - Quote (Siebel Input). Its integration component is Quote, with the following fields:
    • Freight
    • Quote Number

For more information on integration objects, see Integration Platform Technologies: Siebel Enterprise Application Integration and Using Siebel Tools.

Business Service Scripts

The following scripts are used in the Shipping Cost Service (eScript) business service:

  • (declarations). This script sets the following values—Lower Ranges, Upper Ranges, Base Costs, and Rates. It associates the Type of carrier, Priority of the service, and Cost of the service.
  • CalculateShippingCost. This script calculates the shipping cost based upon the information passed from the quote and the other scripts in the business service.
  • GetShippingMethodCost. This script determines the shipping method and shipping carrier costs to use.
  • GetShippingRate. This script determines what shipping rate to use.

For more information on business services, see Using Siebel Tools.

Modifying Shipping Charge Calculations

You customize shipping charge calculations in Siebel Tools by modifying the scripts that make up the Shipping Cost Service (eScript) business service.

For more information on Siebel eScripts, see Siebel Tools Online Help.

To modify shipping charge calculations

  1. In Siebel Tools, lock the EAI Credit Card project.
  2. Select the Business Service object.
  3. Query for Ship*.

    The Shipping Cost Service (eScript) business service appears.

  4. Right-click Shipping Cost Service (eScript), and then choose Edit Server Scripts.

    The server script editor appears.

  5. Edit the scripts, and then close the edit window.
  6. Compile the .srf file, selecting the Locked projects radio button.
Siebel eSales Administration Guide Copyright © 2007, Oracle. All rights reserved.