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

SAP Commissions: Get Unit Type in Rule / Formula

mbroeker
Explorer
0 Kudos
641

Hi everyone,

I am trying to find out how to retrieve or check the unit type of a field in SAP Commissions in a formula.

As an example for this issue, we can use the field Participant.Base Salary:

I have created several custom currencies besides USD, e.g. EUR, GBP or CHF. The base salary is maintained with the local currency of the employee. Now, in a rule, I want to check which currency is used for a particular participant. Is there a way to do that?

(No currency conversion needed)

Thank you for your support!

Accepted Solutions (1)

Accepted Solutions (1)

Yogananda
Product and Topic Expert
Product and Topic Expert

mbroeker

You can use the Query for String function. to get the value of Unit Type.https://blogs.sap.com/2020/08/13/how-to-use-plugins-efficiently-to-derive-your-calculations/
mbroeker
Explorer

Thank you Yogananda, it worked with this approach!

Answers (2)

Answers (2)

You can not access the actual unit type of the base salary. However, you can populate the unit type on a generic attribute on the participant. That was my work around in the past when I needed to know the payee's local currency type for rule purposes.

Lara
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi, Maximilian,

I don't believe there is. There is a function to set the unit type, but not to retrieve it.

The way around this is to have different rules, and use something other than the unit type (such as the credit type) as a filter.

mbroeker
Explorer
0 Kudos

Hello Lara,

okay, then I'll have to find another way to do it. Thanks for the quick answer!