SAP Knowledge Base Article - Public

3723602 - Changing Warning message F5408 to Error for missing VAT Registration Number in line items with EU Tax code - SAP S/4HANA Cloud Public Edition

Symptom

When Creating Outgoing Invoice with EU Tax Code but no VAT Registration No, system issue warning message F5 408 "Tax code & is EC-relevant, but document contains no VAT reg.no.". Modify the configuration to turn the warning message into an error message. 

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Access Create Outgoing Invoice app
  2. Fill out necessary information
  3. Use an EU relevant Tax Code (EU Code <> space)
  4. Warning Message F5 408 "Tax code & is EC-relevant, but document contains no VAT reg.no." is issued

Cause

Message F5408 is fixed as a Warning message and it is not possible to modify its type through configuration.

Resolution

Utilize validation BADIs to create a custom validation ensuring that VAT Registration is entered for a line item with an EU Tax Code. Display a warning/info/error message to prompt the entry of the relevant VAT Reg. no if one is not yet provided. Validation in BAdI FIN_ACDOC_ITEM_VALIDATION can be configured to check whether an item has a tax code (ACCOUNTINGDOCITEMS-TAXCODE) that is EU-relevant (I_TAXCODE-EUTAXCLASSIFICATION) and whether the VAT Registration (ACCOUNTINGDOCITEMS-VATREGISTRATION) field is empty. 

For further details on how to use Custom Logic and Validation in Journal Entries, refer to the SAP Help documentation on Business Add-Ins for Validation for Journal Entries. Additionally, check the sample code provided for each BAdI.

See Also

Refer to SAP Help Business Add-Ins for Validation for Journal Entries.

Keywords

message F5408, VAT registration, EU tax code, warning to error, SSCUI 103887, application area F5, custom validation, BAdI FIN_ACDOC_ITEM_VALIDATION, SAP S/4HANA Cloud Public Edition, VAT ID, tax code, missing VAT ID, configuration error, custom logic, journal entries validation , KBA , FI-GL-GL-F-2CL , Value Added Tax (VAT) (Public Cloud) , Product Enhancement

Product

SAP S/4HANA Cloud Public Edition all versions