DBA Data[Home] [Help]

APPS.PO_COPYDOC_S1 dependencies on FND_API

Line 843: (p_init_msg_list => FND_API.g_false,

839: -- The original document is a global agreement, so blindly copy all
840: -- of its org assignments over for the new GA.
841:
842: PO_GA_ORG_ASSIGN_PVT.copy_rows
843: (p_init_msg_list => FND_API.g_false,
844: x_return_status => l_return_status,
845: p_from_po_header_id => x_po_header_record.from_header_id,
846: p_to_po_header_id => x_po_header_record.po_header_id,
847: p_last_update_date => x_po_header_record.last_update_date,

Line 874: (p_init_msg_list => FND_API.g_false,

870: x_po_header_record.last_update_login;
871: l_org_assign_rec.purchasing_org_id := x_po_header_record.org_id;
872:
873: PO_GA_ORG_ASSIGN_PVT.insert_row
874: (p_init_msg_list => FND_API.g_false,
875: x_return_status => l_return_status,
876: p_org_assign_rec => l_org_assign_rec,
877: x_row_id => l_org_row_id);
878:

Line 882: IF (l_return_status <> FND_API.g_ret_sts_success) THEN

878:
879: END IF;
880:
881: -- Check the return status of call to row handler
882: IF (l_return_status <> FND_API.g_ret_sts_success) THEN
883: RAISE FND_API.g_exc_error;
884: END IF;
885: --< Shared Proc FPJ End >
886:

Line 883: RAISE FND_API.g_exc_error;

879: END IF;
880:
881: -- Check the return status of call to row handler
882: IF (l_return_status <> FND_API.g_ret_sts_success) THEN
883: RAISE FND_API.g_exc_error;
884: END IF;
885: --< Shared Proc FPJ End >
886:
887: END IF;

Line 2065: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN

2061: x_msg_data => l_msg_data,
2062: p_caller => 'COPYDOC',
2063: x_po_gms_interface_obj => l_gms_po_interface_obj);
2064:
2065: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
2066: l_progress := '030';
2067: RAISE FND_API.G_EXC_ERROR;
2068: END IF;
2069:

Line 2067: RAISE FND_API.G_EXC_ERROR;

2063: x_po_gms_interface_obj => l_gms_po_interface_obj);
2064:
2065: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
2066: l_progress := '030';
2067: RAISE FND_API.G_EXC_ERROR;
2068: END IF;
2069:
2070: l_award_id := l_gms_po_interface_obj.award_set_id_out(1);
2071:

Line 2325: WHEN FND_API.G_EXC_ERROR THEN

2321:
2322: EXCEPTION
2323:
2324: --
2325: WHEN FND_API.G_EXC_ERROR THEN
2326: ROLLBACK TO SAVEPOINT insert_distribution_savepoint;
2327: FOR i in 1..FND_MSG_PUB.count_msg LOOP
2328: BEGIN
2329: l_msg_buf := SUBSTRB(FND_MSG_PUB.get(p_msg_index=>i,

Line 2330: p_encoded=>FND_API.G_FALSE),

2326: ROLLBACK TO SAVEPOINT insert_distribution_savepoint;
2327: FOR i in 1..FND_MSG_PUB.count_msg LOOP
2328: BEGIN
2329: l_msg_buf := SUBSTRB(FND_MSG_PUB.get(p_msg_index=>i,
2330: p_encoded=>FND_API.G_FALSE),
2331: 1, 2000);
2332: online_report(x_online_report_id,
2333: x_sequence,
2334: l_msg_buf,

Line 2346: p_message => 'FND_API.g_exc_error exception caught.');

2342: IF g_debug_stmt THEN --< Shared Proc FPJ > Add correct debugging
2343: PO_DEBUG.debug_stmt
2344: (p_log_head => g_module_prefix||'insert_distribution',
2345: p_token => l_progress,
2346: p_message => 'FND_API.g_exc_error exception caught.');
2347: END IF;
2348:
2349: IF g_debug_unexp THEN --< Shared Proc FPJ > Add correct debugging
2350: PO_DEBUG.debug_exc

Line 2573: p_init_msg_list => FND_API.G_FALSE,

2569:
2570: -- call contracts API to copy terms and deliverables
2571: OKC_TERMS_COPY_GRP.copy_doc (
2572: p_api_version => 1.0,
2573: p_init_msg_list => FND_API.G_FALSE,
2574: p_commit => FND_API.G_FALSE,
2575: p_source_doc_type => l_contracts_from_document_type,
2576: p_source_doc_id => x_from_po_header_id,
2577: p_target_doc_type => l_contracts_to_document_type,

Line 2574: p_commit => FND_API.G_FALSE,

2570: -- call contracts API to copy terms and deliverables
2571: OKC_TERMS_COPY_GRP.copy_doc (
2572: p_api_version => 1.0,
2573: p_init_msg_list => FND_API.G_FALSE,
2574: p_commit => FND_API.G_FALSE,
2575: p_source_doc_type => l_contracts_from_document_type,
2576: p_source_doc_id => x_from_po_header_id,
2577: p_target_doc_type => l_contracts_to_document_type,
2578: p_target_doc_id => x_po_header_record.po_header_id,

Line 2597: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

2593: x_msg_data => l_msg_data,
2594: x_msg_count => l_msg_count
2595: );
2596:
2597: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
2598: l_progress := '070';
2599:
2600: -- terms copying failed , set conterms exist flag on the new doc to N
2601: UPDATE po_headers_all

Line 2803: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

2799: p_mode => PO_PRICE_ADJUSTMENTS_PKG.G_COPY_ALL_MOD,
2800: x_return_status_text => l_return_status_text,
2801: x_return_status => l_return_status);
2802:
2803: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
2804: online_report(p_online_report_id,
2805: x_sequence,
2806: l_return_status_text,
2807: p_line_num,

Line 3387: IF (l_return_status <> FND_API.g_ret_sts_success) THEN

3383: p_po_shipment_rec => p_po_shipment_rec,
3384: x_po_distribution_rec => x_po_distribution_rec,
3385: x_sequence => x_sequence);
3386:
3387: IF (l_return_status <> FND_API.g_ret_sts_success) THEN
3388: l_progress := '030';
3389: RAISE FND_API.g_exc_error;
3390: END IF;
3391:

Line 3389: RAISE FND_API.g_exc_error;

3385: x_sequence => x_sequence);
3386:
3387: IF (l_return_status <> FND_API.g_ret_sts_success) THEN
3388: l_progress := '030';
3389: RAISE FND_API.g_exc_error;
3390: END IF;
3391:
3392: END IF;
3393: --< Shared Proc FPJ End >

Line 3466: WHEN FND_API.g_exc_error THEN

3462: x_return_code := l_internal_return_code;
3463:
3464: EXCEPTION
3465: --< Shared Proc FPJ Start >
3466: WHEN FND_API.g_exc_error THEN
3467: x_return_code := -1;
3468: IF g_debug_stmt THEN
3469: PO_DEBUG.debug_stmt
3470: (p_log_head => g_module_prefix||'process_distribution',

Line 3472: p_message => 'FND_API.g_exc_error exception caught.');

3468: IF g_debug_stmt THEN
3469: PO_DEBUG.debug_stmt
3470: (p_log_head => g_module_prefix||'process_distribution',
3471: p_token => l_progress,
3472: p_message => 'FND_API.g_exc_error exception caught.');
3473: END IF;
3474: --< Shared Proc FPJ End >
3475: WHEN OTHERS THEN
3476: x_return_code := -1;

Line 3696: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN

3692: ,x_msg_count => l_msg_count
3693: ,x_msg_data => l_msg_data
3694: );
3695:
3696: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
3697: RAISE COPYDOC_FATAL;
3698: END IF;
3699:
3700: --update the clm_document_number

