Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9990

Stored Procedure and Parameter in Query Generator

$
0
0

Hello

 

I’ve created a simple test Stored Procedure like:

 

SELECT*

from  ordr

where docnum = @p1

 

The goal is that the user can fill in a variable in the query window with the standard SAP option [%01].

I’ve tried several options, but all gives an error.

 

In the query generator/window I filled in:

 

Declare @test int

set @test = [%01]

exec RC_testparameter  @test

 

or like

 

Declare @test int

select @test = docnum from ORDR where docnum = [%01]

exec RC_testparameter  @test

 

both are not working by me.

Does anybody know or this is possible?

 

 

 

Kind Regards

Peter


Viewing all articles
Browse latest Browse all 9990

Latest Images

Trending Articles



Latest Images