DBA Data[Home] [Help]

APPS.PO_DOCUMENT_UPDATE_PVT dependencies on FND_MSG_PUB

Line 366: FND_MSG_PUB.initialize();

362: RAISE FND_API.g_exc_unexpected_error;
363: END IF;
364:
365: IF (FND_API.to_boolean(p_init_msg_list)) THEN
366: FND_MSG_PUB.initialize();
367: END IF;
368:
369: /* BEGIN INVCONV sschinch */
370: g_sec_qty_grade_only_chge_doc := po_document_update_grp.g_process_param_chge_only;

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

369: /* BEGIN INVCONV sschinch */
370: g_sec_qty_grade_only_chge_doc := po_document_update_grp.g_process_param_chge_only;
371: /* END INVCONV sschinch */
372:
373: l_last_msg_list_index := FND_MSG_PUB.count_msg();
374:
375: -- Initialize some global package variables.
376: init_globals (p_changes, p_update_source);
377:

Line 1006: FND_MSG_PUB.add;

1002: IF (p_mass_update_releases = G_PARAMETER_YES)
1003: AND (g_document_type <> 'PA') THEN
1004:
1005: FND_MESSAGE.set_name('PO', 'PO_INVALID_MASS_UPDATE_REL');
1006: FND_MSG_PUB.add;
1007: RAISE FND_API.g_exc_unexpected_error;
1008: END IF;
1009:
1010: l_progress := '020';

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

