Setting Up Automatic Maintenance Processing

This chapter provides an overview of the Automatic Maintenance Application Engine process (AR_AUTOMNT) and discusses how to:

Note. This chapter is required. You must complete the tasks discussed in this chapter to implement automatic maintenance processing.

Click to jump to parent topicUnderstanding the Automatic Maintenance Process

The Automatic Maintenance process is a PeopleSoft Enterprise Application Engine process that matches debit items to credit items. The process is useful when you want to automatically match items with the same amounts or when you want to automatically close deductions and disputed items.

The process places the items that meet your matching criteria in match groups unless they are already selected in a worksheet, such as the payment or maintenance worksheet. A match group must contain at least one debit item and one credit item, but it can contain multiple debit and credit items.

You create automatic maintenance methods that define the rules for matching the items, and specify which method to use for each business unit or when you run the process.

The process:

See Also

Understanding Multicurrency Processing

Reviewing Item Activity for a Match Group

Write-Off Tolerances

Click to jump to parent topicSetting Up Automatic Maintenance Methods

To set up automatic maintenance methods, use the Automatic Maintenance Method component (AUTOMNT_METHOD) .

This section provides an overview of automatic maintenance methods and discusses how to:

Click to jump to top of pageClick to jump to parent topicUnderstanding Automatic Maintenance Methods

Automatic maintenance methods define rules for matching debits and credits and for handling remaining balances for each match group. The Automatic Maintenance process uses the method that you assign to the business unit for processing unless you override the method for all business units on the Automatic Maintenance run control page.

Each method contains a series of steps that the process executes sequentially. For each step, you specify:

You select one of these matching instructions for each step:

For the first two instructions, you define the action that the process takes based on the remaining balance for the match group. The system populates the actions for the last instruction and you cannot change them. You also define whether to put the match group or write-off on a maintenance worksheet.

Designing Methods Based on Reference Values

It is essential that you have a thorough understanding of how your organization tracks reference information on credit items when you create your automatic maintenance methods.

Ideally, the methods that you define enable the Automatic Maintenance process to match the majority of your debits and credits and to write off the remaining balances, leaving only the exceptions to be matched or written off using the maintenance worksheet. The trick is to fit your methods to the way that your business processes populate reference information.

Place the steps that produce the greatest number of matches at the beginning of the automatic maintenance method. For example, if you are creating a method to resolve deductions, and the majority of your customers provide the claim number in the Claim Number field when they take the deduction, and you also enter it in the Claim Number field when you create the credit memo, use the Claim Number field in the first step.

As you work with methods during implementation, you will probably change them until you find the most efficient way to match items.

Click to jump to top of pageClick to jump to parent topicPages Used to Set Up Automatic Maintenance Methods

Page Name

Definition Name

Navigation

Usage

Method Summary

AUTOMNT_METHOD

Set Up Financials/Supply Chain, Product Related, Receivables, Credit/Collections, Automatic Maintenance Methods, Method Summary

Add a new automatic maintenance method or view a summarized list of the steps in an existing method.

Method Detail

AUTOMNT_STEP

Set Up Financials/Supply Chain, Product Related, Receivables, Credit/Collections, Automatic Maintenance Methods, Method Detail

Define the steps that the Automatic Maintenance process performs when you run a method.

Click to jump to top of pageClick to jump to parent topicIdentifying Automatic Maintenance Methods

Access the Method Summary page. (Select Set Up Financials/Supply Chain, Product Related, Receivables, Credit/Collections, Automatic Maintenance Methods, Method Summary.)

Method

Displays the unique code that identifies the automatic maintenance method.

Steps

The Steps grid displays a list of all the steps in the automatic maintenance method. When you first add a new method, the list is blank.

Step

Displays the step number. The process performs the steps in sequential order.

Option

Displays the type of task that the step performs. Values are:

Match: Matches the values in a field for a debit item to the value in a field for a credit item.

Algorithm: Matches or creates a write-off based on the algorithm that you selected.

