biuan SAP® BUSINESS ONE SDK
API Document Packages

Description

This object holds a collection of packaging types you can attach to items in Delivery or A/R Invoice documents.

Access this object via Documents.Packages property.

Source tables: DLN7, DLN8, INV7, INV8.

Object Model

Example

Add, Update, Delete Delivery with Packaging (Visual Basic)
Dim Delivery As SAPbobsCOM.Documents Dim Line As SAPbobsCOM.Document_Lines Dim Pack As SAPbobsCOM.DocumentPackages Dim Item As SAPbobsCOM.DocumentPackageItems 'Add a delivery with Package 'Delivery header Delivery = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDeliveryNotes) Delivery.CardCode = "C20000" Line = Delivery.Lines 'Delivery lines Line.ItemCode = "A00001" Line.Quantity = 1 Line.Add() Line.ItemCode = "A00002" Line.Quantity = 2 'Package settings Pack = Delivery.Packages Pack.Number = 1 Pack.Type = "Box" 'Package Content Item = Pack.Items Item.ItemCode = "A00001" Item.Quantity = 1 Item.Add() Item.ItemCode = "A00002" Item.Quantity = 1 'Adding Delivery with package Delivery.Add() 'Get and Update a Package Delivery.GetByKey(1) ' Get a delivery by it's Document Number Pack = Delivery.Packages ' Get the Packages of the Delivery Pack.Type = "Container" ' Change the type of the Package to Container Delivery.Update() ' Update the Delivery 'Delete a Package Delivery.GetByKey(1) ' Get a delivery by it's Document Number Pack = Delivery.Packages ' Get the Packages of the Delivery Pack.Delete() ' Delete the package Delivery.Update() ' Update the Delivery Document

Example

See Also

SAP® B1 DI-API C# definition

public class DocumentPackagesClass : IDocumentPackages, DocumentPackages { public virtual int Count { get; } public virtual DocumentPackageItems Items { get; } public virtual int Number { get; set; } public virtual double TotalWeight { get; } public virtual string Type { get; set; } public virtual int Units { get; set; } public virtual SAPbobsCOM.UserFields UserFields { get; } public extern DocumentPackagesClass(); public virtual extern void Add(); public virtual extern void Delete(); public virtual extern void SetCurrentLine(int LineNum); }

Related information


Document Package Items DocumentPackageItems Object
A data structure holding the properties of items in a package. Access this structure via DocumentPackages.Items. Source table: DLN8.
   Parent: Document Packages DocumentPackages Object


SAP® Business One is the trademark(s) or registered trademark(s) of SAP AG in Germany and in several other countries. Icons by Icons8 Contact
This website is not affiliated with, maintained, authorized, endorsed or sponsored by SAP AG or any of its affiliates