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

Automatic Batch session execution failed through job

Former Member
0 Likes
1,232

Hello All,

I have defined a background job. In the variant of my program i have a checkbox of executing the session automatically. The checkbox is checked and the job has been run.

The session has been created and the session was not executed automatically.

Can anybody help me in this issue why it happened like this.

Thanks

12 REPLIES 12
Read only

Former Member
0 Likes
1,212

HI,

Did you use the program RSBDCSUB to execute the session. in your program

Read only

0 Likes
1,212

Hello Avinash,

Yes i have used the program RSBDCSUB.

The job which is created is running from a long time with the automatic session execution.

For the first time i have got this type of situation without being executed the session automatically.

Thanks

Read only

0 Likes
1,212

Hi,

RSBDCSUB executes the session automatically.... hence forth if you try commenting the line where you have called this program I believe you will meet with the requirement.

Regards,

Siddarth

Read only

0 Likes
1,212

Hello Siddharth,

Previously it was working fine and i have not made any changes.

Suddenly for one case it did not process the session automatically.

Again the job was run and the session was executed automatically.

Is the reason due to no time lap of all jobs executed.

Thanks

Read only

0 Likes
1,212

Hi,

In the code where exactly you have given a call to RSBDCSUB program,

could you please paste the code here so that its better for analyzing

Regards,

Siddarth

Read only

0 Likes
1,212

Hello Siddharth,

Below is the code:-

IF p_execut EQ 'X'.

LOOP AT it_session INTO wa_session.

SUBMIT rsbdcsub AND RETURN

WITH mappe EQ wa_session-name

WITH von EQ sy-datum

WITH bis EQ sy-datum

WITH fehler EQ space

EXPORTING LIST TO MEMORY.

ENDLOOP.

ENDIF.

Read only

0 Likes
1,212

Are you facing the problem very frequently...

Read only

0 Likes
1,212

hi in Job_close FM there is a parameter STRTIMMED (Immediate Execution of Background Job) by default its Space...

Read only

0 Likes
1,212

Hello Siddharth,

This is the first time i faced this problem.

Thanks

Read only

Former Member
0 Likes
1,212

Some times this kind of problems may occur if there are more than one server for load balancing. Compare the 'Executing server' of the job which did not worked properly and the other which worked fine. You can find the server name from 'Job details' button.

Thanks.

Read only

0 Likes
1,212

Hello Swapna,

I have compared the executing servers of both the jobs.

The executing server was the same for both jobs.

Thanks

Read only

0 Likes
1,212

Hello Swapna,

For the failure of the automatic execution of session. In the job log i didnot receive the information as:- 1 session(s) transferred to background processing.

For succesful jobs i have received the information in the job log as :- 1 session(s) transferred to background processing.

Can you help me in this issue that what is the differnce in both of the job log information.

Thanks