Line 3803: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN

3799: ,x_msg_count => l_msg_count
3800: ,x_msg_data => l_msg_data
3801: );
3802:
3803: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
3804: RAISE COPYDOC_FATAL;
3805: END IF;
3806:
3807: -- UDA_COPY_DIST

Line 3880: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN

3876: ,x_msg_count => l_msg_count
3877: ,x_msg_data => l_msg_data
3878: );
3879:
3880: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
3881: RAISE COPYDOC_FATAL;
3882: END IF;
3883: -- UDA_LINE
3884:

Line 3985: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN

3981: ,x_msg_count => l_msg_count
3982: ,x_msg_data => l_msg_data
3983: );
3984:
3985: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
3986: RAISE COPYDOC_FATAL;
3987: END IF;
3988:
3989: -- UDA_COPY_SHIP

Line 4454: x_return_status := FND_API.g_ret_sts_success;

4450: PO_LOG.proc_begin(d_module, 'p_copy_terms', p_copy_terms);
4451: PO_LOG.proc_begin(d_module, 'x_new_segment1', x_new_segment1);
4452: END IF;
4453: d_pos := 10;
4454: x_return_status := FND_API.g_ret_sts_success;
4455: x_errmsg_code := NULL;
4456: l_return_code := NULL;
4457: l_online_report_id := NULL;
4458: x_exception_msg := NULL;

Line 4492: RAISE FND_API.g_exc_error;

4488: x_errmsg_code := 'PO_ALL_ENTER_UNIQUE_VAL';
4489: IF PO_LOG.d_exc THEN
4490: PO_LOG.exc(d_module,d_pos,'Segment1 value not unique');
4491: END IF;
4492: RAISE FND_API.g_exc_error;
4493: END IF;
4494: END IF;
4495: d_pos := 30;
4496: --Check if the PO is a drop ship PO

Line 4503: RAISE FND_API.g_exc_error;

4499: x_errmsg_code := 'PO_NOT_SUPPORT_COPY_DROPSHIPPO';
4500: IF PO_LOG.d_exc THEN
4501: PO_LOG.exc(d_module,d_pos,'Duplicate Document not supported for DropShip PO');
4502: END IF;
4503: RAISE FND_API.g_exc_error;
4504: END IF;
4505: d_pos := 40;
4506: --Check if the PO has a config id associated with it
4507: IF(PO_COPYDOC_S1.po_has_config_id(p_po_header_id)) THEN

