1 PACKAGE CLN_INV_REJECT_NOTIF_PVT AUTHID CURRENT_USER AS
2 /* $Header: CLN3C4S.pls 120.0 2005/05/24 16:20:00 appldev noship $ */
3
4
5 -- Start of comments
6 -- Procedure name : SEPARATE_REASON_CODE
7 -- Type : Private.
8 -- Pre-reqs : None.
9 -- Function : It separates the line number from the given reasoncode
10 -- Parameters :
11 -- IN : p_reason_code IN VARCHAR2 --- Required
12 -- OUT : x_err_string OUT VARCHAR2 --- Required
13 -- x_line_num OUT NUMBER ---- Required
14 --
15 -- Notes :
16 -- End of comments
17
18 PROCEDURE SEPARATE_REASON_CODE (p_reason_code IN VARCHAR2,
19 x_err_string OUT NOCOPY VARCHAR2,
20 x_line_num OUT NOCOPY NUMBER);
21
22 -- Start of comments
23 -- Procedure name : ADD_MESSAGES_TO_COLL_HISTORY
24 -- Type : Private.
25 -- Pre-reqs : None.
26 -- Function : Adds messages to the Collaboration History.
27 -- Parameters :
28 -- IN : p_internal_control_number IN NUMBER --- Required
29 -- p_line_num IN NUMBER --- Required
30 -- p_err_string IN VARCHAR2 ---- Required
31 -- p_id IN VARCHAR2 --- Requried
32 -- Notes :
33 -- End of comments
34
35 PROCEDURE ADD_MESSAGES_TO_COLL_HISTORY( p_internal_control_number IN NUMBER,
36 p_line_num IN NUMBER,
37 p_err_string IN VARCHAR2,
38 p_id IN VARCHAR2 );
39
40 -- Start of comments
41 -- Procedure name : CALL_AR_API
42 -- Type : Private.
43 -- Pre-reqs : None.
44 -- Function : Calls 'ar_confirmation.initiate_confirmation_process' to send the notification
45 -- Parameters :
46 -- IN : p_internal_control_number IN NUMBER --- Required
47 -- p_reason_code IN VARCHAR2 --- Required
48 -- p_description IN VARCHAR2 ---- Required
49 -- p_id IN VARCHAR2 --- Requried
50 -- Notes :
51 -- End of comments
52
53 PROCEDURE CALL_AR_API(p_reason_code IN VARCHAR2,
54 p_id IN VARCHAR2,
55 p_description IN VARCHAR2,
56 p_internal_control_number IN NUMBER);
57
58 -- Start of comments
59 -- Procedure name : PROCESS_INBOUND_3C4
60 -- Type : Private.
61 -- Pre-reqs : None.
62 -- Function : This procedure does
63 -- (1). Separates individual reason codes from the value of the parameter 'p_reason_code'
64 -- and calls the 'ar_confirmation.initiate_confirmation_process'
65 -- API the number of times as the number of times the reason codes are.
66 -- (2). Updates the Collaboration History with the '3C4 Inbound
67 -- consumed successfully' message.
68 --
69 -- Parameters :
70 -- IN : p_internal_control_number IN NUMBER --- Required
71 -- p_reason_code IN VARCHAR2 --- Optional
72 -- p_id IN VARCHAR2 --- Required
73 -- p_description IN VARCHAR2 --- Optional
74 -- Notes : This procedure is called from the XML map(3C4 Inbound)
75 -- End of comments
76
77 PROCEDURE PROCESS_INBOUND_3C4 ( p_internal_control_number IN NUMBER,
78 p_reason_code IN VARCHAR2,
79 p_invoice_num IN VARCHAR2,
80 p_description IN VARCHAR2,
81 p_tp_id IN NUMBER);
82
83 -- Start of comments
84 -- Procedure name : NOTIFICATION_PROCESS_3C4_IN
85 -- Type : Private.
86 -- Pre-reqs : None.
87 -- Function : This API does the actions specified in the notification code '3C4_01'.
88 --
89 -- Parameters :
90 -- IN : p_itemtype IN VARCHAR2 --- Required
91 -- p_itemkey IN VARCHAR2 --- Required
92 -- p_actid IN NUMBER ---- Required
93 -- p_funcmode IN VARCHAR2 --- Required
94 -- IN OUT : x_resultout IN OUT NOCOPY VARCHAR2 --- Required
95 -- Notes : This procedure is called from the XML map(3C4 Inbound)
96 -- End of comments
97
98 PROCEDURE NOTIFICATION_PROCESS_3C4_IN ( p_itemtype IN VARCHAR2,
99 p_itemkey IN VARCHAR2,
100 p_actid IN NUMBER,
101 p_funcmode IN VARCHAR2,
102 x_resultout IN OUT NOCOPY VARCHAR2);
103
104 END CLN_INV_REJECT_NOTIF_PVT;