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

Problem when creating XLS attchment for e-mail

Former Member
0 Likes
642

Hi,

I use this as my testing code

http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm

get syntax error :

con_tab (con_cert) must be a char type data object .

I'm using ECC5.0 ,kernel 640,non-unicode.

I have try to use


  CONSTANTS: con_cret(2) TYPE c VALUE '0D',  "OK for non Unicode
             con_tab(2) TYPE c VALUE '09'.   "OK for non Unicode

but the attachment xls file have no content.

Also, i try

CONCATENATE ... in byte mode

get syntax error 2.

Any ideas?

Message was edited by: wayne weng

3 REPLIES 3
Read only

guillaume-hrc
Active Contributor
0 Likes
620

Hi,

Try:

CONSTANTS: con_tab(1) TYPE x VALUE '09'.

Best regards,

Guillaume

Read only

Former Member
0 Likes
620

I feel the below statement should be replaced by

CONCATENATE con_cret it_attach INTO it_attach.

Replace it by

CONCATENATE it_attach con_cret INTO it_attach.

Read only

Former Member
0 Likes
620

Thanks all.

I use text mail alt.