32 Views
Put cursor on DELETE_ENTITY method and press redefine method.
You will able to see below screen.
Write Below code for delete.
DATA : wa_keytab TYPE /iwbep/s_mgw_name_value_pair.
READ TABLE it_key_tab INTO wa_keytab INDEX 1.
DELETE FROM ZEMPLOYEE_1 WHERE EMP_ID EQ wa_keytab-value.
COMMIT WORK.
Save and activate class.
Go execute transaction code /IWFND/MAINT_SERVICE ,find technical service name ,Activate using ICF nodes and click on SAP Gateway Client.
Click on EntitySet and pass url (/sap/opu/odata/sap/ZTEST_ODATA2_SRV/EmployeeSet(EmpId=’00000001′).