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

E-mail attachment size

Former Member
0 Likes
465

hi,

i am trying to send email to the users using the function module:SO_NEW_DOCUMENT_ATT_SEND_API1

but the problem is my attachment size is too large ,so the attachment excel is blank in the email received.

DESCRIBE TABLE gt_attach LINES lv_lines1 .

CLEAR gt_attach.

READ TABLE gt_attach INDEX lv_lines1.

gt_packing_list-doc_size = ( lv_lines1 - 1 ) * 255

+ STRLEN( gt_attach ).

gt_packing_list-transf_bin = 'X'.

gt_packing_list-head_start = 1.

gt_packing_list-head_num = 4.

gt_packing_list-body_start = 1.

gt_packing_list-doc_type = 'XLS'.

on runtime,if i change the gt_packing_list-doc_size,then the data appears.

kindly tell me what is the maximum size allowed or the attachment and what should be the solution for the same??

hi,

i am trying to send email to the users using the function module:SO_NEW_DOCUMENT_ATT_SEND_API1

but the problem is my attachment size is too large ,so the attachment excel is blank in the email received.

DESCRIBE TABLE gt_attach LINES lv_lines1 .

CLEAR gt_attach.

READ TABLE gt_attach INDEX lv_lines1.

gt_packing_list-doc_size = ( lv_lines1 - 1 ) * 255

+ STRLEN( gt_attach ).

gt_packing_list-transf_bin = 'X'.

gt_packing_list-head_start = 1.

gt_packing_list-head_num = 4.

gt_packing_list-body_start = 1.

gt_packing_list-doc_type = 'XLS'.

on runtime,if i change the gt_packing_list-doc_size,then the data appears.

kindly tell me what is the maximum size allowed or the attachment and what should be the solution for the same??

1 REPLY 1
Read only

Former Member
0 Likes
412

pass as below

  • Attachment

DESCRIBE TABLE so_ali[] LINES lineno.

objpack-transf_bin = 'X'.

objpack-head_start = 1.

objpack-head_num = 1.

objpack-body_start = 1.

objpack-doc_size = lineno * 255 .

objpack-body_num = lineno.

objpack-doc_type = 'XLS'.

objpack-obj_name = 'INVOICE'.

objpack-obj_descr = 'Invoice'.

objpack-obj_langu = 'E'.

APPEND objpack.