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

spool list recipient

Former Member
0 Likes
633

Guy's

while sending mail using sm37 spool list recipient

mail goes in HTML format ,i need to send mail

in excel format,can any body help me regarding this.

Guy's

while sending mail using sm37 spool list recipient

mail goes in HTML format ,i need to send mail

in excel format,can any body help me regarding this.

3 REPLIES 3
Read only

Former Member
0 Likes
580

HI,

Use the function module SO_OBJECT_Send

-suresh

Read only

0 Likes
580

I also encounted this issue, and moreover, when I checked the spool list, there have 34 pages when view at the foregroud via SP02, but when sent the spool list out, there only received 16 pages in the mail, Could anybodty helps?

Read only

Former Member
0 Likes
580

Hi,

Use 'SO_NEW_DOCUMENT_ATT_SEND_API1' FM.

wa_objpack-transf_bin = 'X'.

wa_objpack-head_start = 1.

wa_objpack-head_num = 1.

wa_objpack-body_start = 1.

wa_objpack-body_num = gv_tab_lines.

wa_objpack-obj_langu = sy-langu.

wa_objpack-doc_type = 'XLS'.

wa_objpack-obj_name = 'ATTACHMENT'.

wa_objpack-obj_descr = lv_subject.

wa_objpack-doc_size = gv_tab_lines * 250.

APPEND wa_objpack TO it_objpack.

Hope this helps.

Benedict