on 11-08-2012 2:22 PM
I know how we can define a basic expression into a calculated field. I was wondering if we can attached a field either calculated field or in SQL Script based Calculation View where we can pass input parameters based on the selected fieds and defined a new field based on the returned value.
Let say a stored procedure ABC has 2 input parameters (both scalar parameter) and 1 output scalar parameter. I was wondering if we can call the procedure from select statement so that we can defined a new field based on this procedure.
SELECT field1, field2, Call ABC(field1, field2, result) as field3 from....
I could not find any such documentation and hoping someone experience this before and able to make this work.
Hi Iwan,
To my knowledge, I don't think this is possible in the format you need. You may write a complex select statement with subqueries / inner queries, case statements to some extend to have the complex logic involved in the procedure.
Alternatively, the procedure can return the result view after the complex calculation which can be used with select statement. But the output will not be scalar in that case.
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unfortunately, HANA does not support the Function concept like Oracle does.
They'll probably come up with it in the following releases, since it's a constantly required functionality, but it's not there yet. 😕
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.