Beruflich Dokumente
Kultur Dokumente
Products
Products Industries
Industries Support
Support Training
Training Community
Community Developer
Developer Partner
Partner
About
About
Home / Community / Blogs + Actions
Madhurima Jaggi
more by this author
ABAP Development
share
0 share
0 tweet share
0
Follow
https://blogs.sap.com/2015/12/21/a-complete-document-for-dunning-procedure-with-smartform/ 1/11
11/7/2017 A complete Document for Dunning Procedure with Smartform | SAP Blogs
What is Dunning?
What is BTE?
For this the documents are readily available on SCN. Below is the
link for the same: http://wiki.scn.sap.com/wiki/display/ABAP/BTE+-
+Business+Transaction+Event
T-code: BF44
https://blogs.sap.com/2015/12/21/a-complete-document-for-dunning-procedure-with-smartform/ 2/11
11/7/2017 A complete Document for Dunning Procedure with Smartform | SAP Blogs
T-code: FIBF
The FM here would be the one from which the standard code for
smartform would be triggered.
And in case you would want that to be a script the FM would be:
FI_PRINT_DUNNING_NOTICE.
Under the SAP application you would be able to give the name of
your BTE.
https://blogs.sap.com/2015/12/21/a-complete-document-for-dunning-procedure-with-smartform/ 3/11
11/7/2017 A complete Document for Dunning Procedure with Smartform | SAP Blogs
Coding in BTE.
The first step for this would be to make a copy of the sample BTE
already present.
1040 is the BTE in which the coding for mailing the customer
should be done.
I_MHNK: This would have all the data for dunning. The most
important ones would be the dunning date(LAUFD), ID(LAUFI),
Account type(KOART), Company code and customer.
I_T047E: This would be the structure from which the form name
would be passed to the standard FM for customizing the Dunning.
https://blogs.sap.com/2015/12/21/a-complete-document-for-dunning-procedure-with-smartform/ 5/11
11/7/2017 A complete Document for Dunning Procedure with Smartform | SAP Blogs
1.Intad: This is the field in which you would be able to pass the
email address.
* sales representative
IF lsw_proceed2 = abap_true.
IF lw_email1 IS NOT INITIAL.
IF c_finaaintad IS NOT INITIAL.
CONCATENATE c_finaaintad lw_email1 INTO c_finaaintad
SEPARATED BY space.
ELSEIF c_finaaintad IS INITIAL.
c_finaaintad = lw_email1.
ENDIF.
ENDIF.
ENDIF.
https://blogs.sap.com/2015/12/21/a-complete-document-for-dunning-procedure-with-smartform/ 6/11
11/7/2017 A complete Document for Dunning Procedure with Smartform | SAP Blogs
c_finaa-mail_body_text = ls_dunn_text-namep.
ENDIF.
https://blogs.sap.com/2015/12/21/a-complete-document-for-dunning-procedure-with-smartform/ 7/11
11/7/2017 A complete Document for Dunning Procedure with Smartform | SAP Blogs
3. Mail_send_addr:
send This field is used to specify the send
sender of
the mail.
Values:
1 Printout
2 Fax
I mail
Fields:
https://blogs.sap.com/2015/12/21/a-complete-document-for-dunning-procedure-with-smartform/ 8/11
11/7/2017 A complete Document for Dunning Procedure with Smartform | SAP Blogs
Coding in smartforms.
https://blogs.sap.com/2015/12/21/a-complete-document-for-dunning-procedure-with-smartform/ 9/11
11/7/2017 A complete Document for Dunning Procedure with Smartform | SAP Blogs
For this we would have to fetch the data in our smartform itself.
https://blogs.sap.com/2015/12/21/a-complete-document-for-dunning-procedure-with-smartform/ 10/11
11/7/2017 A complete Document for Dunning Procedure with Smartform | SAP Blogs
Alert Moderator
https://blogs.sap.com/2015/12/21/a-complete-document-for-dunning-procedure-with-smartform/ 11/11