1 PACKAGE CSI_COUNTER_READINGS_PUB AUTHID CURRENT_USER as
2 /* $Header: csipcrds.pls 120.1.12010000.1 2008/07/25 08:10:52 appldev ship $ */
3 /*#
4 * This is a public API for managing Counter Readings.
5 * It contains routines to Create and Update Counter Readings.
6 * @rep:scope public
7 * @rep:product CSI
8 * @rep:displayname Manage Counter Readings
9 * @rep:lifecycle active
10 * @rep:compatibility S
11 * @rep:category BUSINESS_ENTITY CSI_COUNTER
12 */
13
14 /*----------------------------------------------------*/
15 /* procedure name: Capture_Counter_Reading */
16 /* description : procedure used to */
17 /* capture counter readings */
18 /*----------------------------------------------------*/
19 /*#
20 * This procedure is used to process the given Counter Reading. This reading could be
21 * a regular counter Reading or an Adjustment or a Reset or an Automatic Rollover.
22 * In this process, it also captures the property readings of the underlying properties of the
23 * counter. It also computes Formula and Target counter Readings.
24 * @param p_api_version Current API version
25 * @param p_commit API commits if set to fnd_api.g_true
26 * @param p_init_msg_list Initializes the message stack if set to fnd_api.g_true
27 * @param p_validation_level API validation level
28 * @param p_txn_tbl Transaction Table structure
29 * @param p_ctr_rdg_tbl Counter Reading Table containing the nature of the reading
30 * @param p_ctr_prop_rdg_tbl Contains the corresponding Propery Readings
31 * @param x_return_status API Return Status
32 * @param x_msg_count Message count
33 * @param x_msg_data Message Data
34 * @rep:scope public
35 * @rep:lifecycle active
36 * @rep:displayname Capture Counter Reading
37 */
38
39 PROCEDURE Capture_Counter_Reading
40 (
41 p_api_version IN NUMBER
42 ,p_commit IN VARCHAR2
43 ,p_init_msg_list IN VARCHAR2
44 ,p_validation_level IN NUMBER
45 ,p_txn_tbl IN OUT NOCOPY csi_datastructures_pub.transaction_tbl
46 ,p_ctr_rdg_tbl IN OUT NOCOPY csi_ctr_datastructures_pub.counter_readings_tbl
47 ,p_ctr_prop_rdg_tbl IN OUT NOCOPY csi_ctr_datastructures_pub.ctr_property_readings_tbl
48 ,x_return_status OUT NOCOPY VARCHAR2
49 ,x_msg_count OUT NOCOPY NUMBER
50 ,x_msg_data OUT NOCOPY VARCHAR2
51 );
52
53 /*----------------------------------------------------*/
54 /* procedure name: Update_Counter_Reading */
55 /* description : procedure used to */
56 /* update counter readings */
57 /*----------------------------------------------------*/
58 /*#
59 * This procedure is used to disable the Counter Readings.
60 * In this process, it re-computes the Later Net readings for the same counter.
61 * Disabling a counter reading will have an impact on Formula and Target counter Readings.
62 * @param p_api_version Current API version
63 * @param p_commit API commits if set to fnd_api.g_true
64 * @param p_init_msg_list Initializes the message stack if set to fnd_api.g_true
65 * @param p_validation_level API validation level
66 * @param p_ctr_rdg_tbl Counter Reading Table containing the nature of the reading
67 * @param x_return_status API Return Status
68 * @param x_msg_count Message count
69 * @param x_msg_data Message Data
70 * @rep:scope public
71 * @rep:lifecycle active
72 * @rep:displayname Update Counter Reading
73 */
74
75
76 PROCEDURE Update_Counter_Reading
77 (
78 p_api_version IN NUMBER
79 ,p_commit IN VARCHAR2
80 ,p_init_msg_list IN VARCHAR2
81 ,p_validation_level IN NUMBER
82 ,p_ctr_rdg_tbl IN OUT NOCOPY csi_ctr_datastructures_pub.counter_readings_tbl
83 ,x_return_status OUT NOCOPY VARCHAR2
84 ,x_msg_count OUT NOCOPY NUMBER
85 ,x_msg_data OUT NOCOPY VARCHAR2
86 );
87 END CSI_COUNTER_READINGS_PUB;