Write-Off: Writes off debit or credit items that the process did not previously match that have an amount that is less than the defined tolerances for either the business unit, customer, or automatic maintenance reason associated with the automatic entry type for the write-off item, such as Write off a Debit or Write off a Credit.

Debit Field

Displays the field whose value you are matching for debit items.

Operator

Displays the operator that the process uses to match the items. Values are:

=: Creates exact matches.

LIKE: Creates partial matches.

Credit Field

Displays the field whose value you are matching for credit items.

Algorithm Group ID

Displays the name of the Application Engine section that the process runs for the step.

Click to jump to top of pageClick to jump to parent topicDefining Automatic Maintenance Method Details

Access the Method Detail page. (Set Up Financials/Supply Chain, Product Related, Receivables, Credit/Collections, Automatic Maintenance Methods, Method Detail.)

Steps

When the Automatic Maintenance process runs, it examines each debit item and performs the steps in the method in sequential order. The system automatically assigns the Step number.

Select one of these options for each step:

Match References

Matches the values in a field in a debit item to a value in a field in a credit item. For example, it could match the invoice for a debit item with the document ID for a credit item. When you select this option, you must specify the match criteria.

Execute Algorithm

Performs matching and write-offs defined in a Application Engine section. Each section is an algorithm group and each step in the section is an algorithm. The Automatic Maintenance process executes the actions based on the results of the algorithm.

When you select this option, you must enter the name of the algorithm group in the Group field. Select a user-defined algorithm or select the system-defined #OLDEST algorithm, which matches all debits and credits in oldest first order by due date.

See Defining Automatic Maintenance Algorithm Groups.

No Match Write-off

Writes off debit or credit items not matched by the previous steps that have an amount that is less than the tolerances that you defined.

When you select this option, select the Entry Type and Entry Reason for the items that you want to write off. For example, enter DED for the entry type to write off deduction items. When you create entry reasons for an entry type, you might want to create an entry reason for a small amount, such as 5.00 USD. When you create an item, such as a deduction, assign the entry reason for small amounts to the item. Enter the entry reason for small amounts in the Entry Reason field.

If you want to write off both debits and credits, you need to create two separate steps.

Note. If you select No Match Write-Off for a step, the Automatic Maintenance process does not check the percentage tolerance, because the percentage will always be 100.

If you selected Match References, specify the criteria for creating a match.

Debit Field

Enter the field whose values you want to match in debit items.

Operator

Select the operator to use for matching. Values are:

=: Creates exact matches.

LIKE: Creates partial matches, including values that begin with the same characters or numbers. For example, the process would match a debit whose reference ID is 123 to a credit whose reference ID is 12345, or it would match a debit whose reference ID is 12345 with a credit whose reference information ID is 123. However, it will not match 12345 to 12378.

If you want to create both exact and partial matches, enter one step to create exact matches and one to create partial matches. Because like matches also retrieve exact matches, always precede a Like match step with an Exact match step.

Credit Field

Enter the field whose values you want to match in credit items.

You can match values in the following fields in the Item table (PS_ITEM) for either the debit or credit items. The field for the credit does not have to be the same field as the debit. Select from these values: AR Specialist, Bill of Lading, Broker ID, Carrier ID, Claim Number, Class of Trade, Collector, Contract number, Credit Analyst, Item Balance (open amount), Division, Document ID, Family, Invoice, Item ID, Major Classification, Order No, Open Amount, Promotion/Merchandising, Proof of Delivery, Purchase Order Reference, Sales Person, Sales Person 2, or User 1 through User 10.

Customer Level

You can expand match groups to include items across all customers in a customer group. Select the customer level to use when creating match groups. Values are:

C: Corporate customer group.

N: No customer relationships considered. This is the default value.

R: Remit from customer group.

Match Type

Specify how the process does the matching. Select one of these values:

All: Places all items that meet the matching criteria in one match group.

