Skip to Content
0
Jan 28, 2019 at 12:37 PM

How to get delivery document no from SAP ByDesign Outbound Delivery?

136 Views Last edit Mar 01, 2019 at 01:15 AM 2 rev

I have been trying to fetch the Delivery DocNo of an Outbound Delivery. I have set up a Before-save event on Business Object "OutboundDelivery". However, I have successfully fetched the location code of the Outbound Delivery, using the following code. var locationID = this.ShipFromLocation.GetFirst().LocationID.content;

Now I want to get the delivery document no of the delivery but I am not getting it

Can anyone please help me on this?

Below is my code :

import AP.Common.GDT;

import AP.LogisticsExecution.Global;

[Extension] businessobject AP.LogisticsExecution.Global:OutboundDelivery

{ // You must activate this business object before you can access the extension fields // or messages in script files, forms, and screens. node Item { node ItemProduct { node ItemProductSerialNumber { } } node Material { } } }