如何在SAP WebIDE中调用SAP GW create_deep_entity方法()?

时间:2017-03-30 04:43:43

标签: odata sap gateway

我一直在使用Web IDE试用版来试用一个应用程序。 应用程序需要将数据传递给Gateway方法Create Deep Entity。

使用oModel.create()获取一个错误,说明方法未实现(即使用oModel.create()调用Plain create方法,但未在SAP Gateway上实现。但我需要调用的是create_deep_entity方法)

只需要知道是否有任何语法告诉Web IDE要调用Deep Create。

1 个答案:

答案 0 :(得分:0)

SAPUI5中没有create_deep实体方法。如果深度插入在SAP Gateway上正确实现,则只需在sapui5上使用标准创建或发布方法,区别在于您发送的数据不具有平面结构。请参阅@serban Petrscu的示例。

oModel.create({field1: '', field2: 0, childEntity: {field3: 'ABC'}})