cancel
Showing results for 
Search instead for 
Did you mean: 

how to send email after an order template created

Former Member
0 Kudos

Hi Everyone,

I have a requirment: 1) open Email list page from an order template , enter data in To, CC and Message text fileds on the page 2) when hit Send button, an email with Order template ID and message will be sent to To and cc to CC.

My question is how to send an email from webshop? Are there some sap standard classes for emailing I can use? Any advises / suggestions?

Thanks, Jin

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Jin,

There is no standard way for emailing Order Template to Customer. You need to do Custom Java and RFC(ABAP) development to achieve your goal.

Regards.

eCommerce Developer

Former Member
0 Kudos

Hi eCommerce Developer,

Thanks alot for your quick reply and information. Any further advise on how to email an Order template URL link/ID?

Thanks, Jin

Former Member
0 Kudos

Hi Jin,

I have send you a document which describe how you can send an email for order confirmation in R3.

For order template I think you can ask your ABAP developer to make a remote function module which send Order template email when User create it.

On Order template confirmation page you can keep button "Email Template" when user click it it ask them to provide email address "To, CC etcc" when they click "Send" button you call back end FM which takes all input like "To, CC etc.." and send order template data from CRM System.

Generally in eCommerce scenario email sending functionality managed by CRM or R3 system. In my current project we are sending Order confirmation email from R3 as soon as user see Order confirmation screen in ISA B2B.

Or you can managed it by using Java Mail package and send an email from SAP Web AS Server. in this case you do not require to make RFC module.

I hope this information will give you some idea how to solve your current requirement.

Regards.

eCommerce Developer

Former Member
0 Kudos

Hi Ashish,

Thank you so much Ashish for the document and great advise. I would like to try your 2nd option 1st and will let you know how it goes.

Thanks, Jin

Former Member
0 Kudos

Hi Jin,

Look at the top right hand side of your webshop, there is a link "Contact Us". Click on it and you will find a link for email

also. This email has the similar format with fields "Cc", "Subject", "Message". This link contact us is in the header of the webshop and is available on each and every page as its a different frame completely in case of b2b.

If you want the email link only on your jsp page than just copy and paste the below code


function email() {
           var url='<isa:webappsURL name="/ecall/customer/interaction0.do?interactionType=email"/>';
           var spd=window.open(url,"compareWindow","menubar=no, 	directories=no, height=600 width=750, scrollbars=yes, status=no, toolbar=no, top=84, left=212");
           spd.focus();
}

<tr>
     <td class="value">
        <a hre="javascript:email()"><b><isa:translate key="cic.prompt.index.mail"/></b></a>
     </td>
</tr>

If you want to automatically populate the order template id and other details in the message section than we can easily do that as well. We need to do a little jugglery for this.

Regards,

Arshi

I didn't notice you want to send the mail to customer. For that there is nothing standard. You need to go ahead with Ashish's

idea. Anyways I also had a similar requirement and I did it by writing a small additional java application. That sends the mail without communicating to ECC/CRM. If you need I can send you the codebase.

If you want the quick fix and avoid writing any new code and still want to send the mail to customer than simply copy paste the above code on confirm.jsp and rename the "Cc" field to "To". Your mail will be sent to the customer.

Edited by: Arshi Arshi on Feb 1, 2010 4:53 PM

Former Member
0 Kudos

Hi Arshi,

Thank you so much for your advise with such detail info. I followed your advise and it works.

Please reply this back ....

Thanks a Million, Jin

Former Member
0 Kudos

Cheers!!!

Answers (0)