Hi All,
I am pretty new to Gateway Services. I am trying to create a record into SFLIGHT table through gateway services, for the same I have created an Entity and entitySet with table structure SFLIGHT. I am able to get the metadata for the service I have created.
When I am trying to create a new record through gateway client , with the following request URI with HTTP post method, I am getting error Invalid key predicate with HTTP status ~status_code 400.
/sap/opu/odata/sap/ZGW_XXXXXXXXXXX/ETY_ADD_FLIGHTSet(Carrid = 'AF' Connid = '0820' Fldate eq datetime'2014-03-11T13:01:02')
Method redefined in DPC_EXT class.
ETY_ADD_FLIGHTSE_CREATE_ENTITY
DATA: ls_flight TYPE SFLIGHT.
io_data_provider->read_entry_data( IMPORTING es_data = er_entity ).
MOVE-CORRESPONDING er_entity TO ls_flight.
INSERT SFLIGHT FROM ls_flight.
endmethod.
Request you all to help me in resolving whats the correction.
Regards,
Madhav