|
There are 5 types of RFCs. Each of these types is used for a specific purpose and has a unique role. The five types of RFCs are: - sRFC - Synchronous RFC
- aRFC - Asynchronous RFC
- tRFC - Transactional RFC
- qRFC - Queued RFC
- pRFC - Parallel RFC
Synchronous RFCs are most common RFCs. They are generally used when you want the results of the RFC call available to you directly after the call. Asynchronous RFCs are used when you want to improve the performance of your application. In this case, the calling program does not wait for the results of the asynchronous RFC call. The results of such call can however be processed at a later point in time. This will be discusses in more detail in the next chapters. Transactional RFCs are used when you want to group one more more calls into a single LUW. This will ensure that each function module is called exactly once OR not at all. Queued RFCs are used when you want the behavior of tRFC and you also want to control the sequence in which the function modules are called in a single transactional unit. Parallel RFCs are an extension of aRFCs. They are used when you want to make large number of RFC calls. In the next chapters we will discuss the unique role of these types of RFCs. We will also discuss which type of RFC must be used in which scenario.
|