Set Default Values for Shipping Methods

You can use an order management extension to specify the default value that Order Management uses to set the Shipping Method attribute when you create a sales order.

Assume you must set the default value for the Shipping Method attribute according to the Sold-to Party attribute. You will implement this condition:

If the Sold-to Party is Computer Service and Rentals, then set the Shipping Method to USPS Air Express.

For details, see Import Shipping Method.

Summary of the Setup

  1. Get values for your attributes.

  2. Create an extension.

  3. Test your setup.

Get Values for Your Attributes

  1. Go to the Order Management work area and create a sales order.

    Attribute

    Value

    Customer

    Computer Service and Rentals

  2. Add the AS54888 item to an order line, then set the value on the line.

    Attribute

    Value

    Shipping Method

    USPS Air Express

  3. Click Save, then notice the order number. In this example, assume its 521495.

  4. Do an SQL.

    SELECT SOLD_TO_PARTY_ID ,
    source_order_number ,
    order_number ,
    CARRIER_ID ,
    SHIP_MODE_OF_TRANSPORT,
    SHIP_CLASS_OF_SERVICE
    FROM doo_headers_all
    & ORDER_NUMBER='521495'
    ORDER BY creation_Date DESC;
    

    For details, see Use SQL to Query Order Management Data.

    Assume the query returns these values.

    Attribute

    Value

    SHIP_MODE_OF_TRANSPORT

    119

    SHIP_CLASS_OF_SERVICE

    145

    CARRIER_ID

    43061

    SOLD_TO_PARTY_ID

    300000001469001

Create an Extension

Create an extension that uses the values your query returned to set the shipping method according to the If condition described earlier in this topic. For some similar example code, see the Set the Default Value for Ship-To Address According to Business Unit subtopic in Extend Shipping.

Test Your Setup

  1. Create a sales order.

    Attribute

    Value

    Customer

    Computer Service and Rentals

  2. Verify that Order Management automatically set the value.

    Attribute

    Value

    Shipping Method

    USPS Air Express

Consider the Request Type

Promising attempts to fulfill the sales order within the requested date or with minimal delay when it promises the order according to the attributes that you set.

If You Set the Request Type Attribute on the Order Line To

Then Promising Tries to Match The

Ship On, or if you set the PromisingType attribute to Ship in a web service payload

Scheduled ship date with the requested ship date.

Promising uses the default shipping method because the method doesn't affect whether Promising can promise the order on time or with minimal delay.

Arrive On, or if you set the PromisingType attribute to Arrival in a web service payload

Scheduled arrival date with the requested arrival date.

If Promising can't meet the requested arrival date or can't promise with minimal delay, then it uses the fastest shipping method.

Note

If you specify the shipping method on the order line, then Promising uses that method.

You must manage the transit time for each shipping method that you create between a source and a destination.

  1. Go to the Setup and Maintenance work area, then go to the task:
    • Offering: Manufacturing and Supply Chain Materials Management
    • Functional Area: Carriers and Transit Times
    • Task: Manage Transit Times
  2. Collect your changes. For details, see Collect Planning Data for Order Management.

For details, see Set Default Values for Shipping Methods. For details about the Global Order Promising web service, go to REST API for Oracle Supply Chain Management Cloud, expand Order Management > Global Order Promising.