cancel
Showing results for 
Search instead for 
Did you mean: 

Dependent`s date of birth

Alina
Active Participant
0 Kudos

Hello,

Is it possible to make the field Date Of Birth for Dependents portlet as required for some countries and for some aren`t?

I can`t do it in business rule. I mean the function TEXT for it.

Can anyone help me?

Thanks in advance,

Alina

View Entire Topic
karenperez
Product and Topic Expert
Product and Topic Expert
0 Kudos

Dear alina123,

Thank you for your post/question!

Yes, you can control it using a business rule. In the example below, the rule was created using the Dependents Model and it is onChange in the relationship field:

I hope this helps!

Thank you.

Best Regards,

Karen Perez

Alina
Active Participant
0 Kudos

Hello, Karen,

Thank you so much for your reply!

I`ve tried to create based on your instructions, but it still doesn't2022-08-16-19-35-57.png work as we want.

For example, I want to make this field as mandatory only for Hungary in Dependents portlet.

1) Why is this rule OnChange? What should I change?

2) Why in the rule we have Required is true and false as conditions?

2022-08-16-19-42-56.png

Thanks!

Alina

karenperez
Product and Topic Expert
Product and Topic Expert

Hi alina123

I didn’t try with Country, but company (legal entity). Can you try with company to see if it works? Do you have this rule onChange in the relationships field?

About the true or false, this is how we should set it up when defining if field should be or not mandatory.

Thank you.

Best Regards,

Karen Perez

Alina
Active Participant
0 Kudos

Hello, Karen,

With Company code my rule works, many thanks!

But I`m curious why with country it doesn`t work? 😞

Also, I want to say you thanks for explanation. I really appreciate it!

Have a productive day,

Alina

karenperez
Product and Topic Expert
Product and Topic Expert

Dear alina123,

I am glad it works for you.

Probably the Country does not work as it is a picklist and we may have a limitation in there (I am not 100%, so if you need this confirmation I would recommend you to raise a ticket to SAP support asking them). Can I ask you to mark this question as answered so we can have it completed?

Thank you and have a nice day!

Best Regards,

Karen Perez

Alina
Active Participant
0 Kudos

Hello, Karen,

Thanks again!

I`ll accept your answer then.

Great knowledge!

Alina