DBA Data[Home] [Help]

PACKAGE: APPS.PER_SPP_INS

Source


4 -- ----------------------------------------------------------------------------
1 Package per_spp_ins AUTHID CURRENT_USER as
2 /* $Header: pespprhi.pkh 120.1 2005/12/12 21:15:29 vbanner noship $ */
3 --
5 -- |------------------------------< insert_dml >------------------------------|
6 -- ----------------------------------------------------------------------------
7 -- {Start Of Comments}
8 --
9 -- Description:
10 --   This procedure calls the dt_insert_dml control logic which handles
11 --   the actual datetrack dml.
12 --
13 -- Prerequisites:
14 --   This is an internal private procedure which must be called from the ins
15 --   procedure and must have all mandatory attributes set (except the
16 --   object_version_number which is initialised within the dt_insert_dml
17 --   procedure).
18 --
19 -- In Parameters:
20 --   A Pl/Sql record structure.
21 --
22 -- Post Success:
23 --   Processing contines.
24 --
25 -- Post Failure:
26 --   No specific error handling is required within this procedure.
27 --
28 -- Developer Implementation Notes:
29 --   None.
30 --
31 -- Access Status:
32 --   Internal Row Handler Use Only.
33 --
34 -- {End Of Comments}
35 -- ----------------------------------------------------------------------------
36 Procedure insert_dml
37   (p_rec                   in out nocopy per_spp_shd.g_rec_type
38   ,p_effective_date        in date
39   ,p_datetrack_mode        in varchar2
40   ,p_validation_start_date in date
41   ,p_validation_end_date   in date
42   );
43 --
44 -- ----------------------------------------------------------------------------
45 -- |---------------------------------< ins >----------------------------------|
46 -- ----------------------------------------------------------------------------
47 -- {Start Of Comments}
48 --
49 -- Description:
50 --   This procedure is the record interface for the insert process
51 --   for the specified entity. The role of this process is to insert a fully
52 --   validated row, into the HR schema passing back to  the calling process,
53 --   any system generated values (e.g. primary and object version number
54 --   attributes). This process is the main backbone of the ins business
55 --   process. The processing of this procedure is as follows:
56 --   1) We must lock parent rows (if any exist).
57 --   2) The controlling validation process insert_validate is then executed
58 --      which will execute all private and public validation business rule
59 --      processes.
60 --   3) The pre_insert process is then executed which enables any
61 --      logic to be processed before the insert dml process is executed.
62 --   4) The insert_dml process will physical perform the insert dml into the
63 --      specified entity.
67 -- Prerequisites:
64 --   5) The post_insert process is then executed which enables any
65 --      logic to be processed after the insert dml process.
66 --
68 --   The main parameters to the process have to be in the record
69 --   format.
70 --
71 -- In Parameters:
72 --   p_effective_date
73 --    Specifies the date of the datetrack insert operation.
74 --
75 -- Post Success:
76 --   A fully validated row will be inserted into the specified entity
77 --   without being committed.
78 --
79 -- Post Failure:
80 --   If an error has occurred, an error message will be raised.
81 --
82 -- Developer Implementation Notes:
83 --   None.
84 --
85 -- Access Status:
86 --   Internal Development Use Only.
87 --
88 -- {End Of Comments}
89 -- ----------------------------------------------------------------------------
90 Procedure ins
91   (p_effective_date in     date
92   ,p_rec            in out nocopy per_spp_shd.g_rec_type
93   ,p_replace_future_spp in boolean default false  -- Added for bug 2977842.
94   );
95 --
96 -- ----------------------------------------------------------------------------
97 -- |---------------------------------< ins >----------------------------------|
98 -- ----------------------------------------------------------------------------
99 -- {Start Of Comments}
100 --
101 -- Description:
102 --   This procedure is the attribute interface for the insert
103 --   process for the specified entity and is the outermost layer. The role
104 --   of this process is to insert a fully validated row into the HR schema
105 --   passing back to the calling process, any system generated values
106 --   (e.g. object version number attributes). The processing of this
107 --   procedure is as follows:
108 --   1) The attributes are converted into a local record structure by
109 --      calling the convert_args function.
110 --   2) After the conversion has taken place, the corresponding record ins
111 --      interface process is executed.
112 --   3) OUT parameters are then set to their corresponding record attributes.
113 --
114 -- Prerequisites:
115 --
116 -- In Parameters:
117 --   p_effective_date
118 --    Specifies the date of the datetrack insert operation.
119 --
120 -- Post Success:
121 --   A fully validated row will be inserted for the specified entity
122 --   without being committed.
123 --
124 -- Post Failure:
125 --   If an error has occurred, an error message will be raised.
126 --
127 -- Developer Implementation Notes:
128 --   None.
129 --
130 -- Access Status:
131 --   Internal Development Use Only.
132 --
133 -- {End Of Comments}
134 -- ----------------------------------------------------------------------------
135 Procedure ins
136   (p_effective_date                 in     date
137   ,p_business_group_id              in     number
138   ,p_assignment_id                  in     number
139   ,p_step_id                        in     number
140   ,p_auto_increment_flag            in     varchar2
141 --  ,p_parent_spine_id                in     number
142   ,p_reason                         in     varchar2 default null
143   ,p_request_id                     in     number   default null
144   ,p_program_application_id         in     number   default null
145   ,p_program_id                     in     number   default null
146   ,p_program_update_date            in     date     default null
147   ,p_increment_number               in     number   default null
148   ,p_information1                   in varchar2 default null
149   ,p_information2                   in varchar2 default null
150   ,p_information3                   in varchar2 default null
151   ,p_information4                   in varchar2 default null
152   ,p_information5                   in varchar2 default null
153   ,p_information6                   in varchar2 default null
154   ,p_information7                   in varchar2 default null
155   ,p_information8                   in varchar2 default null
156   ,p_information9                   in varchar2 default null
157   ,p_information10                  in varchar2 default null
158   ,p_information11                  in varchar2 default null
159   ,p_information12                  in varchar2 default null
160   ,p_information13                  in varchar2 default null
161   ,p_information14                  in varchar2 default null
162   ,p_information15                  in varchar2 default null
163   ,p_information16                  in varchar2 default null
164   ,p_information17                  in varchar2 default null
165   ,p_information18                  in varchar2 default null
166   ,p_information19                  in varchar2 default null
167   ,p_information20                  in varchar2 default null
168   ,p_information21                  in varchar2 default null
169   ,p_information22                  in varchar2 default null
170   ,p_information23                  in varchar2 default null
171   ,p_information24                  in varchar2 default null
172   ,p_information25                  in varchar2 default null
173   ,p_information26                  in varchar2 default null
174   ,p_information27                  in varchar2 default null
175   ,p_information28                  in varchar2 default null
176   ,p_information29                  in varchar2 default null
177   ,p_information30                  in varchar2 default null
178   ,p_information_category           in varchar2 default null
179   ,p_placement_id                      out nocopy number
180   ,p_object_version_number             out nocopy number
184   );
181   ,p_effective_start_date              out nocopy date
182   ,p_effective_end_date                out nocopy date
183   ,p_replace_future_spp             in boolean default false --Bug 2977842.
185 --
186 end per_spp_ins;