SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

Changing the subject for email order confirmations



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> Smartforms, SapScripts, PDF
View previous topic :: View next topic  
Author Message
admin
Администратор
Администратор



Joined: 01 Sep 2007
Posts: 1639

PostPosted: Mon Sep 10, 2007 7:40 pm    Post subject: Changing the subject for email order confirmations Reply with quote

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.

  data: t_vbeln(10) type c.

  DESCRIBE TABLE xtlines LINES  sy-tabix.
  CHECK sy-tabix GT 0.

  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.

ENDFORM.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> Smartforms, SapScripts, PDF All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
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.