cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

UI rule to fill value in Tax Number Type

0 Kudos
630

Hi!

I’ve got an issue for the UI rule type ‘value’. It doesn’t fill value into field ‘Tax Number Type’ when creating new account.

Here is tax number types in fine-tuning:

The steps I’ve done:

1.I’ve created two UI rules with type ‘value’ for account creation screen.

2.The first one fills value ‘RU’ in the field ‘Tax Country/Region’. It works fine. The rule:

IF(OR(Root.ZBPTYPE_82f3201ce774daf041414d3b0c913f01 == '41',
Root.ZBPTYPE_82f3201ce774daf041414d3b0c913f01 == '51',
Root.ZBPTYPE_82f3201ce774daf041414d3b0c913f01 == '81'), 'RU', ' ')

3.The second UI rule fills value ‘1’ – the code of tax type you can see in the screen below. And the system returns an error: 1 is not a valid value for the field. The rule:

IF(AND(OR(Root.ZBPTYPE_82f3201ce774daf041414d3b0c913f01 == '41',
Root.ZBPTYPE_82f3201ce774daf041414d3b0c913f01 == '51',
Root.ZBPTYPE_82f3201ce774daf041414d3b0c913f01 == '81'),
Root.TaxCountryCode == 'RU'), '1', ' ')

And here is a question. I can’t understand what value must be in the field. I tried several values:

  • RU/1
  • RU1
  • 1

All the time there was an error.

A little different case when I tried to fill the value from description of the tax type ‘Tax Number INN’. The system returned the same error but only when I've created an account for the first time I’ve logged into system. After I pressed ‘Cancel’ and created a new account there was not an error. The value from description didn’t rise an error.

So I can’t understand what value must I fill into the field ‘Tax Number Type’? Or there must be some other way to fill the value?

Try to avoid custom coding. Standard way to solve the issue is quite preferred.

Thanks in advance and kindly regards, Andrey.

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Thanks, Saurabh! Sorry for late answer.

I've tried to fill value into 'tax type' with 'Tax Country/Region' in condition of the rule. So, the 'tax type' must be filled only when 'Tax Country/Region' is filled. Both filled by different UI rules.

But it didn't help.

Anyway, thank you very much for answer!

Andrey Romanovsky.

former_member226
Employee
Employee
0 Kudos

Hi,

Based on my understanding, I would say it is due to how the rule is configured vs how the tax type is supposed to work. SAP expects that based on the "tax country code" selected, tax type value will be shown to the user. However, when you configure a new rule of type of "value" which is not applied for "tax country code" then code list(i.e. tax type) is defaulted based on the dropdown values of "ZBPTYPE". However, this time values are not filtered by tax country code, which essentially means that all values are sorted automatically and the very first entry is picked by the system without respecting the check for country code. For e.g. when you say ZBPTYPE = '41' then system try to default tax type as '1' based on any of the following value whichever comes first in the system sorting.

1 - VAT Registration Number(DE)

1- Excise Control Code Number(IN)

1- Tax Number INN(RU)

Hence you need to redesign your rule in such a way that rule is applied to ytax country code