简体   繁体   中英

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. The application needs to pass data to Gateway method 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 )

Just need to know is there any syntax that will tell Web IDE that Deep Create is to be called.

there is not a create_deep entity method as such in SAPUI5. 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. See the example of @serban Petrscu.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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