Line 4513: RAISE FND_API.g_exc_error;

4509: x_errmsg_code := 'PO_CANNOT_COPY_CONFIG_ID_DOC';
4510: IF PO_LOG.d_exc THEN
4511: PO_LOG.exc(d_module,d_pos,'Duplicate Document not supported for PO with Config ID');
4512: END IF;
4513: RAISE FND_API.g_exc_error;
4514: END IF;
4515: d_pos := 50;
4516: --If validations go thru fine invoke the copy_document procedure
4517: IF PO_LOG.d_event THEN

Line 4558: RAISE FND_API.g_exc_unexpected_error;

4554: END IF;
4555: d_pos := 70;
4556: IF(l_return_code < 0) THEN
4557: d_pos := 75;
4558: RAISE FND_API.g_exc_unexpected_error;
4559: END IF;
4560:
4561: IF PO_LOG.d_proc THEN
4562: PO_LOG.proc_end(d_module,'x_new_segment1',x_new_segment1);

Line 4572: WHEN FND_API.g_exc_error THEN

4568: PO_LOG.proc_end(d_module,'x_exception_msg',x_exception_msg);
4569: PO_LOG.proc_end(d_module);
4570: END IF;
4571: EXCEPTION
4572: WHEN FND_API.g_exc_error THEN
4573: x_return_status := FND_API.g_ret_sts_error;
4574: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
4575: x_return_status := FND_API.g_ret_sts_unexp_error;
4576: IF(x_text_line is not null) THEN

Line 4573: x_return_status := FND_API.g_ret_sts_error;

4569: PO_LOG.proc_end(d_module);
4570: END IF;
4571: EXCEPTION
4572: WHEN FND_API.g_exc_error THEN
4573: x_return_status := FND_API.g_ret_sts_error;
4574: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
4575: x_return_status := FND_API.g_ret_sts_unexp_error;
4576: IF(x_text_line is not null) THEN
4577: x_exception_msg := x_text_line;

Line 4574: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

4570: END IF;
4571: EXCEPTION
4572: WHEN FND_API.g_exc_error THEN
4573: x_return_status := FND_API.g_ret_sts_error;
4574: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
4575: x_return_status := FND_API.g_ret_sts_unexp_error;
4576: IF(x_text_line is not null) THEN
4577: x_exception_msg := x_text_line;
4578: x_return_status := FND_API.g_ret_sts_error; /*Bug:13077836 */

Line 4575: x_return_status := FND_API.g_ret_sts_unexp_error;

4571: EXCEPTION
4572: WHEN FND_API.g_exc_error THEN
4573: x_return_status := FND_API.g_ret_sts_error;
4574: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
4575: x_return_status := FND_API.g_ret_sts_unexp_error;
4576: IF(x_text_line is not null) THEN
4577: x_exception_msg := x_text_line;
4578: x_return_status := FND_API.g_ret_sts_error; /*Bug:13077836 */
4579: ELSE

Line 4578: x_return_status := FND_API.g_ret_sts_error; /*Bug:13077836 */

4574: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
4575: x_return_status := FND_API.g_ret_sts_unexp_error;
4576: IF(x_text_line is not null) THEN
4577: x_exception_msg := x_text_line;
4578: x_return_status := FND_API.g_ret_sts_error; /*Bug:13077836 */
4579: ELSE
4580: x_exception_msg := 'Unexpected Error in ' || d_module||'-'||d_pos;
4581: END IF;
4582: IF PO_LOG.d_exc THEN

Line 4586: x_return_status := FND_API.g_ret_sts_unexp_error;

4582: IF PO_LOG.d_exc THEN
4583: PO_LOG.exc(d_module,d_pos,x_exception_msg);
4584: END IF;
4585: WHEN OTHERS THEN
4586: x_return_status := FND_API.g_ret_sts_unexp_error;
4587: IF (l_online_report_id is NOT NULL) THEN
4588: PO_COPYDOC_S1.ret_and_del_online_report_rec( l_online_report_id
4589: ,x_message_type
4590: ,x_text_line);

Line 4856: IF x_return_status <> FND_API.G_RET_STS_SUCCESS

4852: PO_DEBUG.debug_stmt(l_log_head || l_api_name, l_progress, 'After Check_Uda_Enabled with x_return_status : ' || x_return_status);
4853: PO_DEBUG.debug_stmt(l_log_head || l_api_name, l_progress, 'Check_Uda_Enabled with x_enabled_flag : ' || l_enabled_flag);
4854:
4855: l_progress := '8884';
4856: IF x_return_status <> FND_API.G_RET_STS_SUCCESS
4857: THEN
4858: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4859: END IF;
4860:

Line 4858: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

4854:
4855: l_progress := '8884';
4856: IF x_return_status <> FND_API.G_RET_STS_SUCCESS
4857: THEN
4858: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4859: END IF;
4860:
4861: l_progress := '8885';
4862: IF l_enabled_flag = 'Y' THEN