2008 Dec 15 11:02 AM
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??
2008 Dec 15 11:11 AM
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.