DBA Data[Home] [Help]

APPS.PO_PDOI_POSTPROC_PVT dependencies on PO_DRAFTS

Line 407: PO_DRAFTS_PVT.update_draft_status

403: d_position := 50;
404:
405: -- Change the draft status back to 'DRAFT' (it was set to
406: -- 'PDOI PROCESSING' during header grouping)
407: PO_DRAFTS_PVT.update_draft_status
408: ( p_draft_id => l_doc_rec.draft_id,
409: p_new_status => PO_DRAFTS_PVT.g_STATUS_DRAFT
410: );
411:

Line 409: p_new_status => PO_DRAFTS_PVT.g_STATUS_DRAFT

405: -- Change the draft status back to 'DRAFT' (it was set to
406: -- 'PDOI PROCESSING' during header grouping)
407: PO_DRAFTS_PVT.update_draft_status
408: ( p_draft_id => l_doc_rec.draft_id,
409: p_new_status => PO_DRAFTS_PVT.g_STATUS_DRAFT
410: );
411:
412: -- If user is creating a draft without transferring, we need
413: -- to get the functional lock of the document explicitly

Line 414: PO_DRAFTS_PVT.lock_document

410: );
411:
412: -- If user is creating a draft without transferring, we need
413: -- to get the functional lock of the document explicitly
414: PO_DRAFTS_PVT.lock_document
415: ( p_po_header_id => l_doc_rec.po_header_id,
416: p_role => PO_PDOI_PARAMS.g_request.role,
417: p_role_user_id => FND_GLOBAL.user_id,
418: p_unlock_current => FND_API.G_FALSE

Line 547: PO_DRAFTS_PVT.update_draft_status

543: IF (l_remove_draft = FND_API.G_FALSE) THEN
544:
545: -- Change the draft status back to 'DRAFT' (it was set to
546: -- 'PDOI PROCESSING' during header grouping)
547: PO_DRAFTS_PVT.update_draft_status
548: ( p_draft_id => l_doc_rec.draft_id,
549: p_new_status => PO_DRAFTS_PVT.g_STATUS_DRAFT
550: );
551:

Line 549: p_new_status => PO_DRAFTS_PVT.g_STATUS_DRAFT

545: -- Change the draft status back to 'DRAFT' (it was set to
546: -- 'PDOI PROCESSING' during header grouping)
547: PO_DRAFTS_PVT.update_draft_status
548: ( p_draft_id => l_doc_rec.draft_id,
549: p_new_status => PO_DRAFTS_PVT.g_STATUS_DRAFT
550: );
551:
552: END IF;
553: END IF;

Line 631: AND change_accepted_flag = PO_DRAFTS_PVT.g_chg_accepted_flag_NOTIFY

627: END IF;
628:
629: DELETE FROM po_lines_draft_all
630: WHERE draft_id = p_draft_id
631: AND change_accepted_flag = PO_DRAFTS_PVT.g_chg_accepted_flag_NOTIFY
632: RETURNING po_line_id
633: BULK COLLECT
634: INTO l_po_line_id_tbl;
635:

Line 773: IF (PO_DRAFTS_PVT.is_draft_applicable

769: ELSE
770: d_position := 30;
771: -- Update action
772:
773: IF (PO_DRAFTS_PVT.is_draft_applicable
774: ( p_po_header_id => l_po_header_id_tbl(i),
775: p_role => PO_PDOI_PARAMS.g_request.role
776: ) = FND_API.G_FALSE ) THEN
777:

Line 799: PO_DRAFTS_PVT.changes_exist_for_draft

795: END LOOP;
796:
797: -- check whether the draft already contains changes
798: l_chg_exist_tbl :=
799: PO_DRAFTS_PVT.changes_exist_for_draft
800: ( p_draft_id_tbl => l_dft_exist_chg_check_tbl
801: );
802:
803: FOR i IN 1..l_dft_exist_chg_check_tbl.COUNT LOOP

Line 812: DELETE po_drafts

808: END IF;
809: END LOOP;
810:
811: FORALL i IN 1..l_dft_to_delete_tbl.COUNT
812: DELETE po_drafts
813: WHERE draft_id = l_dft_to_delete_tbl(i);
814:
815: IF (PO_LOG.d_proc) THEN
816: PO_LOG.proc_end(d_module);

Line 1267: PO_DRAFTS_PVT.unlock_document

1263:
1264: IF (l_new_auth_status = 'APPROVED') THEN
1265: d_position := 110;
1266: -- approved document should not have locks applied
1267: PO_DRAFTS_PVT.unlock_document
1268: ( p_po_header_id => p_doc_rec.po_header_id
1269: );
1270:
1271: IF (PO_PDOI_PARAMS.g_sys.when_to_archive_blanket = 'APPROVE') THEN

Line 2971: PO_DRAFTS_PVT.transfer_draft_to_txn

2967: END IF;
2968:
2969: d_position := 10;
2970:
2971: PO_DRAFTS_PVT.transfer_draft_to_txn
2972: ( p_api_version => 1.0,
2973: p_init_msg_list => FND_API.G_FALSE,
2974: p_draft_id => p_doc_rec.draft_id,
2975: p_po_header_id => p_doc_rec.po_header_id,

Line 3294: PO_DRAFTS_PVT.unlock_document

3290: x_login_id => FND_GLOBAL.login_id
3291: );
3292:
3293: -- Approved document should not have functional lock
3294: PO_DRAFTS_PVT.unlock_document
3295: ( p_po_header_id => p_doc_rec.po_header_id
3296: );
3297: END IF;
3298: