Application Development 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: 

Transactional RFC

Former Member
0 Kudos

Hello,

I am trying to make a transactional RFC call.

CALL FUNCTION 'ZBAPI_SET_DATE'

IN BACKGROUND TASK

destination l_dest.

CALL FUNCTION 'ID_OF_BACKGROUNDTASK' IMPORTING TID = w_tid.

I get the task id of the RFC call and when I try to look it up in the table 'ARFCSSTATE', I dont find an corresponding entry.

The RFC call is also not made and the data not updated in the remote system.

Praveen

1 REPLY 1

former_member225448
Participant
0 Kudos

Hi Praveen,

you forgot to export the parameter DEST.

Pls. check the inteface of the FM:

FUNCTION ID_OF_BACKGROUNDTASK.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*"  IMPORTING
*"     VALUE(DEST) LIKE  RFCDES-RFCDEST DEFAULT SPACE
*"  EXPORTING
*"     VALUE(TID) LIKE  ARFCTID STRUCTURE  ARFCTID
*"     VALUE(FNUM) LIKE  QRETSTATE-QRFNUM
*"----------------------------------------------------------------------

So you are asking for the TID of destination SPACE.

Regards,

Juergen

P.S.: Pls. post Reward Points if you find this answer usefull! Thanks!