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: 

Finance Background JOB's - Steps Issue

sachin_thombre
Participant
0 Kudos

Hello All,

Need some advise.

We have created a "Z" Program which does clearing of Accounting Docs.

Now - We have created around 10 background JOB's for this program, and each JOB has around 18 Steps (this are 18 different variants) within a JOB.

Issue: Step1 - When it runs and system does not find any data, then error msg comes "No data found", [this is expected], but Step2 will not run because Step1 failed.

When I reached to our background JOB scheduling team & basis team, they said functional consultant need to do something here, they cannot do anything. My Request to them was - if step1 fails system should still go ahead with step2.

Can you please advice me how to i resolve this issue.

1 ACCEPTED SOLUTION

DoanManhQuynh
Active Contributor
0 Kudos

Is that required to raise an error message in step 1? if not, you should ask your abaper to change the message when no data found from error to success and display like error.

7 REPLIES 7

0 Kudos

Hi Sachin,

I would recommend using separate jobs that would start sequentially, irrespectably of the status of the previous job.

You should be able to achieve this by using, in execution conditions, the "after job" option, identifying the previous job.

Hope this helps.

Regards,

Filipe

0 Kudos

Hello Filipe,

Thanks for your reply.

We have 18 Steps defined in 1 JOB, due to nature of program been used for multiple purpose (18 Stores) !!!

It is not recommended by my client to use different JOBs.

With the only options that I have for 18 Steps - How to achieve my request - "if step1 fails system should still go ahead with step2.


Thanks,

Sachin

DoanManhQuynh
Active Contributor
0 Kudos

Is that required to raise an error message in step 1? if not, you should ask your abaper to change the message when no data found from error to success and display like error.

0 Kudos

It is NOT required to raise error msg.

When there is NO data, system should throw just message "NO data".

So - If I change from error to info message, then step will run without any interruption right?

Thanks,

Sachin.

0 Kudos

if your program counted it as error and raise error message ( message type E) then ofcouse your job will stop. with message type S or W, it will keep running. and if you want to display it like error message in job log, you add DISPLAY LIKE 'E'. try and check it out.

0 Kudos

Hi Sachin,

Sorry, I'm afraid I'm out of suggestions...


Regards,

Filipe

matt
Active Contributor
0 Kudos

Write a program that calls each of your 18 programs in turn, via CALL FUNCTION STARTING NEW TASK. Then submit that program to run in background. You could control which programs are run using a custom table.