biuan SAP® BUSINESS ONE SDK
DTW Business Partners / Business Partner Master Data / Business Partners - Addresses
API BP Addresses

Description

BPAddresses is a child object of the BusinessPartners and represents the Ship To and Bill To addresses list of the business partner. This object is part of the Business Partner module.

You can retrieve or set this object by using the Addresses property of the BusinessPartners object.

This object enables you to add Ship To, Bill To, and multiple addresses to the business partner master data.

Source table: CRD1.

Object Model

Remarks

Mandatory field in SAP Business One: AddressName.

To display the form in the application:

  • Select Business Partners --> Business Partner Master Data --> Addresses tab.

Example

Adding/retrieving a business partner address addr (Visual Basic)
Name=Code_VB>
Dim bp As SAPbobsCOM.BusinessPartners Set bp = DIcompany.GetBusinessObject(oBusinessPartners) Dim bpA As SAPbobsCOM.BPAddresses Set bpA = bp.Addresses bp.CardName = "C009" bp.CardCode = "C009" bp.CardType = SAPbobsCOM.BoCardTypes.cCustomer bp.Addresses.AddressName = "Address1" bp.Addresses.Block = "1" bp.Addresses.Street = "street 1" bp.Addresses.City = "City 1" bp.Addresses.Country = "DE" bp.Addresses.AddressType = SAPbobsCOM.BoAddressType.bo_BillTo bp.Addresses.Add bp.Addresses.AddressName = "Address2" bp.Addresses.Block = "2" bp.Addresses.Street = "street 2" bp.Addresses.City = "City 2" bp.Addresses.Country = "DE" bp.Addresses.AddressType = SAPbobsCOM.BoAddressType.bo_BillTo bp.Addresses.Add bp.Addresses.AddressName = "Address3" bp.Addresses.Block = "3" bp.Addresses.Street = "street 3" bp.Addresses.City = "City 3" bp.Addresses.Country = "DE" bp.Addresses.AddressType = SAPbobsCOM.BoAddressType.bo_BillTo bp.Addresses.Add bp.Add bp.GetByKey ("C009") Set bpA = bp.Addresses bpA.SetCurrentLine (1)

See Also

SAP® B1 DI-API C# definition

public class BPAddressesClass : IBPAddresses, BPAddresses { public virtual string AddressName { get; set; } public virtual string AddressName2 { get; set; } public virtual string AddressName3 { get; set; } public virtual BoAddressType AddressType { get; set; } public virtual string Block { get; set; } public virtual string BPCode { get; } public virtual string BuildingFloorRoom { get; set; } public virtual string City { get; set; } public virtual int Count { get; } public virtual string Country { get; set; } public virtual string County { get; set; } public virtual string FederalTaxID { get; set; } public virtual string GlobalLocationNumber { get; set; } public virtual string Nationality { get; set; } public virtual int RowNum { get; } public virtual string State { get; set; } public virtual string Street { get; set; } public virtual string StreetNo { get; set; } public virtual string TaxCode { get; set; } public virtual string TaxOffice { get; set; } public virtual string TypeOfAddress { get; set; } public virtual SAPbobsCOM.UserFields UserFields { get; } public virtual string ZipCode { get; set; } public extern BPAddressesClass(); public virtual extern void Add(); public virtual extern void Delete(); public virtual extern void SetCurrentLine(int LineNum); }


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