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 2.
Figure 2. Shipping Calculation Process
|
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:
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 8.
Table 8. ShippingCost - Quote (Siebel Output) Integration Components
|
|
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:
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
- In Siebel Tools, lock the EAI Credit Card project.
- Select the Business Service object.
- Query for Ship*.
The Shipping Cost Service (eScript) business service appears.
- Right-click Shipping Cost Service (eScript), and then choose Edit Server Scripts.
The server script editor appears.
- Edit the scripts, and then close the edit window.
- Compile the .srf file, selecting the Locked projects radio button.
|