One to One: Matches only one debit to only one credit in a match group. If the matching criteria creates a match group with more than one debit or credit, the process does not match them. Matches debit and credit items of the same amount for a customer as long as the amounts are unique. For example, if you select Item Balance as the matching criteria in both the Debit Field and the Credit Field, and there are two 1,000.00 USD debits and one 1,000.00 USD credit, it does not match the items.

Exclude Deduction Items

Select to exclude deduction items from matching when processing the step.

Exclude Dispute Items

Select to exclude disputed items from matching when processing the step.

Exclude Other Debit Items

Select to exclude all items other than deduction and disputed items from matching when processing the step.

Step Order

The buttons in the Step Order group box move a step up or down in the method. Place the steps that produce the greatest number of matches at the beginning of the method.

Conditions and Actions

If you select Match References or Execute Algorithm, you must select an action for each condition. Each step includes five remaining balance conditions.

If you select No Match Write-off, the system defines the conditions and actions, and you cannot change them. However, you can specify whether you want to place the write-off items on a worksheet.

Remaining Balance

Displays the condition for the remaining balance for a match group. Values are:

= 0: The remaining balance is zero.

> 0, within tolerance: The remaining balance is greater than zero and meets the write-off tolerances.

> 0, over tolerance: The remaining balance is greater than zero and exceeds the write-off tolerances.

< 0, within tolerance: The remaining balance is less than zero and meets the write-off tolerances.

< 0, over tolerance: The remaining balance is less than zero and exceeds the write-off tolerances.

Note. You define the write-off tolerances for each business unit and override them for individual customers or for the automatic maintenance reason that you assign to the automatic entry types associated with these system functions: Write-off a Credit (MT-02), Write-off a Debit (MT-03), Write-off Remaining Credit (MT-06), and Write-off Remaining Debit (MT-07).

See Defining General Options.

Action

Select the action that you want the process to perform based on the remaining balance for the group. Values are:

Resolve: The process matches the entire amount of the items. Select this when the balance is zero.

Resolve, write off balance: The process matches the items and creates a write-off item for the amount of the remaining balance. Select when the remaining balance is within tolerances.

Resolve, Create new item: The process matches and closes the items and creates a new item (either an MD or MC item) for the difference between the balances of the matched items.

For example, if the process matches debit items totaling $200 to credit Items totaling -$145, the items are closed and a new MD item is created for $55. If the process matches debit items totaling $200 to credit items totaling -$233, the items are closed and a new MC item is created for -$33.

Resolve, Item balance open:The process matches the items and closes the items with the smaller total absolute amount. The process also closes the items with the larger total absolute amount, except for the item with the latest due date, which remains open with a balance equal to the difference between the two amounts. The process does not create a new item.

For example, the process matches debit items totaling $200 to credit Items totaling -$145, the credit items are closed, and the debit items are closed, except for the debit item with the latest due date, which remains open with a balance of $55.

Note. If you select the No Match Write-off button, the Resolve, Item balance open actions are not available for selection.

Release to next step: The process does not match the items. The debit and credit items are available for processing in the next step. Select for either a zero balance or a remaining balance.

Important! If you use PeopleSoft Promotions Management, you should not create automatic maintenance methods that write off the balance for a match group, because the promotion information will not be updated correctly in PeopleSoft Promotions Management.

Worksheet

Select to place the match group on a maintenance worksheet for online review. The worksheet displays the match groups and suggested write-off items or remaining open amounts. You can accept the results or make manual adjustments before posting the maintenance group.

Note. You can select Worksheet only for a Resolve, write off balance action for a No Match Write-Off step.

Click to jump to top of pageClick to jump to parent topicViewing a Sample Automatic Maintenance Method

We provide several sample methods in the sample database for you to review before you design your own methods. The following sections provide an example of a automatic maintenance method. The example:

The example has four steps. Each step considers the remaining balance for the match group and provides an action based on the balance.

Note. You may want to have several steps that exactly or partially match different references, because not all of your customers supply the same reference information.

Step 1 - Exact Match on the Open Amount

