SAP Knowledge Base Article - Public

3208575 - The requirement is to create logic using same BAdi without company code condition while existing BAdi alredy exists with company code condition


In system different logics using BADI FIN_ACDOC_HEADER_VALIDATION exist and these logics apply to different company codes by defining the condition as "company code". 

Now you want to create a new logic with the same BADI requesting to apply in all these company codes.



Reproducing the Issue

You have same BAdi with different logics applying to different company codes in system.


if you already have published logics for Cloud BAdI FIN_ACDOC_HEADER_VALIDATION with company code conditions <> Space, you can not publish a logic for the same Cloud BAdI without company code condition (apply to all company codes). It is not allowed to publish implementations with overlaps in the company code condition.


There are two options:

  1. You can insert the new validation code in all of your existing implementations.
  2. Or you implement a new validation for cloud BAdI FIN_ACDOC_HEADER_VALIDATION without company code condition and implement here the validations for special company codes (via IF statement or CASE statement for field accountingdocheader-companycode) and the general validations for all company codes outside the IF and CASE statements).
    Then you have to delete the existing published implementations for cloud BAdI FIN_ACDOC_HEADER_VALIDATION and publish the new implementation.


BAdI, all company code, condition, validation, implemention. , KBA , FI-SL-VSR , Validation, Substitution and Rules , FI-SL-VSR-2CL , Validation, Substitution and Rules (Public Cloud) , Problem


SAP S/4HANA Cloud all versions