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

Reg:Send mails from SAP

former_member197425
Active Participant
0 Likes
489

Hi,

Can anyone please help me out how to rectify this probleum.My issue is i am using F.M "SO_DOCUMENT_REPOSITORY_MANAGER" for creating attachment and also for sending mails .But i want to send some text to body with signature along with the mail .How can it be done by using the above F.M.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
467

Hi,

Can anyone please help me out how to rectify this probleum.My issue is i am using F.M "SO_DOCUMENT_REPOSITORY_MANAGER" for creating attachment and also for sending mails .But i want to send some text to body with signature along with the mail .How can it be done by using the above F.M.

2 REPLIES 2
Read only

Former Member
0 Likes
467

you use this FM

objpack-doc_type = 'TXT'.

call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'

exporting

document_data = doc_chng

put_in_outbox = 'X'

commit_work = 'X'

tables

packing_list = objpack

object_header = objhead

contents_bin = objbin

contents_txt = objtxt

receivers = reclist

exceptions

too_many_receivers = 1

document_not_sent = 2

operation_no_authorization = 4

others = 99.

Read only

Former Member
0 Likes
468