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 issue

former_member184495
Active Contributor
0 Likes
1,088

Hi,

we have a strange problem occuring in PRD.

There is a batch job which has a variant attached with a Program.

The job places file on application server which goes to 3rd party.

Now the same job was running successfully couple of weeks back but since few days the file is generated on app-server but with 0 entries.

So we manually ran the program in background mode with same variant and it ran successfully with records.

We are not able to get to the root cause.

Inputs appreciated.

Thanks,

Aditya

9 REPLIES 9
Read only

arivazhagan_sivasamy
Active Contributor
0 Likes
1,016

Hi Aditya,

Check your variant.

If it's correct, have u created or changed application server for load balance purpose.

Please check.

Arivazhagan S

Read only

0 Likes
1,016

Hi AS,

could you please elaborate on your comment "application server for load balance purpose"

and what is the impact of this activity on batchjobs.

Thanks,

Aditya V

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,016

If you debug the already execute job via JDBG method does it work

Nabheet

Read only

Former Member
0 Likes
1,016

Please check if it is authorization issue with the user id of the person setting up Background job.

Read only

Former Member
0 Likes
1,016

Generally, production server has multiple application servers for load balancing. While scheduling a job, it is always better to give the instance name of the application server on which the background job should run.

Check SM36( First screen)-Exec. Target parameter. Here target system is the name of the application server where the job will run.

Read only

former_member184495
Active Contributor
0 Likes
1,016

Hi,

we checked 'authorization', 'variant', 'system/loca/ time' but still no luck.

Can RSTRANSP report be of help here? I didnt want to check it in the system.

Thanks,

Aditya V

Read only

kiran_k8
Active Contributor
0 Likes
1,016

Aditya,

As Sachin suggested check if the User Profile (User with which the job is scheduled) is changed in the recent days which is making the job fail to write the file on the app server.

SM37 >> Job Name >> click on STEP>>here you will get to see the User Name.

K.Kiran.

Read only

Former Member
0 Likes
1,016

Hi,

You said that the file gets generated when the program is run manually in background mode. So, it seems to be user authorization issue.

If possible, can you logon with the user id of the batch job user ( otherwise try with userid DDIC ) and then execute the report in background and check whether the file is getting generated or not.

Also check the os level file permissions for the folder in the application server.

-rwxr--xr--

Regards,

DPM

Read only

ThangaPrakash
Active Contributor
0 Likes
1,016

Hello Aditya,

1) Check inside the program is there any check on SY-BATCH (Program is running in the background), before data is passed to the file.

2) Run the program with the user id in which the job is scheduled, to check the authorization issue.

Regards,

Thanga