cancel
Showing results for 
Search instead for 
Did you mean: 

call function IN BACKGROUND TASK don't work

Former Member
0 Kudos

Hello,

I've a interface RFC to JDBC asyncronous.

When i call function in R3 (IN BACKGROUND TASK), sy-subrc = 0, however i don't see any message in SXMB_MONI and runtime workbench.

The CC sender (for RFC) is OK,

what happen?

thanks very much

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

See my reply above... remember unless you give RFC destination the data will not reach XI.

Regards,

Siddhesh S.Tawate

former_member181962
Active Contributor
0 Kudos

Have this code after your call function:

CALL FUNCTION 'START_OF_BACKGROUNDTASK' 
     EXPORTING 
          STARTDATE = SY-DATUM 
          STARTTIME = TIME 
     EXCEPTIONS 
          OTHERS    = 1. 

IF SY-SUBRC = 1. 
  EXIT. 
ENDIF. 

COMMIT WORK.

Also, if you want to call your RFC function module in async mode, you can try

Call function '<fm name>' in update task....

Regards,

Ravi Kanth Talagana

Former Member
0 Kudos

It's necesary do

bapi_transaction_commit after call in background task

Former Member
0 Kudos

Hi,

Did you specify the destination while calling your RFC.

Call Function <> destination <RFC destination> in background task.

Regards,

Siddhesh S.Tawate