hi
Please try this FM.
CONVERSION_EXIT_INVDT_INPUT
CONVERSION_EXIT_INVDT_OUTPUT
1) <b>CONVERT_DATE_TO_INTERN_FORMAT</b> Converts a date to internal format
2) <b>CONVERT_FIELD_TO_EXTERN_FORMAT</b> Converts a field from internal to external format
3) <b>CONVERT_FIELD_TO_INTERN_FORMAT</b> Converts a field from external to internal format
Reward with points for helpful answers
Cheers
Alfred
HI,
Date = YYYYMMDD
Concatenate date4(2) ‘ /’ date6(2) ‘/’ date(4) into Date2.
or
data : l_date(10) type c .
concatenate sy-datum6(2) '/' sy-datum4(2) '/' sy-datum(4) into l_date.
write : l_date.
or
data :l_date(10) type c
CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
EXPORTING
DATE_INTERNAL = SY-DATUM
IMPORTING
DATE_EXTERNAL = l_date.
this function module converts date from 20050601 to external format which is specified in user profile.
Regards,
Laxmi.
hi,
Use the following piece of code.
DATA: L_DATE(10).
WRITE sy-datum to l_Date mm/dd/yyyy.
regards,
hi
good
no function module can help you to change the date conversiton,
you have to store your complete date in a variable and split the three part and store in different variable.Take another variable and store only '/'.
use CONCATENAE statement to contatenate all the characters and display them using another character variable.
thanks
mrutyun^
Add a comment