DBA Data[Home] [Help]

APPS.OTA_ANT_SHD dependencies on OTA_ANNOUNCEMENTS

Line 21: If (p_constraint_name = 'OTA_ANNOUNCEMENTS_TL_PK1') Then

17: l_proc varchar2(72) := g_package||'constraint_error';
18: --
19: Begin
20: --
21: If (p_constraint_name = 'OTA_ANNOUNCEMENTS_TL_PK1') Then
22: fnd_message.set_name('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
23: fnd_message.set_token('PROCEDURE', l_proc);
24: fnd_message.set_token('STEP','5');
25: fnd_message.raise_error;

Line 53: from ota_announcements_tl

49: ,language
50: ,source_lang
51: ,announcement_title
52: ,announcement_body
53: from ota_announcements_tl
54: where announcement_id = p_announcement_id
55: and language = p_language;
56: --
57: l_fct_ret boolean;

Line 120: from ota_announcements_tl

116: ,language
117: ,source_lang
118: ,announcement_title
119: ,announcement_body
120: from ota_announcements_tl
121: where announcement_id = p_announcement_id
122: and language = p_language
123: for update nowait;
124: --

Line 166: fnd_message.set_token('TABLE_NAME', 'ota_announcements_tl');

162: -- The object is locked therefore we need to supply a meaningful
163: -- error message.
164: --
165: fnd_message.set_name('PAY', 'HR_7165_OBJECT_LOCKED');
166: fnd_message.set_token('TABLE_NAME', 'ota_announcements_tl');
167: fnd_message.raise_error;
168: End lck;
169: --
170: -- ----------------------------------------------------------------------------

Line 181: delete from OTA_ANNOUNCEMENTS_TL T

177: -- ----------------------------------------------------------------------------
178: procedure ADD_LANGUAGE
179: is
180: begin
181: delete from OTA_ANNOUNCEMENTS_TL T
182: where not exists
183: (select NULL
184: from OTA_ANNOUNCEMENTS B
185: where B.ANNOUNCEMENT_ID = T.ANNOUNCEMENT_ID

Line 184: from OTA_ANNOUNCEMENTS B

180: begin
181: delete from OTA_ANNOUNCEMENTS_TL T
182: where not exists
183: (select NULL
184: from OTA_ANNOUNCEMENTS B
185: where B.ANNOUNCEMENT_ID = T.ANNOUNCEMENT_ID
186: );
187:
188: update OTA_ANNOUNCEMENTS_TL T set (

Line 188: update OTA_ANNOUNCEMENTS_TL T set (

184: from OTA_ANNOUNCEMENTS B
185: where B.ANNOUNCEMENT_ID = T.ANNOUNCEMENT_ID
186: );
187:
188: update OTA_ANNOUNCEMENTS_TL T set (
189: ANNOUNCEMENT_TITLE,
190: ANNOUNCEMENT_BODY
191: ) = (select
192: B.ANNOUNCEMENT_TITLE,

Line 194: from OTA_ANNOUNCEMENTS_TL B

190: ANNOUNCEMENT_BODY
191: ) = (select
192: B.ANNOUNCEMENT_TITLE,
193: B.ANNOUNCEMENT_BODY
194: from OTA_ANNOUNCEMENTS_TL B
195: where B.ANNOUNCEMENT_ID = T.ANNOUNCEMENT_ID
196: and B.LANGUAGE = T.SOURCE_LANG)
197: where (
198: T.ANNOUNCEMENT_ID,

Line 203: from OTA_ANNOUNCEMENTS_TL SUBB, OTA_ANNOUNCEMENTS_TL SUBT

199: T.LANGUAGE
200: ) in (select
201: SUBT.ANNOUNCEMENT_ID,
202: SUBT.LANGUAGE
203: from OTA_ANNOUNCEMENTS_TL SUBB, OTA_ANNOUNCEMENTS_TL SUBT
204: where SUBB.ANNOUNCEMENT_ID = SUBT.ANNOUNCEMENT_ID
205: and SUBB.LANGUAGE = SUBT.SOURCE_LANG
206: and (SUBB.ANNOUNCEMENT_TITLE <> SUBT.ANNOUNCEMENT_TITLE
207: or SUBB.ANNOUNCEMENT_BODY <> SUBT.ANNOUNCEMENT_BODY

Line 210: insert into OTA_ANNOUNCEMENTS_TL (

206: and (SUBB.ANNOUNCEMENT_TITLE <> SUBT.ANNOUNCEMENT_TITLE
207: or SUBB.ANNOUNCEMENT_BODY <> SUBT.ANNOUNCEMENT_BODY
208: ));
209:
210: insert into OTA_ANNOUNCEMENTS_TL (
211: ANNOUNCEMENT_ID,
212: ANNOUNCEMENT_TITLE,
213: ANNOUNCEMENT_BODY,
214: CREATED_BY,

Line 232: from OTA_ANNOUNCEMENTS_TL B, FND_LANGUAGES L

228: B.LAST_UPDATED_BY,
229: B.LAST_UPDATE_LOGIN,
230: L.LANGUAGE_CODE,
231: B.SOURCE_LANG
232: from OTA_ANNOUNCEMENTS_TL B, FND_LANGUAGES L
233: where L.INSTALLED_FLAG in ('I', 'B')
234: and B.LANGUAGE = userenv('LANG')
235: and not exists
236: (select NULL

Line 237: from OTA_ANNOUNCEMENTS_TL T

233: where L.INSTALLED_FLAG in ('I', 'B')
234: and B.LANGUAGE = userenv('LANG')
235: and not exists
236: (select NULL
237: from OTA_ANNOUNCEMENTS_TL T
238: where T.ANNOUNCEMENT_ID = B.ANNOUNCEMENT_ID
239: and T.LANGUAGE = L.LANGUAGE_CODE);
240: end ADD_LANGUAGE;
241: --