1020: message => 'Calling the PO Status Check API' );
1021: END IF;
1022: END IF;
1023:
1024: l_last_msg_list_index := FND_MSG_PUB.count_msg();
1025:
1026: PO_DOCUMENT_CHECKS_GRP.po_status_check (
1027: p_api_version => 1.0,
1028: p_header_id => g_po_header_id,

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

3518: p_uom_code2 => NULL
3519: );
3520: IF (l_return_status = 0) THEN
3521:
3522: x_data := FND_MSG_PUB.Get( 1,'F');
3523:
3524: PO_DOCUMENT_UPDATE_PVT.add_error (
3525: p_api_errors => g_api_errors,
3526: x_return_status => l_return_status,

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

3577: p_uom_code1 => NULL,
3578: p_uom_code2 => NULL
3579: );
3580: IF (l_return_status = 0) THEN
3581: x_data := FND_MSG_PUB.Get( 1,'F');
3582: PO_DOCUMENT_UPDATE_PVT.add_error (
3583: p_api_errors => g_api_errors,
3584: x_return_status => l_return_status,
3585: p_message_name => NULL,

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

3729: p_uom_code1 => NULL,
3730: p_uom_code2 => NULL
3731: );
3732: IF (l_return_status = 0) THEN
3733: x_data := FND_MSG_PUB.Get( 1,'F');
3734:
3735: PO_DOCUMENT_UPDATE_PVT.add_error (
3736: p_api_errors => g_api_errors,
3737: x_return_status => l_return_status,

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 3935: l_last_msg_list_index := FND_MSG_PUB.count_msg();

3931: l_qty2 := NULL;
3932: END IF;
3933:
3934: l_progress := '010';
3935: l_last_msg_list_index := FND_MSG_PUB.count_msg();
3936:
3937: GML_ValidateDerive_GRP.secondary_qty (
3938: p_api_version => 1.0,
3939: p_init_msg_list => FND_API.G_FALSE,

Line 5317: l_last_msg_list_index := FND_MSG_PUB.count_msg;

5313: l_progress := '040';
5314: IF (g_document_type = 'PO') AND (g_document_subtype='STANDARD')
5315: AND (l_new_price <> l_current_price) THEN
5316:
5317: l_last_msg_list_index := FND_MSG_PUB.count_msg;
5318:
5319: PO_DOCUMENT_CHECKS_GRP.check_std_po_price_updateable (
5320: p_api_version => 1.0,
5321: x_return_status => l_return_status,

Line 5842: l_last_msg_list_index := FND_MSG_PUB.count_msg;

5838: l_progress := '040';
5839: IF (g_document_type = 'RELEASE')
5840: AND (l_new_price <> l_current_price) AND (NOT l_is_split_shipment) THEN
5841:
5842: l_last_msg_list_index := FND_MSG_PUB.count_msg;
5843:
5844: PO_DOCUMENT_CHECKS_GRP.check_rel_price_updateable (
5845: p_api_version => 1.0,
5846: x_return_status => l_return_status,

Line 7556: FND_MSG_PUB.add;

7552: -- in create_split_shipments. If not, throw an unexpected error.
7553: FND_MESSAGE.set_name('PO', 'PO_GENERIC_ERROR');
7554: FND_MESSAGE.set_token('ERROR_TEXT',
7555: 'Could not find the new shipment for this split distribution.');
7556: FND_MSG_PUB.add;
7557: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
7558: END IF;
7559:
7560:

Line 8102: FND_MSG_PUB.initialize();

8098: RAISE FND_API.g_exc_unexpected_error;
8099: END IF;
8100:
8101: IF (FND_API.to_boolean(p_init_msg_list)) THEN
8102: FND_MSG_PUB.initialize();
8103: END IF;
8104:
8105: IF (p_preparer_id IS NOT NULL) THEN
8106: -- Launch approvals using the approval hierarchy of p_preparer_id.

Line 8240: FND_MSG_PUB.add;

8236:
8237: IF g_line_changes_index.EXISTS(l_po_line_id) THEN
8238: -- Error: This is a duplicate change for the same PO_LINE_ID.
8239: FND_MESSAGE.set_name('PO', 'PO_CHNG_DUP_LINE');
8240: FND_MSG_PUB.add;
8241: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
8242: END IF;
8243:
8244: -- Add this change to the index.

Line 8279: FND_MSG_PUB.add;

8275:
8276: IF g_ship_changes_index.EXISTS(l_line_location_id) THEN
8277: -- Error: This is a duplicate change for the same LINE_LOCATION_ID.
8278: FND_MESSAGE.set_name('PO', 'PO_CHNG_DUP_SHIPMENT');
8279: FND_MSG_PUB.add;
8280: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
8281: END IF;
8282:
8283: -- Add this to the index of shipment changes by LINE_LOCATION_ID.

Line 8330: FND_MSG_PUB.add;

8326:
8327: IF g_dist_changes_index.EXISTS(l_po_distribution_id) THEN
8328: -- Error: This is a duplicate change for the same PO_DISTRIBUTION_ID.
8329: FND_MESSAGE.set_name('PO', 'PO_CHNG_DUP_DISTRIBUTION');
8330: FND_MSG_PUB.add;
8331: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
8332: END IF;
8333:
8334: -- Add this to the index of distribution changes by PO_DISTRIBUTION_ID.

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

8787: p_entity_id IN NUMBER
8788: ) IS
8789: BEGIN
8790: -- Add the messages to the API errors object.
8791: FOR i IN NVL(p_start_index,1)..FND_MSG_PUB.count_msg LOOP
8792: add_error (
8793: p_api_errors => p_api_errors,
8794: x_return_status => x_return_status,
8795: p_message_name => NULL,

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

8793: p_api_errors => p_api_errors,
8794: x_return_status => x_return_status,
8795: p_message_name => NULL,
8796: p_message_text =>
8797: FND_MSG_PUB.get ( p_msg_index => i, p_encoded => FND_API.G_FALSE ),
8798: p_entity_type => p_entity_type,
8799: p_entity_id => p_entity_id
8800: );
8801: END LOOP;

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

8800: );
8801: END LOOP;
8802:
8803: -- Delete the messages from the message list.
8804: FOR i IN REVERSE NVL(p_start_index,1)..FND_MSG_PUB.count_msg LOOP
8805: FND_MSG_PUB.delete_msg ( p_msg_index => i );
8806: END LOOP;
8807:
8808: x_return_status := FND_API.G_RET_STS_ERROR;

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

8801: END LOOP;
8802:
8803: -- Delete the messages from the message list.
8804: FOR i IN REVERSE NVL(p_start_index,1)..FND_MSG_PUB.count_msg LOOP
8805: FND_MSG_PUB.delete_msg ( p_msg_index => i );
8806: END LOOP;
8807:
8808: x_return_status := FND_API.G_RET_STS_ERROR;
8809: EXCEPTION

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

9024: IF (PO_LOG.d_stmt) THEN
9025: PO_LOG.stmt(d_module,d_pos,'x_error_message', x_error_message);
9026: END IF;
9027: WHEN OTHERS THEN
9028: FND_MSG_PUB.add_exc_msg(g_pkg_name, l_api_name||':'||d_pos);
9029: IF PO_LOG.d_exc THEN
9030: PO_LOG.exc(d_module,d_pos,'Unhandled Exception in ' || SQLCODE||':'||SQLERRM);
9031: END IF;
9032: RAISE;

Line 9121: FND_MSG_PUB.initialize;

9117:
9118: --Initialize message list if necessary (p_init_msg_list is set to TRUE)
9119: IF FND_API.to_Boolean(p_init_msg_list)
9120: THEN
9121: FND_MSG_PUB.initialize;
9122: END IF;
9123:
9124: -- By default return status is SUCCESS if no exception occurs
9125: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 9163: FND_MSG_PUB.add;

9159: IF l_error_message is NOT NULL
9160: THEN
9161: FND_MESSAGE.set_name('PO','PO_CUSTOM_MSG');
9162: FND_MESSAGE.set_token('TRANSLATED_TOKEN', l_error_message);
9163: FND_MSG_PUB.add;
9164: RAISE FND_API.g_exc_error;
9165: END IF; --x_error_message is NULL
9166: END IF;
9167:

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

9230: ROLLBACK TO PO_PROCESS_DELETE_ACTION;
9231: x_return_status := FND_API.g_ret_sts_error;
9232: x_error_msg_tbl := PO_TBL_VARCHAR2000();
9233: --Copy the messages on the list to the out parameter
9234: FOR I IN 1..FND_MSG_PUB.count_msg loop
9235: x_error_msg_tbl.extend;
9236: x_error_msg_tbl(I) := FND_MSG_PUB.get(I, 'F');
9237: IF (PO_LOG.d_stmt) THEN
9238: PO_LOG.stmt(d_module,d_pos,'x_error_msg_tbl(' || I || ')', x_error_msg_tbl(I));

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

9232: x_error_msg_tbl := PO_TBL_VARCHAR2000();
9233: --Copy the messages on the list to the out parameter
9234: FOR I IN 1..FND_MSG_PUB.count_msg loop
9235: x_error_msg_tbl.extend;
9236: x_error_msg_tbl(I) := FND_MSG_PUB.get(I, 'F');
9237: IF (PO_LOG.d_stmt) THEN
9238: PO_LOG.stmt(d_module,d_pos,'x_error_msg_tbl(' || I || ')', x_error_msg_tbl(I));
9239: END IF;
9240: END LOOP;

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

9246: END IF;
9247: WHEN OTHERS THEN
9248: ROLLBACK TO PO_PROCESS_DELETE_ACTION;
9249: x_return_status := FND_API.g_ret_sts_unexp_error;
9250: FND_MSG_PUB.add_exc_msg(g_pkg_name, l_api_name||':'||d_pos);
9251: IF PO_LOG.d_exc THEN
9252: PO_LOG.exc(d_module,d_pos,'Unhandled Exception in ' || SQLCODE||':'||SQLERRM);
9253: END IF;
9254: END process_delete_action;