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

Batch job does not work

huseyin_catalbas
Explorer
0 Likes
1,469

Hello everyone,

I have developed a batch input program for transaction ZLQ02 which is an exact copy of standart LQ02 transaction except that it is called with a variant. The program works fine when I run it through SE38 or with its ZXXX transaction code. However when i configure a job to run the program I cant get the same results. The job seems to have worked without a problem but no new posting change record is created. What can be the problem?

Thanks,

Hüseyin Çatalbaş

1 ACCEPTED SOLUTION
Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
1,373

Most likely there is some functionality in the program that requires GUI to be available or something specific to the batch run (check for sy-batch) and such. Also, just for the heck of it, check if standard LQ02 runs OK in the background. If it does, then something got messed up in the Z version.

5 REPLIES 5
Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
1,374

Most likely there is some functionality in the program that requires GUI to be available or something specific to the batch run (check for sy-batch) and such. Also, just for the heck of it, check if standard LQ02 runs OK in the background. If it does, then something got messed up in the Z version.

Read only

0 Likes
1,373

I have recently discovered that the transaction in my job is cancelled according to SM21 with the following messages.

SM21 initial screen....

11:37:42 BTC 15 310 SCALISKAN ZLQ0 D01 Transaction Canceled DB 000 ( )

11:37:42 BTC 15 310 SCALISKAN ZLQ0 D01 Transaction Canceled DB 000 ( )

SM21 Details screen

Recording at local and central time........................ 02.04.2008 11:37:42

Task................ 83983 . 15 Bf BTC background processor No. 15

User................ SCALISKAN

Client.............. 310

Terminal............

Session............. 1

Transaction code.... ZLQ02

Program name........ RLLQ0200

Problem class....... K SAP Web AS Problem

Development class... SDYN

SM21 says the problem class is K... but I cant understand how can it be related to SAP Web AS..

Any more ideas?

Thanks ,

Hüseyin Çatalbaş

Read only

0 Likes
1,373

Any messages in the log of the batch job?

Read only

0 Likes
1,373

No. background job log doesnt show any messages. I mean it is marked with green color as if no error occured.

Job overview from: 01.04.2008 at: : :

to: 02.04.2008 at: : :

Selected job names: *

Selected user names: XHCATALBAS

Scheduled Released Ready Active Complete Canceled

Event controlled Event ID:

ABAP program Program name :

Job Ln Job CreatedBy Status Start date Start time Duration(sec.) Delay (sec.)

ZWM617-5 XHCATALBAS Complete 01.04.2008 11:00:34 1 34

Read only

0 Likes
1,373

Keep Break points and analyse in debugger as to where it fails