Sunday, February 28, 2010

Currency Default using defaulting Rules

Default USD Currency in Order Management for ABC Customers in ABC Operating Unit.
Define defaulting rules to determine the source and prioritization for defaulting order information to reduce the amount of information you must enter manually in the Sales Orders window.
You can create rules to determine the source and prioritization for defaulting order information to the Sales Orders window. Modifications to defaulting rules take effect for any new orders when you reopen the window
A defaulting rule is a value that OM automatically places in an order field of the sales order window. Defaulting rules reduce the amount of information one must enter. A defaulting rule is a collection of defaulting sources for objects and their attributes.

A defaulting rule includes these components:

Defaulting Conditions-Defaulting conditions are evaluated at run time to select the appropriate default source assignments of for all the object attributes
Sequence: the priority in which you want to retrieve the default for this attribute.
Source:
Entity
: a region on the window
Attribute: individual fields of a particular entity.
Value: a constant defaulting value instead of a field that contains a value.
Defaulting Source/Value - Profile Option, constant value.
Responsibility: Order Management Super User
Navigation: Setup > Rules > Defaulting

Query for the Application: Order Management
Entity: Order Header











Put the Cursor on the attribute: Customer and click Defaulting Condition Template













Enter the Validation Temple Condition Name : CN USD Customers
Description : Canadian Customer Invoiced in USD
Enter the Validation Rules
Group#:1
Attribute: Customer
Validation Operation: =
Click Value String and enter the sold to customer (Note the customer#)
Defaulting Flex Field is displayed .
Put the Cursor on the attribute: Currency and click Attribute Defaulting Rule
Defaulting Condition:
Precedence:1
Defaulting Condition: Canada US Customers
Defaulting sourcing rule:
Sequence:1
Source Type: Constant Value
Default Source/Value: USD

Save the form and run the Generate Defaulting handler Package (Tools > Generate Defaulting Handler Package) a note is displayed as given below and a Default Generator concurrent job is run.
.












you will get a message given below click OK













click OK you will get a note message given blow:

click OK













Create a Order of the customer default currency will CAN as soon you enter the customer# in the order form the currency changes to USD.