cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member209771
Active Participant
0 Kudos

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 { } } }

Accepted Solutions (1)

Accepted Solutions (1)

former_member209771
Active Participant

Hi All ,

I want to get deliveryStatusCode. I got my solution using the below code :

this.CreationIdentity.GetFirst().UUID

Using this delivery UId i can get StatusCode .

Thanks

Answers (1)

Answers (1)

try:

var outboundDeliveryDocumentID = this.Root.ID-Content.

The above may not work, however the document ID is on the root so you will be able to see it in the user prompt in the IDE.

Hope this helps 🙂

former_member209771
Active Participant
0 Kudos
Hi Patrick Glynn , I have try with this but it's not working .ThanksSurajit Kundu