SAP Knowledge Base Article - Public

3747347 - Profit center in PR is not updated when account assignment is changed

Symptom

A Purchase Requisition with account assignment to a cost center or project is created and saved via the app 'My Purchase Requisition.' The profit center was correctly used. 

If the Purchase Requisition is changed, the profit center remains at the old value and is not reloaded.

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Create a purchase requisition with "My Purchase Requisition" app with account assignment type K or P.
  2. Enter the account assignment and save the purchase requisition.
  3. Display the purchase requisition and check which profit center was taken from the account assignment.
  4. Click Edit the purchase requisition.
  5. Select a new account assignment with a different profit center.
  6. Save the purchase requisition.
  7. Display the purchase requisition again and the profit center is not updated.

Cause

Standard system behavior when dealing with Profit Center derivation from account assignments. 

Resolution

Option 1:

Manual Update in the PR the profit center. After changing the account assignment, manually overwrite the Profit Center field in the PR item before saving. This is the simplest approach but requires user discipline.

Option 2:

Enable Automatic Re-Derivation via BAdI.

BAdI ME_PROCESS_REQ_CUST (method PROCESS_ITEM) or MM_PUR_S4_PR_ACCOUNT_ASSIGNMENT/ MM_PUR_S4_PR_MODIFY_ACCOUNT to re-derive the Profit Center whenever the account assignment changes.

Using the BAdI the following fields can be changed:

  • Fieldname on the User Interface Technical Name.
  • G/L Account Number GLACCOUNT.
  • Cost Center COSTCENTER.
  • Profit Center PROFITCENTER.

Keywords

Purchase Requisition with account assignment; My Purchase Requisition; profit center; BAdI ME_PROCESS_REQ_CUST; method PROCESS_ITEM; MM_PUR_S4_PR_ACCOUNT_ASSIGNMENT; MM_PUR_S4_PR_MODIFY_ACCOUNT , KBA , MM-PUR-REQ-SSP-2CL , Fiori UI for Self Service Procurement (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions