DBA Data[Home] [Help]

APPS.PO_COPYDOC_S1 dependencies on FND_API

Line 764: (p_init_msg_list => FND_API.g_false,

760: -- The original document is a global agreement, so blindly copy all
761: -- of its org assignments over for the new GA.
762:
763: PO_GA_ORG_ASSIGN_PVT.copy_rows
764: (p_init_msg_list => FND_API.g_false,
765: x_return_status => l_return_status,
766: p_from_po_header_id => x_po_header_record.from_header_id,
767: p_to_po_header_id => x_po_header_record.po_header_id,
768: p_last_update_date => x_po_header_record.last_update_date,

Line 795: (p_init_msg_list => FND_API.g_false,

791: x_po_header_record.last_update_login;
792: l_org_assign_rec.purchasing_org_id := x_po_header_record.org_id;
793:
794: PO_GA_ORG_ASSIGN_PVT.insert_row
795: (p_init_msg_list => FND_API.g_false,
796: x_return_status => l_return_status,
797: p_org_assign_rec => l_org_assign_rec,
798: x_row_id => l_org_row_id);
799:

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

799:
800: END IF;
801:
802: -- Check the return status of call to row handler
803: IF (l_return_status <> FND_API.g_ret_sts_success) THEN
804: RAISE FND_API.g_exc_error;
805: END IF;
806: --< Shared Proc FPJ End >
807:

Line 804: RAISE FND_API.g_exc_error;

800: END IF;
801:
802: -- Check the return status of call to row handler
803: IF (l_return_status <> FND_API.g_ret_sts_success) THEN
804: RAISE FND_API.g_exc_error;
805: END IF;
806: --< Shared Proc FPJ End >
807:
808: END IF;

Line 1917: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN

1913: x_msg_data => l_msg_data,
1914: p_caller => 'COPYDOC',
1915: x_po_gms_interface_obj => l_gms_po_interface_obj);
1916:
1917: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
1918: l_progress := '030';
1919: RAISE FND_API.G_EXC_ERROR;
1920: END IF;
1921:

Line 1919: RAISE FND_API.G_EXC_ERROR;

1915: x_po_gms_interface_obj => l_gms_po_interface_obj);
1916:
1917: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
1918: l_progress := '030';
1919: RAISE FND_API.G_EXC_ERROR;
1920: END IF;
1921:
1922: l_award_id := l_gms_po_interface_obj.award_set_id_out(1);
1923:

Line 2161: WHEN FND_API.G_EXC_ERROR THEN

2157:
2158: EXCEPTION
2159:
2160: --
2161: WHEN FND_API.G_EXC_ERROR THEN
2162: ROLLBACK TO SAVEPOINT insert_distribution_savepoint;
2163: FOR i in 1..FND_MSG_PUB.count_msg LOOP
2164: BEGIN
2165: l_msg_buf := SUBSTRB(FND_MSG_PUB.get(p_msg_index=>i,

Line 2166: p_encoded=>FND_API.G_FALSE),

2162: ROLLBACK TO SAVEPOINT insert_distribution_savepoint;
2163: FOR i in 1..FND_MSG_PUB.count_msg LOOP
2164: BEGIN
2165: l_msg_buf := SUBSTRB(FND_MSG_PUB.get(p_msg_index=>i,
2166: p_encoded=>FND_API.G_FALSE),
2167: 1, 2000);
2168: online_report(x_online_report_id,
2169: x_sequence,
2170: l_msg_buf,

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

2178: IF g_debug_stmt THEN --< Shared Proc FPJ > Add correct debugging
2179: PO_DEBUG.debug_stmt
2180: (p_log_head => g_module_prefix||'insert_distribution',
2181: p_token => l_progress,
2182: p_message => 'FND_API.g_exc_error exception caught.');
2183: END IF;
2184:
2185: IF g_debug_unexp THEN --< Shared Proc FPJ > Add correct debugging
2186: PO_DEBUG.debug_exc

Line 2403: p_init_msg_list => FND_API.G_FALSE,

2399:
2400: -- call contracts API to copy terms and deliverables
2401: OKC_TERMS_COPY_GRP.copy_doc (
2402: p_api_version => 1.0,
2403: p_init_msg_list => FND_API.G_FALSE,
2404: p_commit => FND_API.G_FALSE,
2405: p_source_doc_type => l_contracts_from_document_type,
2406: p_source_doc_id => x_from_po_header_id,
2407: p_target_doc_type => l_contracts_to_document_type,

Line 2404: p_commit => FND_API.G_FALSE,

2400: -- call contracts API to copy terms and deliverables
2401: OKC_TERMS_COPY_GRP.copy_doc (
2402: p_api_version => 1.0,
2403: p_init_msg_list => FND_API.G_FALSE,
2404: p_commit => FND_API.G_FALSE,
2405: p_source_doc_type => l_contracts_from_document_type,
2406: p_source_doc_id => x_from_po_header_id,
2407: p_target_doc_type => l_contracts_to_document_type,
2408: p_target_doc_id => x_po_header_record.po_header_id,

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

2423: x_msg_data => l_msg_data,
2424: x_msg_count => l_msg_count
2425: );
2426:
2427: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
2428: l_progress := '070';
2429:
2430: -- terms copying failed , set conterms exist flag on the new doc to N
2431: UPDATE po_headers_all

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

3050: p_po_shipment_rec => p_po_shipment_rec,
3051: x_po_distribution_rec => x_po_distribution_rec,
3052: x_sequence => x_sequence);
3053:
3054: IF (l_return_status <> FND_API.g_ret_sts_success) THEN
3055: l_progress := '030';
3056: RAISE FND_API.g_exc_error;
3057: END IF;
3058:

Line 3056: RAISE FND_API.g_exc_error;

3052: x_sequence => x_sequence);
3053:
3054: IF (l_return_status <> FND_API.g_ret_sts_success) THEN
3055: l_progress := '030';
3056: RAISE FND_API.g_exc_error;
3057: END IF;
3058:
3059: END IF;
3060: --< Shared Proc FPJ End >

Line 3133: WHEN FND_API.g_exc_error THEN

3129: x_return_code := l_internal_return_code;
3130:
3131: EXCEPTION
3132: --< Shared Proc FPJ Start >
3133: WHEN FND_API.g_exc_error THEN
3134: x_return_code := -1;
3135: IF g_debug_stmt THEN
3136: PO_DEBUG.debug_stmt
3137: (p_log_head => g_module_prefix||'process_distribution',

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

3135: IF g_debug_stmt THEN
3136: PO_DEBUG.debug_stmt
3137: (p_log_head => g_module_prefix||'process_distribution',
3138: p_token => l_progress,
3139: p_message => 'FND_API.g_exc_error exception caught.');
3140: END IF;
3141: --< Shared Proc FPJ End >
3142: WHEN OTHERS THEN
3143: x_return_code := -1;

Line 3822: x_return_status := FND_API.g_ret_sts_success;

3818: PO_LOG.proc_begin(d_module, 'p_copy_terms', p_copy_terms);
3819: PO_LOG.proc_begin(d_module, 'x_new_segment1', x_new_segment1);
3820: END IF;
3821: d_pos := 10;
3822: x_return_status := FND_API.g_ret_sts_success;
3823: x_errmsg_code := NULL;
3824: l_return_code := NULL;
3825: l_online_report_id := NULL;
3826: x_exception_msg := NULL;

Line 3860: RAISE FND_API.g_exc_error;

3856: x_errmsg_code := 'PO_ALL_ENTER_UNIQUE_VAL';
3857: IF PO_LOG.d_exc THEN
3858: PO_LOG.exc(d_module,d_pos,'Segment1 value not unique');
3859: END IF;
3860: RAISE FND_API.g_exc_error;
3861: END IF;
3862: END IF;
3863: d_pos := 30;
3864: --Check if the PO is a drop ship PO

Line 3871: RAISE FND_API.g_exc_error;

3867: x_errmsg_code := 'PO_NOT_SUPPORT_COPY_DROPSHIPPO';
3868: IF PO_LOG.d_exc THEN
3869: PO_LOG.exc(d_module,d_pos,'Duplicate Document not supported for DropShip PO');
3870: END IF;
3871: RAISE FND_API.g_exc_error;
3872: END IF;
3873: d_pos := 40;
3874: --Check if the PO has a config id associated with it
3875: IF(PO_COPYDOC_S1.po_has_config_id(p_po_header_id)) THEN

Line 3881: RAISE FND_API.g_exc_error;

3877: x_errmsg_code := 'PO_CANNOT_COPY_CONFIG_ID_DOC';
3878: IF PO_LOG.d_exc THEN
3879: PO_LOG.exc(d_module,d_pos,'Duplicate Document not supported for PO with Config ID');
3880: END IF;
3881: RAISE FND_API.g_exc_error;
3882: END IF;
3883: d_pos := 50;
3884: --If validations go thru fine invoke the copy_document procedure
3885: IF PO_LOG.d_event THEN

Line 3926: RAISE FND_API.g_exc_unexpected_error;

3922: END IF;
3923: d_pos := 70;
3924: IF(l_return_code < 0) THEN
3925: d_pos := 75;
3926: RAISE FND_API.g_exc_unexpected_error;
3927: END IF;
3928:
3929: IF PO_LOG.d_proc THEN
3930: PO_LOG.proc_end(d_module,'x_new_segment1',x_new_segment1);

Line 3940: WHEN FND_API.g_exc_error THEN

3936: PO_LOG.proc_end(d_module,'x_exception_msg',x_exception_msg);
3937: PO_LOG.proc_end(d_module);
3938: END IF;
3939: EXCEPTION
3940: WHEN FND_API.g_exc_error THEN
3941: x_return_status := FND_API.g_ret_sts_error;
3942: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
3943: x_return_status := FND_API.g_ret_sts_unexp_error;
3944: IF(x_text_line is not null) THEN

Line 3941: x_return_status := FND_API.g_ret_sts_error;

3937: PO_LOG.proc_end(d_module);
3938: END IF;
3939: EXCEPTION
3940: WHEN FND_API.g_exc_error THEN
3941: x_return_status := FND_API.g_ret_sts_error;
3942: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
3943: x_return_status := FND_API.g_ret_sts_unexp_error;
3944: IF(x_text_line is not null) THEN
3945: x_exception_msg := x_text_line;

Line 3942: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

3938: END IF;
3939: EXCEPTION
3940: WHEN FND_API.g_exc_error THEN
3941: x_return_status := FND_API.g_ret_sts_error;
3942: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
3943: x_return_status := FND_API.g_ret_sts_unexp_error;
3944: IF(x_text_line is not null) THEN
3945: x_exception_msg := x_text_line;
3946: ELSE

Line 3943: x_return_status := FND_API.g_ret_sts_unexp_error;

3939: EXCEPTION
3940: WHEN FND_API.g_exc_error THEN
3941: x_return_status := FND_API.g_ret_sts_error;
3942: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
3943: x_return_status := FND_API.g_ret_sts_unexp_error;
3944: IF(x_text_line is not null) THEN
3945: x_exception_msg := x_text_line;
3946: ELSE
3947: x_exception_msg := 'Unexpected Error in ' || d_module||'-'||d_pos;

Line 3953: x_return_status := FND_API.g_ret_sts_unexp_error;

3949: IF PO_LOG.d_exc THEN
3950: PO_LOG.exc(d_module,d_pos,x_exception_msg);
3951: END IF;
3952: WHEN OTHERS THEN
3953: x_return_status := FND_API.g_ret_sts_unexp_error;
3954: IF (l_online_report_id is NOT NULL) THEN
3955: PO_COPYDOC_S1.ret_and_del_online_report_rec( l_online_report_id
3956: ,x_message_type
3957: ,x_text_line);