Step 1 provides instructions on creating a match group for each set of debit and credit items that have a unique open amount as well as instructions on resolving each group. For example, the open amount for a debit is 999.00 CAN and the open amount for a credit is –999.00 CAN. Each match group is set to post. You want to match items—except exception items—for all customers associated with the remit from customer.

To create these instructions:

  1. Select Match References and enter the following matching criteria:

    Debit Field

    Select Item Balance.

    Operator

    Select =.

    Credit Field

    Select Item Balance.

    Customer Level

    Select R.

    Match Type

    Select One to One.

  2. Select Exclude Deduction Items and Exclude Dispute Items.

  3. Select an action for each condition.

    You must select Resolve when the remaining balance = 0. You can select any action for the other conditions, because the remaining balance is always zero for this matching criteria and none of the other conditions apply.

  4. Deselect the Worksheet check box.

Step 2 - Exact Match of a Reference Value

Step 2 provides instructions for the Automatic Maintenance process to take if the value in the Document field for the deduction item is exactly the same as the value in the Document field for a credit item. The process matches items for all customers associated with the remit from customer.

To create these instructions:

  1. Select Match References and enter the following matching criteria:

    Debit Field

    Select Document ID.

    Operator

    Select =.

    Credit Field

    Select Document ID.

    Customer Level

    Select R.

    Match Type

    Select All.

  2. Select Exclude Dispute Items and Exclude Other Debit Items.

  3. Enter the parameters for each condition as shown in this table:

    Remaining Balance

    Action

    Worksheet

    = 0

    Resolve

    Clear to post the match group.

    > 0, within tolerance

    Resolve, write off balance

    Clear to post the match group.

    > 0, over tolerance

    Resolve, leave balance open

    Select to review the match group on a maintenance worksheet.

    < 0, within tolerance

    Resolve, write off balance

    Clear to post the match group.

    < 0, over tolerance

    Resolve, leave balance open

    Select to review the match group on a maintenance worksheet.

Step 3 - Partial Match of a Reference Value

Step 3 provides instructions to take if the value in the Document field for a deduction partially matches the value in the Document field for a credit item. The process matches items for all customers associated with the remit from customer.

To create these instructions:

  1. Select Match References and enter the following matching criteria:

    Debit Field

    Select Document ID.

    Operator

    Select Like.

    Credit Field

    Select Document ID.

    Customer Level

    Select R.

    Match Type

    Select All.

  2. Select Exclude Dispute Items and Exclude Other Debit Items.

  3. Enter the parameters for each condition as shown in this table:

    Remaining Balance

    Action

    Worksheet

    = 0

    Resolve

    Clear to post the match group.

    > 0, within tolerance

    Resolve, write off balance

    Select to review the match group on a maintenance worksheet.

    > 0, over tolerance

    Resolve, leave balance open

    Select to review the match group on a maintenance worksheet.

    < 0, within tolerance

    Resolve, write off balance

    Select to review the match group on a maintenance worksheet.

    < 0, over tolerance

    Resolve, leave balance open

    Select to review the match group on a maintenance worksheet.

Step 4 - No Match Write-Off

Step 4 provides instructions to take if the value in the Document field for a deduction does not match the value in the Document field for any credit items, when the entry reason for the deduction is SMALL. The write-offs will not be placed on a worksheet. Use this instruction when an item amount is too low to make investigating the open balance worthwhile.

To create these instructions:

  1. Select No Match Write-Off.

  2. Select Exclude Dispute Items and Exclude Other Debit Items.

  3. Enter the entry type code for deductions, such as DED, in the Entry Type field.

  4. Enter SMALL in the Reason field.

Click to jump to parent topicDefining Automatic Maintenance Algorithm Groups

This section provides an overview of automatic maintenance algorithm groups and discusses how to add a new algorithm group.

Click to jump to top of pageClick to jump to parent topicUnderstanding Automatic Maintenance Algorithm Groups

