10-27-2009 4:33 AM
Dear All,
I need to send order acknowledgment report in Email to the customer after saving order in VA01/VA02.
the process will be automatic and the order acknowledgment report is a Z report and developed in smartforms.
no mannual input is required and it will pick from the VA01/VA02.
at present we are sending to customers mannually but now requirement comes for automatic process.
pls suggest how to do.
Thanks
Radhashyam
10-27-2009 5:35 AM
Hi Sahoo,
We can send mail using the output configurations of sales order itself. In output you will have a medium external send options where the output will send as mail attachment to the customer. You can use this option for sending the acknowledgement for the same. Change the print program to your zprogram and smartform to your smartform name in NACE transaction.
regards,
Veeresh
10-27-2009 4:51 AM
Dear Radhashyam ,
This can be done with user exits. Please consult your ABAPER and find appropriate Exit and write a logic for sending mail there in the Exits.
Regards,
Nikhil
10-27-2009 4:59 AM
Hi,
you need to code the logic for sending the email in the exits avaialble for the VA01 and Va02 TCodes.
This can be done in the exit mentioned below.
You may use FORM USEREXIT_SAVE_DOCUMENT of include MV45AFZZ for the same.
Regards,
SuryaD.
10-27-2009 5:20 AM
Hi all,
Thnaks for valuable suggestion.
I am an ABAPER and applied the exit FORM USEREXIT_SAVE_DOCUMENT of include MV45AFZZ , but this executes before commit of transaction. i need the exit/enhancement or any SPRO config which will fire after commit/complete save of data .
Thanks
Radhashyam
10-27-2009 5:26 AM
10-27-2009 5:35 AM
Hi Sahoo,
We can send mail using the output configurations of sales order itself. In output you will have a medium external send options where the output will send as mail attachment to the customer. You can use this option for sending the acknowledgement for the same. Change the print program to your zprogram and smartform to your smartform name in NACE transaction.
regards,
Veeresh
10-28-2009 4:45 AM
Hi Veeresh,
Thanks.
in Tcode NACE i do the same as you suggest and it's working but in this, i have to exclusivly select the output type and press the email button. now i want the same process should be automated. when VA01/VA02 save it will automatically send email to the customer.
pls suggest
Thanks again
Radhashyam
Edited by: RadhaShyam Sahoo on Oct 28, 2009 5:45 AM
10-28-2009 7:54 AM
Hi Radhashyam,
Once you have configured the output type and it works, you'll have to configure the corresponding condition records (transaction VV11 or via button Condition records from NACE). You just need to pick the right key settings for which the output should be triggered (I assume that you have configured access sequence and output procedure already along with the output type).
Best wishes, harald
10-29-2009 5:34 AM
HI
Thanks.
as you advice, actually the problem was in access sequence and now it's execute automatically after saving inVA01/VA02.
but here the problem is that when i set in Tcode NACE -> Output Types-> Processing Routine->Medium to 5 (external send) for email it showing error 00 671: ABAP/4 processor: COMMIT_IN_POSTING. but when i set Transmission Medium to 1(Print output) it's working fine and generate print out automatically.
for information, the same setting is also maintained in condition records.
pls suggest
Thanks
Radhashyam.
10-29-2009 5:58 AM
Hi,
Check whether any commit statements are used in your Z report.
Comment the commit statement and check.
Regards,
Ginu
10-30-2009 4:14 AM
hi
thanks to all.
now the problem is solved.
actually in FM SO_NEW_DOCUMENT_ATT_SEND_API1 in exporting parameter "commit_work = 'X'" is there. i omit this statement and it works fine.
again thanks to all.
Radhashyam