cancel
Showing results for 
Search instead for 
Did you mean: 

Asynchronous RFC call from R/3

Former Member
0 Kudos

I need to make an asynchronous RFC call from R/3. I receive an error message in R/3 stating that my RFC destination can only be of type I (Internal) or type 3 (R/3 system). In order for it to reach XI I need it to be of type T (TCP/IP). Any help would be appreciated.

Here is the function call.

CALL FUNCTION 'Z_B2B_R3_FUNCTIONAL_ACK' starting new task 'SESSION1'

destination 'RFC2XMBSERVICE'

EXPORTING

MSG_TYPE = msg_type

ORDER_HEADER_RETURN = order_header_return

TABLES

RETURNCODE = i_return.

the RFC desitnation RFC2XMBSERVICE is of type TCP/IP which by default makes it synchronous.

Thanks,

Jim

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi,

have you tried:

CALL FUNCTION 'Z_B2B_R3_FUNCTIONAL_ACK'

in background task

destination 'RFC2XMBSERVICE'

EXPORTING

MSG_TYPE = msg_type

ORDER_HEADER_RETURN = order_header_return

TABLES

RETURNCODE = i_return.

commit work.

Regards,

michal

Former Member
0 Kudos

Worked like a charm. Thanks.

MichalKrawczyk
Active Contributor
0 Kudos

no problem:)

Regards,

michal

Answers (0)