Sei sulla pagina 1di 5

Community

(http://www.sap.com/)
(https://community.sap.com)

Ask a Question (https://answers.sap.com/questions/ask.html) Write a Blog Post (https://blogs.sap.com/wp-admin/post-new.ph

Not what you're looking for? Search community questions.

Former Member

Dunning Notice print/email using both Smartform and SAP-


Script
0 Aug 25, 2011 at 05:21 AM | 379 Views

Hello Gurus,
I have developed the Customized SAP Script (Copy of 150_DUNN_01) for Dunning NOtice to be send to
Domestic Customer and
Cutomized Smartform (copy of F150_DUNN_SF) for Foreign Customer.
Now Issue is that when I assign the Customized script to SPRO setting and standrd setting for BTE
'00001720' with function
module 'FI_PRINT_DUNNING_NOTICE', if I want to assign smartform to SPRO setting then I need to replace
same FM with
'FI_PRINT_DUNNING_NOTICE_SMARTF'.
how it is possible to work with both SAP-Script and Smartforms for dunning Procedure.
Please gurus let me help for this solution...
Thanks in Advance,
Mahesh Sachani

ABAP Development (/tags/833755570260738661924709785639136)

Comment Alert Moderator Actions

Follow RSS Feed

Related questions
Pop up not triggered when dunning run from sample printout (https://answers.sap.com/questions/10862656/pop-up-not-
triggered-when-dunning-run-from-sample-.html)
By Karthik Ganti ( https://people.sap.com/karthik.ganti) , Apr 24, 2014

Problem in Label printing on ZEBRA printer (https://answers.sap.com/questions/12407703/problem-in-label-printing-on-zebra-


printer.html)
By Former Member ( https://people.sap.com/former.member) , May 25, 2016

1 Answer

Votes | Newest | Oldest

Best Answer

Raymond Giuseppi (
(/users/1270/raymondgiuseppi.html) https://people.sap.com/raymond.giuseppi)

Aug 25, 2011 at 07:00 AM

Why did you use two di erent tools to manage the form?
1 However, you can create your own Z_FM by copying the signature of one of two FM. Via FIBF attach
it to the event 00001720.
In this FM call FI_PRINT_DUNNING_NOTICE_SMARTF or FI_PRINT_DUNNING_NOTICE by the
value of I_MHNK-LAND1.
Regards,
Raymond
Comment Alert Moderator Share

2 Comments

Raymond Giuseppi ( https://people.sap.com/raymond.giuseppi)  Former Member

Aug 26, 2011 at 09:14 AM (/comments/8641031/view.html)


First copy FI_PRINT_DUNNING_NOTICE into Z_FI_PRINT_DUNNING_NOTICE, only keep the parameter list in this new FM.
Now in the source tab, check value of I_MHNK-LAND1 and depending on value, call FM FI_PRINT_DUNNING_NOTICE or
FI_PRINT_DUNNING_NOTICE_SMARTF with the same parameters you receive.
FUNCTION z_fi_print_dunning_notice.
*"--------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" VALUE(I_MAHNV) LIKE MAHNV STRUCTURE MAHNV
*" VALUE(I_F150V) LIKE F150V STRUCTURE F150V
*" VALUE(I_MHNK) LIKE MHNK STRUCTURE MHNK
*" VALUE(I_ITCPO) LIKE ITCPO STRUCTURE ITCPO
*" VALUE(I_UPDATE) TYPE C DEFAULT SPACE
*" VALUE(I_MOUT) LIKE BOOLE-BOOLE DEFAULT SPACE
*" VALUE(I_OFI) LIKE BOOLE-BOOLE DEFAULT 'X'
*" TABLES
*" T_MHND STRUCTURE MHND
*" T_FIMSG STRUCTURE FIMSG
*" CHANGING
*" VALUE(E_COMREQ) LIKE BOOLE-BOOLE
*" VALUE(E_RETCODE) TYPE C
*"--------------------------------------------------------------------
DATA: fmname TYPE rs38l_fnam.
CONSTANTS: c_ss VALUE 'FI_PRINT_DUNNING_NOTICE' TYPE rs38l_fnam,
c_sf VALUE 'FI_PRINT_DUNNING_NOTICE_SMARTF' TYPE rs38l_fnam.

IF i_mhnk-land1 = 'xx'. " your country (domestic)


fmname = c_ss.
ELSE.
fmname = c_sf.
ENDIF.

CALL FUNCTION fmname


EXPORTING
i_mahnv = i_mahnv
i_f150v = i_f150v
i_mhnk = i_mhnk
i_itcpo = i_itcpo
i_update = i_update
i_mout = i_mout
i_ofi = i_ofi
TABLES
t_mhnd = t_mhnd
t_fimsg = t_fimsg
CHANGING
e_comreq = e_comreq
e_retcode = e_retcode.

ENDFUNCTION.
This Z_FM will replace the current FM in FIBF.
Regards,
Raymond

Like 0 Share Alert Moderator

Show all

Your answer
Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify
the question or provide more information, please leave a comment instead, requesting additional details. When answering,
please include speci cs, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please
make sure that you answer complies with our Rules of Engagement.

Rules of Engagement (https://www.sap.com/community/resources/rules-of-engagement.html)

Please provide a distinct answer and use the comment option for clarifying purposes.

Submit your Answer

Find us on

(https://www.facebook.com/sapcommunity) (https://twitter.com/SAPCommunity)

(https://www.youtube.com/c/SAPCommunities) (https://www.linkedin.com/company/sap)
(https://instagram.com/sap/) (http://www.slideshare.net/SAP)

(mailto:?subject='SAP Community')

Privacy (http://sap.com/about/legal/privacy.html) Terms of Use (http://sap.com/corporate/en/legal/terms-of-


use.html)

Legal Disclosure Copyright (http://sap.com/about/legal/copyright.html)


(http://sap.com/about/legal/impressum.html)

Trademark (http://sap.com/about/legal/trademark.html) Cookie Preferences

Newsletter (https://www.sap.com/cmp/nl/sap-community- Support (mailto:sapnetwork@sap.com)


voice/index.html)

Potrebbero piacerti anche