cancel
Showing results for 
Search instead for 
Did you mean: 

types of rfc

Former Member
0 Kudos

hi everyone,

why we use "apply control record from payload ",in idoc recevier adapter?how many types of rfc's are there?

Warm regards,

somu

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Communication between applications of different systems in the SAP environment includes connections between SAP systems as well as between SAP systems and non-SAP systems. Remote Function Call (RFC) is the standard SAP interface for communication between SAP systems. The RFC calls a function to be executed in a remote system.

Synchronous RFC

The first version of RFC is synchronous RFC (sRFC). This type of RFC executes the function call based on synchronous communication, which means that the systems involved must both be available at the time the call is made.

Transactional RFC (tRFC)

Transactional RFC (tRFC, also originally known as asynchronous RFC) is an asynchronous communication method that executes the called function module in the RFC server only once. The remote system need not be available at the time when the RFC client program is executing a tRFC. The tRFC component stores the called RFC function, together with the corresponding data, in the SAP database under a unique transaction ID (TID).

If a call is sent, and the receiving system is down, the call remains in the local queue until a later time. The calling dialog program can proceed without waiting to see whether or not the remote call was successful. If the receiving system does not become active within a certain amount of time, the call is scheduled to run in batch.

tRFC is always used if a function is executed as a Logical Unit of Work (LUW). Within a LUW, all calls are

· executed in the order in which they are called

· executed in the same program context in the target system

· run as a single transaction: they are either committed or rolled back as a unit.

Implementation of tRFC is recommended if you want to guarantee that the transactional order of the calls is preserved.

Disadvantages of tRFC

· tRFC processes all LUWs independent of one another. Due to the amount of activated tRFC processes, this procedure can reduce performance significantly in both the send and the target systems.

· In addition, the sequence of LUWs defined in the application cannot be kept. Therefore, there is no guarantee that the transactions are executed in the sequence dictated by the application. The only guarantee is that all LUWs are transferred sooner or later.

Queued RFC (qRFC)

To guarantee that multiple LUWs are processed in the order specified by the application, tRFC can be serialized using queues (inbound and outbound queues). This type of RFC is called queued RFC (qRFC).

qRFC is therefore an extension of tRFC. It transfers an LUW (transaction) only if it has no predecessors (in reference to the sequence defined in different application programs) in the participating queues.

Implementation of qRFC is recommended if you want to guarantee that several transactions are processed in a predefined order.

Former Member
0 Kudos
Former Member
0 Kudos

Hi,

In case of IDOC is the sender means we will fill the control record values from R/3 itself while triggering the IDOC.

But in case of IDOC is the receiver means we will fil those values through paylod means through mapping.

RFC Types

Type 3 ABAP Connection :

ex 1) If we want to execute any function module from one SAP system in another , we need type 3.

We define an RFC destination say ECC6CLNT100 with required parameters.

and to test it go to SE37, select any common sap function module and when you execute that it will ask

for RFC destination. you provide this destination and the function module will be executed in the target

system.

ex2) when you create a partner profile, you need to create a port and for creating a port, we need to

specify an RFC destination. here also we use type 3.

Type H.

ex1) when we need to send xml messages from an SAP system to any other system, we need this.

For example when we send messages using proxy from SAP system to the integration engine of XI, we

need type H.

Type T.

ex1) To we make an RFC call from R/3 to XI , we use sender RFC adapter in XI.

In R/3 system we need to create an RFC destination of type T.

Regards

Seshagiri

former_member335553
Active Contributor
0 Kudos

Types of RFC

http://help.sap.com/saphelp_nw04/helpdata/en/9e/c5fd409d04f223e10000000a155106/frameset.htm

control record in IDOC

Apply Control Record Values from Payload

If you set the indicator, the conversion of communication parties to the IDoc partner is only possible for systems that are not logical systems.

If you do not set the indicator, all combinations of communication parties and services are handled as services without party.

If the IDoc XML structure contains a control record during outbound processing on the Integration Server, it is rejected and created again by the IDoc adapter. If you want to include additional values in the control record, set the indicator and provide an appropriate mapping for the values

Former Member
0 Kudos