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

Header part getting truncated when sending e-mail

Former Member
0 Likes
484

Hi all,

I need to send a mail thru sap connect which contains the xls attachment, In this attachment the header part(i.e) (columns heading(more than 255 chars))some of the headings are getting truncated. but in the data part all data’s are showing without any truncation. plz advice where is problem? is this with length of header or some other

.Below is sample code:

DESCRIBE TABLE objbin LINES tab_lines.

objhead = 'ORDERS'.

APPEND objhead.

      • Creation of the entry for the compressed attachment

objpack-transf_bin = 'X'.

  • objpack-head_start = 1.

  • objpack-head_num = 1.

objpack-body_start = 1.

objpack-body_num = tab_lines.

objpack-doc_type = 'XLS'.

objpack-obj_name = 'WEBSITE'.

objpack-obj_descr = 'Test.XLS'.

objpack-doc_size = tab_lines * 255.

APPEND objpack.

Note : objbin contains tow records

1. header(its above 255 chars) - its getting truncated

2. corresponding data - it show all the values but some of heading are missing

plz anybody can give me suggesstion how to proceed.

Thx,

palani

Hi all,

I need to send a mail thru sap connect which contains the xls attachment, In this attachment the header part(i.e) (columns heading(more than 255 chars))some of the headings are getting truncated. but in the data part all data’s are showing without any truncation. plz advice where is problem? is this with length of header or some other

.Below is sample code:

DESCRIBE TABLE objbin LINES tab_lines.

objhead = 'ORDERS'.

APPEND objhead.

      • Creation of the entry for the compressed attachment

objpack-transf_bin = 'X'.

  • objpack-head_start = 1.

  • objpack-head_num = 1.

objpack-body_start = 1.

objpack-body_num = tab_lines.

objpack-doc_type = 'XLS'.

objpack-obj_name = 'WEBSITE'.

objpack-obj_descr = 'Test.XLS'.

objpack-doc_size = tab_lines * 255.

APPEND objpack.

Note : objbin contains tow records

1. header(its above 255 chars) - its getting truncated

2. corresponding data - it show all the values but some of heading are missing

plz anybody can give me suggesstion how to proceed.

Thx,

palani

2 REPLIES 2
Read only

roland_spindler
Participant
0 Likes
419

In the documentation the doc size is calculated like this:

(lines - 1) * 255 + (length of last line)

Probably not relevant, but who know...

Read only

Former Member
0 Likes
419

Thanks problem resolved.