Skip to Content
Technical Articles
Author's profile photo Neeraj Lal

Output to External Email ID

Business Requirement: Many times Business require to send certain output directly to external Id of customer, business partner etc. This document discuss those scenario.

I find in SDN some consultants asking this requirement, I hope this document will be helpful.

Here I will discuss solution which I implemeted in my  business process.

If you find this document helpful then please do not forget to LIKE this document . Please give your rating.

Advantage:  Solution can be use to send output to partner email Id. Consultant can enhance functionality based on logic written in routine , may use logic in routine to fetch data from Ztable which gives flexibility.

we are calling function module ‘SO_NEW_DOCUMENT_SEND_API1’ in this routine. This function module enables to send output to external email ID

Presetting: Basis setting  (Tcode SCOT) should be available to allow output to be sent to external email id. You may use SOSV or SOST to check this.

I consider all other standard settings of output like access , access sequence, routine are known to consultant and i will not discuss these setting here.

T Code: NACE

Capture 1.JPG

For sales order output select application V1 and then Click Output Type button:

Capture 2.JPG

If it is require to make this output condtion based on access then define access sequence and assign it to output (Standard SAP Access creation).

Capture 3.JPG

In Default view tab select:

Dispatch time as per your requirement.

Transmission Medium ‘5 External Send’

and partner function which require this output.

Capture 4.JPG

Now create and assign form routine to output along with print program

Capture 5.JPG

You can take help of ABAPER to create program as per your Prnt program and Form Routine.

Here Form Routine is controlling Email.

You can put logic here that how to fetch email Id, if there is any validation check etc.

In my case I am fetching email from HR Master T Code :PA30. Subtype Communication.

You may write your own logic to fetch email

Note: In this routine, we are calling function module ‘SO_NEW_DOCUMENT_SEND_API1’ . This function module enables to send document.

Capture 5.JPG

Now create output condtion record if this output has access sequence based determination.

Trigger output via sales order

T Code: VA01 : Header Output Screen

Capture 1.JPG

T Code: PA30, Info type 0105, Sub Type 0010

I have maintained my email ID in PA30, Info type Communication (0105) Sub Type 0010 (Email).

Capture 2.JPG

TCode : SOSV  To Check mail is going or not ( This will also require Basis Setting)

Mail is triggered to my external Email ID which is visible in SOSV.

Capture 4.JPG

Regards

Neeraj

Assigned Tags

      27 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Gurunath Kumar Dadamu
      Gurunath Kumar Dadamu

      Hi Neeraj,

      Very helpful information.Thanks .

      Regards,

      Gurunath

      Author's profile photo Neeraj Lal
      Neeraj Lal
      Blog Post Author

      Thanks Gurunath,

      Its great that you find this document helpful.

      Please like the document and give your rating.

      Best Regards

      Author's profile photo Former Member
      Former Member

      Dear very good information .. thank you for sharing

      Author's profile photo Neeraj Lal
      Neeraj Lal
      Blog Post Author

      Thanks Venu 🙂

      Author's profile photo Bastin Vinoth
      Bastin Vinoth

      Hi Neeraj Lal

      Thanks for sharing 🙂 useful info ℹ

      Regards,

      Bastin.G

      Author's profile photo Former Member
      Former Member

      Very nice article.  We use a similar solution to send external emails.  As a side note, ensure in your testing environment that any outbound email jobs are turned off, and manually process the emails outbound using transaction SOST.  This will ensure there are no accidental emails sent from test to your partners.

      Author's profile photo Neeraj Lal
      Neeraj Lal
      Blog Post Author

      Daniel Brennan

      Normally Basis do not allow in SOST to trigger outside organization email from Quality syste.

      In our quality system any email which is having outside orgaization domain email ID is not allowed. This they do by checking *.ORG.com where ORG is our org domain.

      Regards

      Author's profile photo Srinu S
      Srinu S

      Very nice document.

      regards,

      Srinu.

      Author's profile photo Neeraj Lal
      Neeraj Lal
      Blog Post Author

      Thanks 🙂

      Author's profile photo Siva Prasad V
      Siva Prasad V

      Good Document

      Keep sharing

      Author's profile photo Lakshmi Kumari Sama
      Lakshmi Kumari Sama

      Hello Neeraj,

      Nice document and keep sharing your knowledge.

      Thanks & Regards,

      Lakshmi S

      Author's profile photo Neeraj Lal
      Neeraj Lal
      Blog Post Author

      Thanks 🙂

      Author's profile photo Former Member
      Former Member

      Hi Neeraj lal,

      nice document u shared,keep going  on in future

      Thanks&Regards

      Nagesh.A

      Author's profile photo Suresh Babu P
      Suresh Babu P

      Hi Neeraj,

      Excellent step by step document. Easy to follow. Great work.

      Thank you so much .

      I got few questions while going through the document.

      1. why / why not we use communication strategy for the output used for external send ? (CS01 or WEBM)

      2.For external send Email, is there any processing log in the output?

      Thanks,

      Suresh

      Author's profile photo Neeraj Lal
      Neeraj Lal
      Blog Post Author

      Hi Suresh,

      Thanks for your comments

      Yes communication strategy setting required, I did not discuss as it is standard configuration..

      Regards

      Neeraj

      Author's profile photo Suresh Babu P
      Suresh Babu P

      Hi Neeraj,

      Thanks for your reply.

      Please let me know ,For external send Email, is there any processing log in the output?

      Thanks,

      Suresh

      Author's profile photo Neeraj Lal
      Neeraj Lal
      Blog Post Author

      You will get normal log same as in any other output.

      In case you need to check email send status then you need to check standard transaction SOST  or SOSV.

      Regards

      Author's profile photo Former Member
      Former Member

      Thanks for sharing helpful document dear, really useful.

      I have one doubt are there any standard print programs and form routine used for External mail or we need to define new programs?

      And i did not see PA10 in some treads related same Output Email configurations where they did not mention PA10 t code.However, there it was mentioned that in Xd02 in general data we need to maintain mail id.

      thanks,

      Author's profile photo Neeraj Lal
      Neeraj Lal
      Blog Post Author

      Hi Surya,

      Thanks for your comment.

      This solution facilitate where business require to send email other than output partner.

      PA10 is tcode of HR master, and depending upon business scenario it  may be use to maintain sales employee data.

      This docs is just indicative solution which I used, you may modify as per your requirement.

      Regards

      Neeraj

      Author's profile photo Former Member
      Former Member

      Very good explanation.

      Thanks for sharing document.

      Regards,

      Haresg

      Author's profile photo Neeraj Lal
      Neeraj Lal
      Blog Post Author

      Thanks Haresh

      Regards

      Neeraj

      Author's profile photo Phanikumar V L
      Phanikumar V L

      Good Document-How i missed this in my earlier search.

      Recently we have done the same requirement for our billing outputs with same medium(Print output) by replacing the print program.

      But While users trying to take mass print with VF31-system throwing error like """Virus scan profile not active"" & they need to enter every time for the output for 1000 billing docs-So we discontinued..

      I think i will try with this approach-let me see.

      Author's profile photo Neeraj Lal
      Neeraj Lal
      Blog Post Author

      Thanks Phani 🙂

      Author's profile photo D. Arina
      D. Arina

      Perfect!

      Author's profile photo Niyazul Hasan
      Niyazul Hasan

      Very helpful document Neeraj.

      Author's profile photo Hemes Cool
      Hemes Cool

      Thanks alot nice share

      Author's profile photo SAP SD SAP SD
      SAP SD SAP SD

      Very nice document.