on 09-14-2011 6:12 AM
Hi All,
We have created a query report which we have created as a stored procedure and we are executing the sp in SBO to get the result. However, there is one issue, we have passed the variables in the sp as well as the fms to get the date range, but if we input the date manually, the result shown is incorrect!!
It works fine when we tab on the from date, scroll down and select the date from the cfl!! This is not acceptable to the client. They want to enter the dates manually and not select from the cfl.
Please advise what is wrong here and how to correct this issue?? Is there any limitation of this sort..
Thanks,
Joseph
Done
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Joseph,
I had a similar problem.
I changed my code in SP as follows and it is working for me .
Declare @LastDay as Datetime
set @lastday = GETDATE()
set @lastday = (SELECT CONVERT(VARCHAR(25),DATEADD(dd,-(DAY(DATEADD(mm,1,@lastday))),DATEADD(mm,1,@lastday)),101))
thanking you
Malhaar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Have you confirmed that the format for the date manually entered is correct?
You can post the code probably and experts can have a look and check the issue and provide a solution/try for a solution.
Kind Regards,
Jitin
SAP Business One Forum Team
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jitin,
I too have tried by entering the date format manually, but still does not work. In the SP, the format entered is 104 and i guess its the correct format. In sbo, we are trying to enter the date as displayed in the cfl but still no help.. The report works fine only if we select the date from the cfl and not if we input the date manually.
Is there anyway, i can attach word doc to this thread.. the query is over 64000 characters not sure how many pages will be consumed.. so i did not paste it here.
Thanks,
Joseph
User | Count |
---|---|
100 | |
11 | |
11 | |
6 | |
6 | |
5 | |
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.