on 06-15-2009 3:10 PM
Hi Experts!
I have a stored procedure, which is waiting a parameter.
I would like to write a query in sap with parameter using sap language:
exec sp_leltar [%0]
The parameter is numeric, but when running the query above, it is giving an error:"Userdefined errors".
Any idea?Thats not a way to write the parameter value on editor field.
Try this one:
/*select * from dbo.omaleltfej t0*/
declare @leltid numeric OUTPUT
/* where*/
set @leltid = /* t0._leltfejid */ [%0\]
exec omaleltareredmeny2 @leltid
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To enter parameter for an SBO query you should use a table known by the system. It may be a system or a user defined table. Your table is not an SBO table.
You could use any SBO table to get the numeric value and use it in the procedure call
(Try the parameter cachig first in a simple query, using
. . .
Select @leltid
I have tried to run the following:
select from dbo.omaleltfej t0/
declare @leltid numeric OUTPUT
/* where*/
set @leltid = /* t0._leltfejid */ [%0]
exec omaleltareredmeny2 @leltid
Error message:"...Can not use the output option in declare or create function statement..."
I gave up to solve it, because this is not an SAP table, it is not possibble to do.
Thank you for your effort.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am afraid you have to use predefined parameter for SP, not [%0\] after the EXEC SP. You may declare the parameter first.
Thanks,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.