[英]S/4HANA Cloud SDK: Create sales order with reference to a sales contract
I would like to create a sales order with reference to a sales contract using the S/4HANA Cloud SDK. 我想使用S / 4HANA Cloud SDK参考销售合同创建销售订单。 I do not see a get/set method for ReferenceSDDocument at the header- or item-level in the com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.salesorder.SalesOrder class, even though it is shown in the sample JSON-body in the POST of /A_SalesOrder in the API Hub .
我没有在com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.salesorder.SalesOrder类的header或item级别看到ReferenceSDDocument的get / set方法,即使它在示例中显示API Hub中/ A_SalesOrder的POST中的JSON-body。 Not sure if I should be somehow using the SalesOrderField class, or something else ... or should be switching to the SOAP API.
不确定我是否应该以某种方式使用SalesOrderField类或其他东西......或者应该切换到SOAP API。
As you are using version 1.11.1 of the S/4HANA Cloud SDK you have the OData VDM that corresponds to the state of S/4HANA at this point in time. 当您使用S / 4HANA Cloud SDK的1.11.1版时,您将拥有与此时S / 4HANA状态对应的OData VDM。
You now have two options: 您现在有两个选择:
scp-neo-javaee7
archetype. scp-neo-javaee7
原型。 This exists in version 2.13.2 and supports the latest S/4HANA version.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.