Periodic Average Costing Account Generation Extension

The Periodic Average Costing Account Generation Extension lets you provide alternative accounts.

Processing

Cost Management calls the Account Generation extension each time a transaction is processed by the Periodic Distributions Processor.

Return Values of Function

When this extension is called, the application determines if it has been implemented, and returns a value accordingly. The return values are as follows:

Writing Account Generation Extensions for Periodic Average Costing

Cost Management provides a template package and function for account generation extension for Periodic Average Costing. The name of the template package is CSTPAPHK.

Print the following files before you begin writing Periodic Average Costing Account extensions. The files are located in the Cost Management patch/115/sql directory.

Package Function for Periodic Average Costing Account Generation client extension get_account_id

The following table lists the parameters for Account Generation extension that provide alternate accounts in Periodic Average Costing.

Parameter Usage Type Description
I_TXN_ID IN NUMBER Transaction Identifier
I_LEGAL_ENTITY IN NUMBER Legal Entity Identifier
I_COST_TYPE_ID IN NUMBER Cost Type being processed
I_COST_GROUP_ID IN NUMBER Cost Group being processed
I_DR_FLAG IN BOOLEAN Flag indicating if this is the debit line
I_ACCT_LINE_TYPE IN NUMBER Accounting Line Type
I_COST_ELEMENT_ID IN NUMBER Cost Element Identifier
I_RESOURCE_ID IN NUMBER Resource Identifier
I_SUBINV IN VARCHAR2 Subinventory on the transaction
I_EXP IN BOOLEAN Expense or Asset identifier
O_Err_Num OUT NUMBER Output Error Number
O_Err_Code OUT VARCHAR2 Output Error Code - can be any SQL error code
O_Err_Msg OUT VARCHAR2 Output Error Message

Additional Information About Parameters

Debit/Credit

The valid values of i_dr_flag are as follows and indicate whether the accounting entry is a debit or a credit:

Expense Account Identifier

The valid values of i_exp are:

Error Handling

o_err_num

This parameter indicates the processing status of your extension as follows:

o_err_code and o_err_msg

Values for o_err_code, and o_err_msg can be viewed in the Periodic Distributions Processor Log file.

Other Sources

Related Topics