cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Back ground Jobs getting cancel automatically

Former Member
0 Kudos

Hi All,

All schedule Background jobs getting cancel automatically in ECC 5 server. Also not getting any job log in respective schedule job. please help me out with expert suggestions.

Regards

Gyan

Accepted Solutions (1)

Accepted Solutions (1)

former_member227283
Active Contributor
0 Kudos

Hi Gyan,

Also check the below

Login to your OS of application sever.

goto <drive>\usr\sap\<SID>\DVEBMG<00>\SYS\global

check whether folder <client no>JOBLG exits there

if folder not exits , then also yoiur job get fail.

Thanks

Anil

Former Member
0 Kudos

Hi Anil ,

Thanks a lot, problem resolved . Mentioned folder was corrupted once new folder with same name created Bg start working.

i am really very thankful to you and all SDN users for this help.

Regards

Gyan

former_member309601
Participant
0 Kudos

Hi, I had same problem , and I can resolve with log directory of jobs, like you indicate.

Thanks.

Answers (3)

Answers (3)

former_member227283
Active Contributor
0 Kudos

Hi Gyan,

First try to delete all the old sool which is not in use.

You can delete the spool using the report :- RSPO1041

After deleting the spool try again & let us know the status.

Thanks

Anil

Former Member
0 Kudos

Hi Anil,

i did this report run also clean inconsistency in SPAD , but still job getting cancel and not creating any logs against any canceled job.

Regards

Gyan

anindya_bose
Active Contributor
0 Kudos

Hi Gyan

Could you please check if you have any log in SM21 before the jobs are getting cancelled.

Could you please let us know the value of two Oracle Parameter PROCESSES & SESSIONS ?

Additionally you can have a look at OSS https://service.sap.com/sap/support/notes/398927

former_member227283
Active Contributor
0 Kudos

Hi Gyan,

Which is your OS platform .. windows , solairs ......etc

Thanks

Anil

Former Member
0 Kudos

Hi Anil,

windows 2003 OS is in use.

Regards

Gyan

former_member198270
Active Contributor
0 Kudos

Hello Gyan, Could you send us job log or ABAP dump so that we can further comment on this.

Also check if you have available background WP's in that server.

Regards, Amber S

Former Member
0 Kudos

Hello,

1)Are the bgd workprocess free in the system currently?Check if there are any long running jobs holding them.

2)Check for the sm21/sm50 bgd wp traces.

3)Check if the filesystem is full as you suggest no logs are being written.

4)Check if the user who has scheduled the job is locked ?

thanks,

Prasanna

Former Member
0 Kudos

1)Are the bgd workprocess free in the system currently?Check if there are any long running jobs holding them.

Bgd Work process are free but with error code 373,223,007 etc for all 5 bg wp

error reports from work directory as per work process:---

wp 22 :Fri Sep 25 15:07:04 2009

A

A ABAP/4 Program SAPLSYDB .

A Source LSYDBU27 Line 7.

A Error Code DBIF_DSQL2_DEFAULT_CR_ERROR.

A Module $Id: //bas/640_REL/src/krn/runt/abexsql.c#5 $ SAP.

A Function DsqlErrorHandler Line 1986.

A COMMIT/ROLLBACK error on "DEFAULT" database connection..

A

M ***LOG R68=> ThIRollBack, roll back () [thxxhead.c 12289]

C Rollback Work (0)

M *** ERROR => ThCallHooks: event handler rsts_before_commit for event BEFORE_COMMIT failed [thxxtool3.c 252]

B ComRolHook(BEFORE_COMMIT, free_all) failed

B db_con_commit received an error return code in before-commit action

M ***LOG R38=> ThICommit3, db_commit98 ( 001024) [thxxhead.c 12036]

WP23: Fri Sep 25 15:06:05 2009

B dbtran INFO (init_connection '<DEFAULT>' [MSSQL:640.00]):

B max_blocking_factor = 50, max_in_blocking_factor = 255,

B min_blocking_factor = 5, min_in_blocking_factor = 10,

B prefer_union_all = 1, prefer_union_for_select_all = 0,

B prefer_fix_blocking = 0, prefer_in_itab_opt = 0,

B convert AVG = 1, alias table FUPD = 0,

B escape_as_literal = 0, opt GE LE to BETWEEN = 0,

B select * =0x00, character encoding = STD / []:X,

B use_hints = abap->1, dbif->0x1, upto->0, rule_in->0,

B rule_fae->0, concat_fae->0, concat_fae_or->0

M ***LOG R68=> ThIRollBack, roll back () [thxxhead.c 12289]

C Rollback Work (0)

M *** ERROR => ThCallHooks: event handler rsts_before_commit for event BEFORE_COMMIT failed [thxxtool3.c 252]

B ComRolHook(BEFORE_COMMIT, free_all) failed

