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

Re: EXEC and EXECUTE IMMEDIATE in HANA

$
0
0

Hello Ebinezar,

 

there are several issues in your procedure which avoids the creation of your procedure:

  • v_matnr has to be declared by the "declare" statement
  • in case the v_matnr is a string (which it is, according to your assignment), then in your insert statement the value has to be enclosed in single quotes
  • the EXEC function does not return anything you can collect in v_stmt; v_stmt has to be removed

 

Lower/Upper cases for variables do not matter.

 

Regards,

Florian


Viewing all articles
Browse latest Browse all 9165

Trending Articles