Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)