Skip to Content
0
Former Member
Apr 21, 2009 at 05:01 PM

Excel Attachment unrecognized format

19 Views

Hi,

I am trying to sand an excel attachment by email using

"SO_NEW_DOCUMENT_ATT_SEND_API1" FM from SAP 6.0. The file has been

transferred fine, but is going as an unrecognized format. Please give me

some suggestions regarding this.

using:

t_packing_list-doc_type = 'XLS'.

CALL FUNCTION 'SO_DOCUMENT_SEND_API1'

EXPORTING

document_data = w_doc_data

put_in_outbox = 'X'

commit_work = 'X'

IMPORTING

sent_to_all = w_sent_all

TABLES

packing_list = t_packing_list

contents_bin = t_attachment

contents_txt = it_message

receivers = t_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.

Thanks,

Goutham.