Encapsulating External Services as Entity
Services
You must first encapsulate the external service as an entity service before implementing it in your application.
You have imported either the external remote function call (RFC) or Web service (WS) you want to use in CAF. For more information on importing external services, see Modeling External Services.
1. Create a new entity service (see Modeling Entity Services).
2. Open the Attributes page tab page and create the attributes that you will use with the external service.
To be able to use remote persistency, you should create at least one custom key attribute. For more information on local and remote persistency, see Service Modeling.
3. If you need to create additional operations, do the following:
a. Open the Operations page tab page.
b. Add additional operations, if needed.

The database structure of remotely persisted objects (RFC and WS) cannot be changed. You should model your entity or application service attributes according to these structures so that you can readily map operations.
For more information on adding operations, see Adding Operations to Entity Services.
4. In the Persistency tab page, uncheck the Local Persistency checkbox.
Entity persistency must be remote in order to execute object mapping. Fore more information on local and remote persistency, see Persistency Tab Page.
5. Create the necessary operations and attributes mapping.
6.
Choose
to
save all metadata.
7. Build the project and deploy it.