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

New ABAP Editor Date format

Former Member
0 Likes
1,677

When using the new ABAP editor print feature there are formating options to print things like filename and current date. Current date displays in the European format of DD.MM.YYYY. I would like to change that to the American format of MM/DD/YYYY. Does anyone know of a way to do this?

Also, as a bonus question, Is there a way to add parameters like User id?

Thanks,

Larry

When using the new ABAP editor print feature there are formating options to print things like filename and current date. Current date displays in the European format of DD.MM.YYYY. I would like to change that to the American format of MM/DD/YYYY. Does anyone know of a way to do this?

Also, as a bonus question, Is there a way to add parameters like User id?

Thanks,

Larry

13 REPLIES 13
Read only

Former Member
0 Likes
1,383

Check

CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'

&

CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'

Regards,

Santosh

Read only

0 Likes
1,383

Santosh,

Maybe I did not make my question clear. The new ABAP code editor has a print feature which is different that the standard SAP print. It is only available in the new editor. The format of the printout is defined in the options dialog. You can specify the content header and footer. There are parameters like filename, page number and current date that can be placed in the header/footer. When I select the current date parameter, it prints out the date in Euorpeon format MM.DD.YYYY. I want it ti print out in American format MM/DD/YYYY.

My question is how do I do that?

Read only

0 Likes
1,383

Is this driven by your user settings? Check it out.

Regards,

Rich Heilman

Read only

0 Likes
1,383

Rich,

I don't think that the SAP user settings control this. I think it is something exclusive to the new editor.

Read only

0 Likes
1,383

Please describe how you are getting to the screen to specify the content header and footer.

Read only

0 Likes
1,383

Aaron,

When using the new editor, click th small button in the bottom right corner of the editor window. This will take you to the options dialog box for the new editor. One of the things that can be configured is the print format. I have select the parameter Current date or %date% to appear in the footer of the printout. This date is then printed as DD.MM.YYYY.

I want to print as MM/DD/YYYY

I am pretty sure that this has nothing to do with the date format in the user profile. Mine has always been set to the American format, and I have no problems with that at all.

Read only

raja_thangamani
Active Contributor
0 Likes
1,383

Hi,

You need to change the User Profile.

Steps: goto Menu

System(You can access from Any SAP Tcode) -->user Profile --> Own Data --> Default(Tab).

Just set the format what ever you want. You no need to use FM.

Raja T

Read only

aaron_morden2
Contributor
0 Likes
1,383

Make sure that your default date format is set to MM/DD/YYYY.

From the Main menu bar goto System --> User Profile --> Own Data

Then click the defaults tab and choose your date format.

Read only

Former Member
0 Likes
1,383

Larry,

Isn't the data format a parameter in the user profile. I think the default format for a user is set in the SU01, user pofile default values tab. change that and see if that reflects in the editor.

Regards,

Ravi

Note - Please mark all the helpful answers

Read only

Former Member
0 Likes
1,383

Everyone,

My date format for everything else in SAP is set to the the American format. I think this is exclusive to the New ABAP Editor. I know there are some configuration files somewhere that might contain these parameter definitions, but I am not sure where they are and how to change them.

Message was edited by:

Larry Browning

Read only

0 Likes
1,383

Have you tried my solution:

<b>You need to change the User Profile.</b>

<b>Steps:</b> goto Menu

System(You can access from Any SAP Tcode) -->user Profile --> Own Data --> Default(Tab).

Just set the format what ever you want. You no need to use FM.

Raja T

Read only

0 Likes
1,383

Raja,

My user profile has always been set to the American format and I have no problems with it at all. This problem only occurs when I print from the new code editor which was made available to us only a few weeks ago when the latest support packs were installed to the basis system. (ECC 5.0)

Read only

Former Member
0 Likes
1,383

Have I stumped the forum? Do I get points for that?