Application Development 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: 

SENDING 2 DIFFERENT SPOOLS IN SINGLE MAIL

Former Member
0 Kudos
78

Hi Frineds,

i am writing a report for 2 Spools(PDF FILES )

and sending into the mails sucessfully.

problem is :

when i am sending MAIL 2 SPOOLS to One person they ARE COMING ONE BY ONE INTO MAIL.

BUT MY REQUIREMENT IS WHEN I AM EXECUTING THE REPORT THE SPOOLS ARE COME INTO MAIL AT A TIME NOT TWICE.

THE ATTCHMENTS (2 SPOOLS ) ARE COME INTO MAIL IN A SINGLE SHOT.

regards,

Venu

1 REPLY 1

vyende
Active Participant
0 Kudos
42

You define the number of you attachment in the table PACKING_LIST of the function module SO_OBJECT_SEND.

For example

zbstart = 1. "first attachment

loop at <table that contains list of spool numbers>

perform convert_otf_pdf. "converts to pdf

describe table pdf lines zlines.

pack_list-transf_bin = 'X'.

pack_list-head_start = zbstart.

pack_list-head_num = 0.

pack_list-body_start = zbstart.

pack_list-body_num = zlines.

pack_list-file_ext = 'PDF'.

pack_list-objnam = <attachment name>

pack_list-objdes = <attachment description>

pack_list-objlen = zlines * 255.

append zpack_list.

zbstart = zlines + 1. "start of next attachment

endloop.

Of course your OBJCONT table MUST have ALL you converted data.

Edited by: Vyerah Yende on Mar 10, 2008 6:20 PM