The purpose of this blog post is to explain most of the scenarios where message FF805 -
"Tax statement item missing for tax code &" is raised when trying to transfer a sales invoice to accounting.
Tax code is assigned to pricing condition, but there is no tax condition assigned to the document.
As troubleshooting for this scenario, a breakpoint can be added into function module AC_DOCUMENT_CREATE via SE37.
AWREF POSNR KSCHL TAXIT MWSKZ KOAID
0000000020|0000001001 |PR00 | |A4 |B |
0000000020|0000001002 |VPRS | | |B |
0000000020|0000000001 | | | | |
Table XACCIT
AWREF POSNR KSCHL TAXIT MWSKZ KOAID KSTAT POSNR_SD
0000000020|0000001001 |PR00 | |A4 |B | |000010 |
0000000020|0000001002 |MWST |X |A4 |D | |000010 |
0000000020|0000001003 |VPRS | | |B |X |000010 |
0000000020|0000000001 | | | | | |000000 |
Table XACCCR
POSNR WRBTR FWBAS
0000001001 | 0.28-| 0.00 |
0000001002 | 0.00 | 0.00 | <-----
0000001003 | 6000.00-| 0.00 |
0000000001 | 0.28 | 0.00 |
...
If a tax condition has base value (XKOMV-KAWRT field) and condition value zero (XKOMV-KWERT field) OR is inactivated OR is statistical, then it is not passed to FI.
Therefore, you must ensure that the tax condition determines a condition basis and value in SD pricing.
We recommend that you use condition basis formula '16'. For further information about value-related condition bases, please see consulting note 834174 .
...
Function module FI_TAX_SV_BSEG_BSET_GROSS
...
LOOP AT t_taxcodes. "N1071046
CHECK t_taxcodes-counts = 0 "N1071046
OR t_taxcodes-counth = 0 "N1071046
OR t_taxcodes-amounts NE t_taxcodes-amounth. "N1071046
* Zero Values --> no BSET entry created "N1104111
check ( t_taxcodes-amounts ne 0 or "N1104111
t_taxcodes-amounth ne 0 ). "N1104111
LOOP AT t_bset WHERE mwskz = t_taxcodes-mwskz
AND txjdp = t_taxcodes-txjcd.
EXIT.
ENDLOOP.
IF sy-subrc NE 0.
MESSAGE e805 WITH t_taxcodes-mwskz RAISING mwskz_not_found.
ENDIF.
ENDLOOP.
...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
9 | |
6 | |
4 | |
4 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 |