Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: Calling parameterized Cal View, from HANA Stored Procedure

$
0
0

Hi Giri,

 

I believe now you have to split the query into 2 parts :

 

1. First part would contain bring the data from parameterized view into your local TT

 

Eg:

 

TT_GET_INVENTORY = SELECT * FROM "_SYS_BIC"."getInventory"(PLACEHOLDER."$$inventory_category$$" => :inventory_category);

 

I have assumed that you need to select all the columns(thats why select *) and you want to filter data on inventory_category.

 

2. Use the above TT in the same query you had given .

 

OUT_TT_INVENTORY = SELECT "Material" as "material", "Location" as "location", "InventoryCategory" as "inventoryCategory",  "Value" as "value" FROM :TT_GET_INVENTORY p, :IN_MATERIAL m, :IN_LOCATION l   WHERE LOWER(p."Material") = LOWER(LPAD(m."paramValue", 18, 0)) AND LOWER(p."Location") = LOWER(LPAD(l."paramValue", 10, '0'))  ORDER BY "material", "location", "inventoryCategory";

 

Rest everything would be same.

 

Regards,

Anil


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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