903: END IF;
904: end CancelPO;
905:
906: /*
907: *taken from PO_REQAPPROVAL_INIT1, because it had the procedure as a PRIVATE procedure
908: *This API is used by Register_rejection
909: */
910: Procedure Insert_Acc_Rejection_Row(p_itemtype in varchar2,
911: p_itemkey in varchar2,
1073: raise;
1074: end;
1075:
1076: /*
1077: *taken from PO_REQAPPROVAL_INIT1
1078: *PO_REQAPPROVAL_INIT1.Register_rejection will be updated to support older version of poxwfpoa.wft
1079: *In other words, initial version of poxwfpoa.wft only calls PO_REQ_APPROVAL_INIT1.Register_rejection.
1080: *New version will call PO_ChangeOrderWF_PVT.IS_PO_HDR_REJECTED followed by PO_ChangeOrderWF_PVT.Register_rejection.
1081: *In order for older version of workflow to have the new functionality, PO_REQ_APPROVAL_INIT1.Register_rejection will
1074: end;
1075:
1076: /*
1077: *taken from PO_REQAPPROVAL_INIT1
1078: *PO_REQAPPROVAL_INIT1.Register_rejection will be updated to support older version of poxwfpoa.wft
1079: *In other words, initial version of poxwfpoa.wft only calls PO_REQ_APPROVAL_INIT1.Register_rejection.
1080: *New version will call PO_ChangeOrderWF_PVT.IS_PO_HDR_REJECTED followed by PO_ChangeOrderWF_PVT.Register_rejection.
1081: *In order for older version of workflow to have the new functionality, PO_REQ_APPROVAL_INIT1.Register_rejection will
1082: *need to include the logic of PO_ChangeOrderWF_PVT.IS_PO_HDR_REJECTED within.
1444: END IF;
1445: --
1447: --to the supplier in their default transmission method.
1448: PO_REQAPPROVAL_INIT1.Start_WF_Process(
1449: ItemType => l_Item_Type,
1450: ItemKey => l_Item_Key,
1451: WorkflowProcess => l_workflow_process,
1452: ActionOriginatedFrom => 'POS_SUP_CHN',
7071:
7072: /* Commenting out for bug 3484201. Since change has already been requested by a
7073: specific user, the notification needs to be sent to the user on the change request */
7074:
7075: --PO_REQAPPROVAL_INIT1.locate_notifier(l_document_id, l_doc_type, l_supplier_username);
7076:
7077: if(l_supplier_username is null) then
7078: select max(created_by)
7079: into l_supplier_user_id