CRUD Operations in Odata – Part VII – Update operation
- Redefine the method ZEKKO12SET_UPDATE_ENTITY.
- Write the below code.
io_data_provider->read_entry_data( |
|
IMPORTING |
|
es_data = er_entity |
|
). |
|
|
|
UPDATE zekko12 FROM er_entity. |
- First fetch the single record you need to update. Click on Use As Request button.
- Do some changes and select PUT HTTP Method and execute.
- After successful updating, the status code will be 204.
Next is Delete Operation