简体   繁体   English

如何通过S / 4HANA SDK发送功能导入请求?

[英]How to send Function Import request via S/4HANA SDK?

I know we can use classes ODataXXXRequestBuilders to issue "CUD" ODATA operations, but how about "Function Import"? 我知道我们可以使用ODataXXXRequestBuilders类发出“ CUD” ODATA操作,但是“函数导入”又如何呢? Regarding a custom "Function Import" ODATA API, how to use S/4HANA SDK to issue the request and get the returned result? 关于自定义的“函数导入” ODATA API,如何使用S / 4HANA SDK发出请求并获得返回的结果? I cannot find any example for this. 我找不到任何示例。 Or is it not supported? 还是不支持? Thanks very much. 非常感谢。

From your question I can derive that you use the SAP Cloud Platform SDK for Service Development . 从您的问题中可以得出结论,您将SAP Cloud Platform SDK用于服务开发

In order to invoke functions imports in a convenient manner, we recommend to use the Virtual Data Model (VDM) for OData provided by the SAP S/4HANA Cloud SDK . 为了以方便的方式调用函数导入,我们建议使用由SAP S / 4HANA Cloud SDK提供的OData虚拟数据模型(VDM)。

Leveraging this VDM you call OData APIs (including function imports) in a type-safe manner. 利用此VDM,您可以以类型安全的方式调用OData API(包括函数导入)。 You may check out the introduction to the VDM and the deep dive focusing on custom OData services . 您可以查看有关VDM的介绍,以及有关自定义OData服务深入了解

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

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