DBA Data[Home] [Help]

APPS.PO_DOCUMENT_UPDATE_PVT dependencies on PO_CORE_S

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

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

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

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

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

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

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

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

Line 983: PO_CORE_S.validate_yes_no_param (

979:
980: --------------------------------------------------------------------------
981: -- Check: Verify that the following parameters have values Y, N, or null.
982: --------------------------------------------------------------------------
983: PO_CORE_S.validate_yes_no_param (
984: x_return_status => x_return_status,
985: p_parameter_name => 'p_approval_background_flag',
986: p_parameter_value => p_approval_background_flag );
987: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

Line 991: PO_CORE_S.validate_yes_no_param (

987: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
988: RAISE FND_API.g_exc_unexpected_error;
989: END IF;
990:
991: PO_CORE_S.validate_yes_no_param (
992: x_return_status => x_return_status,
993: p_parameter_name => 'p_mass_update_releases',
994: p_parameter_value => p_mass_update_releases );
995: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

Line 6712: AND (PO_CORE_S.is_encumbrance_on (

6708: x_return_status := FND_API.G_RET_STS_SUCCESS;
6709:
6710: -- For POs/releases, if encumbrance is on, unreserve before making changes.
6711: IF (g_document_type <> 'PA')
6712: AND (PO_CORE_S.is_encumbrance_on (
6713: p_doc_type => g_document_type,
6714: p_org_id => NULL )) THEN
6715:
6716: unreserve ( p_chg, p_override_date, p_buyer_id, l_return_status );

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

8024: --p_preparer_id
8025: -- EMPLOYEE_ID of the buyer whose approval authority should be used in the
8026: -- approval workflow; if NULL, use the buyer on the document.
8027: --p_approval_background_flag
8028: -- PO_CORE_S.G_PARAMETER_NO or NULL: Launch the PO Approval Workflow in
8029: -- synchronous mode, where we issue a commit and launch the workflow.
8030: -- Control does not return to the caller until the workflow completes or
8031: -- reaches a wait node (ex. when it sends a notification to the approver).
8032: -- PO_CORE_S.G_PARAMETER_YES: Launch the PO Approval Workflow in background

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

8028: -- PO_CORE_S.G_PARAMETER_NO or NULL: Launch the PO Approval Workflow in
8029: -- synchronous mode, where we issue a commit and launch the workflow.
8030: -- Control does not return to the caller until the workflow completes or
8031: -- reaches a wait node (ex. when it sends a notification to the approver).
8032: -- PO_CORE_S.G_PARAMETER_YES: Launch the PO Approval Workflow in background
8033: -- mode, where we start the workflow in the background and return
8034: -- immediately, without issuing any commits.
8035: --p_mass_update_releases
8036: -- Blankets / GAs only: If 'Y', we will update the price

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

8919: -- checks for update privileges based on the status
8920: -- FROZEN, CANCELLED, FINALLY CLOSED
8921: -- Or it is in In Process or Pre Approved State
8922: d_pos := 20;
8923: IF ( (l_closed_code = PO_CORE_S.g_clsd_FINALLY_CLOSED)
8924: OR (l_frozen_flag = 'Y')
8925: OR (l_cancel_flag = 'Y')
8926: OR (l_auth_status IN ('IN PROCESS', 'PRE-APPROVED')))
8927: THEN

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

8924: OR (l_frozen_flag = 'Y')
8925: OR (l_cancel_flag = 'Y')
8926: OR (l_auth_status IN ('IN PROCESS', 'PRE-APPROVED')))
8927: THEN
8928: x_error_message := PO_CORE_S.get_translated_text('PO_RQ_DOC_UPDATE_NA');
8929: RAISE PO_CORE_S.G_EARLY_RETURN_EXC;
8930: END IF;
8931:
8932: d_pos := 30;

Line 8929: RAISE PO_CORE_S.G_EARLY_RETURN_EXC;

8925: OR (l_cancel_flag = 'Y')
8926: OR (l_auth_status IN ('IN PROCESS', 'PRE-APPROVED')))
8927: THEN
8928: x_error_message := PO_CORE_S.get_translated_text('PO_RQ_DOC_UPDATE_NA');
8929: RAISE PO_CORE_S.G_EARLY_RETURN_EXC;
8930: END IF;
8931:
8932: d_pos := 30;
8933: --We should not allow deletion of Consumption Advice POs

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

8932: d_pos := 30;
8933: --We should not allow deletion of Consumption Advice POs
8934: If l_consigned_consumption_flag = 'Y'
8935: THEN
8936: x_error_message := PO_CORE_S.get_translated_text('PO_CONSIGNED_UPDATE_ERROR');
8937: RAISE PO_CORE_S.G_EARLY_RETURN_EXC;
8938: END IF;
8939:
8940: d_pos := 40;

Line 8937: RAISE PO_CORE_S.G_EARLY_RETURN_EXC;

8933: --We should not allow deletion of Consumption Advice POs
8934: If l_consigned_consumption_flag = 'Y'
8935: THEN
8936: x_error_message := PO_CORE_S.get_translated_text('PO_CONSIGNED_UPDATE_ERROR');
8937: RAISE PO_CORE_S.G_EARLY_RETURN_EXC;
8938: END IF;
8939:
8940: d_pos := 40;
8941: -- Checks for update privileges based on approver can modify option

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

8949: END IF;
8950:
8951: IF NOT l_modify_action_allowed
8952: THEN
8953: x_error_message := PO_CORE_S.get_translated_text('PO_RQ_DOC_UPDATE_NA');
8954: RAISE PO_CORE_S.G_EARLY_RETURN_EXC;
8955: END IF;
8956:
8957: d_pos := 50;

Line 8954: RAISE PO_CORE_S.G_EARLY_RETURN_EXC;

8950:
8951: IF NOT l_modify_action_allowed
8952: THEN
8953: x_error_message := PO_CORE_S.get_translated_text('PO_RQ_DOC_UPDATE_NA');
8954: RAISE PO_CORE_S.G_EARLY_RETURN_EXC;
8955: END IF;
8956:
8957: d_pos := 50;
8958: l_style_disp_name := PO_DOC_STYLE_PVT.get_style_display_name(

Line 8967: IF p_entity = PO_CORE_S.g_doc_level_HEADER

8963: PO_LOG.stmt(d_module,d_pos,'l_style_disp_name', l_style_disp_name);
8964: END IF;
8965:
8966: d_pos := 60;
8967: IF p_entity = PO_CORE_S.g_doc_level_HEADER
8968: THEN
8969: d_pos := 70;
8970: -- Validates the delete action on the header
8971: PO_HEADERS_SV1.validate_delete_document(

Line 8979: ELSIF p_entity = PO_CORE_S.g_doc_level_LINE

8975: ,p_auth_status => l_auth_status
8976: ,p_style_disp_name => l_style_disp_name
8977: ,x_message_text => x_error_message);
8978:
8979: ELSIF p_entity = PO_CORE_S.g_doc_level_LINE
8980: THEN
8981: d_pos := 80;
8982: -- Validates the delete action on the line
8983: PO_LINES_SV.check_line_deletion_allowed(

Line 8990: ELSIF p_entity = PO_CORE_S.g_doc_level_SHIPMENT

8986: ,p_token => 'DOCUMENT_TYPE'
8987: ,p_token_value => l_style_disp_name
8988: ,x_message_text => x_error_message);
8989:
8990: ELSIF p_entity = PO_CORE_S.g_doc_level_SHIPMENT
8991: THEN
8992: d_pos := 90;
8993: -- Validates the delete action on the shipment
8994: PO_SHIPMENTS_SV4.validate_delete_line_loc(

Line 9001: ELSIF p_entity = PO_CORE_S.g_doc_level_DISTRIBUTION

8997: ,p_doc_type => p_doc_type
8998: ,p_style_disp_name => l_style_disp_name
8999: ,x_message_text => x_error_message);
9000:
9001: ELSIF p_entity = PO_CORE_S.g_doc_level_DISTRIBUTION
9002: THEN
9003: d_pos := 100;
9004: -- Validates the delete action on the distribution
9005: PO_DISTRIBUTIONS_SV.validate_delete_distribution(

Line 9015: RAISE PO_CORE_S.G_EARLY_RETURN_EXC;

9011:
9012: END IF;
9013: d_pos := 110;
9014: IF x_error_message is NOT NULL THEN
9015: RAISE PO_CORE_S.G_EARLY_RETURN_EXC;
9016: END IF;
9017:
9018: IF (PO_LOG.d_proc) THEN
9019: PO_LOG.proc_end(d_module);

Line 9023: WHEN PO_CORE_S.G_EARLY_RETURN_EXC THEN

9019: PO_LOG.proc_end(d_module);
9020: END IF;
9021:
9022: EXCEPTION
9023: WHEN PO_CORE_S.G_EARLY_RETURN_EXC THEN
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

Line 9168: IF p_entity = PO_CORE_S.g_doc_level_HEADER

9164: RAISE FND_API.g_exc_error;
9165: END IF; --x_error_message is NULL
9166: END IF;
9167:
9168: IF p_entity = PO_CORE_S.g_doc_level_HEADER
9169: THEN
9170: d_pos := 30;
9171: PO_HEADERS_SV1.delete_document( p_doc_type => p_doc_type
9172: ,p_doc_subtype => p_doc_subtype

Line 9180: ELSIF p_entity = PO_CORE_S.g_doc_level_LINE

9176: ,x_return_status => x_return_status);
9177: IF (PO_LOG.d_stmt) THEN
9178: PO_LOG.stmt(d_module,d_pos,'x_return_status',x_return_status);
9179: END IF;
9180: ELSIF p_entity = PO_CORE_S.g_doc_level_LINE
9181: THEN
9182:
9183: d_pos := 40;
9184: SELECT ROWID

Line 9194: ELSIF p_entity = PO_CORE_S.g_doc_level_SHIPMENT

9190: PO_LINES_SV.delete_line( X_type_lookup_code => p_doc_subtype
9191: ,X_po_line_id => p_po_line_id
9192: ,X_row_id => l_entity_row_id
9193: ,p_skip_validation => 'Y'); --skip validations as we already have called validate_delete_action
9194: ELSIF p_entity = PO_CORE_S.g_doc_level_SHIPMENT
9195: THEN
9196: d_pos := 50;
9197: PO_SHIPMENTS_SV4.process_delete_line_loc(
9198: p_line_loc_id => p_line_loc_id

Line 9204: ELSIF p_entity = PO_CORE_S.g_doc_level_DISTRIBUTION

9200: ,p_po_header_id => p_doc_header_id
9201: ,p_po_line_id => p_po_line_id
9202: ,p_doc_subtype => p_doc_subtype);
9203:
9204: ELSIF p_entity = PO_CORE_S.g_doc_level_DISTRIBUTION
9205: THEN
9206: d_pos := 60;
9207: -- If all validations go thru fine we go ahead and delete the distribution
9208: PO_DISTRIBUTIONS_PKG2.delete_row(x_rowid => p_entity_row_id);

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

9205: THEN
9206: d_pos := 60;
9207: -- If all validations go thru fine we go ahead and delete the distribution
9208: PO_DISTRIBUTIONS_PKG2.delete_row(x_rowid => p_entity_row_id);
9209: END IF; -- p_entity = PO_CORE_S.g_doc_level_HEADER
9210:
9211: --
9212: d_pos := 70;
9213: --Call etax api to calculate tax.