You can import Remote Function Call (RFC) modules from the ABAP back-end system and use them in your project.
Before importing the RFC, you have to configure the connection to the back-end system.
...
1. From the menu path, choose Windows → Preferences → Destination Configurations → R/3 Configuration.
2. Enter the relevant logon information. For more information, see Creating RFC Destinations.
You can directly drag and drop the RFC you need using the Search Console. For more information about the search capabilities you can use in the Search Console, see Searching for RFC Function Modules.
...
1. In the Project Explorer view, navigate to the Service Interfaces folder. Open the context menu and choose Import RFC.
2. In the dialog that appears, specify the search options, and choose Search.
To retrieve a list of all available functions, leave the Function Name and Function Group fields empty, and directly choose Search pushbutton.
3. Select the RFC modules that you want to import. Choose Finish.
To see the working set with the modules you have already chosen, choose with the quick info text Show Working Set.
To switch between flat and application component hierarchy views, choose either with the quick info text Show Flat List or with the quick info text Show Component Hierarchy.
For CAF project, you can also use the Search Console, or directly trigger the import fro the context menu. In addition, for CAF projects, you can define different name for the destination package of the imported RFC module, or to define RFC destination names to be used at runtime. To do that:
...
1. In the Project Explorer view of your CAF project, navigate to the metadata development component (DC). Note that you can import RFCs only in the external package and its subpackages.
2. Open the context menu and choose Import RFC.
3. In the dialog that appears, specify the search options, and choose Search pushbutton.
4. Select the RFC modules that you want to import. Choose Next.
5. Select new destination package. To do that, choose Browse… pushbutton.
You reuse types you have already imported into the existing packages.
6. Enter an RFC destination name. To execute the RFC, you need to create and configure the RFC destination at runtime. For more information, see Maintaining RFC Destinations.