cancel
Showing results for 
Search instead for 
Did you mean: 

Make stceg field (vat id) in invoices mandatory

0 Kudos

Hello, is there a way to set the VAT ID as a mandatory field in invoices?

The rule should only apply to customers from the EU. Not for customers outside the EU.

Thanks.

former_member8821
Active Participant
0 Kudos

l_lola_l

As per my knowledge, if you need VAT ID as a mandatory field in invoice then you have to go with enhancement

Regards

Amrish

amrish1734

Thank you for your answer. 🙂 Can you please explain that in more details?

View Entire Topic
Lakshmipathi
Active Contributor

Three options are there

  1. For EU countries, have a separate Customer Account Group by which, you can set the VAT number (KNA1-STCEG) field to mandatory. By this, system will take care when billing documents are generated and it won't be blank while saving
  2. Second option is have a custom table and via SM30, have a combination of EU countries and a check box to confirm whether VAT number is mandatory or not. Here, VAT number is not mandatory in customer master. So as and when sale orders are created, system to check the Sold-To or Ship-To or Bill-To (depending upon your configuration to fetch the VAT number) country and if that country is stored in this custom table, check the related master data and validate whether the field is not equal to blank. If blank, trigger an error message which is possible via MV45AFZZ
  3. Third option is straightaway, use billing exit USEREXIT_FILL_VBRK_VBRP in Program RV60AFZC and check whether the related customer master is maintained for VAT number. If maintained, allow system to save the billing document; else, trigger an error that billing document cannot be saved