B db_con_commit received an error return code in before-commit action

M ***LOG R38=> ThICommit3, db_commit98 ( 001024) [thxxhead.c 12036]

wp 24:Fri Sep 25 14:33:10 2009

M *** ERROR => ThCallHooks: event handler rsts_before_commit for event BEFORE_COMMIT failed [thxxtool3.c 252]

B ComRolHook(BEFORE_COMMIT, free_all) failed

B db_con_commit received an error return code in before-commit action

B ***LOG BZY=> unexpected return code 32768 calling DBACDS [dbacds#2 @ 1225] [dbacds 1225 ]

B

*WP25: *** ERROR => BtcCleanUp: BtcLgAp-call failed (rc = 4) [btcjcntl.c 1308]*

M ThCallHooks: call hook >ITSP: EndOfSession< for event BEFORE_SESSION_CANCEL

M ThCallHooks: call hook >RtmClearSession< for event BEFORE_SESSION_CANCEL

M ThCallHooks: call hook >HttpClearSession< for event BEFORE_SESSION_CANCEL

M ThCallHooks: call hook >SpoolHandleHook< for event BEFORE_SESSION_CANCEL

M ***LOG R47=> ThResFree, delete (001009) [thxxmode.c 1284]

M ThCallHooks: call hook >ASTAT-collect commit handling< for event BEFORE_COMMIT

M ThCallHooks: call hook >rsts_before_commit< for event BEFORE_COMMIT

M ThCallHooks: call hook >rsts_after_commit< for event AFTER_COMMIT

M ThCallHooks: call hook >ThNoClearPrevErr< for event AFTER_COMMIT

M ThCallHooks: call hook >SpoolHandleHook< for event AFTER_COMMIT

M ThCallHooks: call hook >SAP-Trace buffer write< for event BEFORE_TASK_SWITCH

M ThCallHooks: call hook >ImcResetPtr< for event BEFORE_TASK_SWITCH

M ThCallHooks: call hook >DbgBeforeTaskSwitch< for event BEFORE_TASK_SWITCH

M ThCallHooks: call hook >HttpResetPtr< for event BEFORE_TASK_SWITCH

B

B Fri Sep 25 14:47:04 2009

B Disconnected from connection con_da={R/3*WORKFLOWTRACE,26000006,1}

please let me know where i can send log file if req.

2)Check for the sm21/sm50 bgd wp traces.

Getting so may Tem se management errors.

Some TemSe objects are stored in files. To do this, a path name is set up from the TemSe object name. To be able to use this path, TemSe management requires a directory. It attempted to create it itself. However, this did not succeed.

3)Check if the filesystem is full as you suggest no logs are being written.

File system having free space

4)Check if the user who has scheduled the job is locked ?

user unlocked

please help me to resolv this issue.

thanks

Gyan

Edited by: Gyan Prakash on Oct 9, 2009 10:02 AM

Former Member
0 Kudos

Hi ,

You may check with running report BTCTRNS2.

Even if this doesnot reolve your issue.Please restart your system once so that all your buffer will be cleraed & your jobs will start as usual again.

Thanks..

Mohit

Former Member
0 Kudos

Hi Mohit,

There are no jobs suspended . Server restart so many time . issue is not with buffer .

regards

Gyan

JPReyes
Active Contributor
0 Kudos

Can you please post the cancelled job logs?... error above is very generic.

Regards

Juan

Former Member
0 Kudos

Hi Juan,

Job logs also not creating. is any other details you want me to post , please notify.

Regards

Gyan

JPReyes
Active Contributor
0 Kudos

Can you do a consistency check in TEMSE SP12?

Regards

Juan

Former Member
0 Kudos

Hi Juan,

TemSe: Data Consistency Check

Consistency check of table TST01 / TemSe objects 1

System PRO 09.10.2009 10:42:48

D Cln TemSe object name Part Comment

100 JOBLGX00003100X10350 1 Object reset Length = 0

100 JOBLGX00003100X57206 1 Object reset Length = 0

100 JOBLGX00033000X92792 1 Object reset Length = 0

100 JOBLGX00043000X29161 1 Object reset Length = 0

100 JOBLGX00043000X63235 1 Object reset Length = 0

100 JOBLGX00063000X71562 1 Object reset Length = 0

100 JOBLGX00073000X03331 1 Object reset Length = 0

100 JOBLGX00093000X46286 1 Object reset Length = 0

100 JOBLGX00123000X75117 1 Object reset Length = 0

100 JOBLGX00153000X03594 1 Object reset Length = 0

100 JOBLGX00183000X67065 1 Object reset Length = 0

2.319 TemSe objects were checked

TemSe: Data Consistency Check

Consistency check of table TST03 / TemSe data

System PRO 09.10.2009 10:42:52

1.434 TemSe data rows were checked

