Hi All,
I am facing the following date format problem.
I need to catchh the today date ( example 17/05/2010 ) . and put in the out put as 17 MAY ,2010.
the same application will be excuted by different user in digffernt countries.
What i did is as below:
CALL FUNCTION '/SAPDII/SPP05_GET_DATEFORMAT'
EXPORTING
USER = emp_uname1
IMPORTING
DATEFORMAT = w_dformat
TEXTFORMAT = w_date
TABLES
DATETEXT = it_ddtext.
CALL FUNCTION 'CONVERSION_EXIT_IDATE_OUTPUT'
EXPORTING
INPUT = sy-datum
IMPORTING
OUTPUT = w_DATUM1.
concatenate w_DATUM10(3) w_DATUM13(2) into w_datum3 separated by space.
concatenate w_DATUM3 ',' w_DATUM1+5(4) into w_DATUM2.
Here the out put is in w_datum2. I am getting exact format. But one user when he is using the same applocation is getting
as 17M AY,2010. split in month.
I think problem with sy-datum. while debugging sy-datum is 20100517.
can any boady help to solve the issue.
Is there any other way to get the date as 17 MAY , 2010.
Thanks in advance.
Regards,
kishan