Skip to Content
0
Jun 26, 2019 at 12:39 PM

Invoking InboudDelivery service API issue

24768 Views

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