Application Development and Automation 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: 
Read only

Call FM on event MeterReadingDocument.Confirmed (MTRREADDOC - Object Type)

Former Member
0 Likes
583

Hi All,

We need to call our custom FM on event MeterReadingDocument.Confirmed for BOR object MTRREADDOC.

Please let us know how it has to be done.

Thanks

1 ACCEPTED SOLUTION
Read only

andrs_sarcevic
Contributor
515

Are you implementing a workflow using the object? - If so, you can create a custom step after the "Wait for Event" step that executes your Function Module.

Another option would be to create a Z BO: ZMTRREADDO, define MTRREADDOC as Supertype. Set up the Delegation by going to Settings > Delegate, and you can redefine the Event (never had to do this, sorry) in your Z BO, or create a new method that calls your FM and use it after the "Wait for Event" step.

Hope that helps. You can also try posting your question in .

Regards,

Andres.

Hi All,

We need to call our custom FM on event MeterReadingDocument.Confirmed for BOR object MTRREADDOC.

Please let us know how it has to be done.

Thanks

2 REPLIES 2
Read only

andrs_sarcevic
Contributor
516

Are you implementing a workflow using the object? - If so, you can create a custom step after the "Wait for Event" step that executes your Function Module.

Another option would be to create a Z BO: ZMTRREADDO, define MTRREADDOC as Supertype. Set up the Delegation by going to Settings > Delegate, and you can redefine the Event (never had to do this, sorry) in your Z BO, or create a new method that calls your FM and use it after the "Wait for Event" step.

Hope that helps. You can also try posting your question in .

Regards,

Andres.

Read only

0 Likes
515

Hi Andres,

We are not using any workflow.

Actually whenever the meter readings are saved this event gets triggered.

So what we did is we wrote our part of enhancement code in a standalone Function Module and attached the same to this event

in transaction SWE2.

Our FM gets triggered when we save the meter reading and our purpose is solved.

Thanks a lot for your response.

Regards,

Mozila