【问题标题】:How to call SAP GW create_deep_entity method() in SAP WebIDE?如何在 SAP WebIDE 中调用 SAP GW create_deep_entity 方法()?
【发布时间】:2023-03-08 22:50:01
【问题描述】:

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

使用 oModel.create() 时出现错误,指出方法未实现(即使用 oModel.create() 调用普通创建方法,该方法未在 SAP 网关上实现。但我需要调用的是 create_deep_entity 方法)

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

【问题讨论】:

  • 请向我们展示具体的 oModel.create() 调用。它确实必须是深度创建,例如:oModel.create({field1: '', field2: 0, childEntity: {field3: 'ABC'}});

标签: odata sapui5 sap-web-ide sap-gateway


【解决方案1】:

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

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-09-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多