Hello All,
I have to implement default date values for couple of reports. we are using oracle as the backend and currently on SAP BIBO 4.0 sp4.
Report 1 : Start date - Sysdate
End date - sysdate + 3 months
Report 2 : Start date - Yesterday
End date - Yesterday - 7
I have created a condition in the universe "Start Date" and "End Date" and used the following code:
DATE BETWEEN CASE @Prompt('2.Begin Date(mm/dd/yyyy)','A',,mono,free,persistent)
WHEN 'TODAY' THEN sysdate
WHEN 'YESTERDAY' THEN sysdate-1
WHEN 'YESTERDAY-7' THEN sysdate-8
WHEN 'TODAY+90' THEN add_months(sysdate,3)
ELSE to_date(@Prompt('2.Begin Date(mm/dd/yyyy)','A',,mono,free),'mm/dd/yyyy') END
AND
CASE @Prompt('3.End Date(mm/dd/yyyy)','A',,mono,free,persistent)
WHEN 'TODAY' THEN sysdate
WHEN 'YESTERDAY' THEN sysdate-1
WHEN 'YESTERDAY-7' THEN sysdate-8
WHEN 'TODAY+90' THEN add_months(sysdate,3)
ELSE to_date(@Prompt('3.End Date(mm/dd/yyyy)','A',,mono,free),'mm/dd/yyyy') END
Report is working fine. We are displaying prompts in the header section using "User response" function. When we use "TODAY", "YESTERDAY", "YESTERDAY-7" OR "TODAY+90" in the Start Dates and End dates, it is displaying as the same in the header but we would like to convert it in MM/DD/YYYY. When we use date date format i.e. 03/05/2015 for Start Date and End Date, we are able to see the same format in the header of the report.
How to convert these characters "TODAY", "YESTERDAY", "YESTERDAY-7" OR "TODAY+90" in to MM/DD/YYYY? Any idea ?
Sandy