on ‎2024 Jul 12 3:25 AM
Hello,
We have developed an application in BTP environment using restful ABAP which will be consumed by various different customers. The application connects to the on premise ABAP system to fetch the data using RFC function modules. This will be achieved by creating the destination on the BTP cockpit.
Currently in the code, we are hardcoding the destination name in order to call the RFC function module from the on premise system. But the problem is , each customer may create the destination with different names , in that case how are we going to fetch the destination name dynamically ?
Appreciate your inputs. thanks in advance.
Request clarification before answering.
Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @rameshputta,
you can create a business configuration app that allows the maintenance of a destination. A customer's administrator can maintain the destination in this business configuration app. The code reads and uses the destination name from the business configuration. Please have a look at Creating Business Configuration Apps with ABAP RESTful Application Programming Model and Custom Busi... on how to create a business configuration app.
Best regards
Kai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, just make the client the only key field. However, as Peter mentioned in his answer, using cl_rfc_destination_provider=>create_by_comm_arrangement is preferred over the deprecated cl_rfc_destination_provider=>create_by_cloud_destination. When using cl_rfc_destination_provider=>create_by_comm_arrangement, there is no need to provide a business configuration app since the consumer's administrator can configure the destination in the communication system.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.