7:
8: c_log_head CONSTANT VARCHAR2(50) := 'po.plsql.'|| G_PKG_NAME || '.';
9:
10: -- Debugging
11: g_debug_stmt CONSTANT BOOLEAN := PO_DEBUG.is_debug_stmt_on;
12: g_debug_unexp CONSTANT BOOLEAN := PO_DEBUG.is_debug_unexp_on;
13:
14:
15:
8: c_log_head CONSTANT VARCHAR2(50) := 'po.plsql.'|| G_PKG_NAME || '.';
9:
10: -- Debugging
11: g_debug_stmt CONSTANT BOOLEAN := PO_DEBUG.is_debug_stmt_on;
12: g_debug_unexp CONSTANT BOOLEAN := PO_DEBUG.is_debug_unexp_on;
13:
14:
15:
16:
143:
144: BEGIN
145:
146: IF g_debug_stmt THEN
147: PO_DEBUG.debug_begin(l_log_head);
148: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
149: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
150: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
151: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
144: BEGIN
145:
146: IF g_debug_stmt THEN
147: PO_DEBUG.debug_begin(l_log_head);
148: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
149: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
150: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
151: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
152: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
145:
146: IF g_debug_stmt THEN
147: PO_DEBUG.debug_begin(l_log_head);
148: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
149: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
150: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
151: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
152: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
153: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
146: IF g_debug_stmt THEN
147: PO_DEBUG.debug_begin(l_log_head);
148: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
149: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
150: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
151: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
152: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
153: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
154: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
147: PO_DEBUG.debug_begin(l_log_head);
148: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
149: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
150: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
151: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
152: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
153: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
154: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
155: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
148: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
149: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
150: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
151: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
152: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
153: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
154: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
155: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
156: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag',p_use_enc_gt_flag);
149: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
150: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
151: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
152: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
153: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
154: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
155: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
156: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag',p_use_enc_gt_flag);
157: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
150: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
151: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
152: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
153: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
154: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
155: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
156: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag',p_use_enc_gt_flag);
157: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
158: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
151: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
152: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
153: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
154: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
155: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
156: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag',p_use_enc_gt_flag);
157: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
158: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
159: END IF;
152: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
153: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
154: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
155: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
156: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag',p_use_enc_gt_flag);
157: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
158: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
159: END IF;
160:
153: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
154: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
155: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
156: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag',p_use_enc_gt_flag);
157: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
158: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
159: END IF;
160:
161: l_progress := '010';
154: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
155: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
156: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag',p_use_enc_gt_flag);
157: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
158: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
159: END IF;
160:
161: l_progress := '010';
162:
187:
188: l_progress := '050';
189:
190: IF g_debug_stmt THEN
191: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Calling Private Procedure');
192: END IF;
193:
194: l_progress := '060';
195:
215:
216: l_progress := '110';
217:
218: IF g_debug_stmt THEN
219: PO_DEBUG.debug_stmt(l_log_head,l_progress,
220: 'Returned from Private Procedure successfully');
221: END IF;
222:
223: l_progress := '120';
246:
247: l_progress := '900';
248:
249: IF g_debug_stmt THEN
250: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
251: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
252: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
253: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
254: PO_DEBUG.debug_end(l_log_head);
247: l_progress := '900';
248:
249: IF g_debug_stmt THEN
250: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
251: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
252: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
253: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
254: PO_DEBUG.debug_end(l_log_head);
255: END IF;
248:
249: IF g_debug_stmt THEN
250: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
251: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
252: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
253: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
254: PO_DEBUG.debug_end(l_log_head);
255: END IF;
256:
249: IF g_debug_stmt THEN
250: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
251: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
252: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
253: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
254: PO_DEBUG.debug_end(l_log_head);
255: END IF;
256:
257: EXCEPTION
250: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
251: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
252: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
253: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
254: PO_DEBUG.debug_end(l_log_head);
255: END IF;
256:
257: EXCEPTION
258: WHEN OTHERS THEN
256:
257: EXCEPTION
258: WHEN OTHERS THEN
259: BEGIN
260: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
261: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
262: IF g_debug_stmt THEN
263: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
264: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
259: BEGIN
260: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
261: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
262: IF g_debug_stmt THEN
263: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
264: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
265: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
266: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
267: END IF;
260: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
261: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
262: IF g_debug_stmt THEN
263: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
264: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
265: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
266: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
267: END IF;
268: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
261: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
262: IF g_debug_stmt THEN
263: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
264: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
265: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
266: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
267: END IF;
268: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
269: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
262: IF g_debug_stmt THEN
263: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
264: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
265: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
266: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
267: END IF;
268: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
269: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
270: END IF;
268: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
269: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
270: END IF;
271: ROLLBACK TO CHECK_RESERVE_SP;
272: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS End');
273: EXCEPTION
274: WHEN OTHERS THEN
275: NULL;
276: END;
392:
393: BEGIN
394:
395: IF g_debug_stmt THEN
396: PO_DEBUG.debug_begin(l_log_head);
397: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
398: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
399: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
400: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
393: BEGIN
394:
395: IF g_debug_stmt THEN
396: PO_DEBUG.debug_begin(l_log_head);
397: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
398: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
399: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
400: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
401: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
394:
395: IF g_debug_stmt THEN
396: PO_DEBUG.debug_begin(l_log_head);
397: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
398: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
399: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
400: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
401: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
402: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
395: IF g_debug_stmt THEN
396: PO_DEBUG.debug_begin(l_log_head);
397: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
398: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
399: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
400: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
401: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
402: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
403: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
396: PO_DEBUG.debug_begin(l_log_head);
397: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
398: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
399: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
400: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
401: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
402: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
403: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
404: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
397: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
398: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
399: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
400: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
401: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
402: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
403: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
404: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
405: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
398: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
399: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
400: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
401: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
402: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
403: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
404: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
405: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
406: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
399: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
400: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
401: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
402: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
403: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
404: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
405: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
406: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
407: END IF;
400: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
401: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
402: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
403: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
404: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
405: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
406: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
407: END IF;
408:
401: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
402: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
403: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
404: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
405: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
406: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
407: END IF;
408:
409: l_progress := '010';
402: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
403: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
404: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
405: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
406: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
407: END IF;
408:
409: l_progress := '010';
410:
435:
436: l_progress := '050';
437:
438: IF g_debug_stmt THEN
439: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Calling Private Procedure');
440: END IF;
441:
442: l_progress := '060';
443:
462:
463: l_progress := '110';
464:
465: IF g_debug_stmt THEN
466: PO_DEBUG.debug_stmt(l_log_head,l_progress,
467: 'Returned from Private Procedure successfully');
468: END IF;
469:
470: l_progress := '120';
493:
494: l_progress := '900';
495:
496: IF g_debug_stmt THEN
497: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
498: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
499: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
500: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
501: PO_DEBUG.debug_end(l_log_head);
494: l_progress := '900';
495:
496: IF g_debug_stmt THEN
497: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
498: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
499: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
500: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
501: PO_DEBUG.debug_end(l_log_head);
502: END IF;
495:
496: IF g_debug_stmt THEN
497: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
498: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
499: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
500: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
501: PO_DEBUG.debug_end(l_log_head);
502: END IF;
503:
496: IF g_debug_stmt THEN
497: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
498: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
499: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
500: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
501: PO_DEBUG.debug_end(l_log_head);
502: END IF;
503:
504: EXCEPTION
497: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
498: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
499: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
500: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
501: PO_DEBUG.debug_end(l_log_head);
502: END IF;
503:
504: EXCEPTION
505: WHEN OTHERS THEN
503:
504: EXCEPTION
505: WHEN OTHERS THEN
506: BEGIN
507: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
508: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
509: IF g_debug_stmt THEN
510: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
511: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
506: BEGIN
507: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
508: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
509: IF g_debug_stmt THEN
510: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
511: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
512: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
513: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
514: END IF;
507: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
508: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
509: IF g_debug_stmt THEN
510: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
511: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
512: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
513: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
514: END IF;
515: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
508: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
509: IF g_debug_stmt THEN
510: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
511: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
512: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
513: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
514: END IF;
515: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
516: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
509: IF g_debug_stmt THEN
510: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
511: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
512: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
513: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
514: END IF;
515: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
516: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
517: END IF;
515: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
516: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
517: END IF;
518: ROLLBACK TO CHECK_ADJUST_SP;
519: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS End');
520: EXCEPTION
521: WHEN OTHERS THEN
522: NULL;
523: END;
664:
665: BEGIN
666:
667: IF g_debug_stmt THEN
668: PO_DEBUG.debug_begin(l_log_head);
669: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
670: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
671: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
672: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
665: BEGIN
666:
667: IF g_debug_stmt THEN
668: PO_DEBUG.debug_begin(l_log_head);
669: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
670: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
671: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
672: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
673: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
666:
667: IF g_debug_stmt THEN
668: PO_DEBUG.debug_begin(l_log_head);
669: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
670: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
671: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
672: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
673: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
674: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
667: IF g_debug_stmt THEN
668: PO_DEBUG.debug_begin(l_log_head);
669: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
670: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
671: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
672: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
673: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
674: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
675: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
668: PO_DEBUG.debug_begin(l_log_head);
669: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
670: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
671: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
672: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
673: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
674: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
675: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
676: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl',p_doc_level_id_tbl);
669: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
670: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
671: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
672: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
673: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
674: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
675: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
676: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl',p_doc_level_id_tbl);
677: PO_DEBUG.debug_var(l_log_head,l_progress,'p_prevent_partial_flag',p_prevent_partial_flag);
670: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
671: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
672: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
673: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
674: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
675: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
676: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl',p_doc_level_id_tbl);
677: PO_DEBUG.debug_var(l_log_head,l_progress,'p_prevent_partial_flag',p_prevent_partial_flag);
678: PO_DEBUG.debug_var(l_log_head,l_progress,'p_employee_id',p_employee_id);
671: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
672: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
673: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
674: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
675: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
676: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl',p_doc_level_id_tbl);
677: PO_DEBUG.debug_var(l_log_head,l_progress,'p_prevent_partial_flag',p_prevent_partial_flag);
678: PO_DEBUG.debug_var(l_log_head,l_progress,'p_employee_id',p_employee_id);
679: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
672: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
673: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
674: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
675: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
676: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl',p_doc_level_id_tbl);
677: PO_DEBUG.debug_var(l_log_head,l_progress,'p_prevent_partial_flag',p_prevent_partial_flag);
678: PO_DEBUG.debug_var(l_log_head,l_progress,'p_employee_id',p_employee_id);
679: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
680: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
673: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
674: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
675: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
676: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl',p_doc_level_id_tbl);
677: PO_DEBUG.debug_var(l_log_head,l_progress,'p_prevent_partial_flag',p_prevent_partial_flag);
678: PO_DEBUG.debug_var(l_log_head,l_progress,'p_employee_id',p_employee_id);
679: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
680: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
681: END IF;
674: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
675: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
676: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl',p_doc_level_id_tbl);
677: PO_DEBUG.debug_var(l_log_head,l_progress,'p_prevent_partial_flag',p_prevent_partial_flag);
678: PO_DEBUG.debug_var(l_log_head,l_progress,'p_employee_id',p_employee_id);
679: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
680: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
681: END IF;
682:
675: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
676: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl',p_doc_level_id_tbl);
677: PO_DEBUG.debug_var(l_log_head,l_progress,'p_prevent_partial_flag',p_prevent_partial_flag);
678: PO_DEBUG.debug_var(l_log_head,l_progress,'p_employee_id',p_employee_id);
679: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
680: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
681: END IF;
682:
683: l_progress := '010';
676: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl',p_doc_level_id_tbl);
677: PO_DEBUG.debug_var(l_log_head,l_progress,'p_prevent_partial_flag',p_prevent_partial_flag);
678: PO_DEBUG.debug_var(l_log_head,l_progress,'p_employee_id',p_employee_id);
679: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
680: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
681: END IF;
682:
683: l_progress := '010';
684:
801:
802: l_progress := '900';
803:
804: IF g_debug_stmt THEN
805: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
806: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
807: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
808: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
809: PO_DEBUG.debug_end(l_log_head);
802: l_progress := '900';
803:
804: IF g_debug_stmt THEN
805: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
806: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
807: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
808: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
809: PO_DEBUG.debug_end(l_log_head);
810: END IF;
803:
804: IF g_debug_stmt THEN
805: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
806: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
807: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
808: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
809: PO_DEBUG.debug_end(l_log_head);
810: END IF;
811:
804: IF g_debug_stmt THEN
805: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
806: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
807: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
808: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
809: PO_DEBUG.debug_end(l_log_head);
810: END IF;
811:
812: EXCEPTION
805: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
806: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
807: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
808: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
809: PO_DEBUG.debug_end(l_log_head);
810: END IF;
811:
812: EXCEPTION
813: WHEN OTHERS THEN
811:
812: EXCEPTION
813: WHEN OTHERS THEN
814: BEGIN
815: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
816: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
817: IF g_debug_stmt THEN
818: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
819: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
814: BEGIN
815: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
816: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
817: IF g_debug_stmt THEN
818: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
819: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
820: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
821: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
822: END IF;
815: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
816: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
817: IF g_debug_stmt THEN
818: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
819: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
820: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
821: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
822: END IF;
823: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
816: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
817: IF g_debug_stmt THEN
818: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
819: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
820: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
821: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
822: END IF;
823: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
824: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
817: IF g_debug_stmt THEN
818: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
819: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
820: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
821: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
822: END IF;
823: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
824: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
825: END IF;
823: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
824: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
825: END IF;
826: ROLLBACK TO DO_RESERVE_SP;
827: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS End');
828: EXCEPTION
829: WHEN OTHERS THEN
830: NULL;
831: END;
976:
977: BEGIN
978:
979: IF g_debug_stmt THEN
980: PO_DEBUG.debug_begin(l_log_head);
981: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
982: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
983: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
984: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
977: BEGIN
978:
979: IF g_debug_stmt THEN
980: PO_DEBUG.debug_begin(l_log_head);
981: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
982: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
983: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
984: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
985: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
978:
979: IF g_debug_stmt THEN
980: PO_DEBUG.debug_begin(l_log_head);
981: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
982: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
983: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
984: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
985: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
986: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
979: IF g_debug_stmt THEN
980: PO_DEBUG.debug_begin(l_log_head);
981: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
982: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
983: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
984: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
985: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
986: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
987: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
980: PO_DEBUG.debug_begin(l_log_head);
981: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
982: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
983: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
984: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
985: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
986: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
987: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
988: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl',p_doc_level_id_tbl);
981: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
982: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
983: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
984: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
985: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
986: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
987: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
988: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl',p_doc_level_id_tbl);
989: PO_DEBUG.debug_var(l_log_head,l_progress,'p_employee_id',p_employee_id);
982: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
983: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
984: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
985: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
986: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
987: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
988: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl',p_doc_level_id_tbl);
989: PO_DEBUG.debug_var(l_log_head,l_progress,'p_employee_id',p_employee_id);
990: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
983: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
984: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
985: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
986: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
987: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
988: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl',p_doc_level_id_tbl);
989: PO_DEBUG.debug_var(l_log_head,l_progress,'p_employee_id',p_employee_id);
990: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
991: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
984: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
985: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
986: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
987: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
988: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl',p_doc_level_id_tbl);
989: PO_DEBUG.debug_var(l_log_head,l_progress,'p_employee_id',p_employee_id);
990: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
991: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
992: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
985: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
986: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
987: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
988: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl',p_doc_level_id_tbl);
989: PO_DEBUG.debug_var(l_log_head,l_progress,'p_employee_id',p_employee_id);
990: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
991: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
992: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
993: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
986: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
987: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
988: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl',p_doc_level_id_tbl);
989: PO_DEBUG.debug_var(l_log_head,l_progress,'p_employee_id',p_employee_id);
990: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
991: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
992: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
993: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
994: END IF;
987: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
988: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl',p_doc_level_id_tbl);
989: PO_DEBUG.debug_var(l_log_head,l_progress,'p_employee_id',p_employee_id);
990: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
991: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
992: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
993: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
994: END IF;
995:
988: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl',p_doc_level_id_tbl);
989: PO_DEBUG.debug_var(l_log_head,l_progress,'p_employee_id',p_employee_id);
990: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
991: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
992: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
993: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
994: END IF;
995:
996: l_progress := '010';
989: PO_DEBUG.debug_var(l_log_head,l_progress,'p_employee_id',p_employee_id);
990: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
991: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
992: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
993: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
994: END IF;
995:
996: l_progress := '010';
997:
1113:
1114: l_progress := '900';
1115:
1116: IF g_debug_stmt THEN
1117: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1118: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1119: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1120: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1121: PO_DEBUG.debug_end(l_log_head);
1114: l_progress := '900';
1115:
1116: IF g_debug_stmt THEN
1117: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1118: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1119: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1120: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1121: PO_DEBUG.debug_end(l_log_head);
1122: END IF;
1115:
1116: IF g_debug_stmt THEN
1117: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1118: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1119: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1120: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1121: PO_DEBUG.debug_end(l_log_head);
1122: END IF;
1123:
1116: IF g_debug_stmt THEN
1117: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1118: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1119: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1120: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1121: PO_DEBUG.debug_end(l_log_head);
1122: END IF;
1123:
1124: EXCEPTION
1117: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1118: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1119: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1120: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1121: PO_DEBUG.debug_end(l_log_head);
1122: END IF;
1123:
1124: EXCEPTION
1125: WHEN OTHERS THEN
1123:
1124: EXCEPTION
1125: WHEN OTHERS THEN
1126: BEGIN
1127: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
1128: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1129: IF g_debug_stmt THEN
1130: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1131: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1126: BEGIN
1127: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
1128: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1129: IF g_debug_stmt THEN
1130: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1131: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1132: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1133: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1134: END IF;
1127: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
1128: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1129: IF g_debug_stmt THEN
1130: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1131: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1132: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1133: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1134: END IF;
1135: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
1128: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1129: IF g_debug_stmt THEN
1130: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1131: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1132: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1133: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1134: END IF;
1135: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
1136: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
1129: IF g_debug_stmt THEN
1130: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1131: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1132: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1133: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1134: END IF;
1135: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
1136: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
1137: END IF;
1135: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
1136: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
1137: END IF;
1138: ROLLBACK TO DO_UNRESERVE_SP;
1139: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS End');
1140: EXCEPTION
1141: WHEN OTHERS THEN
1142: NULL;
1143: END;
1236:
1237: BEGIN
1238:
1239: IF g_debug_stmt THEN
1240: PO_DEBUG.debug_begin(l_log_head);
1241: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
1242: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
1243: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1244: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1237: BEGIN
1238:
1239: IF g_debug_stmt THEN
1240: PO_DEBUG.debug_begin(l_log_head);
1241: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
1242: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
1243: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1244: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1245: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1238:
1239: IF g_debug_stmt THEN
1240: PO_DEBUG.debug_begin(l_log_head);
1241: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
1242: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
1243: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1244: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1245: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1246: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1239: IF g_debug_stmt THEN
1240: PO_DEBUG.debug_begin(l_log_head);
1241: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
1242: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
1243: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1244: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1245: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1246: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1247: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
1240: PO_DEBUG.debug_begin(l_log_head);
1241: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
1242: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
1243: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1244: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1245: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1246: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1247: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
1248: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
1241: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
1242: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
1243: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1244: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1245: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1246: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1247: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
1248: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
1249: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
1242: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
1243: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1244: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1245: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1246: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1247: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
1248: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
1249: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
1250: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
1243: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1244: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1245: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1246: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1247: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
1248: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
1249: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
1250: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
1251: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
1244: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1245: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1246: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1247: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
1248: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
1249: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
1250: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
1251: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
1252: END IF;
1245: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1246: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1247: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
1248: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
1249: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
1250: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
1251: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
1252: END IF;
1253:
1246: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1247: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
1248: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
1249: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
1250: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
1251: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
1252: END IF;
1253:
1254: l_progress := '010';
1247: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
1248: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
1249: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
1250: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
1251: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
1252: END IF;
1253:
1254: l_progress := '010';
1255:
1280:
1281: l_progress := '050';
1282:
1283: IF g_debug_stmt THEN
1284: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Calling Private Procedure');
1285: END IF;
1286:
1287: l_progress := '060';
1288:
1309:
1310: l_progress := '110';
1311:
1312: IF g_debug_stmt THEN
1313: PO_DEBUG.debug_stmt(l_log_head,l_progress,
1314: 'Returned from Private Procedure successfully');
1315: END IF;
1316:
1317: l_progress := '120';
1340:
1341: l_progress := '900';
1342:
1343: IF g_debug_stmt THEN
1344: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1345: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1346: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1347: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1348: PO_DEBUG.debug_end(l_log_head);
1341: l_progress := '900';
1342:
1343: IF g_debug_stmt THEN
1344: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1345: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1346: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1347: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1348: PO_DEBUG.debug_end(l_log_head);
1349: END IF;
1342:
1343: IF g_debug_stmt THEN
1344: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1345: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1346: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1347: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1348: PO_DEBUG.debug_end(l_log_head);
1349: END IF;
1350:
1343: IF g_debug_stmt THEN
1344: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1345: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1346: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1347: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1348: PO_DEBUG.debug_end(l_log_head);
1349: END IF;
1350:
1351: EXCEPTION
1344: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1345: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1346: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1347: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1348: PO_DEBUG.debug_end(l_log_head);
1349: END IF;
1350:
1351: EXCEPTION
1352: WHEN OTHERS THEN
1350:
1351: EXCEPTION
1352: WHEN OTHERS THEN
1353: BEGIN
1354: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
1355: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1356: IF g_debug_stmt THEN
1357: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1358: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1353: BEGIN
1354: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
1355: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1356: IF g_debug_stmt THEN
1357: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1358: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1359: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1360: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1361: END IF;
1354: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
1355: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1356: IF g_debug_stmt THEN
1357: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1358: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1359: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1360: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1361: END IF;
1362: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
1355: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1356: IF g_debug_stmt THEN
1357: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1358: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1359: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1360: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1361: END IF;
1362: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
1363: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
1356: IF g_debug_stmt THEN
1357: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1358: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1359: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1360: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1361: END IF;
1362: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
1363: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
1364: END IF;
1362: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
1363: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
1364: END IF;
1365: ROLLBACK TO DO_RETURN_SP;
1366: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS End');
1367: EXCEPTION
1368: WHEN OTHERS THEN
1369: NULL;
1370: END;
1467:
1468: BEGIN
1469:
1470: IF g_debug_stmt THEN
1471: PO_DEBUG.debug_begin(l_log_head);
1472: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
1473: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
1474: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1475: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1468: BEGIN
1469:
1470: IF g_debug_stmt THEN
1471: PO_DEBUG.debug_begin(l_log_head);
1472: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
1473: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
1474: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1475: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1476: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1469:
1470: IF g_debug_stmt THEN
1471: PO_DEBUG.debug_begin(l_log_head);
1472: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
1473: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
1474: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1475: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1476: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1477: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1470: IF g_debug_stmt THEN
1471: PO_DEBUG.debug_begin(l_log_head);
1472: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
1473: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
1474: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1475: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1476: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1477: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1478: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
1471: PO_DEBUG.debug_begin(l_log_head);
1472: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
1473: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
1474: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1475: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1476: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1477: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1478: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
1479: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
1472: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
1473: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
1474: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1475: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1476: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1477: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1478: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
1479: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
1480: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
1473: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
1474: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1475: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1476: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1477: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1478: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
1479: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
1480: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
1481: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
1474: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1475: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1476: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1477: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1478: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
1479: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
1480: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
1481: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
1482: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
1475: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1476: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1477: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1478: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
1479: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
1480: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
1481: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
1482: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
1483: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
1476: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1477: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1478: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
1479: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
1480: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
1481: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
1482: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
1483: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
1484: END IF;
1477: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1478: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
1479: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
1480: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
1481: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
1482: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
1483: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
1484: END IF;
1485:
1478: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
1479: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
1480: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
1481: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
1482: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
1483: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
1484: END IF;
1485:
1486: l_progress := '010';
1479: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
1480: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
1481: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
1482: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
1483: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
1484: END IF;
1485:
1486: l_progress := '010';
1487:
1512:
1513: l_progress := '050';
1514:
1515: IF g_debug_stmt THEN
1516: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Calling Private Procedure');
1517: END IF;
1518:
1519: l_progress := '060';
1520:
1542:
1543: l_progress := '110';
1544:
1545: IF g_debug_stmt THEN
1546: PO_DEBUG.debug_stmt(l_log_head,l_progress,
1547: 'Returned from Private Procedure successfully');
1548: END IF;
1549:
1550: l_progress := '120';
1573:
1574: l_progress := '900';
1575:
1576: IF g_debug_stmt THEN
1577: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1578: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1579: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1580: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1581: PO_DEBUG.debug_end(l_log_head);
1574: l_progress := '900';
1575:
1576: IF g_debug_stmt THEN
1577: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1578: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1579: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1580: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1581: PO_DEBUG.debug_end(l_log_head);
1582: END IF;
1575:
1576: IF g_debug_stmt THEN
1577: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1578: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1579: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1580: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1581: PO_DEBUG.debug_end(l_log_head);
1582: END IF;
1583:
1576: IF g_debug_stmt THEN
1577: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1578: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1579: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1580: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1581: PO_DEBUG.debug_end(l_log_head);
1582: END IF;
1583:
1584: EXCEPTION
1577: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1578: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1579: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1580: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1581: PO_DEBUG.debug_end(l_log_head);
1582: END IF;
1583:
1584: EXCEPTION
1585: WHEN OTHERS THEN
1583:
1584: EXCEPTION
1585: WHEN OTHERS THEN
1586: BEGIN
1587: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
1588: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1589: IF g_debug_stmt THEN
1590: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1591: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1586: BEGIN
1587: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
1588: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1589: IF g_debug_stmt THEN
1590: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1591: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1592: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1593: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1594: END IF;
1587: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
1588: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1589: IF g_debug_stmt THEN
1590: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1591: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1592: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1593: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1594: END IF;
1595: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
1588: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1589: IF g_debug_stmt THEN
1590: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1591: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1592: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1593: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1594: END IF;
1595: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
1596: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
1589: IF g_debug_stmt THEN
1590: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1591: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1592: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1593: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1594: END IF;
1595: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
1596: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
1597: END IF;
1595: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
1596: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
1597: END IF;
1598: ROLLBACK TO DO_REJECT_SP;
1599: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS End');
1600: EXCEPTION
1601: WHEN OTHERS THEN
1602: NULL;
1603: END;
1703:
1704: BEGIN
1705:
1706: IF g_debug_stmt THEN
1707: PO_DEBUG.debug_begin(l_log_head);
1708: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
1709: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
1710: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1711: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1704: BEGIN
1705:
1706: IF g_debug_stmt THEN
1707: PO_DEBUG.debug_begin(l_log_head);
1708: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
1709: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
1710: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1711: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1712: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1705:
1706: IF g_debug_stmt THEN
1707: PO_DEBUG.debug_begin(l_log_head);
1708: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
1709: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
1710: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1711: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1712: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1713: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1706: IF g_debug_stmt THEN
1707: PO_DEBUG.debug_begin(l_log_head);
1708: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
1709: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
1710: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1711: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1712: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1713: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1714: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
1707: PO_DEBUG.debug_begin(l_log_head);
1708: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
1709: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
1710: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1711: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1712: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1713: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1714: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
1715: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
1708: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
1709: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
1710: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1711: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1712: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1713: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1714: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
1715: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
1716: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
1709: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
1710: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1711: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1712: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1713: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1714: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
1715: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
1716: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
1717: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
1710: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1711: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1712: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1713: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1714: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
1715: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
1716: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
1717: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
1718: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
1711: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1712: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1713: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1714: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
1715: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
1716: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
1717: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
1718: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
1719: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
1712: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1713: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1714: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
1715: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
1716: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
1717: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
1718: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
1719: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
1720: END IF;
1713: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1714: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
1715: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
1716: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
1717: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
1718: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
1719: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
1720: END IF;
1721:
1714: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
1715: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
1716: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
1717: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
1718: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
1719: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
1720: END IF;
1721:
1722: l_progress := '010';
1715: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
1716: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
1717: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
1718: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
1719: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
1720: END IF;
1721:
1722: l_progress := '010';
1723:
1748:
1749: l_progress := '050';
1750:
1751: IF g_debug_stmt THEN
1752: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Calling Private Procedure');
1753: END IF;
1754:
1755: l_progress := '060';
1756:
1778:
1779: l_progress := '110';
1780:
1781: IF g_debug_stmt THEN
1782: PO_DEBUG.debug_stmt(l_log_head,l_progress,
1783: 'Returned from Private Procedure successfully');
1784: END IF;
1785:
1786: l_progress := '120';
1809:
1810: l_progress := '900';
1811:
1812: IF g_debug_stmt THEN
1813: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1814: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1815: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1816: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1817: PO_DEBUG.debug_end(l_log_head);
1810: l_progress := '900';
1811:
1812: IF g_debug_stmt THEN
1813: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1814: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1815: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1816: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1817: PO_DEBUG.debug_end(l_log_head);
1818: END IF;
1811:
1812: IF g_debug_stmt THEN
1813: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1814: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1815: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1816: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1817: PO_DEBUG.debug_end(l_log_head);
1818: END IF;
1819:
1812: IF g_debug_stmt THEN
1813: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1814: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1815: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1816: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1817: PO_DEBUG.debug_end(l_log_head);
1818: END IF;
1819:
1820: EXCEPTION
1813: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1814: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1815: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1816: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1817: PO_DEBUG.debug_end(l_log_head);
1818: END IF;
1819:
1820: EXCEPTION
1821: WHEN OTHERS THEN
1819:
1820: EXCEPTION
1821: WHEN OTHERS THEN
1822: BEGIN
1823: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
1824: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1825: IF g_debug_stmt THEN
1826: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1827: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1822: BEGIN
1823: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
1824: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1825: IF g_debug_stmt THEN
1826: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1827: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1828: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1829: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1830: END IF;
1823: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
1824: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1825: IF g_debug_stmt THEN
1826: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1827: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1828: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1829: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1830: END IF;
1831: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
1824: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1825: IF g_debug_stmt THEN
1826: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1827: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1828: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1829: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1830: END IF;
1831: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
1832: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
1825: IF g_debug_stmt THEN
1826: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
1827: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
1828: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
1829: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
1830: END IF;
1831: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
1832: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
1833: END IF;
1831: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
1832: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
1833: END IF;
1834: ROLLBACK TO DO_CANCEL_SP;
1835: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS End');
1836: EXCEPTION
1837: WHEN OTHERS THEN
1838: NULL;
1839: END;
1932:
1933: BEGIN
1934:
1935: IF g_debug_stmt THEN
1936: PO_DEBUG.debug_begin(l_log_head);
1937: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
1938: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
1939: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1940: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1933: BEGIN
1934:
1935: IF g_debug_stmt THEN
1936: PO_DEBUG.debug_begin(l_log_head);
1937: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
1938: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
1939: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1940: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1941: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1934:
1935: IF g_debug_stmt THEN
1936: PO_DEBUG.debug_begin(l_log_head);
1937: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
1938: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
1939: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1940: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1941: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1942: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1935: IF g_debug_stmt THEN
1936: PO_DEBUG.debug_begin(l_log_head);
1937: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
1938: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
1939: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1940: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1941: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1942: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1943: PO_DEBUG.debug_var(l_log_head,l_progress,'p_employee_id',p_employee_id);
1936: PO_DEBUG.debug_begin(l_log_head);
1937: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
1938: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
1939: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1940: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1941: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1942: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1943: PO_DEBUG.debug_var(l_log_head,l_progress,'p_employee_id',p_employee_id);
1944: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
1937: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
1938: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
1939: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1940: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1941: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1942: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1943: PO_DEBUG.debug_var(l_log_head,l_progress,'p_employee_id',p_employee_id);
1944: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
1945: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
1938: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
1939: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1940: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1941: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1942: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1943: PO_DEBUG.debug_var(l_log_head,l_progress,'p_employee_id',p_employee_id);
1944: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
1945: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
1946: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
1939: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
1940: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1941: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1942: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1943: PO_DEBUG.debug_var(l_log_head,l_progress,'p_employee_id',p_employee_id);
1944: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
1945: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
1946: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
1947: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
1940: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
1941: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1942: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1943: PO_DEBUG.debug_var(l_log_head,l_progress,'p_employee_id',p_employee_id);
1944: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
1945: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
1946: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
1947: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
1948: END IF;
1941: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
1942: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1943: PO_DEBUG.debug_var(l_log_head,l_progress,'p_employee_id',p_employee_id);
1944: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
1945: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
1946: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
1947: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
1948: END IF;
1949:
1942: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
1943: PO_DEBUG.debug_var(l_log_head,l_progress,'p_employee_id',p_employee_id);
1944: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
1945: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
1946: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
1947: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
1948: END IF;
1949:
1950: l_progress := '010';
1943: PO_DEBUG.debug_var(l_log_head,l_progress,'p_employee_id',p_employee_id);
1944: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_funds',p_override_funds);
1945: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
1946: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
1947: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
1948: END IF;
1949:
1950: l_progress := '010';
1951:
1976:
1977: l_progress := '050';
1978:
1979: IF g_debug_stmt THEN
1980: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Calling Private Procedure');
1981: END IF;
1982:
1983: l_progress := '060';
1984:
2005:
2006: l_progress := '110';
2007:
2008: IF g_debug_stmt THEN
2009: PO_DEBUG.debug_stmt(l_log_head,l_progress,
2010: 'Returned from Private Procedure successfully');
2011: END IF;
2012:
2013: l_progress := '120';
2036:
2037: l_progress := '900';
2038:
2039: IF g_debug_stmt THEN
2040: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
2041: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
2042: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2043: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
2044: PO_DEBUG.debug_end(l_log_head);
2037: l_progress := '900';
2038:
2039: IF g_debug_stmt THEN
2040: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
2041: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
2042: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2043: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
2044: PO_DEBUG.debug_end(l_log_head);
2045: END IF;
2038:
2039: IF g_debug_stmt THEN
2040: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
2041: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
2042: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2043: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
2044: PO_DEBUG.debug_end(l_log_head);
2045: END IF;
2046:
2039: IF g_debug_stmt THEN
2040: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
2041: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
2042: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2043: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
2044: PO_DEBUG.debug_end(l_log_head);
2045: END IF;
2046:
2047: EXCEPTION
2040: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
2041: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
2042: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2043: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
2044: PO_DEBUG.debug_end(l_log_head);
2045: END IF;
2046:
2047: EXCEPTION
2048: WHEN OTHERS THEN
2046:
2047: EXCEPTION
2048: WHEN OTHERS THEN
2049: BEGIN
2050: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
2051: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2052: IF g_debug_stmt THEN
2053: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
2054: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
2049: BEGIN
2050: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
2051: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2052: IF g_debug_stmt THEN
2053: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
2054: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
2055: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2056: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
2057: END IF;
2050: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
2051: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2052: IF g_debug_stmt THEN
2053: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
2054: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
2055: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2056: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
2057: END IF;
2058: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
2051: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2052: IF g_debug_stmt THEN
2053: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
2054: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
2055: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2056: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
2057: END IF;
2058: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
2059: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
2052: IF g_debug_stmt THEN
2053: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
2054: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
2055: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2056: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
2057: END IF;
2058: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
2059: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
2060: END IF;
2058: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
2059: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
2060: END IF;
2061: ROLLBACK TO DO_ADJUST_SP;
2062: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS End');
2063: EXCEPTION
2064: WHEN OTHERS THEN
2065: NULL;
2066: END;
2159:
2160: BEGIN
2161:
2162: IF g_debug_stmt THEN
2163: PO_DEBUG.debug_begin(l_log_head);
2164: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
2165: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2166: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2167: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2160: BEGIN
2161:
2162: IF g_debug_stmt THEN
2163: PO_DEBUG.debug_begin(l_log_head);
2164: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
2165: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2166: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2167: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2168: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
2161:
2162: IF g_debug_stmt THEN
2163: PO_DEBUG.debug_begin(l_log_head);
2164: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
2165: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2166: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2167: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2168: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
2169: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
2162: IF g_debug_stmt THEN
2163: PO_DEBUG.debug_begin(l_log_head);
2164: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
2165: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2166: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2167: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2168: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
2169: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
2170: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
2163: PO_DEBUG.debug_begin(l_log_head);
2164: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
2165: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2166: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2167: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2168: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
2169: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
2170: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
2171: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
2164: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
2165: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2166: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2167: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2168: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
2169: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
2170: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
2171: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
2172: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
2165: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2166: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2167: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2168: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
2169: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
2170: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
2171: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
2172: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
2173: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
2166: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2167: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2168: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
2169: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
2170: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
2171: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
2172: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
2173: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
2174: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
2167: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2168: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
2169: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
2170: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
2171: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
2172: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
2173: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
2174: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
2175: END IF;
2168: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
2169: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
2170: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
2171: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
2172: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
2173: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
2174: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
2175: END IF;
2176:
2169: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
2170: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
2171: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
2172: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
2173: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
2174: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
2175: END IF;
2176:
2177: l_progress := '010';
2170: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
2171: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
2172: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
2173: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
2174: PO_DEBUG.debug_var(l_log_head,l_progress,'p_report_successes',p_report_successes);
2175: END IF;
2176:
2177: l_progress := '010';
2178:
2203:
2204: l_progress := '050';
2205:
2206: IF g_debug_stmt THEN
2207: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Calling Private Procedure');
2208: END IF;
2209:
2210: l_progress := '060';
2211:
2232:
2233: l_progress := '110';
2234:
2235: IF g_debug_stmt THEN
2236: PO_DEBUG.debug_stmt(l_log_head,l_progress,
2237: 'Returned from Private Procedure successfully');
2238: END IF;
2239:
2240: l_progress := '120';
2263:
2264: l_progress := '900';
2265:
2266: IF g_debug_stmt THEN
2267: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
2268: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
2269: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2270: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
2271: PO_DEBUG.debug_end(l_log_head);
2264: l_progress := '900';
2265:
2266: IF g_debug_stmt THEN
2267: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
2268: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
2269: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2270: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
2271: PO_DEBUG.debug_end(l_log_head);
2272: END IF;
2265:
2266: IF g_debug_stmt THEN
2267: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
2268: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
2269: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2270: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
2271: PO_DEBUG.debug_end(l_log_head);
2272: END IF;
2273:
2266: IF g_debug_stmt THEN
2267: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
2268: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
2269: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2270: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
2271: PO_DEBUG.debug_end(l_log_head);
2272: END IF;
2273:
2274: EXCEPTION
2267: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
2268: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
2269: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2270: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
2271: PO_DEBUG.debug_end(l_log_head);
2272: END IF;
2273:
2274: EXCEPTION
2275: WHEN OTHERS THEN
2273:
2274: EXCEPTION
2275: WHEN OTHERS THEN
2276: BEGIN
2277: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
2278: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2279: IF g_debug_stmt THEN
2280: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
2281: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
2276: BEGIN
2277: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
2278: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2279: IF g_debug_stmt THEN
2280: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
2281: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
2282: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2283: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
2284: END IF;
2277: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
2278: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2279: IF g_debug_stmt THEN
2280: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
2281: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
2282: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2283: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
2284: END IF;
2285: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
2278: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2279: IF g_debug_stmt THEN
2280: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
2281: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
2282: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2283: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
2284: END IF;
2285: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
2286: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
2279: IF g_debug_stmt THEN
2280: PO_DEBUG.debug_var(l_log_head,l_progress,'l_report_return_status',l_report_return_status);
2281: PO_DEBUG.debug_var(l_log_head,l_progress,'l_online_report_id',l_online_report_id);
2282: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2283: PO_DEBUG.debug_var(l_log_head,l_progress,'x_po_return_code',x_po_return_code);
2284: END IF;
2285: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
2286: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
2287: END IF;
2285: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
2286: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
2287: END IF;
2288: ROLLBACK TO DO_FINAL_CLOSE_SP;
2289: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS End');
2290: EXCEPTION
2291: WHEN OTHERS THEN
2292: NULL;
2293: END;
2392:
2393: BEGIN
2394:
2395: IF g_debug_stmt THEN
2396: PO_DEBUG.debug_begin(l_log_head);
2397: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
2398: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2399: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2400: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2393: BEGIN
2394:
2395: IF g_debug_stmt THEN
2396: PO_DEBUG.debug_begin(l_log_head);
2397: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
2398: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2399: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2400: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2401: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_id',p_distribution_id);
2394:
2395: IF g_debug_stmt THEN
2396: PO_DEBUG.debug_begin(l_log_head);
2397: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
2398: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2399: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2400: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2401: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_id',p_distribution_id);
2402: PO_DEBUG.debug_var(l_log_head,l_progress,'p_invoice_id',p_invoice_id);
2395: IF g_debug_stmt THEN
2396: PO_DEBUG.debug_begin(l_log_head);
2397: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
2398: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2399: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2400: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2401: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_id',p_distribution_id);
2402: PO_DEBUG.debug_var(l_log_head,l_progress,'p_invoice_id',p_invoice_id);
2403: PO_DEBUG.debug_var(l_log_head,l_progress,'p_encumbrance_amt',p_encumbrance_amt);
2396: PO_DEBUG.debug_begin(l_log_head);
2397: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
2398: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2399: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2400: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2401: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_id',p_distribution_id);
2402: PO_DEBUG.debug_var(l_log_head,l_progress,'p_invoice_id',p_invoice_id);
2403: PO_DEBUG.debug_var(l_log_head,l_progress,'p_encumbrance_amt',p_encumbrance_amt);
2404: PO_DEBUG.debug_var(l_log_head,l_progress,'p_qty_cancelled',p_qty_cancelled);
2397: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
2398: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2399: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2400: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2401: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_id',p_distribution_id);
2402: PO_DEBUG.debug_var(l_log_head,l_progress,'p_invoice_id',p_invoice_id);
2403: PO_DEBUG.debug_var(l_log_head,l_progress,'p_encumbrance_amt',p_encumbrance_amt);
2404: PO_DEBUG.debug_var(l_log_head,l_progress,'p_qty_cancelled',p_qty_cancelled);
2405: PO_DEBUG.debug_var(l_log_head,l_progress,'p_budget_account_id',p_budget_account_id);
2398: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2399: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2400: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2401: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_id',p_distribution_id);
2402: PO_DEBUG.debug_var(l_log_head,l_progress,'p_invoice_id',p_invoice_id);
2403: PO_DEBUG.debug_var(l_log_head,l_progress,'p_encumbrance_amt',p_encumbrance_amt);
2404: PO_DEBUG.debug_var(l_log_head,l_progress,'p_qty_cancelled',p_qty_cancelled);
2405: PO_DEBUG.debug_var(l_log_head,l_progress,'p_budget_account_id',p_budget_account_id);
2406: PO_DEBUG.debug_var(l_log_head,l_progress,'p_gl_date',p_gl_date);
2399: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2400: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2401: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_id',p_distribution_id);
2402: PO_DEBUG.debug_var(l_log_head,l_progress,'p_invoice_id',p_invoice_id);
2403: PO_DEBUG.debug_var(l_log_head,l_progress,'p_encumbrance_amt',p_encumbrance_amt);
2404: PO_DEBUG.debug_var(l_log_head,l_progress,'p_qty_cancelled',p_qty_cancelled);
2405: PO_DEBUG.debug_var(l_log_head,l_progress,'p_budget_account_id',p_budget_account_id);
2406: PO_DEBUG.debug_var(l_log_head,l_progress,'p_gl_date',p_gl_date);
2407: PO_DEBUG.debug_var(l_log_head,l_progress,'p_period_name',p_period_name);
2400: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2401: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_id',p_distribution_id);
2402: PO_DEBUG.debug_var(l_log_head,l_progress,'p_invoice_id',p_invoice_id);
2403: PO_DEBUG.debug_var(l_log_head,l_progress,'p_encumbrance_amt',p_encumbrance_amt);
2404: PO_DEBUG.debug_var(l_log_head,l_progress,'p_qty_cancelled',p_qty_cancelled);
2405: PO_DEBUG.debug_var(l_log_head,l_progress,'p_budget_account_id',p_budget_account_id);
2406: PO_DEBUG.debug_var(l_log_head,l_progress,'p_gl_date',p_gl_date);
2407: PO_DEBUG.debug_var(l_log_head,l_progress,'p_period_name',p_period_name);
2408: PO_DEBUG.debug_var(l_log_head,l_progress,'p_period_year',p_period_year);
2401: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_id',p_distribution_id);
2402: PO_DEBUG.debug_var(l_log_head,l_progress,'p_invoice_id',p_invoice_id);
2403: PO_DEBUG.debug_var(l_log_head,l_progress,'p_encumbrance_amt',p_encumbrance_amt);
2404: PO_DEBUG.debug_var(l_log_head,l_progress,'p_qty_cancelled',p_qty_cancelled);
2405: PO_DEBUG.debug_var(l_log_head,l_progress,'p_budget_account_id',p_budget_account_id);
2406: PO_DEBUG.debug_var(l_log_head,l_progress,'p_gl_date',p_gl_date);
2407: PO_DEBUG.debug_var(l_log_head,l_progress,'p_period_name',p_period_name);
2408: PO_DEBUG.debug_var(l_log_head,l_progress,'p_period_year',p_period_year);
2409: PO_DEBUG.debug_var(l_log_head,l_progress,'p_period_num',p_period_num);
2402: PO_DEBUG.debug_var(l_log_head,l_progress,'p_invoice_id',p_invoice_id);
2403: PO_DEBUG.debug_var(l_log_head,l_progress,'p_encumbrance_amt',p_encumbrance_amt);
2404: PO_DEBUG.debug_var(l_log_head,l_progress,'p_qty_cancelled',p_qty_cancelled);
2405: PO_DEBUG.debug_var(l_log_head,l_progress,'p_budget_account_id',p_budget_account_id);
2406: PO_DEBUG.debug_var(l_log_head,l_progress,'p_gl_date',p_gl_date);
2407: PO_DEBUG.debug_var(l_log_head,l_progress,'p_period_name',p_period_name);
2408: PO_DEBUG.debug_var(l_log_head,l_progress,'p_period_year',p_period_year);
2409: PO_DEBUG.debug_var(l_log_head,l_progress,'p_period_num',p_period_num);
2410: PO_DEBUG.debug_var(l_log_head,l_progress,'p_quarter_num',p_quarter_num);
2403: PO_DEBUG.debug_var(l_log_head,l_progress,'p_encumbrance_amt',p_encumbrance_amt);
2404: PO_DEBUG.debug_var(l_log_head,l_progress,'p_qty_cancelled',p_qty_cancelled);
2405: PO_DEBUG.debug_var(l_log_head,l_progress,'p_budget_account_id',p_budget_account_id);
2406: PO_DEBUG.debug_var(l_log_head,l_progress,'p_gl_date',p_gl_date);
2407: PO_DEBUG.debug_var(l_log_head,l_progress,'p_period_name',p_period_name);
2408: PO_DEBUG.debug_var(l_log_head,l_progress,'p_period_year',p_period_year);
2409: PO_DEBUG.debug_var(l_log_head,l_progress,'p_period_num',p_period_num);
2410: PO_DEBUG.debug_var(l_log_head,l_progress,'p_quarter_num',p_quarter_num);
2411:
2404: PO_DEBUG.debug_var(l_log_head,l_progress,'p_qty_cancelled',p_qty_cancelled);
2405: PO_DEBUG.debug_var(l_log_head,l_progress,'p_budget_account_id',p_budget_account_id);
2406: PO_DEBUG.debug_var(l_log_head,l_progress,'p_gl_date',p_gl_date);
2407: PO_DEBUG.debug_var(l_log_head,l_progress,'p_period_name',p_period_name);
2408: PO_DEBUG.debug_var(l_log_head,l_progress,'p_period_year',p_period_year);
2409: PO_DEBUG.debug_var(l_log_head,l_progress,'p_period_num',p_period_num);
2410: PO_DEBUG.debug_var(l_log_head,l_progress,'p_quarter_num',p_quarter_num);
2411:
2412: -- Bug 3480949: log p_tax_line_flag
2405: PO_DEBUG.debug_var(l_log_head,l_progress,'p_budget_account_id',p_budget_account_id);
2406: PO_DEBUG.debug_var(l_log_head,l_progress,'p_gl_date',p_gl_date);
2407: PO_DEBUG.debug_var(l_log_head,l_progress,'p_period_name',p_period_name);
2408: PO_DEBUG.debug_var(l_log_head,l_progress,'p_period_year',p_period_year);
2409: PO_DEBUG.debug_var(l_log_head,l_progress,'p_period_num',p_period_num);
2410: PO_DEBUG.debug_var(l_log_head,l_progress,'p_quarter_num',p_quarter_num);
2411:
2412: -- Bug 3480949: log p_tax_line_flag
2413: PO_DEBUG.debug_var(l_log_head,l_progress,'p_tax_line_flag',p_tax_line_flag);
2406: PO_DEBUG.debug_var(l_log_head,l_progress,'p_gl_date',p_gl_date);
2407: PO_DEBUG.debug_var(l_log_head,l_progress,'p_period_name',p_period_name);
2408: PO_DEBUG.debug_var(l_log_head,l_progress,'p_period_year',p_period_year);
2409: PO_DEBUG.debug_var(l_log_head,l_progress,'p_period_num',p_period_num);
2410: PO_DEBUG.debug_var(l_log_head,l_progress,'p_quarter_num',p_quarter_num);
2411:
2412: -- Bug 3480949: log p_tax_line_flag
2413: PO_DEBUG.debug_var(l_log_head,l_progress,'p_tax_line_flag',p_tax_line_flag);
2414:
2409: PO_DEBUG.debug_var(l_log_head,l_progress,'p_period_num',p_period_num);
2410: PO_DEBUG.debug_var(l_log_head,l_progress,'p_quarter_num',p_quarter_num);
2411:
2412: -- Bug 3480949: log p_tax_line_flag
2413: PO_DEBUG.debug_var(l_log_head,l_progress,'p_tax_line_flag',p_tax_line_flag);
2414:
2415: END IF;
2416:
2417: l_progress := '010';
2443:
2444: l_progress := '050';
2445:
2446: IF g_debug_stmt THEN
2447: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Calling Private Procedure');
2448: END IF;
2449:
2450: l_progress := '060';
2451:
2475:
2476: l_progress := '110';
2477:
2478: IF g_debug_stmt THEN
2479: PO_DEBUG.debug_stmt(l_log_head,l_progress,
2480: 'Returned from Private Procedure successfully');
2481: END IF;
2482:
2483: l_progress := '200';
2489:
2490: l_progress := '900';
2491:
2492: IF g_debug_stmt THEN
2493: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2494: PO_DEBUG.debug_var(l_log_head,l_progress,'x_packet_id',x_packet_id);
2495: PO_DEBUG.debug_end(l_log_head);
2496: END IF;
2497:
2490: l_progress := '900';
2491:
2492: IF g_debug_stmt THEN
2493: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2494: PO_DEBUG.debug_var(l_log_head,l_progress,'x_packet_id',x_packet_id);
2495: PO_DEBUG.debug_end(l_log_head);
2496: END IF;
2497:
2498: EXCEPTION
2491:
2492: IF g_debug_stmt THEN
2493: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2494: PO_DEBUG.debug_var(l_log_head,l_progress,'x_packet_id',x_packet_id);
2495: PO_DEBUG.debug_end(l_log_head);
2496: END IF;
2497:
2498: EXCEPTION
2499: WHEN OTHERS THEN
2497:
2498: EXCEPTION
2499: WHEN OTHERS THEN
2500: BEGIN
2501: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
2502: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2503: IF g_debug_stmt THEN
2504: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2505: PO_DEBUG.debug_var(l_log_head,l_progress,'x_packet_id',x_packet_id);
2500: BEGIN
2501: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
2502: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2503: IF g_debug_stmt THEN
2504: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2505: PO_DEBUG.debug_var(l_log_head,l_progress,'x_packet_id',x_packet_id);
2506: END IF;
2507: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
2508: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
2501: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
2502: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2503: IF g_debug_stmt THEN
2504: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2505: PO_DEBUG.debug_var(l_log_head,l_progress,'x_packet_id',x_packet_id);
2506: END IF;
2507: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
2508: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
2509: END IF;
2507: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
2508: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
2509: END IF;
2510: ROLLBACK TO REINSTATE_PO_ENCUMBRANCE_SP;
2511: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS End');
2512: EXCEPTION
2513: WHEN OTHERS THEN
2514: NULL;
2515: END;
2575:
2576: BEGIN
2577:
2578: IF g_debug_stmt THEN
2579: PO_DEBUG.debug_begin(l_log_head);
2580: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
2581: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2582: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2583: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2576: BEGIN
2577:
2578: IF g_debug_stmt THEN
2579: PO_DEBUG.debug_begin(l_log_head);
2580: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
2581: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2582: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2583: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2584: PO_DEBUG.debug_var(l_log_head,l_progress,'p_agreement_id_tbl',p_agreement_id_tbl);
2577:
2578: IF g_debug_stmt THEN
2579: PO_DEBUG.debug_begin(l_log_head);
2580: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
2581: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2582: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2583: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2584: PO_DEBUG.debug_var(l_log_head,l_progress,'p_agreement_id_tbl',p_agreement_id_tbl);
2585: END IF;
2578: IF g_debug_stmt THEN
2579: PO_DEBUG.debug_begin(l_log_head);
2580: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
2581: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2582: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2583: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2584: PO_DEBUG.debug_var(l_log_head,l_progress,'p_agreement_id_tbl',p_agreement_id_tbl);
2585: END IF;
2586:
2579: PO_DEBUG.debug_begin(l_log_head);
2580: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
2581: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2582: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2583: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2584: PO_DEBUG.debug_var(l_log_head,l_progress,'p_agreement_id_tbl',p_agreement_id_tbl);
2585: END IF;
2586:
2587: l_progress := '010';
2580: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
2581: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2582: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2583: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2584: PO_DEBUG.debug_var(l_log_head,l_progress,'p_agreement_id_tbl',p_agreement_id_tbl);
2585: END IF;
2586:
2587: l_progress := '010';
2588:
2613:
2614: l_progress := '050';
2615:
2616: IF g_debug_stmt THEN
2617: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Calling Private Procedure');
2618: END IF;
2619:
2620: l_progress := '060';
2621:
2635:
2636: l_progress := '110';
2637:
2638: IF g_debug_stmt THEN
2639: PO_DEBUG.debug_stmt(l_log_head,l_progress,
2640: 'Returned from Private Procedure successfully');
2641: END IF;
2642:
2643: l_progress := '200';
2649:
2650: l_progress := '900';
2651:
2652: IF g_debug_stmt THEN
2653: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2654: PO_DEBUG.debug_var(l_log_head,l_progress,'x_agreement_encumbered_tbl',x_agreement_encumbered_tbl);
2655: PO_DEBUG.debug_end(l_log_head);
2656: END IF;
2657:
2650: l_progress := '900';
2651:
2652: IF g_debug_stmt THEN
2653: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2654: PO_DEBUG.debug_var(l_log_head,l_progress,'x_agreement_encumbered_tbl',x_agreement_encumbered_tbl);
2655: PO_DEBUG.debug_end(l_log_head);
2656: END IF;
2657:
2658: EXCEPTION
2651:
2652: IF g_debug_stmt THEN
2653: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2654: PO_DEBUG.debug_var(l_log_head,l_progress,'x_agreement_encumbered_tbl',x_agreement_encumbered_tbl);
2655: PO_DEBUG.debug_end(l_log_head);
2656: END IF;
2657:
2658: EXCEPTION
2659: WHEN OTHERS THEN
2657:
2658: EXCEPTION
2659: WHEN OTHERS THEN
2660: BEGIN
2661: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
2662: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2663: IF g_debug_stmt THEN
2664: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2665: PO_DEBUG.debug_var(l_log_head,l_progress,'x_agreement_encumbered_tbl',x_agreement_encumbered_tbl);
2660: BEGIN
2661: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
2662: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2663: IF g_debug_stmt THEN
2664: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2665: PO_DEBUG.debug_var(l_log_head,l_progress,'x_agreement_encumbered_tbl',x_agreement_encumbered_tbl);
2666: END IF;
2667: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
2668: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
2661: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
2662: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2663: IF g_debug_stmt THEN
2664: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2665: PO_DEBUG.debug_var(l_log_head,l_progress,'x_agreement_encumbered_tbl',x_agreement_encumbered_tbl);
2666: END IF;
2667: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
2668: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
2669: END IF;
2667: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
2668: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
2669: END IF;
2670: ROLLBACK TO IS_AGREEMENT_ENCUMBERED_SP;
2671: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS End');
2672: EXCEPTION
2673: WHEN OTHERS THEN
2674: NULL;
2675: END;
2748:
2749: BEGIN
2750:
2751: IF g_debug_stmt THEN
2752: PO_DEBUG.debug_begin(l_log_head);
2753: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
2754: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2755: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2756: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2749: BEGIN
2750:
2751: IF g_debug_stmt THEN
2752: PO_DEBUG.debug_begin(l_log_head);
2753: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
2754: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2755: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2756: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2757: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
2750:
2751: IF g_debug_stmt THEN
2752: PO_DEBUG.debug_begin(l_log_head);
2753: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
2754: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2755: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2756: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2757: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
2758: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
2751: IF g_debug_stmt THEN
2752: PO_DEBUG.debug_begin(l_log_head);
2753: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
2754: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2755: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2756: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2757: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
2758: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
2759: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
2752: PO_DEBUG.debug_begin(l_log_head);
2753: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
2754: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2755: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2756: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2757: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
2758: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
2759: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
2760: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
2753: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
2754: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2755: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2756: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2757: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
2758: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
2759: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
2760: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
2761: END IF;
2754: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2755: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2756: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2757: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
2758: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
2759: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
2760: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
2761: END IF;
2762:
2755: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2756: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2757: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
2758: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
2759: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
2760: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
2761: END IF;
2762:
2763: l_progress := '010';
2756: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2757: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
2758: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
2759: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
2760: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
2761: END IF;
2762:
2763: l_progress := '010';
2764:
2789:
2790: l_progress := '050';
2791:
2792: IF g_debug_stmt THEN
2793: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Calling Private Procedure');
2794: END IF;
2795:
2796: l_progress := '060';
2797:
2814:
2815: l_progress := '110';
2816:
2817: IF g_debug_stmt THEN
2818: PO_DEBUG.debug_stmt(l_log_head,l_progress,
2819: 'Returned from Private Procedure successfully');
2820: END IF;
2821:
2822: l_progress := '200';
2828:
2829: l_progress := '900';
2830:
2831: IF g_debug_stmt THEN
2832: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2833: PO_DEBUG.debug_var(l_log_head,l_progress,'x_reservable_flag',x_reservable_flag);
2834: PO_DEBUG.debug_end(l_log_head);
2835: END IF;
2836:
2829: l_progress := '900';
2830:
2831: IF g_debug_stmt THEN
2832: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2833: PO_DEBUG.debug_var(l_log_head,l_progress,'x_reservable_flag',x_reservable_flag);
2834: PO_DEBUG.debug_end(l_log_head);
2835: END IF;
2836:
2837: EXCEPTION
2830:
2831: IF g_debug_stmt THEN
2832: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2833: PO_DEBUG.debug_var(l_log_head,l_progress,'x_reservable_flag',x_reservable_flag);
2834: PO_DEBUG.debug_end(l_log_head);
2835: END IF;
2836:
2837: EXCEPTION
2838: WHEN OTHERS THEN
2836:
2837: EXCEPTION
2838: WHEN OTHERS THEN
2839: BEGIN
2840: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
2841: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2842: IF g_debug_stmt THEN
2843: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2844: PO_DEBUG.debug_var(l_log_head,l_progress,'x_reservable_flag',x_reservable_flag);
2839: BEGIN
2840: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
2841: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2842: IF g_debug_stmt THEN
2843: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2844: PO_DEBUG.debug_var(l_log_head,l_progress,'x_reservable_flag',x_reservable_flag);
2845: END IF;
2846: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
2847: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
2840: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
2841: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2842: IF g_debug_stmt THEN
2843: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
2844: PO_DEBUG.debug_var(l_log_head,l_progress,'x_reservable_flag',x_reservable_flag);
2845: END IF;
2846: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
2847: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
2848: END IF;
2846: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
2847: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
2848: END IF;
2849: ROLLBACK TO IS_RESERVABLE_SP;
2850: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS End');
2851: EXCEPTION
2852: WHEN OTHERS THEN
2853: NULL;
2854: END;
2927:
2928: BEGIN
2929:
2930: IF g_debug_stmt THEN
2931: PO_DEBUG.debug_begin(l_log_head);
2932: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
2933: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2934: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2935: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2928: BEGIN
2929:
2930: IF g_debug_stmt THEN
2931: PO_DEBUG.debug_begin(l_log_head);
2932: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
2933: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2934: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2935: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2936: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
2929:
2930: IF g_debug_stmt THEN
2931: PO_DEBUG.debug_begin(l_log_head);
2932: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
2933: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2934: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2935: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2936: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
2937: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
2930: IF g_debug_stmt THEN
2931: PO_DEBUG.debug_begin(l_log_head);
2932: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
2933: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2934: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2935: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2936: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
2937: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
2938: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
2931: PO_DEBUG.debug_begin(l_log_head);
2932: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
2933: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2934: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2935: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2936: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
2937: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
2938: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
2939: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
2932: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
2933: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2934: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2935: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2936: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
2937: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
2938: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
2939: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
2940: END IF;
2933: PO_DEBUG.debug_var(l_log_head,l_progress,'p_commit',p_commit);
2934: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2935: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2936: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
2937: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
2938: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
2939: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
2940: END IF;
2941:
2934: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
2935: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2936: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
2937: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
2938: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
2939: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
2940: END IF;
2941:
2942: l_progress := '010';
2935: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
2936: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
2937: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
2938: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
2939: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
2940: END IF;
2941:
2942: l_progress := '010';
2943:
2968:
2969: l_progress := '050';
2970:
2971: IF g_debug_stmt THEN
2972: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Calling Private Procedure');
2973: END IF;
2974:
2975: l_progress := '060';
2976:
2993:
2994: l_progress := '110';
2995:
2996: IF g_debug_stmt THEN
2997: PO_DEBUG.debug_stmt(l_log_head,l_progress,
2998: 'Returned from Private Procedure successfully');
2999: END IF;
3000:
3001: l_progress := '200';
3007:
3008: l_progress := '900';
3009:
3010: IF g_debug_stmt THEN
3011: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
3012: PO_DEBUG.debug_var(l_log_head,l_progress,'x_unreservable_flag',x_unreservable_flag);
3013: PO_DEBUG.debug_end(l_log_head);
3014: END IF;
3015:
3008: l_progress := '900';
3009:
3010: IF g_debug_stmt THEN
3011: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
3012: PO_DEBUG.debug_var(l_log_head,l_progress,'x_unreservable_flag',x_unreservable_flag);
3013: PO_DEBUG.debug_end(l_log_head);
3014: END IF;
3015:
3016: EXCEPTION
3009:
3010: IF g_debug_stmt THEN
3011: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
3012: PO_DEBUG.debug_var(l_log_head,l_progress,'x_unreservable_flag',x_unreservable_flag);
3013: PO_DEBUG.debug_end(l_log_head);
3014: END IF;
3015:
3016: EXCEPTION
3017: WHEN OTHERS THEN
3015:
3016: EXCEPTION
3017: WHEN OTHERS THEN
3018: BEGIN
3019: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
3020: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
3021: IF g_debug_stmt THEN
3022: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
3023: PO_DEBUG.debug_var(l_log_head,l_progress,'x_unreservable_flag',x_unreservable_flag);
3018: BEGIN
3019: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
3020: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
3021: IF g_debug_stmt THEN
3022: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
3023: PO_DEBUG.debug_var(l_log_head,l_progress,'x_unreservable_flag',x_unreservable_flag);
3024: END IF;
3025: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
3026: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
3019: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
3020: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
3021: IF g_debug_stmt THEN
3022: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
3023: PO_DEBUG.debug_var(l_log_head,l_progress,'x_unreservable_flag',x_unreservable_flag);
3024: END IF;
3025: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
3026: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
3027: END IF;
3025: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
3026: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
3027: END IF;
3028: ROLLBACK TO IS_UNRESERVABLE_SP;
3029: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS End');
3030: EXCEPTION
3031: WHEN OTHERS THEN
3032: NULL;
3033: END;
3132:
3133: BEGIN
3134:
3135: IF g_debug_stmt THEN
3136: PO_DEBUG.debug_begin(l_log_head);
3137: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
3138: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
3139: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
3140: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
3133: BEGIN
3134:
3135: IF g_debug_stmt THEN
3136: PO_DEBUG.debug_begin(l_log_head);
3137: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
3138: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
3139: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
3140: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
3141: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
3134:
3135: IF g_debug_stmt THEN
3136: PO_DEBUG.debug_begin(l_log_head);
3137: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
3138: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
3139: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
3140: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
3141: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
3142: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl', p_doc_level_id_tbl);
3135: IF g_debug_stmt THEN
3136: PO_DEBUG.debug_begin(l_log_head);
3137: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
3138: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
3139: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
3140: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
3141: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
3142: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl', p_doc_level_id_tbl);
3143: PO_DEBUG.debug_var(l_log_head,l_progress,'p_make_old_copies_flag',p_make_old_copies_flag);
3136: PO_DEBUG.debug_begin(l_log_head);
3137: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
3138: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
3139: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
3140: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
3141: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
3142: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl', p_doc_level_id_tbl);
3143: PO_DEBUG.debug_var(l_log_head,l_progress,'p_make_old_copies_flag',p_make_old_copies_flag);
3144: PO_DEBUG.debug_var(l_log_head,l_progress,'p_make_new_copies_flag',p_make_new_copies_flag);
3137: PO_DEBUG.debug_var(l_log_head,l_progress,'p_api_version',p_api_version);
3138: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
3139: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
3140: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
3141: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
3142: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl', p_doc_level_id_tbl);
3143: PO_DEBUG.debug_var(l_log_head,l_progress,'p_make_old_copies_flag',p_make_old_copies_flag);
3144: PO_DEBUG.debug_var(l_log_head,l_progress,'p_make_new_copies_flag',p_make_new_copies_flag);
3145: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag', p_check_only_flag);
3138: PO_DEBUG.debug_var(l_log_head,l_progress,'p_init_msg_list',p_init_msg_list);
3139: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
3140: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
3141: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
3142: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl', p_doc_level_id_tbl);
3143: PO_DEBUG.debug_var(l_log_head,l_progress,'p_make_old_copies_flag',p_make_old_copies_flag);
3144: PO_DEBUG.debug_var(l_log_head,l_progress,'p_make_new_copies_flag',p_make_new_copies_flag);
3145: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag', p_check_only_flag);
3146: END IF;
3139: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validation_level',p_validation_level);
3140: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
3141: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
3142: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl', p_doc_level_id_tbl);
3143: PO_DEBUG.debug_var(l_log_head,l_progress,'p_make_old_copies_flag',p_make_old_copies_flag);
3144: PO_DEBUG.debug_var(l_log_head,l_progress,'p_make_new_copies_flag',p_make_new_copies_flag);
3145: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag', p_check_only_flag);
3146: END IF;
3147:
3140: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
3141: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
3142: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl', p_doc_level_id_tbl);
3143: PO_DEBUG.debug_var(l_log_head,l_progress,'p_make_old_copies_flag',p_make_old_copies_flag);
3144: PO_DEBUG.debug_var(l_log_head,l_progress,'p_make_new_copies_flag',p_make_new_copies_flag);
3145: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag', p_check_only_flag);
3146: END IF;
3147:
3148: l_progress := '010';
3141: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
3142: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl', p_doc_level_id_tbl);
3143: PO_DEBUG.debug_var(l_log_head,l_progress,'p_make_old_copies_flag',p_make_old_copies_flag);
3144: PO_DEBUG.debug_var(l_log_head,l_progress,'p_make_new_copies_flag',p_make_new_copies_flag);
3145: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag', p_check_only_flag);
3146: END IF;
3147:
3148: l_progress := '010';
3149:
3217:
3218: l_progress := '900';
3219:
3220: IF g_debug_stmt THEN
3221: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
3222: PO_DEBUG.debug_end(l_log_head);
3223: END IF;
3224:
3225: EXCEPTION
3218: l_progress := '900';
3219:
3220: IF g_debug_stmt THEN
3221: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
3222: PO_DEBUG.debug_end(l_log_head);
3223: END IF;
3224:
3225: EXCEPTION
3226: WHEN OTHERS THEN
3224:
3225: EXCEPTION
3226: WHEN OTHERS THEN
3227: BEGIN
3228: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
3229: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
3230: IF g_debug_stmt THEN
3231: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
3232: END IF;
3227: BEGIN
3228: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS Start');
3229: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
3230: IF g_debug_stmt THEN
3231: PO_DEBUG.debug_var(l_log_head,l_progress,'x_return_status',x_return_status);
3232: END IF;
3233: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
3234: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
3235: END IF;
3233: IF FND_MSG_PUB.check_msg_level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
3234: FND_MSG_PUB.add_exc_msg(G_PKG_NAME,l_api_name,SQLERRM);
3235: END IF;
3236: ROLLBACK TO POPULATE_ENCUMBRANCE_GT_GRP;
3237: PO_DEBUG.debug_unexp(l_log_head,l_progress,'OTHERS End');
3238: EXCEPTION
3239: WHEN OTHERS THEN
3240: NULL;
3241: END;