Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/whothefluff/abap-dataobject
Data Object utils
https://github.com/whothefluff/abap-dataobject
abap reusable-components
Last synced: 3 days ago
JSON representation
Data Object utils
- Host: GitHub
- URL: https://github.com/whothefluff/abap-dataobject
- Owner: whothefluff
- Created: 2024-05-14T18:39:22.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-05-14T18:51:54.000Z (7 months ago)
- Last Synced: 2024-11-02T07:06:02.120Z (about 2 months ago)
- Topics: abap, reusable-components
- Language: ABAP
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# abap-dataobject
It's pretty basic code but I do it often so I might as well be able to reuse it.
## Common Use Cases
1. Creating a new anonymous data object of the same type of an existing variable:
```abap
data(new_ref) = new zcl_anonymous_data_object( i_like = existing_var )->ref( ).
```2. Creating a new anonymous data object with a specified type:
```abap
data(new_ref) = new zcl_anonymous_data_object( i_type = some_var_type )->ref( ).
```3. Copying an existing variable (both type and value) to a new anonymous data object:
```abap
data(copied_var) = new zcl_data_object_copy( existing_var )->ref( ).
```