Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Event to update custom fields after FPMA transaction

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

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

0 Kudos

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.

0 Kudos


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

0 Kudos

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

lenastodal
Product and Topic Expert
Product and Topic Expert
0 Kudos

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!


Join or subscribe to SAP Community Groups to stay up-to-date, including SAP TechEd Group.