Skip to Content
avatar image
Former Member

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

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • 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.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 15, 2016 at 08:47 AM

    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).

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 15, 2016 at 09:33 AM

    Hi mathew,

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

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 15, 2016 at 12:34 PM

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

    Add comment
    10|10000 characters needed characters exceeded