Hello Lars,
Thanks for your reply. I tried this:
drop procedure NEO_CCG502K10CQSC8NX8DNT6J7MA.CALL_RULE_050_PROC_VIEW;
create procedure NEO_CCG502K10CQSC8NX8DNT6J7MA.CALL_RULE_050_PROC_VIEW(
in i_tenant_id NVARCHAR,
out o_result NEO_CCG502K10CQSC8NX8DNT6J7MA.RULE_050_PROC_VIEW
) reads sql data
as
begin
--- o_result = select * from NEO_CCG502K10CQSC8NX8DNT6J7MA.RULE_050_PROC_VIEW WITH PARAMETERS ('placeholder' = ('$$i_tenant_id$$', :i_tenant_id ));
o_result = select * from NEO_CCG502K10CQSC8NX8DNT6J7MA.RULE_050_PROC_VIEW (PLACEHOLDER."$$i_tenant_id$$"=> :i_tenant_id);
end
and now, it works!
Can you (or anyone else) explain, what the difference is between
WITH PARAMETERS ('placeholder' = ('$$i_tenant_id$$', :i_tenant_id ))
and
(PLACEHOLDER."$$i_tenant_id$$"=> :i_tenant_id)
is?
With the first approach, the procedure is not compilable, I get the following SQL syntax error:
SAP DBTech JDBC: [257]: sql syntax error: incorrect syntax near ":i_tenant_id": line 7 col 129 (at pos 328)







