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: 

about CONCATENATE

Former Member
0 Kudos

Hi all,

I have wrote a sentence below:

CONCATENATE 'SAP Job ' p_jname ' [' sy-datum '/' sy-uzeit ']'

INTO gd_doc_data-obj_descr.

I want to writh the data and the time like this 2007.11.08 and 15:09:23,

but the result is 20071108 and 150923, how should I do?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

just go thru it

CONCATENATE 'SAP Job ' p_jname ' [' sy-datum0(4) '.' sy-datum4(2) '.' sy-datum6 '/' sy-uzeit0(2) ':' sy-uzeit2(2) ':' sy-uzeit4 ']'

INTO gd_doc_data-obj_descr.

u need to do manually.

4 REPLIES 4

Former Member
0 Kudos

use

<b>write sy-datum to date1 dd/mm/yyyy</b>

where date1 is a string

then use date1 in your concatenate statement.

Do the same for time.

regards,

Nikhil

0 Kudos

Many thanks!

Former Member
0 Kudos

Hi

just go thru it

CONCATENATE 'SAP Job ' p_jname ' [' sy-datum0(4) '.' sy-datum4(2) '.' sy-datum6 '/' sy-uzeit0(2) ':' sy-uzeit2(2) ':' sy-uzeit4 ']'

INTO gd_doc_data-obj_descr.

u need to do manually.

Former Member
0 Kudos

Hi,

Write the fields into another local field using EDIT MASK.

Regards,

SIddhesh Sanghvi.