Hi,
I am not quire sure which Crystal Report forum I should post my questions.
I haven't worked on Crystal Report for a while. Recently I have a Crystal Report which is created from Crystal Report 11 and set in SAP BusinessObjects BI Platform 4.1 Support Pack 3
Version: 14.1.3.1257. The database is ORACLE 11.
One parameter is passed from Crystal Report into Stored Procedure which is called startDate. The report is set to automatically run in the CMS and the startDate is set to null. When the null is passed into Stored Procedure, the SP will get a value from database for pulling out the data.
Now the problem is when the startDate with null value, it never pull the corrected data out, looks like the NULL is not passed into the Stored Procedure as NULL.
The logic in the SP is:
IF startDate is NULL or startDate = '' THEN
v_startDate := a value which is selected from a table
ELSE
v_startDate := startDate -- which allow people manually select the date to run the report.
v_StartDate is used in a select statement.
Is there anyone know what could happen when a Date is set to NULL in CMS? I tried to trim the StartDate before use it, but didn't help.
Thank you very much for any suggestions and helps!!!
I am not quire sure which Crystal Report forum I should post my questions.
I haven't worked on Crystal Report for a while. Recently I have a Crystal Report which is created from Crystal Report 11 and set in SAP BusinessObjects BI Platform 4.1 Support Pack 3
Version: 14.1.3.1257. The database is ORACLE 11.
One parameter is passed from Crystal Report into Stored Procedure which is called startDate. The report is set to automatically run in the CMS and the startDate is set to null. When the null is passed into Stored Procedure, the SP will get a value from database for pulling out the data.
Now the problem is when the startDate with null value, it never pull the corrected data out, looks like the NULL is not passed into the Stored Procedure as NULL.
The logic in the SP is:
IF startDate is NULL or startDate = '' THEN
v_startDate := a value which is selected from a table
ELSE
v_startDate := startDate -- which allow people manually select the date to run the report.
v_StartDate is used in a select statement.
Is there anyone know what could happen when a Date is set to NULL in CMS? I tried to trim the StartDate before use it, but didn't help.
Thank you very much for any suggestions and helps!!!