DBA Data[Home] [Help]

APPS.PO_DOCUMENT_UPDATE_PVT dependencies on PO_CORE_S

Line 292: -- PO_CORE_S.G_PARAMETER_NO or NULL: Launch the PO Approval Workflow in

288: -- Date that will be used to unreserve the document; only used if the
289: -- document is encumbered.
290: --p_approval_background_flag := NULL
291: -- Only used if p_launch_approvals_flag = FND_API.G_TRUE.
292: -- PO_CORE_S.G_PARAMETER_NO or NULL: Launch the PO Approval Workflow in
293: -- synchronous mode, where we issue a commit and launch the workflow.
294: -- Control does not return to the caller until the workflow completes or
295: -- reaches a wait node (ex. when it sends a notification to the approver).
296: -- PO_CORE_S.G_PARAMETER_YES: Launch the PO Approval Workflow in background

Line 296: -- PO_CORE_S.G_PARAMETER_YES: Launch the PO Approval Workflow in background

292: -- PO_CORE_S.G_PARAMETER_NO or NULL: Launch the PO Approval Workflow in
293: -- synchronous mode, where we issue a commit and launch the workflow.
294: -- Control does not return to the caller until the workflow completes or
295: -- reaches a wait node (ex. when it sends a notification to the approver).
296: -- PO_CORE_S.G_PARAMETER_YES: Launch the PO Approval Workflow in background
297: -- mode, where we start the workflow in the background and return
298: -- immediately, without issuing any commits.
299: --p_mass_update_releases := NULL
300: -- (Bug 3373453)

Line 302: -- PO_CORE_S.G_PARAMETER_YES: Launch the PO Approval Workflow with a request

298: -- immediately, without issuing any commits.
299: --p_mass_update_releases := NULL
300: -- (Bug 3373453)
301: -- Only used for Blanket PAs, and if p_launch_approvals_flag = FND_API.G_TRUE.
302: -- PO_CORE_S.G_PARAMETER_YES: Launch the PO Approval Workflow with a request
303: -- to retroactively update the POs/releases with the price from the Blanket.
304: -- PO_CORE_S.G_PARAMETER_NO or NULL: Launch the PO Approval Workflow without
305: -- retroactively pricing the POs/releases of the Blanket.
306: --OUT:

Line 304: -- PO_CORE_S.G_PARAMETER_NO or NULL: Launch the PO Approval Workflow without

300: -- (Bug 3373453)
301: -- Only used for Blanket PAs, and if p_launch_approvals_flag = FND_API.G_TRUE.
302: -- PO_CORE_S.G_PARAMETER_YES: Launch the PO Approval Workflow with a request
303: -- to retroactively update the POs/releases with the price from the Blanket.
304: -- PO_CORE_S.G_PARAMETER_NO or NULL: Launch the PO Approval Workflow without
305: -- retroactively pricing the POs/releases of the Blanket.
306: --OUT:
307: --x_return_status
308: -- FND_API.G_RET_STS_SUCCESS if the API succeeded and the changes are applied.

