Vous êtes sur la page 1sur 9

Dunning- Adding CC to e-Mail

Author

: Prasanthi Sridhar
(http://www.linkedin.com/in/prasanthisridhar)

Firm

: Fourth Signal (I) Pvt Ltd


Focused SAP Financials Business Solutions

Contact us

: www.fourthsignal.com
www.linkedin.com/company/fourth-signal
+91 22 265 11872

Summary
This document shows to add recipients to the CC category of a Dunning mail.
An implicit enhancement inside Function Module PRINT_DUNNING_NOTICE_PDF is
made .
This enhancement is valid only if Adobe forms are used as Dunning letters.

Dunning- Adding CC to e-Mail

Table of Contents
Dunning- Adding CC to e-Mail..................................................................1
Summary.................................................................................................................................1
Table of Contents....................................................................................................................2
Enhancement of Function Module..........................................................................................3
Display Function Module.....................................................................................3
Enhance Form.......................................................................................................4
Implicit Enhancement...........................................................................................5
Code Enhancement...............................................................................................6
Code for Enhancement.........................................................................................7
Dunning...................................................................................................................................8
Output......................................................................................................................................9

Fourth Signal (I) Pvt Ltd (www.fourthsignal.com)

Dunning- Adding CC to e-Mail

Enhancement of Function Module


Display Function Module

T-Code: SE37
1. Enter function module name PRINT_DUNNING_NOTICE_PDF
2. Click on Display

Fourth Signal (I) Pvt Ltd (www.fourthsignal.com)

Dunning- Adding CC to e-Mail

Enhance Form

In function module PRINT_DUNNING_NOTICE_PDF, enhancement is made in form


FILL_PDF_SYSTEM_PARAM
Navigate to the definition of the form by using the Find option

Fourth Signal (I) Pvt Ltd (www.fourthsignal.com)

Dunning- Adding CC to e-Mail

Implicit Enhancement

1.
2.
3.
4.

Select form name


Click on the Enhance button
Right click and choose Enhancement Operations
Choose Show Implicit ENhancement Options

Fourth Signal (I) Pvt Ltd (www.fourthsignal.com)

Dunning- Adding CC to e-Mail

Code Enhancement

1. Towards the end of the form spot where a black arrow points right
2. Right click and choose Enhancement Operations
3. Select Create Implementation
Note: In the custom code , a check is made on the dunning level. Only if the dunning level
is 2 , the dunning mail is cc'ed to another email id.The cc address is hardcoded here for
testing purpose.

Fourth Signal (I) Pvt Ltd (www.fourthsignal.com)

Dunning- Adding CC to e-Mail

Code for Enhancement


ENHANCEMENT 1 ZFTR_GUAR_CC. "active version
DATA : ls_mail_recip TYPE Somlreci1 .
if IS_T047E-MAHNS = 2 ."dunnig level 2 . "I_MHNK-MAHNS
"
ls_mail_recip-RECEIVER = 'prasanthi1@abcd.com'.
ls_mail_recip-REC_TYPE = 'U'.
ls_mail_recip-com_type = 'INT'.
ls_mail_recip-COPY = 'X'.
APPEND ls_mail_recip to Ct_mail_recip .
ENDIF.
ENDENHANCEMENT.

Fourth Signal (I) Pvt Ltd (www.fourthsignal.com)

Dunning- Adding CC to e-Mail

Dunning

T-Code: F150
1. Choose Indiv. dunn. notice
2. Fill in the parameters
Note: The dunning level is 2 for this BP for this particular dunning date

Fourth Signal (I) Pvt Ltd (www.fourthsignal.com)

Dunning- Adding CC to e-Mail

Output

T-Code: SOST
Send the mail in order to check the contents
Note: prasanthi1@abcd.com is the hard coded cc address

Fourth Signal (I) Pvt Ltd (www.fourthsignal.com)