on 03-23-2009 6:49 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.