You get this error when a G/L account for withholding tax type XX tax code YY has not be configured. Tax type and tax code is maintained in Vendor master under Withholding Tax category.
To resolve the error,
- Go to Spro -> Financial Accounting Global Settings (New) -> Withholding tax -> Extended Withholding Tax -> Posting -> Accounts for Withholding tax -> Define Accounts for Withholding tax to be paid over.
- And assign a G/L account to tax type XX and tax code YY (Shown in the error).