04-24-2012 12:51 PM
Daer All,
Im using Below FM, in this table t_objtxt table im passing mail content ,
i have coded below
data : t_objtxt type standard table of soli with header line.
t_objtxt = 'Dear User,'.
append t_objtxt.
clear t_objtxt.
t_objtxt = ' '.
append t_objtxt.
clear t_objtxt.
t_objtxt-line = 'This is salary slip'.
append t_objtxt.
clear t_objtxt.
describe table t_objtxt lines tab_lines.
read table t_objtxt index tab_lines.
while Debugging value will diplay correctly but it wont display mail content when i will recive mail,please guide me
all function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
exporting
document_data = doc_chng
put_in_outbox = 'X'
commit_work = 'X'
importing
sent_to_all = sent_to_all
tables
packing_list = objpack
* object_header = objhead
contents_bin = objbin
contents_txt = t_objtxt[] "objtxt
receivers = reclist
exceptions
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 4
others = 99.
04-24-2012 12:58 PM
Dear a c,
Did you try setting the parameter commit_work and object_header??
Hope this helps. thank you.
Regards,
kartik
04-24-2012 12:58 PM
Dear a c,
Did you try setting the parameter commit_work and object_header??
Hope this helps. thank you.
Regards,
kartik
04-24-2012 1:27 PM
Hi,
You need to pass the internal table objpack like this..
ls_objpack-head_start = 1.
ls_objpack-head_num = 0.
ls_objpack-body_start = 1.
ls_objpack-body_num = 4.
ls_objpack-transf_bin = space.
ls_objpack-doc_type = lc_raw.
APPEND ls_objpack TO lt_objpack.
Regards,
Nagaraj
04-25-2012 6:27 AM
HI,
Thanks for your reply..
I have tried same above .
ls_objpack-doc_type = lc_raw.
i passed this only latter content is coming but PDF attachment not showing
for PDF this is im passing
ls_objpack-doc_type = 'ALI'.
i need both mail content as well as PDF attachment
04-25-2012 7:26 AM
For PDF it should be ls_objpack-doc_type = 'PDF'.You need to pass both the internal tables
contents_bin
contents_txt
to get both the content and also the PDF attachment.
Please search in SCN and also in google, you will find the required information.
Regards,
Nagaraj