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.

REMOTE FUNCTION CALL (RFC)<br />

SAP system A<br />

ABAP/4 program<br />

...<br />

CALL FUNCTION 'FUNC'<br />

DESTINATION 'DEST'<br />

EXPORTING<br />

IMPORTING<br />

CHANGING<br />

TABLES<br />

EXCEPTIONS<br />

COMMUNICATION_FAILURE = 1<br />

SYSTEM_FAILURE = 2<br />

...<br />

© SAP AG<br />

f1 = a1<br />

f2 = a2<br />

f3 = a3<br />

t1 = tab<br />

SAP system B<br />

ABAP/4 function module<br />

FUNCTION FUNC.<br />

...<br />

ENDFUNCTION.<br />

External program<br />

C routine<br />

Function modules can also be called by remote systems if the function module is designed for RFC.<br />

If SAP R/2 or R/3 is the RFC server system, the function module name is FUNC. If a C program is the<br />

RFC server program, FUNC is the name of a function installed previously with RFC API.<br />

DEST is the symbolic destination of the partner system. The destination must be defined in the table<br />

RFCDES.<br />

You can use the EXPORTING and IMPORTING parameters to pass and receive field or field string<br />

values.<br />

With CHANGING, you can pass values of fields or field strings to or from the function module.<br />

With TABLES, you can pass references to internal tables. Table parameters should have homogenous<br />

data types.<br />

All interface parameters must refer to Dictionary reference structures (unlike local calls to function<br />

modules).<br />

You use the EXCEPTIONS parameter to specify the exceptions the calling program is to handle itself.<br />

...

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

Saved successfully!

Ooh no, something went wrong!