06-14-2013 7:25 AM
Hello,
I have a requirement in FI-CA where I have to update custom field of table DFKKOP after the mass clearing (FPMA transaction).
I identified the events 10 (FM -> FKK_SAMPLE_0101)1 and 20 (FM -> FKK_SAMPLE_0020) in transaction FQEVENTS. But those are not useful for my requirement.
Please let me know which event can be used to update the to update the custom field of table DFKKOP after the Mass clearing.
Thanks in advance
Nivash S
06-16-2013 2:57 AM
Hi Experts,
This problem is resolved. Please refer the steps below,
> Identified the event 0020 in FQEVENTS
In this event we are getting the newly created clearing document number
Here we have written our logic in a Function Module and called the same inside the 0020 as a STARTING NEW TASK, so that the custom code will get called after the commit happens.
Reason behind STARTING NEW TASK is, when we try to update the document normally we are getting the error that document is locked for the mass processing. So we have to execute this code as a new task.
This solved our purpose.
--- Nivash S
06-16-2013 2:57 AM
Hi Experts,
This problem is resolved. Please refer the steps below,
> Identified the event 0020 in FQEVENTS
In this event we are getting the newly created clearing document number
Here we have written our logic in a Function Module and called the same inside the 0020 as a STARTING NEW TASK, so that the custom code will get called after the commit happens.
Reason behind STARTING NEW TASK is, when we try to update the document normally we are getting the error that document is locked for the mass processing. So we have to execute this code as a new task.
This solved our purpose.
--- Nivash S
06-04-2014 11:22 PM
How did you find that event 0020 belongs to FPMA? I cannot seem to break point it while debugging or find of the installed specific modules in FPMA.
07-04-2014 2:08 AM
Hello Michael,
Sorry for the late reply. To identify the suitable event you have to explore the transaction code FQEVENTS, based on the search term.
Once you identify the suitable event for your requirement, you have to create a custom function module (Copy f the sample function module associated with that event) and add it to the configuration.
When it comes to debugging, you cannot straight away debug these function modules, because these function modules gets called in background.
But there is a way to debug these function modules, using a small ABAP trick.
Please let me know if you want to learn that.
Thanks
Nivash S
02-25-2022 10:34 AM
Hi Nivash,
During my clearing via FP06 i notice only table DFKKKO is being updated. But my requirement is to update DFKKOP table
as well during the clearing. so i'm trying to use Event - 20 to update line item itab as well but somehow i don't see the line item table get updated. May i know how you manage to update DFKKOP table during clearing?
At the same time i also would like to know the trick that you use to debug FM in event-20 during clearing via FPMA?
Kindly please share.
Thank you so much.
Regards
Theeba Sellapan
02-25-2022 10:34 AM
Hi Theeba,
The question is already very old and you tried to reach out to inactive members which means that your comment/the question in your comment won't be addressed. Please don't add comments to inactive threads but instead ask your own new question here: https://answers.sap.com/questions/ask.html
You should also check out our tutorial to learn more about asking and answering questions in the community: https://developers.sap.com/tutorials/community-qa.html
Many thanks!