DBA Data[Home] [Help]

APPS.PO_DOCUMENT_UPDATE_PVT dependencies on FND_MSG_PUB

Line 373: FND_MSG_PUB.initialize();

369: RAISE FND_API.g_exc_unexpected_error;
370: END IF;
371:
372: IF (FND_API.to_boolean(p_init_msg_list)) THEN
373: FND_MSG_PUB.initialize();
374: END IF;
375:
376: /* BEGIN INVCONV sschinch */
377: g_sec_qty_grade_only_chge_doc := po_document_update_grp.g_process_param_chge_only;

Line 380: l_last_msg_list_index := FND_MSG_PUB.count_msg();

376: /* BEGIN INVCONV sschinch */
377: g_sec_qty_grade_only_chge_doc := po_document_update_grp.g_process_param_chge_only;
378: /* END INVCONV sschinch */
379:
380: l_last_msg_list_index := FND_MSG_PUB.count_msg();
381:
382: -- Initialize some global package variables.
383: init_globals (p_changes, p_update_source);
384:

Line 1029: FND_MSG_PUB.add;

1025: IF (p_mass_update_releases = G_PARAMETER_YES)
1026: AND (g_document_type <> 'PA') THEN
1027:
1028: FND_MESSAGE.set_name('PO', 'PO_INVALID_MASS_UPDATE_REL');
1029: FND_MSG_PUB.add;
1030: RAISE FND_API.g_exc_unexpected_error;
1031: END IF;
1032:
1033: l_progress := '020';

Line 1047: l_last_msg_list_index := FND_MSG_PUB.count_msg();

