SAP Knowledge Base Article - Public

3459521 - Creation of purchase document possible against blocked WBS Element

Symptom

The user has enabled block function for a WBS Element for purchasing but is still able to create purchasing documents when the account assignment category is "Q"(Proj. make-to-order) in purchase document, and the account is assigned to this WBS Element.

Environment

SAP S/4HANA Cloud

Reproducing the Issue

  1. Set the blocked flag for Purchasing against a WBS Element in Project Control - Enterprise Projects -> Project Planning -> WBS Element.
  2. Purchase Requisition or Purchase Order creation is allowed with account assignment containing the above WBS Element where account assignment category is “Q”.

Resolution

The following BAdIs can be implemented to incorporate block function check in case of account assignment 'Q':

Purchase Order: https://api.sap.com/badi/BD_MMPUR_FINAL_CHECK_PO

PURCHASEORDERACCOUNTING    Purchase Order Account Assignments    Importing   IF_EX_MMPUR_FINAL_CHECK_PO=>B_MMPUR_T_PURORDACCASSIGNMT

Purchase Requistion: https://api.sap.com/badi/MM_PUR_S4_PR_CHECK

PURCHASEREQACCASSGNMT_TABLE    Account assignment fields for PR    Importing   MMPUR_T_PR_ACCTASSIGNMT_IMPORT

 

It is possible to use CDS view I_EntProjElmntBlockFunc_2 to fetch the block function for a WBS element.

Note: This CDS view will be available from CE 2402.4 CFD release. This is current state of planning and may be changed by SAP at any time without notice. 

See Also

Check of Purchase Requisition Item

Check of Purchase Order Before Saving

Keywords

purchase order, purchase requisition, WBS, PSP, blocked , KBA , PPM-SCL-STR , Project Structure (Public Cloud) , MM-PUR-REQ , Purchase Requisitions , MM-PUR-PO , Purchase Orders , Problem

Product

SAP S/4HANA Cloud all versions