我正在尝试在一个批次中发送多个 POST 请求。
通过这 3 个请求,我们正在设置通知和订单的状态 --> 工作已完成、完成和关闭报告。就像菲奥里一样。
但是在 SAP Gateway Client 中,只有请求 1 和 3 是可以的。订单的状态仍然相同。
也许一个请求阻止了另一个请求?我必须创建不同的变更集吗?我该怎么做?
Request-URI:
/sap/opu/odata/sap/EAM_MALFUNCTION_MANAGE/$batch
Request:
--batch
Content-Type: multipart/mixed; boundary=changeset
--changeset
Content-Type: application/http
Content-Transfer-Encoding: binary
POST C_MaintNotificationTPPerform_user_action?sap-client=320&MaintenanceNotification='100000001882'&DraftUUID=guid'00000000-0000-0000-0000-000000000000'&IsActiveEntity=true&Statusobject='OV100000675500000001'&Targetstatus='O030'&Eventconfiguration='1'&Reasoncodegroup=''&Reasoncode=''&Isadditionalreason=false HTTP/1.1
Content-Type: application/json
sap-contextid-accept: header
Accept: application/json
Accept-Language: en
DataServiceVersion: 2.0
MaxDataServiceVersion: 2.0
Content-Length: 626
--changeset
Content-Type: application/http
Content-Transfer-Encoding: binary
POST C_MaintNotificationTPPerform_user_action?sap-client=320&MaintenanceNotification='100000001882'&DraftUUID=guid'00000000-0000-0000-0000-000000000000'&IsActiveEntity=true&Statusobject='OR000004001747'&Targetstatus='0050'&Eventconfiguration='1'&Reasoncodegroup=''&Reasoncode=''&Isadditionalreason=false HTTP/1.1
Content-Type: application/json
sap-contextid-accept: header
Accept: application/json
Accept-Language: en
DataServiceVersion: 2.0
MaxDataServiceVersion: 2.0
Content-Length: 800
--changeset
Content-Type: application/http
Content-Transfer-Encoding: binary
POST C_MaintNotificationTPPerform_user_action?sap-client=320&MaintenanceNotification='100000001882'&DraftUUID=guid'00000000-0000-0000-0000-000000000000'&IsActiveEntity=true&Statusobject='QM100000001882'&Targetstatus='0051'&Eventconfiguration='1'&Reasoncodegroup=''&Reasoncode=''&Isadditionalreason=false HTTP/1.1
Content-Type: application/json
sap-contextid-accept: header
Accept: application/json
Accept-Language: en
DataServiceVersion: 2.0
MaxDataServiceVersion: 2.0
Content-Length: 755
--changeset--
--batch--