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: 

background job finish without execute

Former Member
0 Kudos

Hi,

I have abap program for read files from application server using open dataset and post data in fbcj .

I need this program to run auomatic everyday.

when make execute in background from SE38 it creates job with schedule daily.

when monitor job from SM37 in finishes after 3 sec .

check the import in  FBCJ t-code , I found no data imported from excel.

kindly help for solve this issue.

1 ACCEPTED SOLUTION

former_member253659
Discoverer
0 Kudos

Dear Mona,

Kindly check with 'JDBG' transaction after going to specific job log.

And it may be any authorization issue as well,Like your id has all the rights but jobman may not have,
Kindly check with Basis team.

Regards

Ravikant

13 REPLIES 13

rajkumarnarasimman
Active Contributor
0 Kudos

Hi Mona,

Kindly check whether any variant need to be assigned.

Kindly debug  the same program using Background option in SE38, which helps to find out the issue.

Regards

Rajkumar Narasimman

0 Kudos

yes I have variant assigned to program ,

when execute background and start immediate it works fine

but when schedule it doesn't import any data for FBCJ

0 Kudos

Hi Mona,

Kindly check whether the variant is assigned in background schedule(SM36).

Regards

Rajkumar Narasimman

0 Kudos

yes it is

Former Member
0 Kudos

Hi Mona,

No job logs?

What`s happen, if you debug the background job?

regards,

Archer

kiran_k8
Active Contributor
0 Kudos

Mona,

1.Go through the program and check the details of the file name and path.

2.Check if the path on the App server if having the file with the desired name and within the desired path and also check if the user name with which you are trying to schedule a job have authorisation to access files on App server.It is advisable to schedule job with SAP BATCH ID rather than individual User IDs.

3.Run the program in Q in foreground and understand the flow of execution.

4.What is the program or mechanism which is responsible for placing the file on the app server so that your program can read it for processing the data further.

5.If you want the job to be scheduled at regular intervals or on a specific day of the week or at a specific time then configure the job in SM36 after creating a variant with the option as "only for background processing" and "protect variant".

K.Kiran.

ipravir
Active Contributor
0 Kudos

Hi Mona,

Check you background job is working fine or not.

1. Goto SM37

2. Select any of the finished job.

3. JDBG enter in T-code area.

4. It will take you a debugging mode of your program to check.

Validate your program in debugging and check the data if fetching correctly or not from AS.

Regards,

Praveer.

Former Member
0 Kudos

it works great in debug , I didn't find any errors stop the job.

also when make job execute immediately it works !

still wondering why the job didn't import data in schedule mode ?

0 Kudos

See, whether the steps explained in my post here, give some clues to your issue. (Different program but steps apply to others).

Regards

KJogeswaraRao

Former Member
0 Kudos

this is exactly what I did , but still the job didn't work automatic :S

any advice ?

0 Kudos

Logically background job does not do anything special. If your call is not trigger here means it will not trigger during manual IP30 run also. You need to investigate first what's wrong there.

Former Member
0 Kudos

can you explain in details ? I don't know what I should do for investigate the problem

former_member253659
Discoverer
0 Kudos

Dear Mona,

Kindly check with 'JDBG' transaction after going to specific job log.

And it may be any authorization issue as well,Like your id has all the rights but jobman may not have,
Kindly check with Basis team.

Regards

Ravikant