SAP Knowledge Base Article - Public

3068511 - Which BAdI can be used to Modify Journal Entry Line Items when the Accrual Engine Performs the Posting of a Journal Entry - SAP S/4HANA Cloud Public Edition

Symptom

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

User would like to modify journal entry line items for purchase order accruals postings.
For example, it is standard system behavior that Cost center only derived for P&L G/L Accounts, but not for B/S G/L accounts for Purchase Order Accruals Postings. 
How to derive cost center to B/S G/L accounts for purchase order accruals postings?

Environment

 SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Go to “Analyze Accrual posting” fiori application.
  2. Click one Journal entry number and view the document.
    In our example, cost center derived for P&L G/L account but for B/S G/L account no cost center is derived.

Resolution

Use accrual engine cloud BAdI BADI_ACE_DOCUMENT_SCHEMA_CLD to set below values for journal entry lines:

cost_center (cost center)
profit_center (profit center)
glaccount (G/L account)
item_text (item text of the journal entry item) ...

Search the cloud BAdI in app Custom Logic.

Business Context
Accrual Engine
BAdI Description
Accrual Engine: Modify Journal Entry Line Items(Cloud)

Keywords

BAdI, Accrual Engine, Purchase Order Accruals, Modify Journal Entry Line Items, Custom Logic, Cost center, Profit Center, G/L Account , KBA , FI-GL-GL-ACE-2CL , Accrual Engine (Public Cloud) , FI-GL-GL-POA , Purchase Order Accruals , FI-GL-GL-ACE , Accrual Engine , FI-GL-GL-POA-2CL , Purchase Order Accruals (Public Cloud) , How To

Product

SAP S/4HANA Cloud Public Edition all versions