Skip to Content

CRUD Odata via ABAP Views

Feb 27, 2017 at 11:10 AM


avatar image

Hi all,

i have created an ABAP CDS views with CRUD support:

@AbapCatalog.sqlViewName: 'ZXIFUNDCENTER'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Custom: Fundcenter Masterdata'

@ObjectModel.compositionRoot: true             
@ObjectModel.writeActivePersistence: 'fmfctr'
@ObjectModel.createEnabled: true
@ObjectModel.deleteEnabled: true 
@ObjectModel.updateEnabled: true

@OData.publish: true
define view ZX_I_FUNDCENTER as select from fmfctr {
    key mandt as FundCenterClient,
    key fikrs as FundCenterFMArea,
    key fictr as FundCenter,
    key datab as FundCenterValidFrom,
    key datbis as FundCenterValidTo,
    bukrs as FundCenterCompanyCode,
    name1 as FundCenterName,
    strasse as FundCenterStreet, 
    postlz as FundCenterZipCode, 
    land1 as FundCenterCountry

I successfully activated the generated ODATA via /IWFND/MAINT_SERVICE. However, when i perform a create operation via SAPUI5 i get the following error message:

HTTP request failed500,Server Error,{"error":{"code":"SY/530","message":{"lang":"de","value":"An exception was raised."},"innererror":{"application":{"component_id":"","service_namespace":"/SAP/","service_id":"ZX_I_FUNDCENTER_CDS","service_version":"0001"},"transactionid":"99BF6A88E7700050E0058B3E9522FF3B","timestamp":"20170227110426.7994220","Error_Resolution":{"SAP_Transaction":"Run transaction /IWFND/ERROR_LOG on SAP Gateway hub system (System Alias S4HANHA) and search for entries with the timestamp above for more details","SAP_Note":"See SAP Note 1797736 for error analysis ("},"errordetails":[{"code":"CX_SADL_ENTITY_SRVICE_NOT_SUPP","message":"The requested service  is not supported by entity ~ZX_I_FUNDCENTER","propertyref":"","severity":"error","target":""},{"code":"/IWBEP/CX_MGW_MED_EXCEPTION","message":"An exception was raised","propertyref":"","severity":"error","target":""}]}}}

Somebody know why this is not working. The ODATA service is working fine. I am able to read data.

Best regards,


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Dibya Ranjan Bhoi
Oct 04, 2017 at 09:45 AM

Did you find any solution yet? I am facing a similar error too.

10 |10000 characters needed characters left characters exceeded