Skip to Content
Sep 23, 2020 at 06:34 AM

[Sap By Design] [SDK] Create Outbound Delivery from Outbound Delivery Request

65 Views Last edit Sep 24, 2020 at 12:04 AM 2 rev

Hi all,

I would like use Outbound Delivery Request to create Outbound Delivery.

I followed the example code from Repository Explorer, release all item schedule line of Outbound Delivery Request. But I only created 3PL Request.

Could you please give me some ideas ?

Here 's my code

var query = OutboundDeliveryRequest.QueryByElements;
var params = query.CreateSelectionParams();
params.Add(query.BaseBusinessTransactionDocumentID.content, "I", "EQ", this.YearQuarter);
var outboundDeliveryRequest = query.Execute(params).GetFirst();
var emptyUUID;
emptyUUID = outboundDeliveryRequest.UUID;
foreach(var schedule_line in outboundDeliveryRequest.Item.ItemScheduleLine) {
  schedule_line.RequestDeliveryExecution(true, true,emptyUUID, false, true, false);