Line 1006: PO_CORE_S.validate_yes_no_param (

1002:
1003: --------------------------------------------------------------------------
1004: -- Check: Verify that the following parameters have values Y, N, or null.
1005: --------------------------------------------------------------------------
1006: PO_CORE_S.validate_yes_no_param (
1007: x_return_status => x_return_status,
1008: p_parameter_name => 'p_approval_background_flag',
1009: p_parameter_value => p_approval_background_flag );
1010: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

Line 1014: PO_CORE_S.validate_yes_no_param (

1010: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
1011: RAISE FND_API.g_exc_unexpected_error;
1012: END IF;
1013:
1014: PO_CORE_S.validate_yes_no_param (
1015: x_return_status => x_return_status,
1016: p_parameter_name => 'p_mass_update_releases',
1017: p_parameter_value => p_mass_update_releases );
1018: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

Line 6773: PO_CORE_S.g_doc_type_PO,

6769: -- <13503748: Edit without unreserve ER >
6770: -- For Standard PO's modify without unreserve.
6771:
6772: l_clm_doc_flag := PO_PARTIAL_FUNDING_PKG.is_clm_document(
6773: PO_CORE_S.g_doc_type_PO,
6774: p_chg.po_header_id);
6775:
6776: IF (g_document_type <> 'PA') THEN
6777: IF (((l_clm_doc_flag = 'N' AND g_document_subtype <> 'STANDARD') OR

Line 6779: AND (PO_CORE_S.is_encumbrance_on (

6775:
6776: IF (g_document_type <> 'PA') THEN
6777: IF (((l_clm_doc_flag = 'N' AND g_document_subtype <> 'STANDARD') OR
6778: l_clm_doc_flag = 'Y' )
6779: AND (PO_CORE_S.is_encumbrance_on (
6780: p_doc_type => g_document_type,
6781: p_org_id => NULL )) ) THEN
6782:
6783: unreserve ( p_chg, p_override_date, p_buyer_id, l_return_status );

Line 8163: -- PO_CORE_S.G_PARAMETER_NO or NULL: Launch the PO Approval Workflow in

8159: --p_preparer_id
8160: -- EMPLOYEE_ID of the buyer whose approval authority should be used in the
8161: -- approval workflow; if NULL, use the buyer on the document.
8162: --p_approval_background_flag
8163: -- PO_CORE_S.G_PARAMETER_NO or NULL: Launch the PO Approval Workflow in
8164: -- synchronous mode, where we issue a commit and launch the workflow.
8165: -- Control does not return to the caller until the workflow completes or
8166: -- reaches a wait node (ex. when it sends a notification to the approver).
8167: -- PO_CORE_S.G_PARAMETER_YES: Launch the PO Approval Workflow in background

Line 8167: -- PO_CORE_S.G_PARAMETER_YES: Launch the PO Approval Workflow in background

8163: -- PO_CORE_S.G_PARAMETER_NO or NULL: Launch the PO Approval Workflow in
8164: -- synchronous mode, where we issue a commit and launch the workflow.
8165: -- Control does not return to the caller until the workflow completes or
8166: -- reaches a wait node (ex. when it sends a notification to the approver).
8167: -- PO_CORE_S.G_PARAMETER_YES: Launch the PO Approval Workflow in background
8168: -- mode, where we start the workflow in the background and return
8169: -- immediately, without issuing any commits.
8170: --p_mass_update_releases
8171: -- Blankets / GAs only: If 'Y', we will update the price

Line 9058: IF ( (l_closed_code = PO_CORE_S.g_clsd_FINALLY_CLOSED)

9054: -- checks for update privileges based on the status
9055: -- FROZEN, CANCELLED, FINALLY CLOSED
9056: -- Or it is in In Process or Pre Approved State
9057: d_pos := 20;
9058: IF ( (l_closed_code = PO_CORE_S.g_clsd_FINALLY_CLOSED)
9059: OR (l_frozen_flag = 'Y')
9060: OR (l_cancel_flag = 'Y')
9061: OR (l_auth_status IN ('IN PROCESS', 'PRE-APPROVED')))
9062: THEN

Line 9063: x_error_message := PO_CORE_S.get_translated_text('PO_RQ_DOC_UPDATE_NA');

9059: OR (l_frozen_flag = 'Y')
9060: OR (l_cancel_flag = 'Y')
9061: OR (l_auth_status IN ('IN PROCESS', 'PRE-APPROVED')))
9062: THEN
9063: x_error_message := PO_CORE_S.get_translated_text('PO_RQ_DOC_UPDATE_NA');
9064: RAISE PO_CORE_S.G_EARLY_RETURN_EXC;
9065: END IF;
9066:
9067: d_pos := 30;

Line 9064: RAISE PO_CORE_S.G_EARLY_RETURN_EXC;

9060: OR (l_cancel_flag = 'Y')
9061: OR (l_auth_status IN ('IN PROCESS', 'PRE-APPROVED')))
9062: THEN
9063: x_error_message := PO_CORE_S.get_translated_text('PO_RQ_DOC_UPDATE_NA');
9064: RAISE PO_CORE_S.G_EARLY_RETURN_EXC;
9065: END IF;
9066:
9067: d_pos := 30;
9068: --We should not allow deletion of Consumption Advice POs

Line 9071: x_error_message := PO_CORE_S.get_translated_text('PO_CONSIGNED_UPDATE_ERROR');

9067: d_pos := 30;
9068: --We should not allow deletion of Consumption Advice POs
9069: If l_consigned_consumption_flag = 'Y'
9070: THEN
9071: x_error_message := PO_CORE_S.get_translated_text('PO_CONSIGNED_UPDATE_ERROR');
9072: RAISE PO_CORE_S.G_EARLY_RETURN_EXC;
9073: END IF;
9074:
9075: d_pos := 40;

Line 9072: RAISE PO_CORE_S.G_EARLY_RETURN_EXC;

9068: --We should not allow deletion of Consumption Advice POs
9069: If l_consigned_consumption_flag = 'Y'
9070: THEN
9071: x_error_message := PO_CORE_S.get_translated_text('PO_CONSIGNED_UPDATE_ERROR');
9072: RAISE PO_CORE_S.G_EARLY_RETURN_EXC;
9073: END IF;
9074:
9075: d_pos := 40;
9076: -- Checks for update privileges based on approver can modify option

Line 9088: x_error_message := PO_CORE_S.get_translated_text('PO_RQ_DOC_UPDATE_NA');

9084: END IF;
9085:
9086: IF NOT l_modify_action_allowed
9087: THEN
9088: x_error_message := PO_CORE_S.get_translated_text('PO_RQ_DOC_UPDATE_NA');
9089: RAISE PO_CORE_S.G_EARLY_RETURN_EXC;
9090: END IF;
9091:
9092: d_pos := 50;

Line 9089: RAISE PO_CORE_S.G_EARLY_RETURN_EXC;

9085:
9086: IF NOT l_modify_action_allowed
9087: THEN
9088: x_error_message := PO_CORE_S.get_translated_text('PO_RQ_DOC_UPDATE_NA');
9089: RAISE PO_CORE_S.G_EARLY_RETURN_EXC;
9090: END IF;
9091:
9092: d_pos := 50;
9093: l_style_disp_name := PO_DOC_STYLE_PVT.get_style_display_name(

Line 9102: IF p_entity = PO_CORE_S.g_doc_level_HEADER

9098: PO_LOG.stmt(d_module,d_pos,'l_style_disp_name', l_style_disp_name);
9099: END IF;
9100:
9101: d_pos := 60;
9102: IF p_entity = PO_CORE_S.g_doc_level_HEADER
9103: THEN
9104: d_pos := 70;
9105: -- Validates the delete action on the header
9106: PO_HEADERS_SV1.validate_delete_document(

Line 9114: ELSIF p_entity = PO_CORE_S.g_doc_level_LINE

9110: ,p_auth_status => l_auth_status
9111: ,p_style_disp_name => l_style_disp_name
9112: ,x_message_text => x_error_message);
9113:
9114: ELSIF p_entity = PO_CORE_S.g_doc_level_LINE
9115: THEN
9116: d_pos := 80;
9117: -- Validates the delete action on the line
9118: PO_LINES_SV.check_line_deletion_allowed(

Line 9125: ELSIF p_entity = PO_CORE_S.g_doc_level_SHIPMENT

9121: ,p_token => 'DOCUMENT_TYPE'
9122: ,p_token_value => l_style_disp_name
9123: ,x_message_text => x_error_message);
9124:
9125: ELSIF p_entity = PO_CORE_S.g_doc_level_SHIPMENT
9126: THEN
9127: d_pos := 90;
9128: -- Validates the delete action on the shipment
9129: PO_SHIPMENTS_SV4.validate_delete_line_loc(

Line 9136: ELSIF p_entity = PO_CORE_S.g_doc_level_DISTRIBUTION

9132: ,p_doc_type => p_doc_type
9133: ,p_style_disp_name => l_style_disp_name
9134: ,x_message_text => x_error_message);
9135:
9136: ELSIF p_entity = PO_CORE_S.g_doc_level_DISTRIBUTION
9137: THEN
9138: d_pos := 100;
9139: -- Validates the delete action on the distribution
9140: PO_DISTRIBUTIONS_SV.validate_delete_distribution(

Line 9150: RAISE PO_CORE_S.G_EARLY_RETURN_EXC;

9146:
9147: END IF;
9148: d_pos := 110;
9149: IF x_error_message is NOT NULL THEN
9150: RAISE PO_CORE_S.G_EARLY_RETURN_EXC;
9151: END IF;
9152:
9153: IF (PO_LOG.d_proc) THEN
9154: PO_LOG.proc_end(d_module);

Line 9158: WHEN PO_CORE_S.G_EARLY_RETURN_EXC THEN

9154: PO_LOG.proc_end(d_module);
9155: END IF;
9156:
9157: EXCEPTION
9158: WHEN PO_CORE_S.G_EARLY_RETURN_EXC THEN
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

Line 9303: IF p_entity = PO_CORE_S.g_doc_level_HEADER

9299: RAISE FND_API.g_exc_error;
9300: END IF; --x_error_message is NULL
9301: END IF;
9302:
9303: IF p_entity = PO_CORE_S.g_doc_level_HEADER
9304: THEN
9305: d_pos := 30;
9306: PO_HEADERS_SV1.delete_document( p_doc_type => p_doc_type
9307: ,p_doc_subtype => p_doc_subtype

Line 9315: ELSIF p_entity = PO_CORE_S.g_doc_level_LINE

9311: ,x_return_status => x_return_status);
9312: IF (PO_LOG.d_stmt) THEN
9313: PO_LOG.stmt(d_module,d_pos,'x_return_status',x_return_status);
9314: END IF;
9315: ELSIF p_entity = PO_CORE_S.g_doc_level_LINE
9316: THEN
9317:
9318: d_pos := 40;
9319: SELECT ROWID

Line 9329: ELSIF p_entity = PO_CORE_S.g_doc_level_SHIPMENT

9325: PO_LINES_SV.delete_line( X_type_lookup_code => p_doc_subtype
9326: ,X_po_line_id => p_po_line_id
9327: ,X_row_id => l_entity_row_id
9328: ,p_skip_validation => 'Y'); --skip validations as we already have called validate_delete_action
9329: ELSIF p_entity = PO_CORE_S.g_doc_level_SHIPMENT
9330: THEN
9331: d_pos := 50;
9332: PO_SHIPMENTS_SV4.process_delete_line_loc(
9333: p_line_loc_id => p_line_loc_id

Line 9339: ELSIF p_entity = PO_CORE_S.g_doc_level_DISTRIBUTION

9335: ,p_po_header_id => p_doc_header_id
9336: ,p_po_line_id => p_po_line_id
9337: ,p_doc_subtype => p_doc_subtype);
9338:
9339: ELSIF p_entity = PO_CORE_S.g_doc_level_DISTRIBUTION
9340: THEN
9341: d_pos := 60;
9342: -- If all validations go thru fine we go ahead and delete the distribution
9343: PO_DISTRIBUTIONS_PKG2.delete_row(x_rowid => p_entity_row_id);

Line 9344: END IF; -- p_entity = PO_CORE_S.g_doc_level_HEADER

9340: THEN
9341: d_pos := 60;
9342: -- If all validations go thru fine we go ahead and delete the distribution
9343: PO_DISTRIBUTIONS_PKG2.delete_row(x_rowid => p_entity_row_id);
9344: END IF; -- p_entity = PO_CORE_S.g_doc_level_HEADER
9345:
9346: --
9347: d_pos := 70;
9348: --Call etax api to calculate tax.