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

Output Date format

0 Likes
998

Hello,

When i try to print a purchase order on Me23n the date cames inverted as : MM/DD/YYYY

I ´ve debug the program LSTXFCN and when it put the date information in variable cd_date_out

(line 245) , it´s comes as í showed above.Have anyone a sugestion ? My ambients are equalized . But in development it´s working , and not in Production . I´didn´t found notes about it .

Eg:

Prodution : MM/DD/YYYY - wrong

Development: DD.MM.YYYY - is correct

Thank a lot

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
667

HI

Do change the user profile.

In dev you might have got profile set as per yu desired format. set the same format in QA too.

Path:System>use profile->own data

under the Tab(Defaults) change to your desired format

4 REPLIES 4
Read only

Former Member
0 Likes
668

HI

Do change the user profile.

In dev you might have got profile set as per yu desired format. set the same format in QA too.

Path:System>use profile->own data

under the Tab(Defaults) change to your desired format

Read only

Former Member
0 Likes
667

Hi,

Date Format always depends on the way you have chosen in your profile. It can be changed by Basis guys or you can do that if you have access to SU01 transaction,

But, if you drill down to the database level, it always get stored in the format yyyymmdd.

Thanks,

Babu Kilari

Read only

Former Member
0 Likes
667

hi,

use the function module before passing the date to BDC field or varaible cd_date_out..

CONVERT_DATE_TO_INTERNAL :--Converts internal date to user-specific format string and vice versa. Import/Export : YYYYMMDD;

Export/Import : user specific

See field DATFM in the

USR01 table. Can be set up

via System -> User Profile ->

User Defaults or using su50.

after the getting the date field in the user specified format pass into BDC varaible..

this will solve your problem..

Regards,

Prabhduas

Read only

Former Member
0 Likes
667

Hi,

You can use this statement in the sap script

/: SET DATE MASK = 'MM.DD.YYYY'