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: 

File not creating in AL11 wen executing in Background

rameshkumar_ramasamy2
Participant
0 Kudos
754

Hi,

I have written code to upload some data to Appln server(AL11). When i execute in foreground, file is creating. But wen i execute in background, i couldnt find that file in the path which i have given.

Since we cant debug the program in Background, i dont know whether OPEN DATASET returns SUBRC = 0 or not. I even checked with the Path thr AL11. The same path is accessible too..

Plz help me out for this.

Thanks,

Ramesh

2 REPLIES 2

Former Member
0 Kudos
340

Ramesh,

You can debug a background job.

go to sm37 and select the job and type /JDBG in the command prompt.

search in sdn on how to debug a background job

Thanks

Bala Duvvuri

VikrantSharma
Advisor
Advisor
0 Kudos
276

Your system has more than one application server. When you run the process in debug mode, the system generates the file on the same app server, and you can see it in AL11. But, in the background, it's dynamic. 

To check the file, open TCODE SM51, go to each app server, and check AL11. You will find the file in AL11 on one of the app servers.