in

CRUD Operations in Odata – Part VII – Update operation

CRUD Operations in Odata

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

What do you think?

Written by admin

Leave a Reply

Your email address will not be published. Required fields are marked *

CRUD Operations in Odata

CRUD Operations in Odata – Part VI – Create Operation

CRUD Operations in Odata

CRUD Operations in Odata – Part VIII – Delete operation