Hi There,
My requirement is to post a statistical document while Write-Off in following cases:
1. Online Write-Off: T Code FP04
2. Mass Write-Off: T Code FP04M
I have implemented FQ Event 5040, and used BAPI BAPI_CTRACDOCUMENT_CREATE to create the Statistical Document when Write-Off is performing.
Things are working properly in case of FP04 (Online execution), but while Mass (FP04M) execution the BAPI is not working and I am getting error 'Formal error: Invalid calling sequence for function modules'.
As of my analysis from SCN and debug that the BAPI (BAPI_CTRACDOCUMENT_CREATE) is not working for Mass transactions as expected.
Please propose me if there is any alternate BAPI/FM which can be used in case of Mass transactions to create Statistical Document. Also if I need to use any specific steps to use the same BAPI, or any guidance.
Thanks in advance.
Regards,
Ankur