Posted: Mon Sep 10, 2007 7:40 pm Post subject: Changing the subject for email order confirmations
An output type ZEXT was created to send emails of order confirmations to a certain distribution list in PDF format. (See the SAP Exchange Connector Implementation Documentation for details on this setup.)
The following code and config was implemented in order to change the email subject line.
Configuration for ZEXT (External order confirmation by email)
Transaction: V/30
General Data: Access Seq: 0009 (SalesOrg./Cust./Order type), Access to Conditions CHECKED.
Replacement of text symbols – Program: ZEXT. Form routine: TEXT_SYMBOL_REPLACE
Default Values: Transmission Medium: 5. Communication Strategy CS01.
Mail and Titles: &KUNNR&:Order &VBELN&
Processing Routines: Program: RVADOR01, Form Routine: ENTRY, Form: YPCC_ORDCONF_STD
Condition Record
Using VV12 you need to add a condition record as applicable. Note that the Communication record must point to your ZMAIL output device and has the following entry as Text for Cover Page: &KUNNR&(&VBELN&)
Code for ZEXT subject definition
Code:
REPORT zext.
************************************************************************
* Author: Kevin Wilson
* Date: 01/07/2003
* Description: This program changes the title of the email for output
* type ZEXT. Maintain output type ZEXT using V/30.
* The mail title and texts tab has entry:
* &KUNNR&:Order &VBELN&
* The general tab has entry in Replacement of text
* symbols: Program ZEXT. Form:TEXT_SYMBOL_REPLACE
************************************************************************
tables: kna1.
FORM text_symbol_replace TABLES xtlines STRUCTURE tline
USING xthead STRUCTURE thead
snast STRUCTURE nast.
LOOP AT xtlines.
move snast-objky to t_vbeln.
replace '&VBELN&' with t_vbeln into xtlines-tdline.
select single name1 into kna1-name1
from kna1
where kunnr = snast-parnr.
replace '&KUNNR&' with kna1-name1 into xtlines-tdline.
condense xtlines-tdline.
modify xtlines.
ENDLOOP.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.