# abap-odata-client-proxy-samples **Repository Path**: wardpeng/abap-odata-client-proxy-samples ## Basic Information - **Project Name**: abap-odata-client-proxy-samples - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-12-04 - **Last Updated**: 2025-12-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # OData Client proxy samples [](https://api.reuse.software/info/github.com/SAP-samples/abap-odata-client-proxy-samples) ## Description The OData Client proxy allows to consume OData services but also pure REST services programmatically using ABAP. The following sample code can be used to perform more complex requests than the ones that are provided as code snippets within the ABAP Development Tools in Eclipse. It also contains a sample for the consumption of a pure REST service. ### CP REST sample This sample code uses the well-known [Swagger Petstore Sample](https://github.com/swagger-api/swagger-petstore) which can also be found on GitHub. It shows how the OData proxy client can be used to also consume pure REST services that are no OData service. In the ABAP sample code you will have to replace the constant **petstore_url**.
CONST: petstore_url type string value ‘with the URL that points to the hosted version that is described in the above mentioned GitHub repository or an instance that you are running on your own. ## Requirements The ABAP code can be used on: - SAP BTP, ABAP Environment - SAP S4HANA Cloud, ABAP Environment - SAP ABAP Platform 2021 and later ## Download and Installation 1. Create a package (e.g.) `TEST_CP_REST_SAMPLE` 2. Start the report `ZABAPGIT` or `ZABAPGIT_STANDALONE` depending on what you have installed in your system 3. Create an offline repository or an online repository with the package and with the URL of this GitHub repository 4. Pull changes 5. Use mass activation to activate the objects that have been imported in step 3 ## Known Issues ## How to obtain support [Create an issue](https://github.com/SAP-samples/’ .