Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Calculated Column Expression in View in SAP HANA

$
0
0

Hi,

 

I have a requirement to calculate Backlog quantity for a particular Sales Order,The requirement is as below:

 

"CASE

 

WHEN

    SCHEDULE_LINE.COMMITTED_QTY = 0 AND SCHEDULE_LINE.CUMMULATIVE_CONFIRMED_QTY = 0 AND SCHEDULE_LINE.DELIVERED_QTY = 0

  THEN

SALES_ORDER.ORDER_QNTY

 

ELSE

 

SCHEDULE_LINE.COMMITTED_QTY - SCHEDULE_LINE.DELIVERED_QTY

 

END AS BACKLOG_QTY "

 

 

I am trying to calculate this in the calculated column in sap hana calculation view by using case as below:

 

 

case(when("ScheduleLineCommitedQuantity"='0' AND "ScheduleLineCummulativeConfirmedQty"='0' AND "ScheduleLineDeliveredQuantity"='0'),"OrderQuantity", ("ScheduleLineCommitedQuantity"  -"ScheduleLineDeliveredQuantity")end.

 

Its giving syntax error.

 

Could you please give me the right expression to achieve this.

 

Thank you in advance.

 

Best Regards

ERP


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>