TST03 is OK

Regards

Gyan

JPReyes
Active Contributor
0 Kudos

Delete the inconsistencies... and try to run one of the jobs manually and let me know if it works and if it doesn't check if it does produce a log.

Regards

Juan

Former Member
0 Kudos

Hi Juan,

Job is still getting cancel and not produce any log .

Regards

Gyan

JPReyes
Active Contributor
0 Kudos

Can you post the errors on dev_w* again? also check SM21 for errors and post them here

Regards

Juan

Former Member
0 Kudos

Dev_W23 log:

Fri Oct 09 15:33:54 2009

M *** ERROR => ThCallHooks: event handler rsts_before_commit for event BEFORE_COMMIT failed [thxxtool3.c 252]

B ComRolHook(BEFORE_COMMIT, free_all) failed

B db_con_commit received an error return code in before-commit action

A TH VERBOSE LEVEL FULL

M ***LOG R68=> ThIRollBack, roll back () [thxxhead.c 12289]

C Rollback Work (0)

M *** ERROR => ThCallHooks: event handler rsts_before_commit for event BEFORE_COMMIT failed [thxxtool3.c 252]

B ComRolHook(BEFORE_COMMIT, free_all) failed

B db_con_commit received an error return code in before-commit action

M ***LOG R38=> ThICommit3, db_commit98 ( 001024) [thxxhead.c 12036]

M

M Fri Oct 09 15:33:55 2009

M *** ERROR => ThCallHooks: event handler rsts_before_commit for event BEFORE_COMMIT failed [thxxtool3.c 252]

B ComRolHook(BEFORE_COMMIT, free_all) failed

B db_con_commit received an error return code in before-commit action

A Fri Oct 09 15:33:55 2009

A

A ABAP/4 Program SAPLARFC .

A Source LARFCF06 Line 11.

A Error Code DBIF_DSQL2_DEFAULT_CR_ERROR.

A Module $Id: //bas/640_REL/src/krn/runt/abexsql.c#5 $ SAP.

A Function DsqlErrorHandler Line 1986.

A COMMIT/ROLLBACK error on "DEFAULT" database connection..

A

M ***LOG R68=> ThIRollBack, roll back () [thxxhead.c 12289]

C Rollback Work (0)

M *** ERROR => ThCallHooks: event handler rsts_before_commit for event BEFORE_COMMIT failed [thxxtool3.c 252]

B ComRolHook(BEFORE_COMMIT, free_all) failed

B db_con_commit received an error return code in before-commit action

M ***LOG R38=> ThICommit3, db_commit98 ( 001024) [thxxhead.c 12036]

S *** ERROR => missing close of spool request [rspoooh.c 1167]

SM 21 details:--

15:33:54 BTC 023 100 ABHATTA F61 TemSe input/output to unopened file

15:33:54 BTC 023 100 ABHATTA R68 Perform rollback

15:33:54 BTC 023 100 ABHATTA F61 TemSe input/output to unopened file

15:33:54 BTC 023 100 ABHATTA R38 Error at DB commit, return code 001024

15:33:54 BTC 023 100 ABHATTA AB0 Run-time error "DBIF_DSQL2_DEFAULT_CR_ERROR" occurred

15:33:55 BTC 023 100 ABHATTA F61 TemSe input/output to unopened file

15:33:55 BTC 023 100 ABHATTA AB1 > Short dump "091009 153354 server2 ABHATTA " generated

15:33:55 BTC 023 100 ABHATTA D01 Transaction Canceled 00 671 ( DBIF_DSQL2_DEFAULT_CR_ERROR 20091009153354server2 ABHATTA 1001 )

15:33:55 BTC 023 100 ABHATTA R68 Perform rollback

15:33:55 BTC 023 100 ABHATTA F61 TemSe input/output to unopened file

15:33:55 BTC 023 100 ABHATTA R38 Error at DB commit, return code 001024

15:33:55 BTC 023 100 ABHATTA F61 TemSe input/output to unopened file

Reading:

Number of records read......... 2870

Number of records selected..... 1435

Old records skipped............ 1435

Further selection:

Number of records read......... 1435

Number of records selected..... 780

Parameter records suppressed... 655

Number of records printed...... 780

End of system log

System Log: Local Analysis of server2

C o n t e n t s

Contents Page Start End

Selection criteria 1

2 09.10.2009 14:00:30 - 15:40:47

Contents 3

JPReyes
Active Contributor
0 Kudos

Read SAP Note 1274928 - Transactional consistency check for bgRFC

Regards

Juan

Former Member
0 Kudos

Hi Juan,

This Note does not meet with my server patch no. , its ECC 5.0 with basis SAP_BASIS 640 0021 SAPKB64021 SAP Basis Component, however note is for BASIS 7.0

please let me know if any note which related with my server config.

Regards

Gyan