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: 

Synchronous and Asynchronus calls

Former Member
0 Kudos

HI

What exactly does Synchronous and Asynchronus calls mean in RFC and how does it effect. Whats the T-Code for specifing the call type.

Shejal.

1 ACCEPTED SOLUTION

former_member181966
Active Contributor
0 Kudos

Synchronous RFC (CALL FUNCTION-DESTINATION)

Syntax

CALL FUNCTION func DESTINATION dest parameter list.

Effect

Synchronous call of a remote-capable function module specified in func using the RFC interface. With the addition DESTINATION, the destination is specified in dest. Character-type data objects are expected for func and dest. The calling program is continued using the statement CALL FUNCTION, if the remotely called function has finished.

CALL FUNCTION - DESTINATION parameter list

Syntax

...

[EXCEPTIONS exc1 = n1 exc2 = n2 ...

].

Effect

These additions are used to assign actual parameters to the formal parameters of the function module, and return values to exceptions that are not class-based. The additions have the same meanings as for the general function module call, the only differences being that, with the addition TABLES, only tables with flat character types can be transferred, and that if a header line exists, it is not transferred. The additions EXPORTING, IMPORTING and CHANGING allow you to transfer tables that have deep character types, deep structures, and strings.

For EXCEPTIONS, you can also specify an optional addition MESSAGE for the special exceptions SYSTEM_FAILURE and COMMUNICATION_FAILURE. If one of these exceptions occurs, the first line of the corresponding short dump is entered in the field mess, which must be flat and of character-type.

Transferring tables using the addition TABLES is considerably faster than using the other additions, since a binary format is used internally instead of an XML format.

Good luck

Thanks

Saquib Khan

"Some are wise and some are otherwise"

2 REPLIES 2

former_member181966
Active Contributor
0 Kudos

Synchronous RFC (CALL FUNCTION-DESTINATION)

Syntax

CALL FUNCTION func DESTINATION dest parameter list.

Effect

Synchronous call of a remote-capable function module specified in func using the RFC interface. With the addition DESTINATION, the destination is specified in dest. Character-type data objects are expected for func and dest. The calling program is continued using the statement CALL FUNCTION, if the remotely called function has finished.

CALL FUNCTION - DESTINATION parameter list

Syntax

...

[EXCEPTIONS exc1 = n1 exc2 = n2 ...

].

Effect

These additions are used to assign actual parameters to the formal parameters of the function module, and return values to exceptions that are not class-based. The additions have the same meanings as for the general function module call, the only differences being that, with the addition TABLES, only tables with flat character types can be transferred, and that if a header line exists, it is not transferred. The additions EXPORTING, IMPORTING and CHANGING allow you to transfer tables that have deep character types, deep structures, and strings.

For EXCEPTIONS, you can also specify an optional addition MESSAGE for the special exceptions SYSTEM_FAILURE and COMMUNICATION_FAILURE. If one of these exceptions occurs, the first line of the corresponding short dump is entered in the field mess, which must be flat and of character-type.

Transferring tables using the addition TABLES is considerably faster than using the other additions, since a binary format is used internally instead of an XML format.

Good luck

Thanks

Saquib Khan

"Some are wise and some are otherwise"

0 Kudos

It was really a good document and good explanation.

Thanks for the help Saquib.