In my DSA I have my Business Partner Master Data. I want to add a field that named Intercompany that shows ‘Intercompany’ when BP Group Code = 104 or 109 and else show Extern. BP Group Code has a smallint datatype. I added a custom field with the CASE WHEN statement. However, the extra field does not show the right results.
When executing the CASE statements SMSS everything works fine, but when I implement it in my DSA, it does not work correctly.
I tried all kinds of CASE statements with e.g. Like,OR statements, strings, however it does not show the desired result, but rather tons of nulls.
The screenshot below shows the intercompany field with the Nulls and some tests CASE statements.