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

ABAP report date format

Former Member
0 Likes
636

Hello friends,

In my report I have to display the details of the selection screen.

I am having some problem with the date format

HOwever when the user changes the settings in the user profile the data

format on the report should display as what the user profile settings are.

for EG -

if the user has the settings as YYYY-MM-DD

the output should be 2007-12-11.

If the user changes the date format as MM/DD/YYYY

the output should be 12/11/2007.

Any suggestions.

Ster

REPORT ZCP0A128 NO STANDARD PAGE HEADING

LINE-SIZE 80

LINE-COUNT 65(0)

MESSAGE-ID ZZ.

TABLES : ZCAST.

SELECT-OPTIONS: S_PSTTR FOR ZCAST-ZEFDAT DEFAULT SY-DATUM.

WRITE : S_PSTTR-LOW.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
578

I think the user has to log off anf login again.

Amandeep

Hello friends,

In my report I have to display the details of the selection screen.

I am having some problem with the date format

HOwever when the user changes the settings in the user profile the data

format on the report should display as what the user profile settings are.

for EG -

if the user has the settings as YYYY-MM-DD

the output should be 2007-12-11.

If the user changes the date format as MM/DD/YYYY

the output should be 12/11/2007.

Any suggestions.

Ster

REPORT ZCP0A128 NO STANDARD PAGE HEADING

LINE-SIZE 80

LINE-COUNT 65(0)

MESSAGE-ID ZZ.

TABLES : ZCAST.

SELECT-OPTIONS: S_PSTTR FOR ZCAST-ZEFDAT DEFAULT SY-DATUM.

WRITE : S_PSTTR-LOW.

3 REPLIES 3
Read only

Former Member
0 Likes
579

I think the user has to log off anf login again.

Amandeep

Read only

0 Likes
578

Thanks.

Ster

Read only

Former Member
0 Likes
578

Hi,

Check this FM DATUMSAUFBEREITUNG

I think you can also just use write statement to get the Date format as in User Profile.

Regards,

Satish