03-20-2009 2:04 PM
Hi Gurus,
Does any one knows the procedure to send dunning letter via email to our customers?
Some of our customers wants dunning letters via email some of them wanted dunning letter on printer.
Currently we are sending dunning letters to the printer for all customers.
Thanks!
regards,
Nupur
03-20-2009 2:06 PM
To send the email, u need to modify the print program to add the email logic.
On how to send email, u can search as there are lots of posts and wikis that explain this functionality in detail
Edited by: kartik tarla on Mar 20, 2009 7:36 PM
03-23-2009 10:30 AM
Hi Kartik,
To change the logic of printing program , I think BTE has plugged in.
Could you give me more options....I checked in sdn...nothing more mention what I'm doing BUT still didin't work.
Thanks in adv for you help.
Regards,
Nupur
03-23-2009 2:39 PM
03-23-2009 2:55 PM
Check the SAP std. Prg: RSNAST00 provide the necessary transmission types and can send to customers.
write a wrapper program to submit RSNAST00 and send the details....
03-24-2009 8:43 AM
Yes..I coppied the BTE 1040 to Z_FI_DUNN_OUTPUT_00001040 and coding is like this :
" FUNCTION z_fi_dunn_output_00001040.
*"----
""Local interface:
*" IMPORTING
*" VALUE(I_KNA1) LIKE KNA1 STRUCTURE KNA1
*" VALUE(I_KNB1) LIKE KNB1 STRUCTURE KNB1
*" VALUE(I_LFA1) LIKE LFA1 STRUCTURE LFA1
*" VALUE(I_LFB1) LIKE LFB1 STRUCTURE LFB1
*" VALUE(I_MHNK) LIKE MHNK STRUCTURE MHNK
*" VALUE(I_F150D2) LIKE F150D2 STRUCTURE F150D2
*" VALUE(I_T047E) LIKE T047E STRUCTURE T047E
*" VALUE(I_UPDATE) LIKE BOOLE-BOOLE
*" TABLES
*" T_FIMSG STRUCTURE FIMSG
*" CHANGING
*" VALUE(C_FINAA) LIKE FINAA STRUCTURE FINAA
*" VALUE(C_ITCPO) LIKE ITCPO STRUCTURE ITCPO
*" VALUE(C_ARCHIVE_INDEX) LIKE TOA_DARA STRUCTURE TOA_DARA
*" DEFAULT SPACE
*" VALUE(C_ARCHIVE_PARAMS) LIKE ARC_PARAMS STRUCTURE ARC_PARAMS
*" DEFAULT SPACE
*"----
Activation of BTE for FI-FI processes
This BTE is determination output device for Dunning letter.
*----
To implement the function to new company,
- Create an entry in ZENCL_FI tables with ehnancement id
FIAR_DUNN_NOTICE_MAIL, compnay code and text which is used as mail
subject
- Create stanadard text ZFxxxx_DUNN_MAIL_BODY (xxxx: compnay code) as
mail text
- Maintain customer's mail address (KNB1-INTAD) in customer master.
*----
2009/01/13 Activate for Dunning letter used by F150.
*----
03-24-2009 8:44 AM
Yes..I coppied the BTE 1040 to Z_FI_DUNN_OUTPUT_00001040 and coding is like this :
FUNCTION z_fi_dunn_output_00001040.
*"----
""Local interface:
*" IMPORTING
*" VALUE(I_KNA1) LIKE KNA1 STRUCTURE KNA1
*" VALUE(I_KNB1) LIKE KNB1 STRUCTURE KNB1
*" VALUE(I_LFA1) LIKE LFA1 STRUCTURE LFA1
*" VALUE(I_LFB1) LIKE LFB1 STRUCTURE LFB1
*" VALUE(I_MHNK) LIKE MHNK STRUCTURE MHNK
*" VALUE(I_F150D2) LIKE F150D2 STRUCTURE F150D2
*" VALUE(I_T047E) LIKE T047E STRUCTURE T047E
*" VALUE(I_UPDATE) LIKE BOOLE-BOOLE
*" TABLES
*" T_FIMSG STRUCTURE FIMSG
*" CHANGING
*" VALUE(C_FINAA) LIKE FINAA STRUCTURE FINAA
*" VALUE(C_ITCPO) LIKE ITCPO STRUCTURE ITCPO
*" VALUE(C_ARCHIVE_INDEX) LIKE TOA_DARA STRUCTURE TOA_DARA
*" DEFAULT SPACE
*" VALUE(C_ARCHIVE_PARAMS) LIKE ARC_PARAMS STRUCTURE ARC_PARAMS
*" DEFAULT SPACE
*"----
Activation of BTE for FI-FI processes*
This BTE is determination output device for Dunning letter.*
*----
To implement the function to new company,*
- Create an entry in ZENCL_FI tables with ehnancement id*
FIAR_DUNN_NOTICE_MAIL, compnay code and text which is used as mail*
subject*
- Create stanadard text ZFxxxx_DUNN_MAIL_BODY (xxxx: compnay code) as*
mail text*
- Maintain customer's mail address (KNB1-INTAD) in customer master*.
*----
2009/01/13 Activate for Dunning letter used by F150.
*----
DATA: w_zzenhfi TYPE zencl_fi-zzenhfi,
w_zencl_text TYPE zencl_fi-text,
w_mailtxt TYPE finaa-namep VALUE 'ZFxxxx_DUNN_MAIL_BODY'.
CONSTANTS:
c_enclfi_dunn TYPE zencl_fi-zzenhfi VALUE 'FIAR_DUNN_NOTICE_MAIL',
c_email TYPE finaa-nacha VALUE 'I',
c_pdf TYPE finaa-textf VALUE 'PDF'.
The function is active in production run.
CHECK i_update IS NOT INITIAL.
check the entry in table ZENCL_FI. if it exists, mail function is
active
SELECT SINGLE zzenhfi text FROM zencl_fi INTO (w_zzenhfi, w_zencl_text)
WHERE zzenhfi = c_enclfi_dunn
AND bukrs = i_mhnk-bukrs.
IF sy-subrc = 0.
Customer with e-mail address can be send mail in PDF format
IF i_knb1-intad IS NOT INITIAL.
c_finaa-nacha = c_email.
c_finaa-intad = i_knb1-intad.
c_finaa-textf = c_pdf.
Mail text should be defined in Standard text ZFxxxx_DUNN_MAIL_BODY
(xxxx: company code) with text id FIKO
REPLACE 'xxxx' IN w_mailtxt WITH i_mhnk-bukrs.
c_finaa-namep = w_mailtxt.
Mail Subject from text in table ZENCL_FI
c_itcpo-tdtitle = w_zencl_text.
*
c_finaa-DELIVER = ' '. " Acknowledgment of receipt expected
c_finaa-NOT_DELI = 'X'. "#Acknowledgment of receipt expected
c_finaa-READ = ' '. " Read acknowledgment expected
c_finaa-MAILSTATUS = 'E'. " Status of external send
ENDIF.
ENDIF.
ENDFUNCTION.
03-24-2009 12:09 PM
Hi Kartik,
Iu2019m able to send email to few customers but rest of the customers was not able get dunning letters via email.
I can DUN them allu2026no issue but email is the problem.
Already checked SOST ..no entry thereu2026
Any idea ???
Thanx
03-30-2009 8:58 AM
Dear Nupur,
Our client is also looking at having an email functionality wherein the dunning procedure sends the dunning letter via email to the customer ( email as per customer master).
Can you pls guide as to the process for this configuration.
kovid