Hi All,
I want to associate BSEG line item to its tax amount (which exist as multiple line items in BSET). I sum up the amount for each BSET-TXGRP but cannot associate to which BSEG-BUZEI does a BSET-TXGRP belong to.
Is there any way to get the tax line items (in BSET) of an existing tax document for a particular line item of accounting document (BSEG).
I know that,
BSEG-BUKRS = BSET-BUKRS
BSEG-BELNR = BSET-BELNR
BSEG-GJAHR = BSET-GJAHR,
but
BSEG-BUZEI <> BSET-BUZEI
also,
BSEG-TXGRP may not correspond to correct BSET-BUZEI.
I found 'CALCULATGE_TAX_DOCUMENT' FM which calculates tax amount as required. But the reason I cannot rely on this is because possible tax code changes could lead to different calculated amount than that of in the tax document.
I have been searching several posts and links but no where did I get any solution. Can anyone suggest any function modules to fetch tax data of a bseg line item instead of newly calculating it using calculation function modules?
Regards,
Priyanka S.