Escolar Documentos
Profissional Documentos
Cultura Documentos
SELECT
VK."MANDT" AS "CLIENT"
,VK."VBELN" AS "SALES_ORDER"
,VP."POSNR" AS "SALES_DOC"
,VP."MATNR" AS "MAT_NO"
,VK."NETWR" AS "NET VALUE"
,VK."WAERK" AS "CURRENCY"
FROM "0000CDC"."VBAK_SP" AS VK
LEFT OUTER JOIN "0000CDC"."VBAP_SP" AS VP LEFT OUTER JOIN
ON
VK.MANDT=VP.MANDT
AND
VK.VBELN=VP.VBELN
END;
Stored Proc’s are mainly used for INSERT, UPDATE, DELETE operations
Create a table; write the data to a temporary table and then insert into the Column table.
SAP HANA stored procedures are reusable snippets of code which would be used in other development objects like
Calculation views, other stored procedures, table functions and more
You have to create a Table Type to Store the Result of the Output Parameter
Table Type:
After, activating the Table Function; Go to Modeler perspective and it should show up under the selected package;
If it doesn’t showup then you have to make sure all the hidden objects are listed option
If you don’t get the results by graphical calculation views, then go for Table Functions as final resort
If you add an input parameter in the Table Function; then you create one in the graphical calculation view –
preferably with same name and data type, length and map the input parameters
Note:
Table functions can be executed in the FROM clause of your SELECT statements.
You can pass the input parameters as well. You can call the function from the SQL Console