Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9236

inserting data into table from calculation view

$
0
0

Hello Experts;

 

I need to insert data into my 7 fields of HANA tables  from calculation view . scenario is given below

 

Table have 7 fields clm1, clm2, clm3, clm4, clm5 , clm6, clm7

 

clm1  will be -> hana time stamp ( when created)

 

clm2 will be -> hana time stamp ( last updated)

 

clm 3  will be fetched from calculation view field ( calculation view is existing one)

clm 4  will be fetched from calculation view( calculation view is existing one)

clm 5 will be always null

clm 6 will be having character "HANA"

clm7 will be -> HANA SEQUENCE

 

I am sure it will be done by procedure but get confuse that is there any other type of procedure in which table type will not be bcz in my case i do not need table type

 

2) how to call view if i do need to do call my calculation view for inserting data

 

3) or may be i have to simply select my view via select view statement  and insert in table ( what is syntax plz tell!!)

 

IMPORTANT POINT IS i have to be careful that if clm3 and clm4 ( hana calculation view fields) is already present in hana table so i need to skip this record from inserting into hana table. Do i need to put cursor logic in my procedure for searching my table  ( becausei need to search table that whether  record with this 2 fields are already present into the table or not)

 

Waiting for your quick response and help


Viewing all articles
Browse latest Browse all 9236

Trending Articles



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