SO Customer Balance Function

Object SORTCB
Class Transaction
Method(s) Post
Functional Area Sales Orders Primary Posting
Version released SYSPRO 8 2021 R1

Functionality

The SO Customer Balance Function business object forms part of a suite of business objects that lets you correct imbalances between the active orders in SYSPRO and records held in the ArCustomer table.

It leverages the latest calculated figures posted to the SorCustomerBal table by the SO Customer Balances Query business object to perform the correction function in the ArCustomer table.

It does this by querying the SorCustomerBal table for the latest RunDateTime entry which is used to obtain all the customer figures calculated for that balance run and updating the ArCustomer table with the correct OutstOrdVal, NumOutstOrd, RelOrdOsValue figures.

The business object also compares the postings to the SorCustomerBal table during the balance query (ArCusOutstOrdVal, ArCusNumOutstOrd and ArCusRelOrdOsValue) against the current actual values in the ArCustomer table (OutstOrdVal, NumOutstOrd, RelOrdOsValue).

The balance correction is aborted if any discrepancies are encountered and a log of the changes are posted to the SorCustomerBalFix table

Prerequisites

This business object can only be accessed using the Health Check Correction Control business object and selecting the option to balance Customer SO value.

Input XML

The SORTCB.XML and SORTCB.XSD files indicate the parameters schema and an instance of an XML document for this business object.

The SORTCBDOC.XML and SORTCBDOC.XSD files indicate the schema and an instance of an XML document for this business object.

Output XML

The SORTCBOUT.XML indicates a sample of the XML returned by this business object.

Sample files