‎2010 May 17 11:59 AM
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
‎2010 May 17 12:12 PM
Hi,
you will have set the user format that user only after it'll come correct format.
and you don't the user format t-code consultanting with ur function guys.
Thanks
With Regards
I.Muthukumar.
‎2010 May 17 12:19 PM
Hi,
Read system date always have yyymmdd format, Extract yyyy, mm and dd. convert month using function module or write yours own code for get month name and concate and store into the string or character having more 15 char length as per your requirement.
Rgds
Ravi Lanjewar
‎2010 May 17 12:14 PM
Hi ,
Please check the date format in
Tcode SU01based on that the date format will get change.
I think this will help you to solve the problem .
regards
ammu
‎2010 May 17 1:35 PM
‎2010 May 17 2:05 PM
Hi,
CONV_EXIT_LDATE_OUTPUT_LANGU gives a similar output. Check it out.
Thanks
Meenakshi
‎2010 May 17 2:34 PM
Moderator message - Please see before posting. Datew questions are generally not allowed - post locked Rob