cancel
Showing results for 
Search instead for 
Did you mean: 

How to call Asynchronous RFC

Former Member
0 Kudos

Hi Everybody,

Could yo pls guide me on how to implement asynchronous RFC. When i run my RFC using Report :

CALL FUNCTION 'Z_HR_NO_ALTINN_TX' DESTINATION 'Q3A2X7A'starting new task 'test'

exporting

PASSWORD = 's'.

I get the error saying :

<b>What happened?</b>

When executing the asynchronous RFC, the RFC destination "Q3A2X7A" had

neither an internal (connection type 'I') nor an R/3 communication

type (connection type '3'.

Error in ABAP application program.

The current ABAP program "Z_ALTINN_TEST" had to be terminated because one of

the

statements could not be executed.

This is probably due to an error in the ABAP program.

<b>Error analysis</b>

A typical cause of error is the

execution of external programs (RFC destinations of the type

TCP/IP) via asynchronous Remote Function Call (RFCs with the

addition 'STARTING NEW TASK taskname').

RFC destination... "Q3A2X7A"

I would like to know if async RFC call is possible to XI.

Regards,

Raj

Accepted Solutions (1)

Accepted Solutions (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Ashish,

>> would like to know if async RFC call is possible to XI.

It is possible.

Regards,

Bhavesh

Former Member
0 Kudos

Thanks for your answer Bhavesh. Could you pls elaborate on how to implement it?

Raj

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

you need to call the RFC from ERP, R3

with

call function XXXXX

<b>in background</b>

and Commit work.

Regards,

michal

Former Member
0 Kudos

Hi,

Run the report in background and dont forget to use commit as michal said. Even we faced a similar situation which was solved by running the report in background. Have you created a TCP/IP connection to the XI server in R/3 and tested the connection ?

Thanks and Regards,

Sudheer.

Former Member
0 Kudos

Thanks a lot guys now the report is running fine.

By the way what does the commit work command do.

Also why does the RFC give error when run directly.

Regards,

Ashish

Former Member
0 Kudos

Hi,

Because an RFC is synchronous one it expects the response from the receiver so once we run with the above said command we are converting it to an asynchronous one. The commit statement is normal to the one which we use in any other query language. It commits the changes done in the database.

Thanks ans regards,

Sudheer.

Answers (0)