InterviewSolution
| 1. |
How Can You Differentiate Types Of Rfc By Syntax In An Abap Program? |
|
Answer» Basically RFC’s can be recognized in an ABAP program by the syntax CALL FUNCTION <rfc name=' '> DESTINATION <destination name=' '>. If the RFC function call contains the clause STARTING NEW TASK, it is an asynchronous RFC; the clause IN BACKGROUND TASK indicates a TRANSACTIONAL RFC. If the call only contains the clause DESTINATION, but neither STARTING NEW TASK nor IN BACKGROUND TASK, then the RFC is started as a synchronous RFC. The following code STARTS the functional module ZRFC_SALES_DEL_STATUS synchronously, ASYNCHRONOUSLY, and transactionally. * Synchronous RFC Basically RFC’s can be recognized in an ABAP program by the syntax CALL FUNCTION <rfc name=' '> DESTINATION <destination name=' '>. If the RFC function call contains the clause STARTING NEW TASK, it is an asynchronous RFC; the clause IN BACKGROUND TASK indicates a transactional RFC. If the call only contains the clause DESTINATION, but neither STARTING NEW TASK nor IN BACKGROUND TASK, then the RFC is started as a synchronous RFC. The following code starts the functional module ZRFC_SALES_DEL_STATUS synchronously, asynchronously, and transactionally. * Synchronous RFC |
|