cancel
Showing results for 
Search instead for 
Did you mean: 

Order confirmation through email when it's created in VA01/changed in VA02

Former Member
0 Kudos

Hi all,

I have a requirement whenever order created in VA01 or changed in VA02 for example order amount or shipment date, then order acknowledgement should go automatically to customers email id to update the customer. Right now we have layoutset for printout and Fax with output type PLOR.

Can someone help me with how to automate email when order created or cahnged.

Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

create an output type for sending an emaila nd configue it to trigger at time of saving the appilcation and then the print program triggered by the output type must include code to trigger the email

Former Member
0 Kudos

Hi Kartik,

Thanks for your reply. Right now we have std output type printing order with transmission medium 'Printout', do i need to create another custom output type with transmission medium as External send?

And also in print program we are already converting to PDF to display on web with using RVADOPFO customized include with code,

ITCPO-TDGETOTF = 'X'.

IF US_SCREEN NE SPACE.

ITCPO-TDPREVIEW = 'X'.

ITCPO-TDNOPRINT = 'X'.

ENDIF.

  • Call function to open the form.

CALL FUNCTION 'OPEN_FORM'

EXPORTING

FORM = TNAPR-FONAM

LANGUAGE = NAST-SPRAS

OPTIONS = ITCPO

ARCHIVE_INDEX = TOA_DARA

ARCHIVE_PARAMS = ARC_PARAMS

  • device = 'OTF_MEM'

DEVICE = 'PRINTER'

DIALOG = ' '

EXCEPTIONS

OTHERS = 1.

IF SY-SUBRC NE 0.

RETCODE = SY-SUBRC.

  • perform protocol_update.

ENDIF.

Can you please tell me where exactly i need to call this FM -> SO_NEW_DOCUMENT_SEND_API1.

Regards

Former Member
0 Kudos

yes i think u need to create another custom output type for external send

once u get ur pdf then u will call the fm SO_NEW_DOCUMENT_SEND_API1

chk this code for further help

https://wiki.sdn.sap.com/wiki/display/Snippets/emailsendthroughoutputcontrols

look at the code after convert_otf fm is called

Edited by: kartik tarla on Mar 25, 2009 1:19 AM

Edited by: kartik tarla on Mar 25, 2009 1:20 AM