cancel
Showing results for 
Search instead for 
Did you mean: 

Invoking InboudDelivery service API issue

zje8szh
Participant
0 Kudos

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

View Entire Topic
former_member186608
Active Participant
0 Kudos

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.

zje8szh
Participant
0 Kudos

Thank you for your response.

Could you specify how to do it with SAP Cloud SDK?