cancel
Showing results for 
Search instead for 
Did you mean: 

Validate Group Name in FSM Mobile

Joao
Explorer
0 Kudos
621

Hello,

I am new to FSM and I am trying to validate the customer Group Name in the Business Partner Mobile screen.

Let us say that I have 3 possible group names: Large Account, Small Account and Distributor. My goal is to allow the creation of the customer only if the group name is "Large Account".

I have tried several expressions in the "Advanced Settings" of the field businessPartner.groupName but without success.

Thank you in advance,

Joao

Accepted Solutions (0)

Answers (2)

Answers (2)

Yanik_Kurzawski
Participant

Hello Joao,

I tested this again with the same field and for me this is working just fine in the mobile application.

I tested this on windows/android so I don't know if there is an difference to iOS. Maybe also check your fields in the database so it's the exact value.

For me your configuration looks good so I don't know why it isn't working for you. If you don't find any solution maybe try contacting SAP support.

Greetings

Yanik

Yanik_Kurzawski
Participant

Hello Joao,

so now I tested it under iOS again and i'm getting the same error as you. So this solution is working under windows app/android but not for iOS. As far as I know there shouldn't be any different expression required for iOS than for android. So you can try and open a ticket to SAP support and report this as a bug.

But the solution in my first example with an UDF is working for android, windows and iOS. So as an workaround you could create an UDF with the same fields and just hide the visibility of the original groupName in the screen config. If needed you could also create an business rule to copy the values of the UDF to the original field.

Greetings

Yanik

Joao
Explorer
0 Kudos

Hello Yanick,

Thank you for the feedback.

The support has done a full sync and it has solved the problem. I was also getting different behaviors in IOS and Android depending on the screen. I will make a few test and see if the behavior is the same in both platforms.

Regards,

Joao

Yanik_Kurzawski
Participant

Hello Joao,

for this scenario to work you nedd following settings:

1.

2.

The validation error message is optional.

I created an UDF for this scenario but if you are using a standart FSM business partner field you would need an expression like this for example: ${businessPartner.groupName} == 'LargeAccount'

With this settings you can only create and edit businessPartner in the mobile app if your expression is true.

Other values for this field can only be used in FSM Master Data Management.

You can also read more Infos for this topic here:

Screen Configurator | SAP Help Portal

Expressions | SAP Help Portal

Greetings

Yanik

Joao
Explorer
0 Kudos

Hello Yanik,

Thank you for the answer and sorry for not replying before.

Your solution has worked exactly as you mentioned in the web version of the FSM. However, when I try to do the same thing for the Business Partner Mobile interface, the validation error shows up and block the customer create even if I select the expected group.

Please, see the screenshots below:

See below the message in the iPhone FSM client. You can see that I have selected the correct group name, but the validation is triggered anyway:

Do you think I am doing something wrong in the mobile screen configuration?

Thank you,

Joao