on 07-14-2009 9:55 PM
Dear All,
Can we make our user query like this
If [%2] != 'C'
Begin
...
End
I tried on my side. It doesn't work. Is there anything wrong with my code? Thanks a lot.
Regards,
yuka
User input like [%2\] will not work based on your query. What do you need to achieve?
Thanks,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would do this:
Declare @campo nvarchar (3)
Set @campo = 'xxx'
IF @campo is null or Rtrim (@campo) =' '
BEGIN
Select * From Tabla T0
END
ELSE
IF @campo is not null or rtrim (@campo)< >' '
BEGIN
Select * From Tabla T0 Where T0.campo =@campo
END
-
With pop up variables is the same, just replace Declare query format with /* select from ...*/ variable syntax.
(If you need more information about the Declare in SAPB1 user queries, just let me know).
That is right. You may not have options to create menu like interface for query to run.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
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.