简体   繁体   English

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

[英]How to call SAP GW create_deep_entity method() in SAP WebIDE?

I have been using Web IDE trial version to try out one application.我一直在使用 Web IDE 试用版来试用一个应用程序。 The application needs to pass data to Gateway method Create Deep Entity.应用程序需要将数据传递给网关方法 Create Deep Entity。

While using oModel.create() getting an error which says method not implemented (ie Plain create method is called with oModel.create(), which is not implemented on SAP Gateway. but what I need to call is create_deep_entity method )使用 oModel.create() 时出现错误,提示未实现方法(即使用 oModel.create() 调用普通 create 方法,该方法未在 SAP Gateway 上实现。但我需要调用的是 create_deep_entity 方法)

Just need to know is there any syntax that will tell Web IDE that Deep Create is to be called.只需要知道是否有任何语法可以告诉 Web IDE 将调用 Deep Create。

there is not a create_deep entity method as such in SAPUI5. SAPUI5 中没有 create_deep 实体方法。 If your deep insert is correctly implemented on SAP Gateway, you just need to use a standard create or post mehod on sapui5 with the difference that the data you are sending will not have a flat structure.如果您的深度插入在 SAP Gateway 上正确实施,您只需要在 sapui5 上使用标准的创建或发布方法,区别在于您发送的数据不会具有平面结构。 See the example of @serban Petrscu.请参阅@serban Petrscu 的示例。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM