56: BEGIN
57: -- Initialize API return status to success
58: x_return_status := FND_API.G_RET_STS_SUCCESS;
59:
60: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
61: aso_debug_pub.add('Validate_Template: p_template_context :'||p_template_context, 1, 'N');
62: aso_debug_pub.add('Validate_Template: p_template_level :'||p_template_level, 1, 'N');
63: END IF;
64:
57: -- Initialize API return status to success
58: x_return_status := FND_API.G_RET_STS_SUCCESS;
59:
60: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
61: aso_debug_pub.add('Validate_Template: p_template_context :'||p_template_context, 1, 'N');
62: aso_debug_pub.add('Validate_Template: p_template_level :'||p_template_level, 1, 'N');
63: END IF;
64:
65: -- Validate the template context
58: x_return_status := FND_API.G_RET_STS_SUCCESS;
59:
60: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
61: aso_debug_pub.add('Validate_Template: p_template_context :'||p_template_context, 1, 'N');
62: aso_debug_pub.add('Validate_Template: p_template_level :'||p_template_level, 1, 'N');
63: END IF;
64:
65: -- Validate the template context
66: OPEN c_template_context(p_template_context);
99: END IF;
100:
101: CLOSE c_template_level;
102:
103: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
104: aso_debug_pub.add('Validate_Template: x_return_status: '||x_return_status, 1, 'N');
105: END IF;
106:
107: RETURN x_return_status;
100:
101: CLOSE c_template_level;
102:
103: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
104: aso_debug_pub.add('Validate_Template: x_return_status: '||x_return_status, 1, 'N');
105: END IF;
106:
107: RETURN x_return_status;
108:
152: -- Initialize API return status to success
153: x_return_status := FND_API.G_RET_STS_SUCCESS;
154:
155: -- API BODY
156: IF aso_debug_pub.g_debug_flag = 'Y' THEN
157: aso_debug_pub.ADD ('CREATE_TEMPLATE : Begin' , 1, 'N' );
158: aso_debug_pub.add('CREATE_TEMPLATE : p_template_context :'||P_TEMPLATE_REC.TEMPLATE_CONTEXT, 1, 'N');
159: aso_debug_pub.add('CREATE_TEMPLATE : p_template_level :'||P_TEMPLATE_REC.TEMPLATE_LEVEL, 1, 'N');
160: END IF;
153: x_return_status := FND_API.G_RET_STS_SUCCESS;
154:
155: -- API BODY
156: IF aso_debug_pub.g_debug_flag = 'Y' THEN
157: aso_debug_pub.ADD ('CREATE_TEMPLATE : Begin' , 1, 'N' );
158: aso_debug_pub.add('CREATE_TEMPLATE : p_template_context :'||P_TEMPLATE_REC.TEMPLATE_CONTEXT, 1, 'N');
159: aso_debug_pub.add('CREATE_TEMPLATE : p_template_level :'||P_TEMPLATE_REC.TEMPLATE_LEVEL, 1, 'N');
160: END IF;
161:
154:
155: -- API BODY
156: IF aso_debug_pub.g_debug_flag = 'Y' THEN
157: aso_debug_pub.ADD ('CREATE_TEMPLATE : Begin' , 1, 'N' );
158: aso_debug_pub.add('CREATE_TEMPLATE : p_template_context :'||P_TEMPLATE_REC.TEMPLATE_CONTEXT, 1, 'N');
159: aso_debug_pub.add('CREATE_TEMPLATE : p_template_level :'||P_TEMPLATE_REC.TEMPLATE_LEVEL, 1, 'N');
160: END IF;
161:
162: l_return_status :=
155: -- API BODY
156: IF aso_debug_pub.g_debug_flag = 'Y' THEN
157: aso_debug_pub.ADD ('CREATE_TEMPLATE : Begin' , 1, 'N' );
158: aso_debug_pub.add('CREATE_TEMPLATE : p_template_context :'||P_TEMPLATE_REC.TEMPLATE_CONTEXT, 1, 'N');
159: aso_debug_pub.add('CREATE_TEMPLATE : p_template_level :'||P_TEMPLATE_REC.TEMPLATE_LEVEL, 1, 'N');
160: END IF;
161:
162: l_return_status :=
163: Validate_Template(
212: COMMIT WORK;
213: END IF;
214:
215:
216: IF aso_debug_pub.g_debug_flag = 'Y' THEN
217: aso_debug_pub.ADD ( 'CREATE_TEMPLATE: end' , 1 , 'N' );
218: END IF;
219:
220: EXCEPTION
213: END IF;
214:
215:
216: IF aso_debug_pub.g_debug_flag = 'Y' THEN
217: aso_debug_pub.ADD ( 'CREATE_TEMPLATE: end' , 1 , 'N' );
218: END IF;
219:
220: EXCEPTION
221:
298: -- Initialize API return status to success
299: x_return_status := FND_API.G_RET_STS_SUCCESS;
300:
301: -- API BODY
302: IF aso_debug_pub.g_debug_flag = 'Y' THEN
303: aso_debug_pub.ADD ('UPDATE_TEMPLATE : Begin' , 1, 'N' );
304: aso_debug_pub.add('UPDATE_TEMPLATE : p_template_context :'||P_TEMPLATE_REC.TEMPLATE_CONTEXT, 1, 'N');
305: aso_debug_pub.add('UPDATE_TEMPLATE : p_template_level :'||P_TEMPLATE_REC.TEMPLATE_LEVEL, 1, 'N');
306: END IF;
299: x_return_status := FND_API.G_RET_STS_SUCCESS;
300:
301: -- API BODY
302: IF aso_debug_pub.g_debug_flag = 'Y' THEN
303: aso_debug_pub.ADD ('UPDATE_TEMPLATE : Begin' , 1, 'N' );
304: aso_debug_pub.add('UPDATE_TEMPLATE : p_template_context :'||P_TEMPLATE_REC.TEMPLATE_CONTEXT, 1, 'N');
305: aso_debug_pub.add('UPDATE_TEMPLATE : p_template_level :'||P_TEMPLATE_REC.TEMPLATE_LEVEL, 1, 'N');
306: END IF;
307:
300:
301: -- API BODY
302: IF aso_debug_pub.g_debug_flag = 'Y' THEN
303: aso_debug_pub.ADD ('UPDATE_TEMPLATE : Begin' , 1, 'N' );
304: aso_debug_pub.add('UPDATE_TEMPLATE : p_template_context :'||P_TEMPLATE_REC.TEMPLATE_CONTEXT, 1, 'N');
305: aso_debug_pub.add('UPDATE_TEMPLATE : p_template_level :'||P_TEMPLATE_REC.TEMPLATE_LEVEL, 1, 'N');
306: END IF;
307:
308: l_return_status :=
301: -- API BODY
302: IF aso_debug_pub.g_debug_flag = 'Y' THEN
303: aso_debug_pub.ADD ('UPDATE_TEMPLATE : Begin' , 1, 'N' );
304: aso_debug_pub.add('UPDATE_TEMPLATE : p_template_context :'||P_TEMPLATE_REC.TEMPLATE_CONTEXT, 1, 'N');
305: aso_debug_pub.add('UPDATE_TEMPLATE : p_template_level :'||P_TEMPLATE_REC.TEMPLATE_LEVEL, 1, 'N');
306: END IF;
307:
308: l_return_status :=
309: Validate_Template(
354: COMMIT WORK;
355: END IF;
356:
357:
358: IF aso_debug_pub.g_debug_flag = 'Y' THEN
359: aso_debug_pub.ADD ( 'UPDATE_TEMPLATE: end' , 1 , 'N' );
360: END IF;
361:
362: EXCEPTION
355: END IF;
356:
357:
358: IF aso_debug_pub.g_debug_flag = 'Y' THEN
359: aso_debug_pub.ADD ( 'UPDATE_TEMPLATE: end' , 1 , 'N' );
360: END IF;
361:
362: EXCEPTION
363: