cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member535084
Participant
0 Kudos
173

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;
emptyUUID.Clear();
foreach(var schedule_line in outboundDeliveryRequest.Item.ItemScheduleLine) {
  schedule_line.RequestDeliveryExecution(true, true,emptyUUID, false, true, false);
}

Accepted Solutions (0)

Answers (0)