Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/whothefluff/abap-gateway
Easy access to gateway requests
https://github.com/whothefluff/abap-gateway
abap gateway odatav2 sql
Last synced: 3 days ago
JSON representation
Easy access to gateway requests
- Host: GitHub
- URL: https://github.com/whothefluff/abap-gateway
- Owner: whothefluff
- Created: 2024-05-14T18:58:24.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-10-14T17:52:28.000Z (2 months ago)
- Last Synced: 2024-11-02T07:06:01.966Z (about 2 months ago)
- Topics: abap, gateway, odatav2, sql
- Language: ABAP
- Homepage:
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# abap-gateway
The gateway library hides information unnecessarily and in a weird convoluted way that makes it harder to use for some incomprehensible reason.
## Some uses
```abap
data(request) = new zcl_gw_request( io_tech_request_context ).
```1. Generate SQL WHERE condition string (basically for $filter operation, although it also supports a search with the full ID):
```abap
data(sql_where_string) = request->sql_where( ).
```2. Generate SQL fields string (handles $select query option for you, for free):
```abap
data(sql_fields_string) = request->sql_fields( ).
```3. Get the OData model (why shouldn't you able to in the first place smh):
```abap
data(odata_model) = request->model( ).
```4. Access the full original request (tis but a wrapper, this object of mine):
```abap
data(full_request) = request->original( ).
```
# dependencies:
- [https://github.com/whothefluff/abap-messages](https://github.com/whothefluff/abap-messages)
- [https://github.com/whothefluff/abap-abap-name-values](https://github.com/whothefluff/abap-name-values)
- [https://github.com/whothefluff/abap-abap-dataobject](https://github.com/whothefluff/abap-dataobject)