SAP Cloud SDK-PGI错误" SADL_ENTITY_RUNTIME/006"

2020-08-13 16:59发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)最新版本的SAP Cloud S...

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


最新版本的SAP Cloud SDK返回有关WM商品的错误。 我已经确认,与我合作的交付可以通过S/4 Hana Cloud成功实现GI。 错误日志引用" SADL_ENTITY_RUNTIME/0006"。 也许此错误与SDK无法正确处理csrf令牌有关?

依赖项:

" @ sap-cloud-sdk/core":" 1.26.1",
 " @ sap/cloud-sdk-vdm-warehouse-outbound-delivery-order-service":" 1.19.2",

实施代码:

 const wm = require(" @ sap/cloud-sdk-vdm-warehouse-outbound-delivery-order-service");
 var obj = {outboundDeliveryOrder:response.data.MovementId};
 wm.postGoodsIssue(obj)
 .execute(S4Destination)
 .then((response)=> {
    返回res.status(200).send(response);
 })
 .catch(function(err){
    返回res.status(400).send(err);
 }); 

错误堆栈:

 stack:"错误:将请求发布到https://my302314-api.s4hana.ondemand.com/sap/opu/odata/sap/API_WHSE_OUTB_DLV_ORDER失败!在实体CDS〜A_WHSEOUTBDELIVERYORDERHEADER中操作的前提条件(如果缺少匹配项 ){"代码":" SADL_ENTITY_RUNTIME/006","消息":{" lang":" en","值":"在实体CDS〜A_WHSEOUTBDELIVERYORDERHEADER中操作的前提条件(如果缺少匹配项)"},"内部错误 ":{"应用程序":{" component_id":" BC-ESI-ESF-GW"," service_namespace":"/img/SAP/"," service_id":" API_WHSE_OUTB_DLV_ORDER"," service_version":" 0001"},"  transactionid":" 9208AF0FC1440260E005F2584666C59C","时间戳":" 20200806145705.5140030"," Error_Resolution":{" SAP_Transaction":"对于后端管理员:使用ADT提要阅读器\" SAP Gateway Error Log \"或在SAP上运行事务/IWFND/ERROR_LOG 网关集线器系统,并使用上面的时间戳搜索条目以了解更多详细信息"," SAP_Note":"请参阅SAP Note 1797736进行错误分析(https://service.sap.com/sap/support/notes/1797736)"},  " errordetails":[{" code":"  SADL_ENTITY_RUNTIME/006","消息":"在实体CDS〜A_WHSEOUTBDELIVERYORDERHEADER中操作所需的前提(如果缺少匹配项)"," propertyref":"","严重性":"错误","过渡":true,"目标 ":""}]}}在Object.errorWithCause(/home/vcap/app/node_modules/@sap-cloud-sdk/util/dist/error.js:6:20)在ConstructError(/home/vcap/app/node/vcap/app/node_modules/@ sap-cloud-sdk/core/dist中的/node_modules/@sap-cloud-sdk/core/dist/odata/common/request/odata-request.js:272:23) /odata/common/request/odata-request.js:234:51位于processTicksAndRejections(内部/进程/task_queues.js:97:5)由以下原因引起:错误:请求失败,状态代码为428,位于createError(/home/vcap/app/node_modules/@sap-cloud-sdk/core/node_modules/axios/lib/core/createError.js:16:15)在结算时(/home/vcap/app/node_modules/@ sap-cloud-sdk/core/IncomingMessage.handleStreamEnd(/home/vcap/app/node_modules/@sap-cloud-sdk/core/node_modules/axios/lib/adapters/http.js上的node_modules/axios/lib/core/settle.js:17:12)  :236:11)在IncomingM  essage.emit(events.js:322:22)位于endReadableNT(_stream_read.js:1187:12),位于processTicksAndRejections(internal/process/task_queues.js:84:21)" 
3条回答

唐俊杰

完整堆栈跟踪:

 stack:" TypeError:converters [jsonKey]不是函数
     在/home/vcap/app/node_modules/@sap-cloud-sdk/core/dist/odata/common/selectable/create-complex-type.js:25:80
     在Array.reduce()
     在Object.createComplexType(/home/vcap/app/node_modules/@sap-cloud-sdk/core/dist/odata/common/selectable/create-complex-type.js:23:33)
     在构建时(/home/vcap/app/node_modules/@sap/cloud-sdk-vdm-warehouse-outbound-delivery-order-service/DummyFunctionImportResult.js:51:23)
     在Object.transformReturnValueForComplexType(/home/vcap/app/node_modules/@sap-cloud-sdk/core/dist/odata/v2/request-builder/response-transformers.js:22:12)
     在FunctionImportRequestBuilder.responseTransformer(/home/vcap/app/node_modules/@sap/cloud-sdk-vdm-warehouse-outbound-delivery-order-service/function-imports.js:21:156)
     在/home/vcap/app/node_modules/@sap-cloud-sdk/core/dist/odata/common/request-builder/action-function-import-request-builder-base.js:86:38
     在processTicksAndRejections(internal/process/task_queues.js:97:5)上" 

一周热门 更多>