cancel
Showing results for 
Search instead for 
Did you mean: 

FI/ABAP: Missing tax line in FAGLFLEXA while posting FI transaction with IDOC.

DanielBDNguyen
Explorer
0 Kudos

Probably a long shot but I'll give it a try here anyways

I got a specific problem, I was following this blog:

https://blogs.sap.com/2017/06/23/fi-posting-via-idoc-and-generate-additional-tax-line-in-accounting/

I've made the enhancements according to that blog and posting seems to be fine, in BSEG table I can see the tax line. But in FAGLFLEXA, the tax line is still missing, the method above didn't seem to account for the update of this table.

Anyone ever came across this problem? How would you solve it?

Gustavo_Vazquez
Active Contributor

Have you tried note 626235 and IDOC ACC_GL_POSTING ?

Kind Regards

DanielBDNguyen
Explorer
0 Kudos

I'll have a look now and come back with updates. Thanks

DanielBDNguyen
Explorer
0 Kudos

This note doesn't respond directly to what I was asking (about posting via IDOC) but rather provides some alternative.

Thanks though.

Gustavo_Vazquez
Active Contributor
0 Kudos

One note to consider if you are working with BAPI is note 2083799, it has got examples for some scenarios.

Sjoof
Explorer
0 Kudos

Hello Daniel,

We have the same problem. Can you tell us what you have done to make this work (Enhancement and z-version of AC_DOCUMENT_POST)?

Kind regards,

Hans van der Maarel

Accepted Solutions (0)

Answers (1)

Answers (1)

DanielBDNguyen
Explorer
0 Kudos

UPDATE:

Originally, we did it based on the blog above: In FM: FI_DOCUMENT_PROJECT In this form DOCUMENT_TAX_BSET. We did an enhancement: ENHANCEMENT-POINT DOCUMENT_TAX_BSET_03 SPOTS ES_SAPLFACI.

This enhancement eventually fill xbseg table with calculated tax and entries from xbset. The end result is we have the tax line added in BSEG but not in FAGFLEXA.

Anyways, manually we corrected by running 2 programs

(can be risky, referred by someone from SAP see: https://archive.sap.com/discussions/thread/1387102 but our functional confirmed it's OK):

  • FAGL_DELETE_DOCUMENT
  • RGURECGLFLEX

Eventually we solved this case by making another enhancement that uses a Z-version of AC_DOCUMENT_POST instead which posted correctly in both BSEG and FAGFLEXA.