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