点击此处---> 群内免费提供SAP练习系统(在群公告中)
加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)
嗨,
我正在尝试将Odata服务集成API实施为POST多部分批处理json请求。 我正在SAP Wiki https://help.sap .com/viewer/50c996852b32456c96d3161a95544cdb/1811/en-US/0d45f25361294a99997837ccbdf1fc0e.html 。 单个实体工作正常,但是当我批量执行时,我不断收到"无效的方法:查询操作不能在行'5'处包含插入,更新或删除请求。""。我正在使用邮递员和/或SOAPUI发出请求
SAP Wiki中指示的请求示例:
-变更集 内容类型:application/http 内容传输编码:二进制 POST产品的HTTP/1.1内容语言:zh 接受:application/json 内容类型:application/json {" @ odata.context":" $ metadata#Products/$ entity","代码":" test_product_3","名称":"名称[EN]"," catalogVersion":{" catalog":{" id ":" Default"}," version":" Staging"}," unit":{" code":" pieces"}}-变更集 内容类型:application/http 内容传输编码:二进制 POST产品的HTTP/1.1内容语言:de 接受:application/json 内容类型:application/json {" @ odata.context":" $ metadata#Products/$ entity","代码":" test_product_3","名称":"名称[DE]"," catalogVersion":{" catalog":{" id ":" Default"}," version":" Staging"}," unit":{" code":" pieces"}}-changeset ---- batch 内容类型:多部分/混合; 边界=变更集 --changeset 内容类型:application/http 内容传输编码:二进制 POST产品的HTTP/1.1内容语言:zh 接受:application/json 内容类型:application/json {" @ odata.context":" $ metadata#Products/$ entity","代码":" test_product_4","名称":"名称[EN]"," catalogVersion":{" catalog":{" id ":" Default"}," version":" Staging"}," unit":{" code":" pieces"}}-变更集 内容类型:application/http 内容传输编码:二进制 POST产品的HTTP/1.1内容语言:de 接受:application/json 内容类型:application/json {" @ odata.context":" $ metadata#Products/$ entity","代码":" test_product_4","名称":"名称[DE]"," catalogVersion":{" catalog":{" id ":" Default"}," version":" Staging"}," unit":{" code":" pieces"}}-变更集-
请求的正确格式是什么? 预先感谢!
此致
欧文
您好 irwin tabisora ,
您能找到解决此问题的方法吗?
致谢
Rahul
一周热门 更多>