Skip to Content

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

To report this post you need to login first.

26 Comments

You must be Logged on to comment or reply to a post.

    1. Neeraj Lal Post author

      Thanks Gurunath,

      Its great that you find this document helpful.

      Please like the document and give your rating.

      Best Regards

      (0) 
  1. Daniel Brennan

    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.

    (0) 
    1. Neeraj Lal 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

      (0) 
  2. Sphoorthi Suresh

    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

    (0) 
    1. Neeraj Lal Post author

      Hi Suresh,

      Thanks for your comments

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

      Regards

      Neeraj

      (0) 
        1. Neeraj Lal 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

          (0) 
  3. surya prakash

    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,

    (0) 
    1. Neeraj Lal 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

      (0) 
  4. Phanikumar Valiveti

    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.

    (0) 

Leave a Reply