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 SAPSCRIPT through email

Former Member
0 Likes
1,742

Hi

I want to send sapscript to the external email address.

Can anybody explain me how todo that.

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
7 REPLIES 7
Read only

Former Member
0 Likes
1,047

Hi,

convert the script output to spool, from spool get the OTF data, and convert it to PDF format and send it via e-mail using the FM <b>SO_DOCUMENT_SEND_API1</b>

regards

vijay

Read only

Former Member
0 Likes
1,047

Hi subsar,

1. First we have to

execute the sapscript

thru our program.

2. Then we need to use

READ_OTF_FROM_MEMORY

to FETCH the sapscript

information into internal table.

3. The using FM

'SO_NEW_DOCUMENT_ATT_SEND_API1'

we can attach the intenal table (2)

above, and send mail as attachment.

4. SEE F1 help on this FM

(if uare doing for the first time)

5. Morever, SCOT settings

are required (take help of basis team)

regards,

amit m.

Read only

Former Member
0 Likes
1,047

Hi

The following forum link may be useful

Read only

Former Member
0 Likes
1,047

Hi subsar,

The following link might be helpful:

http://www.thespot4sap.com/Articles/SAP_Mail_UNIX_Example_ABAP.asp

Regards,

Anuradha.B

Read only

Former Member
0 Likes
1,047

Hi

To convert your sap script output to pdf <a href="http://searchsap.techtarget.com/tip/1,289483,sid21_gci933581,00.html">Check this link</a> . Now you can use FM to send the file via mail

regards

austin

Read only

Former Member
Read only

resolutor
Explorer
0 Likes
1,047

Hi, I need to execute program J_1AF012 and for each vendor make a PDF file with all operations included in the selection and send a e-mail.

I see that I can make the PDF file with creation of spool and then send to pdf, but my problem is to sort the operations and make this to each vendor (many pdf and many mails in the same report).

Can someone help me about this?

Thanks in advance!

Eduardo Puricelli