Skip to Content
J S

FMS not WOrking

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jul 08 at 06:15 AM

    If you use Hana version, try double quates for fields. Like "U_Type"

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 08 at 01:12 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.