2008 Aug 14 11:01 AM
Hi there, Guys I need to send a email with some info. i´m using FM sO_NEW_DOCUMENT_ATT_SEND_API1
,unfortunately every column have 100 character so its show only the first column in the first line of the email the next column past to the next line and so on , a mess !!.
I' ve thought send this report as attachment like txt file but I don´t know , is the solution to this problem ? , any sugesstions ? thanks
2008 Aug 14 12:47 PM
2008 Aug 14 12:26 PM
2008 Aug 14 12:35 PM
HI U CAN USE THE FOLLOWOING FUNCTION
call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
exporting
document_data = gd_doc_data
put_in_outbox = put_outbox
commit_work = commit
importing
sent_to_all = send_to_all
NEW_OBJECT_ID = NEW_OBJECT_ID
tables
packing_list = it_packing_list
contents_txt = itt_message
receivers = it_receivers
exceptions
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
others = 8.
messages-sapoffice_id = new_object_id.
modify messages index sindx transporting sapoffice_id.
ENDIF.
endloop.
else.
GD_DOC_DATA-obj_descr = subject.
describe table it_message lines it_packing_list-body_num.
call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
exporting
document_data = gd_doc_data
put_in_outbox = put_outbox
COMMIT_WORK = commit
importing
sent_to_all = send_to_all
NEW_OBJECT_ID = NEW_OBJECT_ID
tables
packing_list = it_packing_list
contents_txt = it_message
receivers = it_receivers
exceptions
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
others = 8.
endif.
2008 Aug 14 12:47 PM