2008 Mar 10 8:56 PM
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
2008 Mar 10 10:19 PM
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