| Previous | Next | Contents | Index | Glossary | Library |
Print out and review the following files before you begin writing transaction costing extensions. The files are located in the Cost Management admin/sql directory.
| CSTACHKS.pls | Transaction Cost Extension Package Specification Template. If you create functions within the package, outside the predefined function, you must also modify this package. |
| CSTACHKB.pls | Transaction Cost Extension Package Body Template. This file contains the function that you modify to implement transaction cost extensions. You can define as many functions as you like within this package or within the predefined function. |
Suggestion: After you write the function, do not forget to compile it and store it in the database. See: Storing Your functions.
| Parameter | Usage | Type | Description |
|---|---|---|---|
| i_org_id | IN | NUMBER | The organization that the current transaction is done in |
| i_txn_id | IN | NUMBER | Transaction identifier |
| i_layer_id | IN | NUMBER | The costing layer this transaction item corresponds to. Using the layer_id, one can obtain the current average cost stored in cst_quantity_layers |
| i_cost_type | IN | NUMBER | The valuation cost type the cost processor is running for. |
| i_user_id | IN | NUMBER | User identifier |
| i_login_id | IN | NUMBER | Login identifier |
| i_req_id | IN | NUMBER | Request ID for program |
| i_prg_appl_id | IN | NUMBER | Application ID of program |
| i_prg_id | IN | NUMBER | Program identifier |
| l_err_num | OUT | NUMBER | Error number |
| l_err_code | OUT | NUMBER | Error code |
| l_err_msg | OUT | VARCHAR2 | Error message |
| Table 3 - 5. (Page 2 of 2) Transaction Cost Extension Parameters | |||
| l_err_num = 0 | The extension executed successfully. |
| l_err_num <> 0 | An error occurred and the extension did not process successfully. |
Oracle Cost Management Technical Reference Manual, Release 11
| Previous | Next | Contents | Index | Glossary | Library |