cancel
Showing results for 
Search instead for 
Did you mean: 

SM37 - BATCH JOBS - Parent job status says FINISHED even when child job fails

0 Kudos
2,081

I am running Payment Run using the program RFKK_MA_SCHEDULER in a job. This parent job automatically triggers 3 different child jobs under it. The status of the parent job is marked as 'Finished' even when few of the child jobs (program SAPFKPY3) errors out. The parent job is in 'Active' status until the last child job is 'Active'. But even when the child job errors out, the parent job status gets updated as 'Finished', whereas I would expect the parent job status to say 'Canceled'. Have you faced this issue or something similar in parent-child job scenarios?

Accepted Solutions (0)

Answers (2)

Answers (2)

AmlanBanerjee
Active Contributor
0 Kudos

Hi Sankaralingam,

As per standard SAP, mass activity type PAYP (triggered during FPY1) is only used to monitor the child jobs for Payment run only and not the payment medium (SAPFKPY3).

The easiest way to achieve this is to split the FPY1 run in two parts from execution point of view-

(a) Using RFKK_MA_SCHEDULER to execute mass activity type PAYP to only cater the payment run, till the generation of the payment Documents.

(b) Create a Custom job and make it dependent on the above, where in you put the program SAPFKPY3 with the variants.

So then if the payment medium job fails, you will be able to see the custom job in cancelled state in SM37.

Thanks,

Amlan

0 Kudos

Thank you Amlan, this will address the requirement. However i was looking for simple solution, well, if there is any!

RonnyF
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Sankaralingam,

thank you for your question. In my opinion, the described situation is independent from the scheduled mass activity type. You complain about the status of job RFKK_MA_SCHEDULER which is finished also when a child job canceled. It's important to know that the job scheduler will wait until all child jobs finished, but the status will be finished every time when you start the report RFKK_MA_SCHEDULER via transaction se38 directly. In the program documentation you can read that the desired run status is only determined when you use the program in the Schedule Manager, transaction scma. In SAP note 607797 you'll find additional ways how you could schedule a mass activity run.

Best regards,
Ronny

Hi Ronny,

From what I hear, the program RFKK_MA_SCHEDULER only schedules the child jobs and waits for them to finish. Even when the child job(s) fail, the parent job RFKK_MA_SCHEDULER status will say 'Completed'. Yes, this is how SAP is behaving and sounds like that is the it is designed to behave!

So I have to look for other ways to monitor the child job status.

Thanks again for your help.

Hi Ronny,

Interestingly, we were able to handle it using Control-M (screenshot below) as it has the exact function for the given requirement and it has been working OK for us.


Note: I know it is an old thread, but updating just in case if it could be of help to someone else!

Cheers,

Sankar