Skip to Content
Former Member
Aug 11, 2011 at 04:07 AM

Substitute G/L Account when posting Accounting Document


Hello Everyone,

I am an ABAP consultant.

I want to know if there is any way to substitute a G/L account which is already determined by the system.

When we post MIRO, when there is a price variance with GR, then a material price variance account will be determined and the variance gets posted to the material price variance account. Something like below.

Credit Vendor Account

Debit GR/IR Clearing Account

Debit Material Price Variance Account

I want to replace the Material Price Variance Account for certain scenario.

I tried with

1. BADI AC_DOCUMENT - But G/L account cannot be replaced with this

2. BTE - Able to change the G/L account, but it gives error "Internal error: Entry in COKA-Buffer not found". I found a SAP note for this. It seems G/L account and Fiscal year data gets transferred to COKA buffer and if there are any changes it does not allow to proceed.

I also found enhancement spots where i can make changes, but i want to know if this can be achieved in a standard way (Either Exits, BADI or FI Substitutions)