Dunning history
Hello,
this is error that i am getting while creating dunning activity run :
"Dunning proposal 23.10.2008 KN32 does not exist"
I am unable to see the dunning history even after dunning proposal run.
Can anyone help it out.
Regards,
Narendar Konakanchi
Hi,
Dunning run includes 2 steps,
Dunning Proposal run and Dunning activity run.
Unless the Dunning proposal run is executed successfully, u cannot execute the dunning activity run. only after the successful execution of the dunning activity run, dunning history will be available.
For more help u can refer the below link
http://help.sap.com/erp2005_ehp_02/helpdata/en/28/c72c427a3aca7ee10000000a1550b0/frameset.htm
Regards
Haricharan
Similar Messages
-
AR open Items Migration with Dunning history
Dear Experts,
Please could you share your opinion and experience in the below issue
We are migrating AR open items data from one company code (say AB01) to another company code (say AB02) within SAP, we are following the approach, download AR open items fromAB01 and Migrate to AB02 with same parameters of AB01 (document date, baseline date, assignment number, text, payment terms every thing is same, there will be no change)
Now the question Iu2019ve is whether dunning history can migrate to company code AB02, please have a look it the following example to understand the issue
AB01 data
Customer Open item amount Current dun level last dun date
100015 1000 1 10.05.2009
100015 2500 2 10.05.2009
100015 500 4 10.05.2009
Over all customer dunning status is : Highest level is 4
Now we wanted to migrate same data to AB02 including dunning history.
Certainly, we can migrate above open items data with dunning level, and master data history as well.
Having said that, will the system able to dun next dunning level in AB02 (in the above example it should be level 5). .?
Please could you advise me possible options which you had come across.
My opinion is, system has to determine levels and update history in systematic way, rather than manipulating in our style.
(Information: Iu2019d had quick test migrating test data into new company code AB02 including history which is same as AB01 and MHNK table history, even though system has not picked next dunning level)
Would appreciate your replies.
Regards
PrabHi, I'm wanting to do the same thing. Were you able to figure this out? Regards, Adrien.
-
Delta extraction for dunning history is not active
Hi all,
I am loading data to the FI Cube (Financial A/c -> Contract a/c receivables ) Dunning header .
This is a Standard infocube. This cube contains two DSOu2019S 0FC_DS08 , 0FC_DS11. When I starting the data loading from the DSO ( 0FC_DS08 ), I create the INIT package . When creating itself it throwing the error u201C Delta extraction for dunning history is not active u201D
When I check on SDN SAP , ( Use Tcode sbiw. Select 'Settings for apllication-specific datasources (PI) ->Contract Aacounts Receivable -> Make Central Settings'. Then tick 'Delta Extraction for Dunning Items Active'.) I got this link. But I could not proceed this link. Can you explain detailed step by step how to proceed to solve this issue.
Regards,
Baskaran.Hello Baskaran,
Did you ever solve this issue?
We do not have the link in SBIW (ERP 6.0 EHP6).
Thanks,
Andreas -
in F150, we have one dunning run for customer 100120, the dunning log says: account 100120 dunning data has beeen generated
document 180000123/2014/001: dunning level1, days in arrears 50, Status <.Dpi), my dunning procedure is every 20 days dun,
min. days in arrears : 2 days.
Thus In F150, if I click dunning list, it shows open item 300 USD, but my dunning history is empty.
if I click individual dun notice, choose printer, it says account 100120 is blocked by dunning level, but if I go to menu blocked items, it shows nothing
anyone know why dunning history is empty?Hi Sriram,
I checked all the things as above. This Internal Status is started, and the Task list accepts new tasks and they can be approved. The task list has not been the issue.
The issue at hand is not being able to see any of the workflow history. I have verified that the permissions on the history and tasks lists are the same. I have given the workflow service account full control of the history list.
Interestingly enough, I was able to add a custom event to log in the history, but the rest of the workflow history I am used to seeing in 2010 is still not there.
Any other ideas why the standard processing information in the workflow history is not being logged? -
0FIAR_C03 (0FIAR_O03) and dunning history
Hi all.
Subject ICube and ODS contains dunning information:
0DUNN_AREA
0LAST_DUNN
0DUNN_BLOCK
0DUNN_LEVEL
0DUNN_KEY
I wonder do these ODS and ICube stores history information about dunning? What about cases, then dunning level changes several times during day (i mean between delta loads)?
thanx in advance
points will be awardedHi,
You need to enhance structure. You can get profit center and segment frim FAGLFLEXA table.You can use the following code in CMOD
WHEN '0FI_AR_4'.
LOOP AT C_T_DATA INTO WA_FAR.
L_TABIX = SY-TABIX.
SELECT * FROM FAGLFLEXA WHERE RLDNR = '0L'
AND RBUKRS = WA_FAR-BUKRS
AND GJAHR = WA_FAR-GJAHR
AND DOCNR = WA_FAR-BELNR
AND buzei = WA_FAR-BUZEI.
IF SY-SUBRC = 0.
WA_FAR-ZZSEGMENT = FAGLFLEXA-SEGMENT.
WA_FAR-ZZPRCTR = FAGLFLEXA-PRCTR.
ENDIF.
endselect.
Modify C_T_Data from WA_FAR INDEX L_TABIX.
Regards
Baljit Singh -
Hi Friends,
Is there any standard tcode to display all Cancelled dunnings.
Something like to see the list of all cancelled dunnings between 01.08.2014 till 15.08.2014 and not w.r.t to Dunning Run.
OR
Someone needs to write an ABAP program by hitting tables FKKMAKO, FKKMAZE and so on..
Thanks,
Lakshmi.Hi Lakhsmi
You can see all reversed Dunning in T.code FPM3 (Dunning History). you need to select Display Reversed Dunning Not.
Regards
Rehan -
Dear guru's
I have configure the settings in FBMP the dunning levels, dunning text form F150_DUNN_01, dunning charges etc., dunning area also.
we specified the same in customer master also.
While running the F150 for generating the report, i execute the sample printout, dunning print out, it executes the document lists while falls under the dunning for all customers.While taking the print preview the dunning details it has not been executed the layout specified in the F150_DUNN_01.
The same details has not been updated in the Dunning History tab in F150. We can review the details in the dunning list in the ALV format.
The dunning level and date of dunning run has not been uptdated in the customer master records.
Is it possible to send the dunning report which is generated through the form F150_DUNN_01 to the customer mail id's automatically.
Thanks for providing valuable suggestions.
Regards,
RagaDear Mark,
Thanks mark for immediate response.
Initially i am not able to get print preview of the dunning report of customers in the layout of F150_DUNN_01. For this where i need to take make necessary corrections.
we are maintaing the customer email id's in their respective masters. In scot we configured the stms.
Once we run the dunning for 100 customers, After dunning print out what are the steps need to be take for sending the emails.
Thanks & Regards,
Suresh. -
hi experts,
iam asked to modify one standard sapscript and respective print program of dunning letter , for fi module. for tcode f150. original object is displaying dunning letter output for each customer. when i copied the same object and tried to execute, output is nil. i activated each and every include program etc, but in vain. according to FI consultant they dont maintain application in NACE. so i dnt know how to interlink print program and sapscript, in the original print program form name is not mentioned, i dnt know how the output is displayed in the form of sapscript.
my requirement is as follows
The customer is sent the gentle reminder letter for the out standing balances to be received by them. When ever the dunning program is run based on the dunning procedure assigned in the customer master and the level in the customer master, F150 program should be able to print the dunning letter for the customer correspondence.
MY STANDARD PROGRAM IS FOLLOWS
REPORT RFMAHN20 MESSAGE-ID FM NO STANDARD PAGE HEADING.
declaration for dunning lists
INCLUDE RFMAHNXXTOP.
tables declaration
TABLES: T001.
declaration for independend forms
INCLUDE RFMAHNXXFORM.
declaration
DATA: BEGIN OF MHNK_ACC,
KOART LIKE MHNK-KOART,
BUKRS LIKE MHNK-BUKRS,
KUNNR LIKE MHNK-KUNNR,
LIFNR LIKE MHNK-LIFNR,
KONTO LIKE MHNK-KUNNR,
SELKEY LIKE SY-TABIX,
L_INCL LIKE F150V-L_INCL,
HSORT1(16) TYPE C,
HSORT2(16) TYPE C,
HSORT3(16) TYPE C,
HSORT4(16) TYPE C,
HSORT5(16) TYPE C,
END OF MHNK_ACC.
declaration
DATA: T_MHNK LIKE MHNK OCCURS 10 WITH HEADER LINE.
DATA T_MHNK_ACC LIKE standard table of MHNK_ACC
with key koart bukrs konto WITH HEADER LINE.
parameters & select options
SELECTION-SCREEN BEGIN OF BLOCK 1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS: P_KOART FOR MHNK-KOART,
P_BUKRS FOR MHNK-BUKRS,
P_KUNNR FOR MHNK-KUNNR,
P_LIFNR FOR MHNK-LIFNR.
SELECTION-SCREEN END OF BLOCK 1.
INITIALIZATION.
H_REPID = SY-REPID.
H_ACTVT = '13'. "display dunning history
H_TABNAME_HEADER = 'MHNK_ACC'.
H_TABNAME_ITEM = 'MHNK_EXT'.
H_SET_PF_STATUS = 'SET_PF_STATUS'.
H_USER_COMMAND = 'USER_COMMAND_0001'.
H_VARIANT-REPORT = H_REPID.
H_VARIANT-LOG_GROUP = '0001'.
H_VARIANT-HANDLE = '0001'.
H_LAYOUT-DETAIL_POPUP = 'X'.
START-OF-SELECTION.
select the information from MHNK
SELECT * FROM MHNK INTO TABLE T_MHNK
WHERE KOART IN P_KOART AND
BUKRS IN P_BUKRS AND
KUNNR IN P_KUNNR AND
LIFNR IN P_LIFNR.
build the tables for the listviewer
PERFORM CREATE_TABLES TABLES T_MHNK T_MHNK_ACC T_MHNK_EXT.
END-OF-SELECTION.
fill the fieldcatalog
PERFORM FILL_FIELDCAT TABLES T_FIELDCAT
USING H_TABNAME_HEADER H_TABNAME_ITEM.
determine the keyinfo
PERFORM FILL_KEYINFO CHANGING H_KEYINFO.
register the list events
PERFORM REGISTER_EVENTS TABLES T_EVENTS.
Check if default-variant is existing (default or user-default )
h_variant-variant has to be empty for this check, otherwise it is
checked whether this variant is existing.
H_VARIANT-VARIANT = SPACE.
CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
EXPORTING
I_SAVE = 'A'
CHANGING
CS_VARIANT = H_VARIANT
EXCEPTIONS
WRONG_INPUT = 1
NOT_FOUND = 2
PROGRAM_ERROR = 3
OTHERS = 4.
IF SY-SUBRC = 2.
default-variant not existing, therefor get variant 0
H_VARIANT-VARIANT = '0'.
ELSEIF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE 'S' NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
display the list
CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_CALLBACK_PROGRAM = H_REPID
I_CALLBACK_PF_STATUS_SET = H_SET_PF_STATUS
I_CALLBACK_USER_COMMAND = H_USER_COMMAND
IS_LAYOUT = H_LAYOUT
IT_FIELDCAT = T_FIELDCAT[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
it_sort = t_sort[]
IT_FILTER =
IS_SEL_HIDE =
*-- i_screen_start_column = 5
*-- i_screen_start_line = 5
*-- i_screen_end_column = 80
*-- i_screen_end_line = 25
I_DEFAULT = 'X'
I_SAVE = 'A'
IS_VARIANT = H_VARIANT
IT_EVENTS = T_EVENTS[]
IT_EVENT_EXIT =
I_TABNAME_HEADER = H_TABNAME_HEADER
I_TABNAME_ITEM = H_TABNAME_ITEM
I_STRUCTURE_NAME_HEADER =
I_STRUCTURE_NAME_ITEM =
IS_KEYINFO = H_KEYINFO
IS_PRINT =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB_HEADER = T_MHNK_ACC
T_OUTTAB_ITEM = T_MHNK_EXT
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*& Form FILL_FIELDCAT
text
-->P_T_FIELDCAT text *
-->P_H_TABNAME_HEADER text *
-->P_H_TABNAME_ITEM text *
FORM FILL_FIELDCAT TABLES TI_FIELDCAT STRUCTURE T_FIELDCAT
USING I_HEADER TYPE SLIS_TABNAME
I_ITEM TYPE SLIS_TABNAME.
create the header fieldcat
PERFORM APPEND_SEL_FIELDS TABLES TI_FIELDCAT
USING I_HEADER.
CLEAR TI_FIELDCAT.
TI_FIELDCAT-TABNAME = I_HEADER.
TI_FIELDCAT-FIELDNAME = 'KOART'.
TI_FIELDCAT-SELTEXT_L = TEXT-052.
TI_FIELDCAT-SELTEXT_M = TEXT-052.
TI_FIELDCAT-SELTEXT_S = TEXT-052.
TI_FIELDCAT-REPTEXT_DDIC = TEXT-052.
TI_FIELDCAT-REF_FIELDNAME = 'KOART'.
TI_FIELDCAT-REF_TABNAME = 'MHNK'.
APPEND TI_FIELDCAT.
CLEAR TI_FIELDCAT.
TI_FIELDCAT-TABNAME = I_HEADER.
TI_FIELDCAT-FIELDNAME = 'BUKRS'.
TI_FIELDCAT-SELTEXT_L = TEXT-051.
TI_FIELDCAT-SELTEXT_M = TEXT-051.
TI_FIELDCAT-SELTEXT_S = TEXT-051.
TI_FIELDCAT-REPTEXT_DDIC = TEXT-051.
TI_FIELDCAT-REF_FIELDNAME = 'BUKRS'.
TI_FIELDCAT-REF_TABNAME = 'MHNK'.
APPEND TI_FIELDCAT.
CLEAR TI_FIELDCAT.
TI_FIELDCAT-TABNAME = I_HEADER.
TI_FIELDCAT-FIELDNAME = 'KONTO'.
TI_FIELDCAT-SELTEXT_L = TEXT-050.
TI_FIELDCAT-SELTEXT_M = TEXT-050.
TI_FIELDCAT-SELTEXT_S = TEXT-050.
TI_FIELDCAT-REPTEXT_DDIC = TEXT-050.
TI_FIELDCAT-REF_FIELDNAME = 'KONTO'.
TI_FIELDCAT-REF_TABNAME = 'F150V'.
APPEND TI_FIELDCAT.
CLEAR TI_FIELDCAT.
TI_FIELDCAT-TABNAME = I_HEADER.
TI_FIELDCAT-FIELDNAME = 'L_INCL'.
TI_FIELDCAT-SELTEXT_L = TEXT-041. " Kennz: Mahn. gedruckt
TI_FIELDCAT-REPTEXT_DDIC = 'L_INCL'.
TI_FIELDCAT-REF_FIELDNAME = 'L_INCL'.
TI_FIELDCAT-REF_TABNAME = 'F150V'.
APPEND TI_FIELDCAT.
clear ti_fieldcat.
ti_fieldcat-tabname = 'MHNK_EXT'.
ti_fieldcat-fieldname = 'COMP_CURR'.
ti_fieldcat-seltext_l = text-053.
ti_fieldcat-seltext_m = text-053.
ti_fieldcat-seltext_s = text-053.
ti_fieldcat-ref_fieldname = 'WAERS'.
ti_fieldcat-ref_tabname = 'MHNK'.
append ti_fieldcat.
perform append_sort_fields tables ti_fieldcat
using i_header h_sort_info 'H'.
create the item fieldcat
PERFORM APPEND_SEL_FIELDS TABLES TI_FIELDCAT
USING I_ITEM.
generate fieldcat
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = H_REPID
I_INTERNAL_TABNAME = I_ITEM
I_STRUCTURE_NAME = 'MHNK'
I_CLIENT_NEVER_DISPLAY = 'X'
i_inclname = 'RFMAHNXXTOP'
CHANGING
CT_FIELDCAT = TI_FIELDCAT[]
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3.
for amounts in company currency establish link to MHNK_EXT-COMP_CURR
so that summation in ALV is possible
loop at ti_fieldcat.
if ti_fieldcat-fieldname = 'SALHW' or
ti_fieldcat-fieldname = 'FAEHW' or
ti_fieldcat-fieldname = 'ZINHW' or
ti_fieldcat-fieldname = 'FAMSH' or
ti_fieldcat-fieldname = 'MHNGH'.
ti_fieldcat-cfieldname = 'COMP_CURR'.
ti_fieldcat-ctabname = 'MHNK_EXT'.
modify ti_fieldcat.
endif.
endloop.
CLEAR TI_FIELDCAT.
TI_FIELDCAT-TABNAME = I_ITEM.
TI_FIELDCAT-SELTEXT_L = TEXT-042. " 'Nur gedruckte Posten'.
ti_fieldcat-seltext_m = text-'Nur gedr. Posten'.
ti_fieldcat-seltext_s = 'Nur gedr. Post.'.
TI_FIELDCAT-FIELDNAME = 'L_INCL'.
TI_FIELDCAT-REPTEXT_DDIC = 'L_INCL'.
TI_FIELDCAT-REF_FIELDNAME = 'L_INCL'.
TI_FIELDCAT-REF_TABNAME = 'F150V'.
APPEND TI_FIELDCAT.
perform append_sort_fields tables ti_fieldcat
using i_item h_sort_info 'H'.
select the fields to be shown
PERFORM HIDE_ALL_FIELDS TABLES TI_FIELDCAT USING I_HEADER.
select the fields to be shown
PERFORM HIDE_ALL_FIELDS TABLES TI_FIELDCAT USING I_ITEM.
ENDFORM. " FILL_FIELDCAT
*& Form CREATE_TABLES
text
--> p1 text
<-- p2 text
FORM CREATE_TABLES TABLES TI_MHNK STRUCTURE MHNK
TI_MHNK_ACC STRUCTURE MHNK_ACC
TI_MHNK_EXT STRUCTURE MHNK_EXT.
data : begin of comp_curr,
bukrs like mhnk-bukrs,
waers like mhnk-waers,
end of comp_curr.
data bukrs_tab like comp_curr occurs 0 with header line.
sort the table
SORT TI_MHNK BY KOART BUKRS KUNNR LIFNR ASCENDING.
build t_mhnk_ext
LOOP AT TI_MHNK.
check authority
PERFORM CHECK_AUTHORITY USING '13' TI_MHNK-KOART TI_MHNK-BUKRS
CHANGING H_AUTHORITY_OK.
IF H_AUTHORITY_OK = SPACE.
CONTINUE.
ENDIF.
save wa
MHNK = TI_MHNK.
create item entry
MOVE-CORRESPONDING MHNK TO TI_MHNK_EXT.
IF TI_MHNK_EXT-KOART = 'D'.
TI_MHNK_EXT-KONTO = TI_MHNK_EXT-KUNNR.
ELSE.
TI_MHNK_EXT-KONTO = TI_MHNK_EXT-LIFNR.
ENDIF.
TI_MHNK_EXT-HSORT1 = <F1>.
TI_MHNK_EXT-HSORT1 = <F2>.
TI_MHNK_EXT-HSORT1 = <F3>.
TI_MHNK_EXT-HSORT1 = <F4>.
TI_MHNK_EXT-HSORT1 = <F5>.
check if item has been printed already
IF NOT TI_MHNK_EXT-PRNDT IS INITIAL.
TI_MHNK_EXT-L_INCL = 'X'.
ELSE.
TI_MHNK_EXT-L_INCL = SPACE.
endif.
read table bukrs_tab with key bukrs = ti_mhnk_ext-bukrs.
if sy-subrc <> 0.
select single * from t001 where bukrs = ti_mhnk_ext-bukrs.
if sy-subrc = 0.
bukrs_tab-waers = t001-waers.
bukrs_tab-bukrs = ti_mhnk_ext-bukrs.
append bukrs_tab.
endif.
endif.
ti_mhnk_ext-comp_curr = bukrs_tab-waers.
APPEND TI_MHNK_EXT.
create header entry
MOVE-CORRESPONDING MHNK TO TI_MHNK_ACC.
IF TI_MHNK_ACC-KOART = 'D'.
TI_MHNK_ACC-KONTO = TI_MHNK_ACC-KUNNR.
ELSE.
TI_MHNK_ACC-KONTO = TI_MHNK_ACC-LIFNR.
ENDIF.
COLLECT TI_MHNK_ACC.
ENDLOOP.
determine if account has at least one printed dunning
LOOP AT TI_MHNK_ACC.
READ TABLE TI_MHNK_EXT WITH KEY KOART = TI_MHNK_ACC-KOART
BUKRS = TI_MHNK_ACC-BUKRS
KUNNR = TI_MHNK_ACC-KUNNR
LIFNR = TI_MHNK_ACC-LIFNR
KONTO = TI_MHNK_ACC-KONTO
L_INCL = 'X'.
IF SY-SUBRC = 0.
TI_MHNK_ACC-L_INCL = 'X'.
MODIFY TI_MHNK_ACC.
ENDIF.
ENDLOOP.
ENDFORM. " CREATE_TABLES
*& Form FILL_KEYINFO
text
<--P_H_KEYINFO text *
FORM FILL_KEYINFO CHANGING E_KEYINFO TYPE SLIS_KEYINFO_ALV.
MOVE 'KOART' TO : E_KEYINFO-HEADER01,E_KEYINFO-ITEM01.
MOVE 'BUKRS' TO : E_KEYINFO-HEADER02,E_KEYINFO-ITEM02.
MOVE 'KONTO' TO : E_KEYINFO-HEADER03,E_KEYINFO-ITEM03.
ENDFORM. " FILL_KEYINFO
*& Form SET_PF_STATUS
text
-->P_RT_EXTAB text *
-->P_TYPE text *
-->P_SLIS_T_EXTAB text *
FORM SET_PF_STATUS USING I_EXTAB TYPE SLIS_T_EXTAB.
SET PF-STATUS 'HIST_MAX' EXCLUDING I_EXTAB.
ENDFORM. " SET_PF_STATUS
*& Form USER_COMMAND_0001
text
--> p1 text
<-- p2 text
FORM USER_COMMAND_0001 USING I_UCOMM LIKE SY-UCOMM
I_SELFIELD TYPE SLIS_SELFIELD.
CASE I_UCOMM.
WHEN 'DISP'.
PERFORM COMMAND_DISP USING I_SELFIELD.
ENDCASE.
ENDFORM.
*& Form COMMAND_DISP
text
--> p1 text
<-- p2 text
FORM COMMAND_DISP CHANGING E_SELFIELD TYPE SLIS_SELFIELD.
declaration
DATA: TH_MHND LIKE MHND OCCURS 10 WITH HEADER LINE,
TH_MHNK LIKE MHNK OCCURS 1 WITH HEADER LINE.
determine the current line
IF E_SELFIELD-TABNAME = H_TABNAME_ITEM.
READ TABLE T_MHNK_EXT INDEX E_SELFIELD-TABINDEX.
MOVE-CORRESPONDING T_MHNK_EXT TO TH_MHNK.
APPEND TH_MHNK.
ELSE.
MESSAGE E481.
EXIT.
ENDIF.
determine the mhnd entries for the actual mhnk
SELECT * FROM MHND INTO TABLE TH_MHND
WHERE LAUFD = TH_MHNK-LAUFD
AND LAUFI = TH_MHNK-LAUFI
AND KOART = TH_MHNK-KOART
AND BUKRS = TH_MHNK-BUKRS
AND KUNNR = TH_MHNK-KUNNR
AND LIFNR = TH_MHNK-LIFNR
AND CPDKY = TH_MHNK-CPDKY
AND SKNRZE = TH_MHNK-SKNRZE
AND SMABER = TH_MHNK-SMABER
AND SMAHSK = TH_MHNK-SMAHSK.
change the dunning data
CALL FUNCTION 'EDIT_DUNNING_DATA'
EXPORTING
I_MHNK = TH_MHNK
I_XDISPLAY = 'X'
TABLES
T_MHND = TH_MHND
T_MHNK = TH_MHNK
EXCEPTIONS
OTHERS = 1.
ENDFORM. " COMMAND_DISP
*& Form REGISTER_EVENTS
text
-->P_T_EVENT text *
FORM REGISTER_EVENTS TABLES T_EVENT TYPE SLIS_T_EVENT.
determine the events
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 1
IMPORTING
ET_EVENTS = T_EVENT[]
EXCEPTIONS
LIST_TYPE_WRONG = 1
OTHERS = 2.
set top of page form
READ TABLE T_EVENT WITH KEY NAME = SLIS_EV_TOP_OF_PAGE.
IF SY-SUBRC EQ 0.
T_EVENT-FORM = 'TOP_OF_PAGE'. MODIFY T_EVENT INDEX SY-TABIX.
ENDIF.
set top of list form
READ TABLE T_EVENT WITH KEY NAME = SLIS_EV_TOP_OF_LIST.
IF SY-SUBRC EQ 0.
T_EVENT-FORM = 'TOP_OF_LIST'. MODIFY T_EVENT INDEX SY-TABIX.
ENDIF.
set end of list
READ TABLE T_EVENT WITH KEY NAME = SLIS_EV_END_OF_LIST.
IF SY-SUBRC EQ 0.
T_EVENT-FORM = 'END_OF_LIST'. MODIFY T_EVENT INDEX SY-TABIX.
ENDIF.
ENDFORM. " REGISTER_EVENTS
FORM TOP_OF_PAGE *
FORM TOP_OF_PAGE.
PERFORM BATCH-HEADING(RSBTCHH0).
ENDFORM. " TOP_OF_PAGE
FORM TOP_OF_LIST *
FORM TOP_OF_LIST.
*- Standardseitenkopf fuellen -
MOVE '0' TO BHDGD-INIFL.
MOVE SY-LINSZ TO BHDGD-LINES.
MOVE SY-UNAME TO BHDGD-UNAME.
MOVE SY-REPID TO BHDGD-REPID.
CLEAR: LINE.
WRITE TEXT-040 TO BHDGD-LINE2.
ENDFORM.
FORM END_OF_LIST *
FORM END_OF_LIST.
WRITE: / TEXT-039.
ENDFORM
regards
maayaHi,
I copied your program and executed it. First of all, I dont think its a print program for any script. Its a plain ALV report program. I think you mis-understood the requirement or I totally lost the question.
Make sure you are changing the correct program.
Regards
Aneesh. -
Changing the Dunning level and reports for Dunning
How can I change the 'Dunning level' for line items in the 'Dunning History/Dunning overview'? I have read in help.sap that I can change it, but am not able to find where I could do that.
link: http://help.sap.com/erp2005_ehp_03/helpdata/EN/bc/2127c4265911d286d6006008bbc8e8/frameset.htm (In 3rd para).
Can anyone tell me if there are any reports available to view the 'Dunning list'(other than Dunning History in F150).
Also, Our client needs a report which shows a list of all 'customers' and 'line items' Blocked for Dunning.
Please give me your suggestions ASAP.
Thanks
Edited by: sapfan 20062007 on May 3, 2008 10:39 PMThanks .
I'm looking at running the ALFS editor . I'm in WebAS 7.00 . The Themes/templates and brand colours on the left frame does appear but the bsp page does not appear . used the standard bsp page which appears as a default ( bsp add it05 ) . The error message is as follows
The following error text was processed in the system:
BSP Exception: Das Objekt entrypoint.htm_sap-themeRoot=/sap/public/bc/ur/design2002/themes/alfs1000101F5FFFA2F4F4F2929296F8FAF3F5F7F in der URL /sap/bc/bsp/sap/it05/entrypoint.htm&sap-themeRoot=%2fsap%2fpublic%2fbc%2fur%2fdesign2002%2fthemes%2falfs1000101F5FFFA2F4F4F2929296F8FAF3F5F7F ist nicht gültig.
But if I run the bsp application manually then the right theme does get picked up . I made the entry in the bspthemeroot table and put in the alfs parameter in the above url ( 1000101F5FFFA2F4F4F2929296F8FAF3F5F7F ) . The bsp application works fine but not the alfs editor . Any ideas ? -
Custom FM for dunning activity
Dear All,
I want to post a document in customer account after dunning activity. I am trying to do this through ABAP. What i did was that i made a copy of the standard dunning activity FM Z_ISU_DUNNING_EMPTY_ACTIVI_0350. In this FM i added my code which would post a simple document in a customer account.
When i test this function module using se37 the FM works perfectly well and posts a document. However when i put this FM for my dunning activity(Using SPRO>> Configure Dunning activities) and run the dunning proposal and activity, the document does not get posted. I dont know why. Can anyone please help. Would really appreciate
Here is how the code looks like after i added my code for posting a simple document
FUNCTION ZISU_DUNNING_EMPTY_ACTIVI_0350.
""Local Interface:
*" IMPORTING
*" VALUE(I_TFK047L) LIKE TFK047L STRUCTURE TFK047L
*" TABLES
*" T_FKKMAZE STRUCTURE FKKMAZE
*" T_FKKMAKT STRUCTURE FKKMAKT
*" T_FKKOP STRUCTURE FKKOP
*" T_FKKOPK STRUCTURE FKKOPK
*" T_FIMSG STRUCTURE FIMSG
*" CHANGING
*" VALUE(C_FKKMAKO) LIKE FKKMAKO STRUCTURE FKKMAKO
*" VALUE(C_FKKKO) LIKE FKKKO STRUCTURE FKKKO
only write success message into job log
DATA:
documentheader like bapidfkkko,
partnerpositions type standard table of bapidfkkop with header line,
genledgerpositions type standard table of bapidfkkopk with header line,
documentnumber like bapidfkkko-doc_no,
return type standard table of bapiret2 with header line.
documentheader-fikey = '100915-001'.
documentheader-appl_area = 'R'.
documentheader-doc_type = 'AB'.
documentheader-doc_source_key = '01'.
documentheader-currency = 'UNI'.
documentheader-doc_date = sy-datum.
documentheader-post_date = sy-datum.
partnerpositions-item = '0001'.
partnerpositions-comp_code = 'UNI'.
partnerpositions-buspartner = '0000014044'.
partnerpositions-cont_acct = '10000416133X'.
partnerpositions-main_trans = '6000'.
partnerpositions-sub_trans = 'AD01'.
partnerpositions-g_l_acct = '0000140000'.
partnerpositions-doc_date = sy-datum.
partnerpositions-post_date = sy-datum.
partnerpositions-net_date = sy-datum.
partnerpositions-currency = 'UNI'.
partnerpositions-amount = '99'.
APPEND partnerpositions.
genledgerpositions-item = '0001'.
genledgerpositions-comp_code = 'UNI'.
genledgerpositions-g_l_acct = '0000299000'.
genledgerpositions-amount = '-99'.
genledgerpositions-profit_ctr = 'IBC'.
APPEND genledgerpositions.
CALL FUNCTION 'BAPI_CTRACDOCUMENT_CREATE'
EXPORTING
testrun = ''
documentheader = documentheader
IMPORTING
documentnumber = documentnumber
return = return
TABLES
partnerpositions = partnerpositions
genledgerpositions = genledgerpositions.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
CALL FUNCTION 'FKK_DUNNING_MESSAGE_APPEND'
EXPORTING
MSGID = 'EK'
MSGNO = '345'
MSGPR = '2'
TABLES
T_FIMSG = T_FIMSG.
IF 1 = 0. MESSAGE S345(EK). ENDIF.
ENDFUNCTION.The log displays the same message as the one it showed when i had not changed the code.
I also tried to do the same thing with the dunning activity that deactivates the installment plan. i made a copy of the function module ISU_DUNNING_DEACT_INSTPL_0350. In that new func module i copied my code that posts a simple document. then i assigned the new ZISU_DUNNING_DEACT_INSTPL_0350 activity to the dunning procedure in SPRO. I created an installment plan for a business partner and ran the dunning activity. The installment got de activated but no document was posted!
for your help i am providing the code of the ZISU_DUNNING_DEACT_INSTPL_0350
FUNCTION ZISU_DUNNING_DEACT_INSTPL_0350.
""Local Interface:
*" IMPORTING
*" VALUE(I_TFK047L) LIKE TFK047L STRUCTURE TFK047L
*" EXPORTING
*" VALUE(TEMP) TYPE OPTXT
*" TABLES
*" T_FKKMAZE STRUCTURE FKKMAZE
*" T_FKKMAKT STRUCTURE FKKMAKT
*" T_FKKOP STRUCTURE FKKOP
*" T_FKKOPK STRUCTURE FKKOPK
*" T_FIMSG STRUCTURE FIMSG
*" CHANGING
*" VALUE(C_FKKMAKO) LIKE FKKMAKO STRUCTURE FKKMAKO
*" VALUE(C_FKKKO) LIKE FKKKO STRUCTURE FKKKO
DATA: BEGIN OF T_OPBEL OCCURS 1,
OPBEL LIKE FKKOP-OPBEL,
END OF T_OPBEL.
DATA: H_ATEXT(100).
DATA: OPBEL_C(12).
DATA: H_UPDATE.
DATA: H_FKKMAHNV LIKE FKKMAHNV.
DATA: H_TFK033D LIKE TFK033D.
DATA: H_DEAGD LIKE RFKN1-DEAGD,
documentheader like bapidfkkko,
partnerpositions type standard table of bapidfkkop with header line,
genledgerpositions type standard table of bapidfkkopk with header line,
documentnumber like bapidfkkko-doc_no,
return type standard table of bapiret2 with header line.
documentheader-fikey = '100915-001'.
documentheader-appl_area = 'R'.
documentheader-doc_type = 'AB'.
documentheader-doc_source_key = '01'.
documentheader-currency = 'UNI'.
documentheader-doc_date = sy-datum.
documentheader-post_date = sy-datum.
partnerpositions-item = '0001'.
partnerpositions-comp_code = 'UNI'.
partnerpositions-buspartner = '0000014030'.
partnerpositions-cont_acct = '10000416119X'.
partnerpositions-main_trans = '6000'.
partnerpositions-sub_trans = 'AD01'.
partnerpositions-g_l_acct = '0000140000'.
partnerpositions-doc_date = sy-datum.
partnerpositions-post_date = sy-datum.
partnerpositions-net_date = sy-datum.
partnerpositions-currency = 'UNI'.
partnerpositions-amount = '66'.
APPEND partnerpositions.
genledgerpositions-item = '0001'.
genledgerpositions-comp_code = 'UNI'.
genledgerpositions-g_l_acct = '0000299000'.
genledgerpositions-amount = '-66'.
genledgerpositions-profit_ctr = 'IBC'.
APPEND genledgerpositions.
CALL FUNCTION 'BAPI_CTRACDOCUMENT_CREATE'
EXPORTING
testrun = ''
documentheader = documentheader
IMPORTING
documentnumber = documentnumber
return = return
TABLES
partnerpositions = partnerpositions
genledgerpositions = genledgerpositions.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
temp = return-message.
temp = documentnumber.
CALL FUNCTION 'ISU_DUNNING_DEACT_INSTPL_LOAN'
EXPORTING
I_LOAN = space
TABLES
T_FKKMAZE = T_FKKMAZE
T_FKKMAKT = T_FKKMAKT
T_FIMSG = T_FIMSG
CHANGING
C_FKKMAKO = C_FKKMAKO.
exit.
get update flag from global memory
Parameter, ob Testdruck vorgesehen ist, aus dem globalen Memory holen
CALL FUNCTION 'FKK_DUNNING_PARAMETER_GET'
IMPORTING
E_UPDATE = H_UPDATE
E_FKKMAHNV = H_FKKMAHNV.
new: reason for deactivation of installment plan in
business area 1102
CALL FUNCTION 'FKK_ACCOUNT_DETERMINE_1102'
EXPORTING
I_APPLK = H_FKKMAHNV-APPLK
IMPORTING
E_TFK033D = H_TFK033D
EXCEPTIONS
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
H_DEAGD = H_TFK033D-FUN01.
inside the dunned items, look if there installments in the highest
dunning level
innerhalb der gemahnten Forderungen nach Raten suchen, die die
höchste Mahnstufe erreicht haben
LOOP AT T_FKKMAZE
WHERE STAKZ = 'R'
and xinfo = ' '.
AND MAHNS = C_FKKMAKO-MAHNS. "Note 182489
READ TABLE T_OPBEL WITH KEY OPBEL = T_FKKMAZE-OPBEL.
if the document number is new, go on
Nur weitermachen, wenn die Nummer noch nicht geprüft wurde
CHECK SY-SUBRC NE 0.
T_OPBEL-OPBEL = T_FKKMAZE-OPBEL.
APPEND T_OPBEL.
WRITE T_OPBEL-OPBEL TO OPBEL_C NO-ZERO.
deactivate installment plan only in update mode
Ratenplan nur im UPDATE-Modus deaktivieren
IF H_UPDATE = 'X'.
CALL FUNCTION 'FKK_S_INSTPLAN_DEACTIVATE'
EXPORTING
I_OPBEL = T_OPBEL-OPBEL
I_DEAGD = H_DEAGD
I_DEADT = sy-datum
EXCEPTIONS
OTHERS = 1.
else.
clear sy-subrc.
ENDIF.
IF SY-SUBRC = 0.
success message in job log
Nachricht, daß Ratenplan deaktiviert wurde, ins Protokoll :News that installment plan has been disabled, the log
CALL FUNCTION 'FKK_DUNNING_MESSAGE_APPEND'
EXPORTING
MSGID = 'EK'
MSGNO = '304'
MSGV1 = OPBEL_C
MSGPR = '2'
TABLES
T_FIMSG = t_fimsg.
IF 1 = 0. MESSAGE S304(EK) with OPBEL_C. ENDIF.
Create an entry in dunning history for deactivating an installmt plan
Für das Deaktivieren des Ratenplans wird noch eine Mahnaktivität
definiert.
CLEAR T_FKKMAKT.
MOVE-CORRESPONDING C_FKKMAKO TO T_FKKMAKT.
H_ATEXT = 'Ratenplan & wurde deaktiviert'(001).
REPLACE '&' WITH OPBEL_C INTO H_ATEXT.
CONDENSE H_ATEXT.
T_FKKMAKT-ATEXT = H_ATEXT.
concatenate 'Ratenplan'(001)
t_opbel-opbel
'wurde deaktiviert'(002)
into t_fkkmakt-atext separated by space.
APPEND T_FKKMAKT.
ELSE.
Write error in job log
Fehlermeldung aus dem Funktionsbaustein wird in Tabelle geschrieben,
sie kommt dann nach der Abbruch-Meldung ins Protokoll.
CALL FUNCTION 'FKK_DUNNING_SYST_MESSAGE_APP'
TABLES
T_FIMSG = T_FIMSG.
error message in case of error
Dann wird die Abbruchmeldung direkt ausgegeben
MESSAGE E305(EK) WITH OPBEL_C.
ENDIF.
ENDLOOP.
ENDFUNCTION. -
Dunning Old dinning level and dunning level
Hi experts,
I have one issue in dunning. the issue is where the dunning history for particular customer shows as old dunning level as 3 and dunning level as 2.
i have checked the customer master there is change in the dunning procdure. But the document and master data shows the correct dunning level with the new procdure.
so i didnt understand what is the OLD dunning level and dunning level for the same cusomer. the issue is only with one customer.
I have also checked with old procdure with same customer in table MHNK. there are some notices done. but how come the current invoice shows the old dunning level for the same invoice.
can any once explain me how to proceed.
Regards
AshokHi
Thnks for the reply so we need to apply this note for making the old dunning level and dunning level makes equal after you run the program.
Also one more doubt, since i have observed that the dunning after the parameters entered. looks like this
Parameters were maintained
Dunning selection executed, job deleted
Dunning notice printed, job deleted.
the above doesnt means that they will update the old dunning level right.
Regards
Ashok -
How to update the dunning level and dunning details: BAPI/FM??
Hi All,
I need to update the dunning history details(dunning level) for a contract account.
I am using the table FKKMAKO(dunning header).
Let me know if there is a Function module/BAPI/ any other way to update the dunning history details
Regards
ShivaHi,
Can you check if these FM's are useful:
CRM_MKTPL_GET_BP_SALES_AREAS
CRM_MKTPL_AL_FILL_PRODUCT
Hope this helps.
Regards,
Anup -
Update dunning level and dunning details for a contract account
Hi All,
I need to update the dunning history details(dunning level) for a contract account.
I am using the table FKKMAKO(dunning header).
Let me know if there is a Function module/BAPI/ any other way to update the dunning history details
Regards
Shiva545315 - FAQ: Dunning
[3] Question: How does the system determine the dunning level in the
master record?
The master record stores the highest dunning level that has been
determined for the account during the last dunning run.
If an account receives several dunning notices (e.g. in the case
of dunning by dunning level), make sure that you use ascending
order when printing, since the master record is updated after
each dunning notice.
Note 838334 may also be the case.
cheers,
Jon -
Unable to receive dunning PCL file
Hi Gurus,
I have encountered a problem while trying to send the dunning data to our pritner, the PCL file has not been received successfully and here is the dunning log:
From the dunning log it seems that the dunning letter has not been printed due to the frequency not reached, however, the customers have overdue invoices that already reached dunning lever 2. And I can see the dunning letter if I open the dunning history.
Could somebody tell me what's the problem and how to fix it? Thanks.
Job started
Step 001 started (program SAPF150S2, variant &0000000004112, user ID FUSL)
Log for dunning run 20110408 / DLUS01 ****************
=========================================================================
> Account D 0000690517, company code US01 is being processed
> Reading account data and document information Phase 0
> Account D 0000690517 read items: 6
> Processing and completing dunning lines Phase I
> Document 0914163432/2011/001 has new dunning level 2.
> Document 0914350100/2011/001 has new dunning level 0.
> Document 0914513892/2011/001 days in arrears 22- <= 0
> Document 0914184693/2011/001 has new dunning level 2.
> Document 0914361258/2011/001 has new dunning level 0.
> Document 0914536913/2011/001 days in arrears 22- <= 0
> Check legal dunning procedure and credit memos Phase II -
> Minimum charges and dunning interest Phase III
> Generate dunning data Phase IV
>
> Account D 0000690517 is being processed
> Account D 0000690517 uses dunning procedure US01
> Account D 0000690517 / dunning procedure US01 has no interest calculation indicator
> Account D 0000690517 US01 last dunning 08.04.2011, dunning frequency not reached
> No dunning data generated for account D 0000690517.
Job finishedanybody knows how to solve it?
-
Dunning letter print out error?
Hi anybody,
I am using F150 for print dunning letters more than one customers. But I click "Sample printout" then i give printer name ,customer ID'S and click print immediately. but the dunning letters not printed.
i want print more than one customers dunning letters when click print button in F150.
Anybody please tell me what is problem?.
I will appreciate valuable answers.
Thanks
Regards,
S.MuthuHi,
After creating the Dunning, i.e. after maintaining the parameters, Dunning RUN should be done.
At this time, based on the customer and company code and other relevant dependent data, it any suitable documents are found, then only it will generated the dunning letters and can be seen in the job which is created in SM37.
So first check whether any data is populated or not.
Then only the similar data can be printed.
You can also check in the dunning history.
Regards,
Santhosh.
Maybe you are looking for
-
How to install the apps on another drive ?
Hi, Did any of you could install the creative cloud apps on another drive than C:program/adobe ? My computer has a very small C drive and I could not manage to install the creative cloud apps on another hardrive (D:) Thanks for your help Fabien
-
I notived that the links inside my flash header do not work on this page as well as other pages inside this directory. The links do work in the root directory. Does someone know how to fix this problem I am having? Here is the link: http://www.school
-
I want to remove that big blue stripe near the top of the screen
The stripe that showed up yesterday that says: "Click Here To Start Sharing on Google"
-
NFS stall in 10.2.0.4
After about 5 hours of continuous update/insert activity to an NFS mounted system we see a stall that may last several seconds and then performance resumes. It appears to be a DB cache issue as well as something with the actual NFS process. Has anyon
-
I'm looking for case studies on historical data models, because I'd like to know how other analysts had overcome this subject. Please, can anyone help me?. Thanks