on 2022 Apr 06 4:13 PM
We have a business requirement to check all Customer Records to validate that a particular Relationship Type is on each account. How do we do a rule to validate that ZBUR008 exists in the RELTYP field of the custom record no matter what other values are in the table?
Request clarification before answering.
Hi James,
ifIF ( lookup('CONN1', 'CUSTOMER_RELATIONSHIPS','CUSTOMER_NO', $cust_number, 'RELTYPE', 'ZBUR008', 'CUSTOMER_NO', 'null') is null )
RETURN FALSE;
ELSE
RETURN TRUE;
The lookup function would return the column
CUSTOMER_NO from the lookup table if there is a row with CUSTOMER_NO=$cust_number
and RELTYPE='ZBUR008'. RETURN exists('CONN1', 'CUSTOMER_RELATIONSHIPS','CUSTOMER_NO', $cust_number, 'RELTYPE', 'ZBUR008');
Best regards You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marcus,
I have one question regarding the exists function. Is it also possible to perform the exists check with a like operator in front of the parameter?
Here this is what I am trying to develop
Whenever the value for Source Value 1 and Shortdescription is exactly the same/matching then the rule works fine. But entries should also be found if the source value 1 is only part of a string in the parameter
Here is some background information:
I give the business an Excel sheet in which they can enter various material desc. values which if they are included in the source data, will leads to the fact that these entries are considered as incorrect.
For example, the material description could say: "Unusable". If this exact same value is also entered in my Excel or here a view then I find a match via "exists" check. However, if the source data contains "Unusable123", the logic does not work.
With pattern, regex etc. I could not find a solution.
Hope you can help me on that 🙂
Thanks in advance!
KR
Lukas
User | Count |
---|---|
63 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.