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

SQL Script in HANA: Access row of table

$
0
0

Hi experts,

I have created the following table in my AMDP as below. I want to loop at the table and fetch the contents to fill the variables:

 

tab1 = SELECT mandt AS client,

                        col1 as Column1,

           col2 as Column2

           FROM DB_Table WHERE col1 = :input_parameter;

 

Now I want to implement the following logic:

 

If Column2 IS ' '      "Column2 returned from the query is BLANK

Then query again.

 

 

However I am not sure how to get the work area from the internal table tab1. Please help. Also I want to know how to set up a WHILE loop for the above scenario.

 

Regards,

Shalini


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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