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

BAPI for transaction FB41 posting

PGLEBON
Newcomer
0 Kudos
1,134

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

Divyesh_Mistry
Contributor
0 Kudos

Hi @PGLEBON ,

I would encourage you to create a Zero tax code with in FTXP with 0%. Assign the same in OBCL default tax code for input tax. Hopefully, that should work.

If you find my response helpful, kindly accept the answer and award a Kudos. This motivates me to serve you better.
Appreciate your feedback.
Thanks,
Divyesh

rajesh_paruchuru
Active Participant
0 Kudos

this issue is addressed with the note https://me.sap.com/notes/2389694/E. pls check the same.

 

Thank you

kyo_choi73
Active Participant
0 Kudos
Usually you need to patch several OSS notes for a BAPI to work.
zbasyigit
Discoverer
0 Kudos

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.