2008 Jun 10 10:19 AM
in table dates is save as 20080602 that is 2 june, 08
so how can we recognize it in a program if we had defined the variable as dats type.......if we assign it in that variable then it wil take this date as 02.06.2008 ....so as both the pattern are sumwhat different so it is not fetching data from table...
plz comment what to do in this case
2008 Jun 10 10:25 AM
Hi,
use Write statment, which will will convert to system format
suppose date is stored in vaiable w_Date as 6 may 2007
write w_date to w_date1
now the value of w_date1 will be in system date format.
Regards,
Sriram
2008 Jun 10 10:25 AM
HI,
Declare char(8) type c variable.
Since you know the format in which it is stored.. get the values
l_day = l_date+6(2).
l_month = l_date+4(2).
l_year = l_date+0(4).
Then concatenate above values as per your requirement.
Best regards,
Prashant
2008 Jun 10 10:25 AM
Hi,
use Write statment, which will will convert to system format
suppose date is stored in vaiable w_Date as 6 may 2007
write w_date to w_date1
now the value of w_date1 will be in system date format.
Regards,
Sriram
2008 Jun 10 10:26 AM
There are two ways.
1. You can modify the table (I guess its a Z table)
2. Use CONVERT_DATE_TO_INTERNAL to get the internal date format.Pass this to a varibla of CHAR8 and use this value in the selection parameter.
2008 Jun 10 10:39 AM
2008 Jun 10 10:41 AM