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

FM SO_NEW_DOCUMENT_ATT_SEND_API1

Former Member
0 Likes
598

I made a report that takes some pdf and takes the OTF and send as email attachement .

I want to add now to the attachments and one another file (e.g. xx.xls) .

Can i do it ?

The FM is :

CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'

EXPORTING

DOCUMENT_DATA = MAILDATA

PUT_IN_OUTBOX = ' '

TABLES

PACKING_LIST = MAILPACK

OBJECT_HEADER = MAILHEAD

CONTENTS_BIN = MAILBIN

CONTENTS_TXT = MAILTXT

RECEIVERS = MAILREC

EXCEPTIONS

TOO_MANY_RECEIVERS = 1

DOCUMENT_NOT_SENT = 2

OPERATION_NO_AUTHORIZATION = 4

OTHERS = 99.

5 REPLIES 5
Read only

Former Member
0 Likes
569

Hi,

Check the following link:

http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm

Hope this helps.

Reward if helpful.

Regards,

Sipra

Read only

0 Likes
569

i don't mean that .I mean that i have already make my email and goes perfectly with the pdf.I want to put in that email one more attachment that is excel file .

Can i do it ?

Read only

0 Likes
569

Hi,

You can use the fun module

EXCEL_OLE_STANDARD_DAT for general report to download to excel.

Hope this resolves your query.

<b>Reward all the helpful answers.</b>

Regards

Read only

0 Likes
569

Can you be more specific ....????

Thanks ......

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
569

Hi

Have a look on the below link:

http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm

Regards,

Sreeram