cancel
Showing results for 
Search instead for 
Did you mean: 

How to use CASE Function in SAPDS Query Field Mapping

11-02-2021 6:07 PM
dunncrew Participant
1535 views 2 comments
0 Likes
SAP Managed Tags
Subscribe

I am using SAPDS Data Services Designer, moving data from 1 table to another. I want to use the CASE statement for a particular field, so that if the incoming field MATCH is 1, convert to 'TRUE' in the target field, else 'FALSE'.

In the field MAPPING box, I entered

CASE WHEN MATSCANRECORDS.MATCH = 1 then 'TRUE' else 'FALSE' END

(I have tried a few variations also)

But a Red X displays. Is my syntax wrong ? Or is CASE not supported ?

How can I achieve my result ?

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

Julian_Riegel
Product and Topic Expert
Product and Topic Expert

Hi there,

correct - decode() or ifthenelse() functionality should serve you well!

BR