17.08.2013 Views

Data Interfaces

Data Interfaces

Data Interfaces

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

tRFC: Tables and Scheduling<br />

ABAP/4 progam<br />

CALL FUNCTION ...<br />

IN BACKGROUND TASK<br />

EXPORTING ...<br />

TABLES ...<br />

CALL FUNCTION ...<br />

IN BACKGROUND TASK<br />

EXPORTING ...<br />

TABLES ...<br />

COMMIT WORK.<br />

Transaction<br />

SM58<br />

© SAP AG<br />

ARFCSSTATE<br />

Transactional RFC Log file<br />

ARFCSDATA<br />

DB<br />

Caller FM Target system Date Time Status<br />

PAUL xyz R3B 06.07.95 14.00 --<br />

By using CALL FUNCTION ... IN BACKGROUND TASK, you store the called data in internal<br />

tables.<br />

COMMIT WORK stores the context data of the function calls in the database (general data such as the<br />

name of the function module in table ARFCSSTATE; concrete data passed with CALL in table<br />

ARFCSDATA). Then, the send job is scheduled.<br />

The send job reads the database tables ARFCSSTATE and ARFCSDATA and tries to set up a<br />

connection to the partner system. If an error occurs, the send job is re-scheduled.<br />

You can analyze the log file with Transaction SM58. This allows you to display and edit function calls<br />

that have not yet been executed.<br />

If you want to send an LUW later, you can specify this event by calling the function module<br />

START_OF_BACKGROUNDTASK before COMMIT WORK.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!