10-06-2005 1:52 PM
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
10-07-2005 5:26 PM
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!