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

Format String as Date,

Yasin
Active Participant
0 Likes
1,943

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
Read only

matt
Active Contributor
1,605

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
Read only

matt
Active Contributor
1,606

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.

Read only

Yasin
Active Participant
0 Likes
1,605

Thank Mathew

i was able to do it base on your advise.

WRITE V_DATE TO TEMP_STR.

Appreciate.

Read only

matt
Active Contributor
1,605

Amazing what happens when you read the documentation. 😉

Read only

Yasin
Active Participant
0 Likes
1,605

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

Read only

0 Likes
1,605

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.