You cannot declare field by TYPE Sy-datum.
But LIKE, because sy-datum isn't a type but a VARIABLE.
It is the system variable (in this case the date!).
"Sy" is the SYSTEM table of variable.
Hi John,
think, ther's no difference btw. scal-date and sy-datum
but what's about field TCURR-GDATU?
-> this is a field for invert date
(fm CONVERSION_EXIT_INVDT_OUTPUT)
A.
Hi,
difference is in output length and display format
1) data lv_date like sy-datum has output length
10 including separators like / or which
are user specific.
data lv_date like sy-datum
lv_date = sy-datum.
write lv_date.
output is 10/25/2006.
2) data lv_date type d has output length 8
data lv_date typew d
lv_date = sy-datum.
write lv_date.
output is 10252006 without separators.
Regards,
amole
Add a comment