Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/whothefluff/abap-dataobject

Data Object utils
https://github.com/whothefluff/abap-dataobject

abap reusable-components

Last synced: 7 days ago
JSON representation

Data Object utils

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( ).
```