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

RFC Connection Failed during Batch job

Former Member
0 Likes
1,650

Hello Expert's.

I am facing the strange problem. When am executing the Z' program through foreground its working fine and if am executing the program through batch job , the RFC giving exception . and the batch job gets cancelled.

Kindly provide me the inputs to resolve the issue.

Thanks in Advance

8 REPLIES 8
Read only

Former Member
0 Likes
1,164

Is your program trying to write a file on to the application server?

Give the complete description of your error message...

Thanks

Read only

former_member404244
Active Contributor
0 Likes
1,164

Hi,

U can debug the program and check where it has failed..

GOTO SE37->Specify ur job name->execute->now select the check box of ur job, now in the command box specify JDBG ..before taht put a brak-point in ur program..

P.S->The status of the job must be in finished status..

Regards,

Nagaraj

Read only

0 Likes
1,164

The RFC error is due to "time out " . Is any way to avoid this time out issue.

Thanks in Advance

Read only

0 Likes
1,164

where exactly is the code going into TIMEOUT? can u plzz paste ur source exact from the dump here....

Read only

0 Likes
1,164

Hello Experts

Please tell me how to call the RFC in background mode ..please provide me sample code..

Read only

0 Likes
1,164

hi,

CALL FUNCTION func IN BACKGROUND TASK.

Transactional RFC before release 7.0

1. CALL FUNCTION func IN BACKGROUND TASK

DESTINATION dest

parameter_list

AS SEPARATE UNIT.

Transactional RFC as of release 7.0

2. CALL FUNCTION func IN BACKGROUND UNIT

parameter_list.

otherwise

Create a report and call the function module.

The schedule that report in backgroud in SM37.

check this link

Read only

0 Likes
1,164

Hi Priya ,

Thanks for your reply . Can you please tell me about parameter_list , what i need to define ?

Read only

Former Member
0 Likes
1,164

Resolved. Thanks all for your inputs