Application Development 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: 

Format String as Date,

Yasin
Active Participant
0 Kudos

Hi,

am using

CONCATENATE LINES OF I_TAB_DATES INTO TEMP_STR SEPARATED BY ', ' 

to join multi dates into one string to display in my report in one line. but am loosing the date format
is there any way to keep the date format !?

Thanks

1 ACCEPTED SOLUTION

matt
Active Contributor

You're not losing the date format, I was never there.

Dates are stored internally as YYYYMMDD.

If you want to put them into a non-date data type, like a string, formatted, you have to use WRITE.

5 REPLIES 5

matt
Active Contributor

You're not losing the date format, I was never there.

Dates are stored internally as YYYYMMDD.

If you want to put them into a non-date data type, like a string, formatted, you have to use WRITE.

Yasin
Active Participant
0 Kudos

Thank Mathew

i was able to do it base on your advise.

WRITE V_DATE TO TEMP_STR.

Appreciate.

matt
Active Contributor

Amazing what happens when you read the documentation. 😉

Yasin
Active Participant
0 Kudos

Hi Mathew

Thanks for the clarification.

i cannot use Write since i want to show the final result in ALV Grid,

is there any other way?

Regards

0 Kudos

You need to get a little creative with offset and concatenate. There are a lot of threads in the forum about string to date conversion. Here is one of them.