DBA Data[Home] [Help]

APPS.OTA_ADT_SHD dependencies on OTA_ACTIVITY_DEFINITIONS

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

17: l_proc varchar2(72) := g_package||'constraint_error';
18: --
19: Begin
20: --
21: If (p_constraint_name = 'OTA_ACTIVITY_DEFINITIONS_TL_PK') 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_activity_definitions_tl

49: ,name
50: ,description
51: ,language
52: ,source_lang
53: from ota_activity_definitions_tl
54: where activity_id = p_activity_id
55: and language = p_language;
56: --
57: l_fct_ret boolean;

Line 120: from ota_activity_definitions_tl

116: ,name
117: ,description
118: ,language
119: ,source_lang
120: from ota_activity_definitions_tl
121: where activity_id = p_activity_id
122: and language = p_language
123: for update nowait;
124: --

Line 166: fnd_message.set_token('TABLE_NAME', 'ota_activity_definitions_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_activity_definitions_tl');
167: fnd_message.raise_error;
168: End lck;
169: --
170: -- ----------------------------------------------------------------------------

Line 181: delete from OTA_ACTIVITY_DEFINITIONS_TL T

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

Line 184: from OTA_ACTIVITY_DEFINITIONS B

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

Line 188: update OTA_ACTIVITY_DEFINITIONS_TL T set (

184: from OTA_ACTIVITY_DEFINITIONS B
185: where B.ACTIVITY_ID = T.ACTIVITY_ID
186: );
187:
188: update OTA_ACTIVITY_DEFINITIONS_TL T set (
189: NAME,
190: DESCRIPTION
191: ) = (select
192: B.NAME,

Line 194: from OTA_ACTIVITY_DEFINITIONS_TL B

190: DESCRIPTION
191: ) = (select
192: B.NAME,
193: B.DESCRIPTION
194: from OTA_ACTIVITY_DEFINITIONS_TL B
195: where B.ACTIVITY_ID = T.ACTIVITY_ID
196: and B.LANGUAGE = T.SOURCE_LANG)
197: where (
198: T.ACTIVITY_ID,

Line 203: from OTA_ACTIVITY_DEFINITIONS_TL SUBB, OTA_ACTIVITY_DEFINITIONS_TL SUBT

199: T.LANGUAGE
200: ) in (select
201: SUBT.ACTIVITY_ID,
202: SUBT.LANGUAGE
203: from OTA_ACTIVITY_DEFINITIONS_TL SUBB, OTA_ACTIVITY_DEFINITIONS_TL SUBT
204: where SUBB.ACTIVITY_ID = SUBT.ACTIVITY_ID
205: and SUBB.LANGUAGE = SUBT.SOURCE_LANG
206: and (SUBB.NAME <> SUBT.NAME
207: or SUBB.DESCRIPTION <> SUBT.DESCRIPTION

Line 212: insert into OTA_ACTIVITY_DEFINITIONS_TL (

208: or (SUBB.DESCRIPTION is null and SUBT.DESCRIPTION is not null)
209: or (SUBB.DESCRIPTION is not null and SUBT.DESCRIPTION is null)
210: ));
211:
212: insert into OTA_ACTIVITY_DEFINITIONS_TL (
213: ACTIVITY_ID,
214: NAME,
215: DESCRIPTION,
216: CREATED_BY,

Line 234: from OTA_ACTIVITY_DEFINITIONS_TL B, FND_LANGUAGES L

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

Line 239: from OTA_ACTIVITY_DEFINITIONS_TL T

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