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

satya

Former Member
0 Likes
616

how can u send sapscrpit through mail

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
581

Hi

SAP has provided provision for sending the Output as MAIL and FAX similar to Printout

Only thing is that we have to configure the settings for mail sending in SCOT and SOST tcodes with the help of a Basis person

So configure the Outputtype with MEDIUM equal to 7(for MAIL) (like we use medium as 1 for printout) and attach the output type with the script and Driver program in NACE tcode as well as in the application document

Script driver program will see that the proper communication type is maintained and sent to MAIL, using SCOT tcode

<b>Reward points for useful Answers</b>

Regards

Anji

4 REPLIES 4
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
581

Hi,

You need to convert the output to pdf using function module 'SX_OBJECT_CONVERT_OTF_PDF' and then send pdf as attachment in the mail using so_new_document_api1 function module.

Read only

Former Member
0 Likes
582

Hi

SAP has provided provision for sending the Output as MAIL and FAX similar to Printout

Only thing is that we have to configure the settings for mail sending in SCOT and SOST tcodes with the help of a Basis person

So configure the Outputtype with MEDIUM equal to 7(for MAIL) (like we use medium as 1 for printout) and attach the output type with the script and Driver program in NACE tcode as well as in the application document

Script driver program will see that the proper communication type is maintained and sent to MAIL, using SCOT tcode

<b>Reward points for useful Answers</b>

Regards

Anji

Read only

0 Likes
581

anji reddy thank u for saying the answer, but cn u say it in stepwise

Read only

Former Member
0 Likes
581

Hi,

You need to set up the output type to email. The usual approach is for the customer to receive a PDF. Note that some special requirements, like barcoding, can present a challenge.

Pls reward points.

Regards,

Ameet