on 07-07-2020 6:17 PM
Hi
Below Fms not working. I want to implement when ItemCde changes or u_Type value changes
SELECT
CASE
WHEN U_Type = 'U_1' then (Select U_1 from OITM where OITM.ItemCode = $[RDR1.ITEMCODE])
WHEN U_Type = 'U_2' then (Select U_2 from OITM where OITM.ItemCode = $[RDR1.ITEMCODE])
END AS Type
FROM [Test].[dbo].[RDR1]
where docentry=$[$Rdr1.docentry.number]
Thanks
Hi,
Try this query,
SELECT CASE WHEN U_Type = 'U_1' then (Select U_1 from OITM where OITM.ItemCode = $[$38.1.11]) WHEN U_Type = 'U_2' then (Select U_2 from OITM where OITM.ItemCode = $[$38.1.11]) END AS Type FROM RDR1 where docentry=$[RDR1.docentry]
Regards,
Nagarajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you use Hana version, try double quates for fields. Like "U_Type"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.