1 PACKAGE GCS_PERIOD_INIT_PKG AS
2 /* $Header: gcspinis.pls 120.1 2005/10/30 05:16:25 appldev noship $ */
3 --
4 -- Package
5 -- gcs_period_init_pkg
6 -- Purpose
7 -- Package procedures for the Period Initialization Program
8 -- History
9 -- 04-MAR-04 T Cheng Created
10 --
11
12 --
13 -- PUBLIC GLOBAL VARIABLES
14 --
15
16 -- Holds fnd_global.user_id and login_id
17 g_fnd_user_id NUMBER;
18 g_fnd_login_id NUMBER;
19
20 --
21 -- PUBLIC FUNCTIONS
22 --
23
24 --
25 -- Procedure
26 -- Create_Period_Init_Entries
27 -- Purpose
28 -- Create the one-time entry for next period initialization, and if
29 -- necessary, the recurring entry for the next year.
30 -- If p_category_code is not null, then create entries only for this
31 -- category. Otherwise create entries for all categories necessary..
32 -- Arguments
33 -- p_run_name Name of the consolidation run
34 -- p_hierarchy_id ID of the hierarchy consolidation is run for
35 -- p_relationship_id ID of the relationship between the entity
36 -- and its parent
37 -- p_entity_id ID of the entity being processed
38 -- p_cons_entity_id ID of the consolidation entity
39 -- p_translation_required If translation entries are needed
40 -- p_cal_period_id ID of the period consolidation is run for
41 -- p_balance_type_code Balance type code
42 -- p_category_code Category code to process, use NULL for all
43 -- Example
44 -- GCS_PERIOD_INIT_PKG.Create_Period_Init_Entries(errbuf, retcode,
45 -- 'Name', 1, 2, 3, 10, 'N', 200401, 'ACTUAL', 'INTERCOMPANY');
46 -- Notes
47 --
48 PROCEDURE Create_Period_Init_Entries(
49 p_errbuf OUT NOCOPY VARCHAR2,
50 p_retcode OUT NOCOPY VARCHAR2,
51 p_run_name VARCHAR2,
52 p_hierarchy_id NUMBER,
53 p_relationship_id NUMBER,
54 p_entity_id NUMBER,
55 p_cons_entity_id NUMBER,
56 p_translation_required VARCHAR2,
57 p_cal_period_id NUMBER,
58 p_balance_type_code VARCHAR2,
59 p_category_code VARCHAR2 DEFAULT NULL);
60
61 END GCS_PERIOD_INIT_PKG;