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

about CONCATENATE

Former Member
0 Likes
698

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

Former Member
0 Likes
674

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.

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?

4 REPLIES 4
Read only

Former Member
0 Likes
674

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

Read only

0 Likes
674

Many thanks!

Read only

Former Member
0 Likes
675

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.

Read only

Former Member
0 Likes
674

Hi,

Write the fields into another local field using EDIT MASK.

Regards,

SIddhesh Sanghvi.