cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI for transaction FB41 posting

PGLEBON
Newcomer
0 Likes
1,260

Dear all,

I need to create FI Document in program like transaction FB41 In SAP S4 2023.

Requirement:

Posting on account needing VAT Code without VAT Code (FB41 do this).

I would like to find a BAPI but I tried BAPI_ACC_DOCUMENT_POST and BAPI_ACC_GL_POSTING_POST unsuccessfull. Each time an error message appears: G/L account &1 requires a valid tax code (FS214).

Last solution would be a batch input but I dislike this...

Thanks in advance for your return.

View Entire Topic
zbasyigit
Discoverer
0 Likes

You can use a validation in OB28. Set up a validation to check if the tax code is missing for specific G/L accounts. If the tax code is empty, assign a default dummy tax code (e.g., XX) to bypass the error. This ensures compliance with account requirements while maintaining posting consistency.