Application Development and Automation 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: 
Read only

SENDING EMAIL

Former Member
0 Likes
618

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
582

Hi,

Refer to following link,

http://www.sap-img.com/abap-function.htm

Regards,

Dhan

3 REPLIES 3
Read only

Former Member
0 Likes
582

Hi,

Please check below threads. Hope these will clarify.

Regards,

Ashok

Read only

Former Member
0 Likes
582

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.

Read only

Former Member
0 Likes
583

Hi,

Refer to following link,

http://www.sap-img.com/abap-function.htm

Regards,

Dhan