Skip to Content

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

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 30 at 07:48 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded