Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

date format problem

Former Member
0 Likes
848

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

6 REPLIES 6
Read only

Former Member
0 Likes
800

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.

Read only

0 Likes
800

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

Read only

Former Member
0 Likes
800

Hi ,

Please check the date format in

Tcode SU01

based on that the date format will get change.

I think this will help you to solve the problem .

regards

ammu

Read only

Former Member
0 Likes
800

Hi

Please refer this thread for the solution..

Regards

Raj

Read only

Former Member
0 Likes
800

Hi,

CONV_EXIT_LDATE_OUTPUT_LANGU gives a similar output. Check it out.

Thanks

Meenakshi

Read only

Former Member
0 Likes
800

Moderator message - Please see before posting. Datew questions are generally not allowed - post locked Rob