Skip to Content
0

How to Schedule Background Job for custom report on closing period in OB52?

Nov 15, 2016 at 07:00 AM

124

avatar image
Former Member

HI Guys,

i am facing a situation where i have to run my custom program in background when they close current period in OB52 transaction is there any solution.

Thanks and Regards,

Supreeth.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Kali Charan Nov 15, 2016 at 08:23 AM
-1

Is there any possibility to Create Enhancement point,After press the save button, and Check the tcode, then submit the program.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

If you'd looked at the source code of the report behind OB52, you'd know that there are no useful implicit or explicit enhancement points available for this transaction.

0
Matthew Billingham
Nov 15, 2016 at 08:47 AM
0

I considered the following, but they each have their own issues, so probably don't solve the requirement.

1. Create a report that runs OB52, then schedules your program. Give it a transaction, assign that transaction to users instead of OB52.

2. Repair the program behind OB52 so that it schedules your program after calling the VIEW_MAINTENANCE_CALL.

Next I looked at modifying the table maintenances of view V_T001B and V_T001B_COFIB from SE54. and adding an event that runs when the save button is pressed, but I saw that event 01 (Triggered before saving the data in the database) is already set. When that event is triggered, it runs form FAGL_REORG_TRACK_PERIOD of include L0F00F01, which in turn calls function module FAGL_R_WRITE_PERIOD_TRACK, I looked at where this FM is called, and it's only called from OB52, and from a report without transaction RFOB5200, which also closes periods.

Finally, my proposed solution then is to use the implicit enhancement point at the end of the function module, and there schedule your program (preferably by called immediately a static class method or a function module to do the actual scheduling).

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Nov 15, 2016 at 09:33 AM
0

Hi mathew,

thanks for reply but is there any way triggering using events by using standard transaction SM64?

Share
10 |10000 characters needed characters left characters exceeded
Kali Charan Nov 15, 2016 at 12:34 PM
0

Yes, Possible, you need to check it, Using Events Run background job, Lot of examples are there.

Share
10 |10000 characters needed characters left characters exceeded