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

ABAP Program running in Background takes more time using BATCHID

balajishahrsap
Participant
0 Likes
1,120

Hi Everyone,

We have written a custom program for Activating, Assigning tech object and update dates for contracts.

We have scheduled a single background job with 6 different programs and the above stated program comes in as 4th step.

and the time spent on that particular step is around 5K seconds, but when we try to execute that single program alone in background it takes only 1 to 1.5 K seconds. Even we tried to de-bug the background jobs, enabled trace(ST12 & ST05) but unable to spot on what is causing the delay.

Currently the job class is 'C' and we are planning to change this to 'A'.

kindly let us know for any suggestions on this issue.

BR

Balaji

Hi Everyone,

We have written a custom program for Activating, Assigning tech object and update dates for contracts.

We have scheduled a single background job with 6 different programs and the above stated program comes in as 4th step.

and the time spent on that particular step is around 5K seconds, but when we try to execute that single program alone in background it takes only 1 to 1.5 K seconds. Even we tried to de-bug the background jobs, enabled trace(ST12 & ST05) but unable to spot on what is causing the delay.

Currently the job class is 'C' and we are planning to change this to 'A'.

kindly let us know for any suggestions on this issue.

BR

Balaji

3 REPLIES 3
Read only

Sandra_Rossi
Active Contributor
0 Likes
943

You should have collected clues by using ST12 (abap runtime and SQL). Is it the same amount of data processed? As the job was around 4 times slower, did all of the program routines run exactly 4 times slower, or did you notice one or more spending more time?

If you change the job class, then I guess you suspect there were workprocesses used by other programs at the same time, so ask the admins to investigate the overall load.

Edit : I didn't understand why you're talking about "BATCHID".

Read only

0 Likes
943

Hi Sandra,

Thanks for your reply.

Here we are considering only one program which comes at 4th step and it is only taking more time & rest of the programs are getting executed within considerable time.

The job(6 different programs) is executed by the BAtch id( user type - C) and i tried to execute that 4th step program alone in background using my user id( user type - S ).

Through ST12 we were able to capture only statements which has Net calculation under 1 %.

Regards,

Balajisha

Read only

0 Likes
943

The performance issue cannot be related to the type of user.

You may only determine what happens by analyzing the trace and the global system load (free workprocesses, %cpu). This is a shared work between ABAP developers and administrators.

Without further information, I give up.