on 06-26-2019 1:39 PM
Dear experts,
I am calling InboudDelivery APIs using SAP Cloud SDK but met with two issues.
1. Create InboundDelivery error
Error message:
"Creating operations are disabled for entity \u0027API_INBOUND_DELIVERY_0002~A_InbDeliveryHeader\u0027"
Seems I need to enable create operation but I do not know how to.
2. Call Post Good Receipt function error
"errordetails": [
{
"code": "/IWBEP/CX_MGW_BUSI_EXCEPTION",
"message": "Precondition required",
"longtext_url": "/sap/opu/odata/iwbep/message_text;o\u003dLOCAL/T100_longtexts(MSGID\u003d\u0027%2FIWBEP%2FCM_MGW_RT\u0027,MSGNO\u003d\u0027194\u0027,MESSAGE_V1\u003d\u0027\u0027,MESSAGE_V2\u003d\u0027\u0027,MESSAGE_V3\u003d\u0027\u0027,MESSAGE_V4\u003d\u0027\u0027)/$value",
"propertyref": "",
"severity": "error",
"target": ""
}
]
The code is as below.
@Override
public List<PutawayReport> goodsReceipt(String deliveryDocument) throws Exception {
List<PutawayReport> putawayReports = inboundDeliveryService.postGoodsReceipt(deliveryDocument)
.execute(ErpConfigUtil.getErpConfig());
return putawayReports;
}
Could you give me some advice on these two issues?
Thanks
Jerry
Dear Jerry,
regarding the second point:
You have to pass the If-Match header manually. Either you force overwrite by using "*" as a value or you retrieve the etag of the entity beforehand. This requires knowledge about the service and its entity model.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
69 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.