‎2007 Dec 28 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.
‎2007 Dec 28 6:10 AM
Hi,
If ur date is stored in some variable , say x.
Then print x(2).
It displays ur date.
Cheers,
Simha.
‎2007 Dec 28 6:25 AM
‎2007 Dec 28 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