on 09-06-2010 4:40 PM
Hi all,
I hava a query to run on SAP B1 Query Executer with a Date Parameter, so when i execute a query it should ask for the date parameter which the user will pick it up from the datetime picker.
But i find that the [%0] or any other [%..] variable is used for only the table's field.
so is there any possible way to do it.
i have some pseudo query like
*Select * from JDT1 T1 where T1.RefDate=GetLastDateOfMonth('[%0]')*
Hi,
Is this GetLastDateOfMonth() an user function by you?
Thanks,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi GordonDu,
I have tried for predefined parameter as
Declare @myParam as datetime
set @myParam=[[%0]]
Select * from JDT1 where RateDate=GetLastDateOfMonth(@myParam)
And it still is not working, so i tried to set my parameter as
set @myParam=(Select RateDate form ORTT where RateDate=[[%0]])
regards
Bikram
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
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.