2012 Nov 25 9:20 PM
dear experts;
In our organisation it is required to print the Interest Invoice reversal document.
Since there is no SAP standard document available we are using Custom Correspondence type.
We have done following steps : -
Then we are using events 0020 and 0030 as mentioned in http://scn.sap.com/thread/1112871
However after FPCOPARA run we observed that there is no data being populated in the RDI spool file in SP02.
Pls let me know if we are missing anything.
Thanks in advance.
regards;
Sagar
2012 Nov 26 1:45 AM
Hi Sagar,
Assuming that you are getting the records in table DFKKCOH and DFKKCOHI through events 0020 and 0030, I think FPCOPARA is not picking these line items because it is not finding any events for printing for the specific correspondence type.
Go to the following SPRO config-
IMG->Financial Accounting->Contract Accounts Receivable and Payable->Basic Functions->Correspondence->Define Correspondence Types.
Select the Correspondence type that you have created for the purpose and click on control.
Now go to the events tab.
Choose Event Concept as Event Concept from Contract Accounts Receivable and Payable.
Give the Print Time Event as 722 and Creation event as 723.
Event 0722 is triggered by the main correspondence program to print a document.
The underlying posting material is selected in the print event.
The document correspondence gets created in event 0723
So you need to develop a custom FM for the correspondence type that you have created and plug in to the event.
Hope it helps...
Thanks,
Amlan
2012 Nov 26 1:45 AM
Hi Sagar,
Assuming that you are getting the records in table DFKKCOH and DFKKCOHI through events 0020 and 0030, I think FPCOPARA is not picking these line items because it is not finding any events for printing for the specific correspondence type.
Go to the following SPRO config-
IMG->Financial Accounting->Contract Accounts Receivable and Payable->Basic Functions->Correspondence->Define Correspondence Types.
Select the Correspondence type that you have created for the purpose and click on control.
Now go to the events tab.
Choose Event Concept as Event Concept from Contract Accounts Receivable and Payable.
Give the Print Time Event as 722 and Creation event as 723.
Event 0722 is triggered by the main correspondence program to print a document.
The underlying posting material is selected in the print event.
The document correspondence gets created in event 0723
So you need to develop a custom FM for the correspondence type that you have created and plug in to the event.
Hope it helps...
Thanks,
Amlan
2012 Nov 26 8:43 AM
Hi Amland;
thanks a lot for youre response.Can you tell me which fields that I sould (must) populate in DFKKCOH and DFKKCOHI ?
regards;
Sagar
2012 Nov 27 1:51 AM
Hi Sagar,
First try to analyse how an entry gets populated in the table for a standard correspondence type, like say dunning (Cotyp-0003) or Returns (Cotyp-0001), before and after the transaction Code FPCOPARA is executed.
Before the print run, the entry in table DFKKCOH should contain the Correspondence type,Correspondence Key and all the other objects related to the correspondence, like the Document no, Creation date, Contarct Account, Business partner etc.
After the print run, the Print date field gets updated along with the date and the identifier.
The insertion of these entry in the table should be triggerred when you are reversing the interest document.
Hope it helps...
Thanks,
Amlan