B1服务层错误:未提供实体""的密钥。

2020-09-15 15:19发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)大家好, 我正在尝...

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

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


大家好,

我正在尝试通过PATCH方法更新业务合作伙伴,并填写了有限的字段集,但我不断收到错误消息:未提供实体"的键。

我们正在使用B1 9.3 PL3(开发环境)。

我在做什么错了?

这是我要发布的JSon:

使用对象{连接到/BusinessPartners
   " CardCode":" C000002023",
   " CardName":" Sebastiaan Kortleven HANA",
   " CardType":" C",
   "系列":79,
   " EmailAddress":" emailgoeshere@gmail.com"," Valid":" tYES",
   "冻结":" tNO",
   " Properties1":" tNO",
   " Properties2":" tNO",
   " Properties3":" tNO",
   " Properties4":" tNO",
   " Properties5":" tNO",
   " Properties6":" tNO",
   " Properties7":" tNO",
   " Properties8":" tNO",
   " Properties9":" tNO",
   " Properties10":" tNO",
   " Properties11":" tNO",
   " Properties12":" tNO",
   " Properties13":" tNO",
   " Properties14":" tNO",
   " Properties15":" tNO",
   " Properties16":" tNO",
   " Properties17":" tNO",
   " Properties18":" tNO",
   " Properties19":" tNO",
   " Properties20":" tNO",
   " Properties21":" tNO",
   " Properties22":" tNO",
   " Properties23":" tNO",
   " Properties24":" tNO",
   " Properties25":" tNO",
   " Properties26":" tNO",
   " Properties27":" tNO",
   " Properties28":" tNO",
   " Properties29":" tNO",
   " Properties30":" tNO",
   " Properties31":" tNO",
   " Properties32":" tNO",
   " Properties33":" tNO",
   " Properties34":" tNO",
   " Properties35":" tNO",
   " Properties36":" tNO",
   " Properties37":" tNO",
   " Properties38":" tNO",
   " Properties39":" tNO",
   " Properties40":" tNO",
   " Properties41":" tNO",
   " Properties42":" tNO",
   " Properties43":" tNO",
   " Properties44":" tNO",
   " Properties45":" tNO",
   " Properties46":" tNO",
   " Properties47":" tNO",
   " Properties48":" tNO",
   " Properties49":" tNO",
   " Properties50":" tNO",
   " Properties51":" tNO",
   " Properties52":" tNO",
   " Properties53":" tNO",
   " Properties54":" tNO",
   " Properties55":" tNO",
   " Properties56":" tNO",
   " Properties57":" tNO",
   " Properties58":" tNO",
   " Properties59":" tNO",
   " Properties60":" tNO",
   " Properties61":" tNO",
   " Properties62":" tNO",
   " Properties63":" tNO",
   " Properties64":" tNO"} 
2条回答
木偶小白
2020-09-15 16:00 .采纳回答

你好

您是否要修补/BusinessPartners? 您需要在方括号中的URL中指定BP CardCode。 文档中的示例:

补丁https://localhost:50000/b1s/v1/BusinessPartners('c001')

 {
     " CardName":"更新的客户名称"
 } 
因此,对您来说,它将是以下内容: 使用对象{连接到/BusinessPartners('C000002023') " CardName":" Sebastiaan Kortleven HANA", " CardType":" C", "系列":79, " EmailAddress":" emailgoeshere@gmail.com"," Valid":" tYES", "冻结":" tNO", " Properties1":" tNO", " Properties2":" tNO", " Properties3":" tNO", " Properties4":" tNO", " Properties5":" tNO", " Properties6":" tNO", " Properties7":" tNO", " Properties8":" tNO", " Properties9":" tNO", " Properties10":" tNO", " Properties11":" tNO", " Properties12":" tNO", " Properties13":" tNO", " Properties14":" tNO", " Properties15":" tNO", " Properties16":" tNO", " Properties17":" tNO", " Properties18":" tNO", " Properties19":" tNO", " Properties20":" tNO", " Properties21":" tNO", " Properties22":" tNO", " Properties23":" tNO", " Properties24":" tNO", " Properties25":" tNO", " Properties26":" tNO", " Properties27":" tNO", " Properties28":" tNO", " Properties29":" tNO", " Properties30":" tNO", " Properties31":" tNO", " Properties32":" tNO", " Properties33":" tNO", " Properties34":" tNO", " Properties35":" tNO", " Properties36":" tNO", " Properties37":" tNO", " Properties38":" tNO", " Properties39":" tNO", " Properties40":" tNO", " Properties41":" tNO", " Properties42":" tNO", " Properties43":" tNO", " Properties44":" tNO", " Properties45":" tNO", " Properties46":" tNO", " Properties47":" tNO", " Properties48":" tNO", " Properties49":" tNO", " Properties50":" tNO", " Properties51":" tNO", " Properties52":" tNO", " Properties53":" tNO", " Properties54":" tNO", " Properties55":" tNO", " Properties56":" tNO", " Properties57":" tNO", " Properties58":" tNO", " Properties59":" tNO", " Properties60":" tNO", " Properties61":" tNO", " Properties62":" tNO", " Properties63":" tNO", " Properties64":" tNO"}

一周热门 更多>