Skip to Content

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

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Mar 04, 2019 at 05:36 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 29, 2019 at 10:53 AM

    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 :)

    Add a comment
    10|10000 characters needed characters exceeded