12-28-2007 6:09 AM
hi,
in the date format,ddmmyyyy...how can i take the first two characters(dd) and display them in report programming?
thanks in advance,
shylaja.
12-28-2007 6:10 AM
Hi,
If ur date is stored in some variable , say x.
Then print x(2).
It displays ur date.
Cheers,
Simha.
12-28-2007 6:25 AM
12-28-2007 7:22 AM
Hi Shyalaja,
Remember one thing, internally SAP always stores the date in YYYYMMDD format, irrespective of how it gets displayed on UI.
When you debug, you will see this.
Hence if date field is V_DATE then
Year: V_DATE(4)
Month: V_DATE+4(2)
Date: V_DATE+6(2)
Hope this helps.
Regards,
Aditya