The Automatic Maintenance process uses algorithm groups to match debit items to credit items. When you implement the Automatic Maintenance process, you must create custom algorithm groups from scratch, if you need to use them. For example, you might include a step in your automatic maintenance method that matches the values in two debit item fields to the values in two credit item fields, because you want to match debit items to credit items by matching the invoice number and the purchase order number in both items.

An algorithm group is a section in a Application Engine program. You need to be familiar with Structured Query Language (SQL) and with creating Application Engine processes to write a custom algorithm group.

We provide a sample algorithm group, called #SAMPLE1, in the sample database. The algorithm group matches a debit item to a credit item when the invoice number and the purchase order number are the same in both the debit and the credit item. The algorithm group contains two steps, and each step contains one SQL statement. The sample provides an example of an exact match. However, you can also design your algorithms to create a partial or LIKE match.

This text is the SQL statement for the DEBITS step in the #SAMPLE1 section:

%InsertSelect(MT_ITEM_TAO, MT_ITMOPN_TAO, CORPORATE_SETID = SETID, CORPORATE_CUST_ID = CUST_ID, MATCH_GROUP_ID = %BIND(AUTOMNT_METHOD) %CONCAT %NumToChar(%BIND(STEP_NUM)) %Concat %Upper(INVOICE) %CONCAT %Upper(PO_⇒ REF), AUTOMNT_METHOD = %Bind(AUTOMNT_METHOD), STEP_NUM = %Bind(STEP_NUM), DR_AMT = BAL_AMT, CR_AMT = 0, DR_CNT = 1, CR_CNT = 0, ITEM_AMT = BAL_AMT, ITEM_AMT_BASE = BAL_AMT_BASE, ENTRY_USE_ID = 'MT-01') FROM %Table(MT_ITMOPN_TAO) WHERE PROCESS_INSTANCE = %ProcessInstance AND BAL_AMT > 0 AND INVOICE <> ' ' AND PO_REF <> ' ' %Bind(AE_WHERE, NOQUOTES)

This text is the SQL statement for the CREDITS step in the #SAMPLE1 section:

%InsertSelect(MT_ITEM_TAO, MT_ITMOPN_TAO, CORPORATE_SETID = SETID, CORPORATE_CUST_ID = CUST_ID, MATCH_GROUP_ID = %BIND(AUTOMNT_METHOD) %CONCAT %NumToChar(%BIND(STEP_NUM)) %Concat %Upper(INVOICE) %CONCAT %Upper(PO_⇒ REF), AUTOMNT_METHOD = %Bind(AUTOMNT_METHOD), STEP_NUM = %Bind(STEP_NUM), DR_AMT = 0, CR_AMT = BAL_AMT, DR_CNT = 0, CR_CNT = 1, ITEM_AMT = BAL_AMT, ITEM_AMT_BASE = BAL_AMT_BASE, ENTRY_USE_ID = 'MT-01') FROM %Table(MT_ITMOPN_TAO) WHERE PROCESS_INSTANCE = %ProcessInstance AND BAL_AMT < 0 AND INVOICE <> ' ' AND PO_REF <> ' ' %Bind(AE_WHERE, NOQUOTES)

You can copy the SQL that we provide in the DEBITS and CREDITS steps to the steps in your algorithm groups, but you must change the WHERE statement as needed. You must also change the values for INVOICE and PO_REF in the SELECT statement to the appropriate field values that you want to match.

If you are creating an algorithm group to write off items not matched in previous steps, create algorithm groups by copying the SQL in the DEBITS and CREDITS steps in the WRITEOFF section and modifying the WHERE statements.

Click to jump to top of pageClick to jump to parent topicAdding a New Algorithm Group

Use PeopleSoft Enterprise Application Designer to add a new algorithm group to the Automatic Maintenance process. All custom sections must begin with #, such as #CUSTOM.

There are two ways to add a new algorithm group:

We recommend copying whenever possible, because it saves you time.

See Also

Enterprise PeopleTools PeopleBook: PeopleSoft Application Engine