Technical Articles
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
For sales order output select application V1 and then Click Output Type button:
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).
In Default view tab select:
Dispatch time as per your requirement.
Transmission Medium ‘5 External Send’
and partner function which require this output.
Now create and assign form routine to output along with print program
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.
Now create output condtion record if this output has access sequence based determination.
Trigger output via sales order
T Code: VA01 : Header Output Screen
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).
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.
Regards
Neeraj
Hi Neeraj,
Very helpful information.Thanks .
Regards,
Gurunath
Thanks Gurunath,
Its great that you find this document helpful.
Please like the document and give your rating.
Best Regards
Dear very good information .. thank you for sharing
Thanks Venu 🙂
Hi Neeraj Lal
Thanks for sharing 🙂 useful info ℹ
Regards,
Bastin.G
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.
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
Very nice document.
regards,
Srinu.
Thanks 🙂
Good Document
Keep sharing
Hello Neeraj,
Nice document and keep sharing your knowledge.
Thanks & Regards,
Lakshmi S
Thanks 🙂
Hi Neeraj lal,
nice document u shared,keep going on in future
Thanks&Regards
Nagesh.A
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
Hi Suresh,
Thanks for your comments
Yes communication strategy setting required, I did not discuss as it is standard configuration..
Regards
Neeraj
Hi Neeraj,
Thanks for your reply.
Please let me know ,For external send Email, is there any processing log in the output?
Thanks,
Suresh
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
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,
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
Very good explanation.
Thanks for sharing document.
Regards,
Haresg
Thanks Haresh
Regards
Neeraj
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.
Thanks Phani 🙂
Perfect!
Very helpful document Neeraj.
Thanks alot nice share
Very nice document.