1043: message => 'Calling the PO Status Check API' );
1044: END IF;
1045: END IF;
1046:
1047: l_last_msg_list_index := FND_MSG_PUB.count_msg();
1048:
1049: PO_DOCUMENT_CHECKS_GRP.po_status_check (
1050: p_api_version => 1.0,
1051: p_header_id => g_po_header_id,

Line 3545: x_data := FND_MSG_PUB.Get( 1,'F');

3541: p_uom_code2 => NULL
3542: );
3543: IF (l_return_status = 0) THEN
3544:
3545: x_data := FND_MSG_PUB.Get( 1,'F');
3546:
3547: PO_DOCUMENT_UPDATE_PVT.add_error (
3548: p_api_errors => g_api_errors,
3549: x_return_status => l_return_status,

Line 3603: x_data := FND_MSG_PUB.Get( 1,'F');

3599: p_uom_code1 => NULL,
3600: p_uom_code2 => NULL
3601: );
3602: IF (l_return_status = 0) THEN
3603: x_data := FND_MSG_PUB.Get( 1,'F');
3604: PO_DOCUMENT_UPDATE_PVT.add_error (
3605: p_api_errors => g_api_errors,
3606: x_return_status => l_return_status,
3607: p_message_name => NULL,

Line 3770: x_data := FND_MSG_PUB.Get( 1,'F');

3766: p_uom_code1 => NULL,
3767: p_uom_code2 => NULL
3768: );
3769: IF (l_return_status = 0) THEN
3770: x_data := FND_MSG_PUB.Get( 1,'F');
3771:
3772: PO_DOCUMENT_UPDATE_PVT.add_error (
3773: p_api_errors => g_api_errors,
3774: x_return_status => l_return_status,

Line 3807: x_data := FND_MSG_PUB.Get( 1,'F');

3803: p_uom_code1 => NULL,
3804: p_uom_code2 => NULL
3805: );
3806: IF (l_return_status = 0) THEN
3807: x_data := FND_MSG_PUB.Get( 1,'F');
3808:
3809: PO_DOCUMENT_UPDATE_PVT.add_error (
3810: p_api_errors => g_api_errors,
3811: x_return_status => l_return_status,

Line 3972: l_last_msg_list_index := FND_MSG_PUB.count_msg();

3968: l_qty2 := NULL;
3969: END IF;
3970:
3971: l_progress := '010';
3972: l_last_msg_list_index := FND_MSG_PUB.count_msg();
3973:
3974: GML_ValidateDerive_GRP.secondary_qty (
3975: p_api_version => 1.0,
3976: p_init_msg_list => FND_API.G_FALSE,

Line 5362: l_last_msg_list_index := FND_MSG_PUB.count_msg;

5358: l_progress := '040';
5359: IF (g_document_type = 'PO') AND (g_document_subtype='STANDARD')
5360: AND (l_new_price <> l_current_price) THEN
5361:
5362: l_last_msg_list_index := FND_MSG_PUB.count_msg;
5363:
5364: PO_DOCUMENT_CHECKS_GRP.check_std_po_price_updateable (
5365: p_api_version => 1.0,
5366: x_return_status => l_return_status,

Line 5892: l_last_msg_list_index := FND_MSG_PUB.count_msg;

5888: l_progress := '040';
5889: IF (g_document_type = 'RELEASE')
5890: AND (l_new_price <> l_current_price) AND (NOT l_is_split_shipment) THEN
5891:
5892: l_last_msg_list_index := FND_MSG_PUB.count_msg;
5893:
5894: PO_DOCUMENT_CHECKS_GRP.check_rel_price_updateable (
5895: p_api_version => 1.0,
5896: x_return_status => l_return_status,

Line 7668: FND_MSG_PUB.add;

7664: -- in create_split_shipments. If not, throw an unexpected error.
7665: FND_MESSAGE.set_name('PO', 'PO_GENERIC_ERROR');
7666: FND_MESSAGE.set_token('ERROR_TEXT',
7667: 'Could not find the new shipment for this split distribution.');
7668: FND_MSG_PUB.add;
7669: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
7670: END IF;
7671:
7672:

Line 8237: FND_MSG_PUB.initialize();

8233: RAISE FND_API.g_exc_unexpected_error;
8234: END IF;
8235:
8236: IF (FND_API.to_boolean(p_init_msg_list)) THEN
8237: FND_MSG_PUB.initialize();
8238: END IF;
8239:
8240: IF (p_preparer_id IS NOT NULL) THEN
8241: -- Launch approvals using the approval hierarchy of p_preparer_id.

Line 8375: FND_MSG_PUB.add;

8371:
8372: IF g_line_changes_index.EXISTS(l_po_line_id) THEN
8373: -- Error: This is a duplicate change for the same PO_LINE_ID.
8374: FND_MESSAGE.set_name('PO', 'PO_CHNG_DUP_LINE');
8375: FND_MSG_PUB.add;
8376: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
8377: END IF;
8378:
8379: -- Add this change to the index.

Line 8414: FND_MSG_PUB.add;

8410:
8411: IF g_ship_changes_index.EXISTS(l_line_location_id) THEN
8412: -- Error: This is a duplicate change for the same LINE_LOCATION_ID.
8413: FND_MESSAGE.set_name('PO', 'PO_CHNG_DUP_SHIPMENT');
8414: FND_MSG_PUB.add;
8415: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
8416: END IF;
8417:
8418: -- Add this to the index of shipment changes by LINE_LOCATION_ID.

Line 8465: FND_MSG_PUB.add;

8461:
8462: IF g_dist_changes_index.EXISTS(l_po_distribution_id) THEN
8463: -- Error: This is a duplicate change for the same PO_DISTRIBUTION_ID.
8464: FND_MESSAGE.set_name('PO', 'PO_CHNG_DUP_DISTRIBUTION');
8465: FND_MSG_PUB.add;
8466: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
8467: END IF;
8468:
8469: -- Add this to the index of distribution changes by PO_DISTRIBUTION_ID.

Line 8926: FOR i IN NVL(p_start_index,1)..FND_MSG_PUB.count_msg LOOP

8922: p_entity_id IN NUMBER
8923: ) IS
8924: BEGIN
8925: -- Add the messages to the API errors object.
8926: FOR i IN NVL(p_start_index,1)..FND_MSG_PUB.count_msg LOOP
8927: add_error (
8928: p_api_errors => p_api_errors,
8929: x_return_status => x_return_status,
8930: p_message_name => NULL,

Line 8932: FND_MSG_PUB.get ( p_msg_index => i, p_encoded => FND_API.G_FALSE ),

8928: p_api_errors => p_api_errors,
8929: x_return_status => x_return_status,
8930: p_message_name => NULL,
8931: p_message_text =>
8932: FND_MSG_PUB.get ( p_msg_index => i, p_encoded => FND_API.G_FALSE ),
8933: p_entity_type => p_entity_type,
8934: p_entity_id => p_entity_id
8935: );
8936: END LOOP;

Line 8939: FOR i IN REVERSE NVL(p_start_index,1)..FND_MSG_PUB.count_msg LOOP

8935: );
8936: END LOOP;
8937:
8938: -- Delete the messages from the message list.
8939: FOR i IN REVERSE NVL(p_start_index,1)..FND_MSG_PUB.count_msg LOOP
8940: FND_MSG_PUB.delete_msg ( p_msg_index => i );
8941: END LOOP;
8942:
8943: x_return_status := FND_API.G_RET_STS_ERROR;

Line 8940: FND_MSG_PUB.delete_msg ( p_msg_index => i );

8936: END LOOP;
8937:
8938: -- Delete the messages from the message list.
8939: FOR i IN REVERSE NVL(p_start_index,1)..FND_MSG_PUB.count_msg LOOP
8940: FND_MSG_PUB.delete_msg ( p_msg_index => i );
8941: END LOOP;
8942:
8943: x_return_status := FND_API.G_RET_STS_ERROR;
8944: EXCEPTION

Line 9163: FND_MSG_PUB.add_exc_msg(g_pkg_name, l_api_name||':'||d_pos);

9159: IF (PO_LOG.d_stmt) THEN
9160: PO_LOG.stmt(d_module,d_pos,'x_error_message', x_error_message);
9161: END IF;
9162: WHEN OTHERS THEN
9163: FND_MSG_PUB.add_exc_msg(g_pkg_name, l_api_name||':'||d_pos);
9164: IF PO_LOG.d_exc THEN
9165: PO_LOG.exc(d_module,d_pos,'Unhandled Exception in ' || SQLCODE||':'||SQLERRM);
9166: END IF;
9167: RAISE;

Line 9256: FND_MSG_PUB.initialize;

9252:
9253: --Initialize message list if necessary (p_init_msg_list is set to TRUE)
9254: IF FND_API.to_Boolean(p_init_msg_list)
9255: THEN
9256: FND_MSG_PUB.initialize;
9257: END IF;
9258:
9259: -- By default return status is SUCCESS if no exception occurs
9260: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 9298: FND_MSG_PUB.add;

9294: IF l_error_message is NOT NULL
9295: THEN
9296: FND_MESSAGE.set_name('PO','PO_CUSTOM_MSG');
9297: FND_MESSAGE.set_token('TRANSLATED_TOKEN', l_error_message);
9298: FND_MSG_PUB.add;
9299: RAISE FND_API.g_exc_error;
9300: END IF; --x_error_message is NULL
9301: END IF;
9302:

Line 9369: FOR I IN 1..FND_MSG_PUB.count_msg loop

9365: ROLLBACK TO PO_PROCESS_DELETE_ACTION;
9366: x_return_status := FND_API.g_ret_sts_error;
9367: x_error_msg_tbl := PO_TBL_VARCHAR2000();
9368: --Copy the messages on the list to the out parameter
9369: FOR I IN 1..FND_MSG_PUB.count_msg loop
9370: x_error_msg_tbl.extend;
9371: x_error_msg_tbl(I) := FND_MSG_PUB.get(I, 'F');
9372: IF (PO_LOG.d_stmt) THEN
9373: PO_LOG.stmt(d_module,d_pos,'x_error_msg_tbl(' || I || ')', x_error_msg_tbl(I));

Line 9371: x_error_msg_tbl(I) := FND_MSG_PUB.get(I, 'F');

9367: x_error_msg_tbl := PO_TBL_VARCHAR2000();
9368: --Copy the messages on the list to the out parameter
9369: FOR I IN 1..FND_MSG_PUB.count_msg loop
9370: x_error_msg_tbl.extend;
9371: x_error_msg_tbl(I) := FND_MSG_PUB.get(I, 'F');
9372: IF (PO_LOG.d_stmt) THEN
9373: PO_LOG.stmt(d_module,d_pos,'x_error_msg_tbl(' || I || ')', x_error_msg_tbl(I));
9374: END IF;
9375: END LOOP;

Line 9385: FND_MSG_PUB.add_exc_msg(g_pkg_name, l_api_name||':'||d_pos);

9381: END IF;
9382: WHEN OTHERS THEN
9383: ROLLBACK TO PO_PROCESS_DELETE_ACTION;
9384: x_return_status := FND_API.g_ret_sts_unexp_error;
9385: FND_MSG_PUB.add_exc_msg(g_pkg_name, l_api_name||':'||d_pos);
9386: IF PO_LOG.d_exc THEN
9387: PO_LOG.exc(d_module,d_pos,'Unhandled Exception in ' || SQLCODE||':'||SQLERRM);
9388: END IF;
9389: END process_delete_action;