1 PACKAGE CN_SCA_CREDITS_ONLINE_PUB AS
2 -- $Header: cnpscaos.pls 120.2 2005/09/07 17:54:51 rchenna noship $
3 /*#
4 * This package is accessed by the users of the Sales Credit Allocation module
5 * as an online API interface to the SCA Credit Rules engine. The package implements
6 * procedures which accept sales transaction information via global temporary tables
7 * and return back sales credit allocation percentages for the resources who
8 * participate in the transaction via the Global temporary table cn_sca_lines_output_gtt.
9 * @rep:scope public
10 * @rep:product CN
11 * @rep:displayname Get Sales Credits Public Application Program Interface(Online)
12 * @rep:lifecycle active
13 * @rep:compatibility S
14 * @rep:category BUSINESS_ENTITY CN_COMP_PLANS
15 */
16
17 G_PKG_NAME CONSTANT VARCHAR2(30) := 'CN_SCA_CREDITS_ONLINE_PUB';
18
19
20 /*#
21 * The get_sales_credits procedure in cn_sca_credits_online_pub is used for determining the
22 * distribution of sales credit allocation percentages among the different resources and
23 * role combinations who took part in the sales transaction. The information about
24 * transaction is input to the API via a Global Temporary table cn_sca_headers_interface_gtt.
25 * The information about the roles and resources who took part in the transaction is input
26 * via the global temporary table cn_sca_lines_interface_gtt. The API determines the
27 * revenue/nonrevenue allocation percentages based on the Credit Rules setup and outputs
28 * the allocation percentage information.
29 * @param p_api_version API version
30 * @param p_init_msg_list Initialize message list (default F)
31 * @param x_batch_id Unique number which identifies the different batches of transactions
32 * sent to the online API for processing. Should be taken from the sequence CN_SCA_BATCH_S.
33 * @param x_return_status Return Status
34 * @param x_msg_count Number of messages returned
35 * @param x_msg_data Contents of message if x_msg_count = 1
36 * @rep:scope public
37 * @rep:lifecycle active
38 * @rep:displayname Get Sales Credits (Online Mode)
39 */
40
41 PROCEDURE get_sales_credits(
42 p_api_version IN number,
43 p_init_msg_list IN varchar2 := fnd_api.g_false,
44 x_batch_id IN number,
45 p_org_id IN number,
46 x_return_status OUT NOCOPY varchar2,
47 x_msg_count OUT NOCOPY number,
48 x_msg_data OUT NOCOPY varchar2);
49
50 END cn_sca_credits_online_pub;