📚 SAP Business One SDK Help

Warehouses Object Members
See Also  Overview 

Public Methods

Public Method AddAdds a new record to the Warehouses table.

Adds a record to the object table in SAP Business One company database.

Public Method GetAsXMLRetrieves the XML schema of the data structure.

Returns the object from XML data, which is stored as string in a buffer.

Public Method GetByKeyRetrieves  the values of the object's properties by the object's absolute key from the Company database.  

Retrieves and sets the values of the object's properties by the object's absolute key from the Company database.

Public Method RemoveRemoves a specified field from the table.

Deletes a record from the object table.

Public Method SaveToFileSave the object to a file as XML data.
Public Method SaveXMLSaves the object data to XML formatted data.

Saves the object data to XML formatted data.

Public Method UpdateUpdates the object data in the company database.

Public Properties

Public Property AddressName2property AddressName2
Public Property AddressName3property AddressName3
Public Property AddressTypeproperty AddressType
Public Property AllowUseTaxDetermines whether or not to Allow Use Tax for items in marketing documents.

Field name: UseTax.

Public Property AutoAllocOnIssueThe method by which items in bin locations are issued.

Field name: AutoIssMtd.

Public Property AutoAllocOnReceiptproperty AutoAllocOnReceipt
Public Property BinLocCodeSeparatorThe separator of bin location codes.

Field name: BinSeptor.

Length: 5 characters.

Public Property BlockSets or returns the block subcomponent of the warehouse address.

Field name: Block.

Length: 100 characters.

Public Property BrowserReturns the DataBrowser object.
Public Property BuildingFloorRoomSets or returns the additional address details of the warehouse, such as building number, floor number, and room number.

Field name: Building.

Length: 64,000 characters.

Building
Public Property BusinessPlaceIDReturns the business place ID related to the warehouse.

Field name: BPLid.

Public Property CitySets or returns the city subcomponent of the warehouse address.

Field name: City.

Length: 100 characters.

Public Property CostInflationAccountSets or returns the G/L account associated with Cost Inflation.

Field name: CostRvlAct.

Length: 15 characters.

Public Property CostInflationOffsetAccountSets or returns the G/L account associated with Cost Inflation Offset.

Field name: CstOffsAct.

Length: 15 characters.

Public Property CostOfGoodsSoldSets or returns the G/L account associated with Cost of Good Sold in continues stock system.

Field name: SaleCostAc.

Length: 15 characters.

Public Property CountrySets or returns the country code subcomponent of the warehouse address.

Field name: Country.

Length: 3 characters.

This is a foreign key to the Countries table (OCRY - not exposed through the DI API).

Public Property CountySets or returns the county subcomponent of the warehouse address.

Field name: County.

Length: 100 characters.

Public Property DecreaseGLAccountSets or returns the G/L account associated with Decrease G/L Account.

Field name: DecresGlAc.

Length: 15 characters.

Public Property DecreasingAccountSets or returns the G/L account associated with decreased stock transactions (inventory offset).

Field name: DecreasAc.

Length: 15 characters.

Public Property DefaultBinThe default bin location in the warehouse for receiving items.

Field name: DftBinAbs.

Public Property DefaultBinEnforcedIndicates whether to enforce the use of the default bin location during receipt of items to the warehouse. That is, when you receive an item to the warehouse, you must place it in the default bin location.

Field name: DftBinEnfd.

Public Property DropShipDetermines whether or not to the warehouse type is virtual (no address) or real (with address).

Field name: DropShip.

Public Property EnableBinLocationsEnables bin locations for the warehouse.

Field name: BinActivat.

Public Property EnableReceivingBinLocationsEnables receiving bin locations for a warehouse.

Field name: RecBinEnab.

Public Property EUExpensesAccountSets or returns the G/L account associated with EU Expenses Account. Field name: EUExpensAc.

Field name: ExpensesAc.

Length: 15 characters.

Public Property EUPurchaseCreditAccSets or returns the G/L account associated with EU Purchase Credit Acc.. Field name: APCMEUAct.

Field name: APCMEUAct.

Length: 15 characters

Public Property EURevenuesAccountSets or returns the G/L account associated with EU Revenues.

Field name: EURevenuAc.

Length: 15 characters.

Public Property ExchangeRateDifferencesAccountSets or returns the G/L account associated with Exchange Rate Differences between purchase delivery notes and A/P invoices.

Field name: ExchangeAc.

Length: 15 characters.

Public Property ExcisableSets or returns the Excisable in Warehouses Definition.

Applicable for cluster B only (country-specific for India).

Field name: Excisable.

Public Property ExemptedCreditsSets or returns the G/L account associated with Exempted Credits account.

Field name: ARCMExpAct.

Length: 15 characters.

Public Property ExemptRevenuesAccountSets or returns the G/L account associated with Exempted Revenues.

Field name: ExmptIncom).

Length: 15 characters.

Public Property ExpenseAccountSets or returns the G/L account associated with Expense Account.

Field name: ExpensesAc.

Length: 15 characters.

Public Property ExpenseOffsetingActSets or returns the G/L account associated with Expense Offset Account.

Field name: ExpOfstAct.

Length: 15 characters.

Public Property ExpensesClearingAccountSets or returns the G/L account associated with Expenses clearing Account.

Field name: ExpClrAct.

Length: 15 characters.

Public Property Externalproperty External
Public Property FederalTaxIDSets or returns the Federal Tax ID related to the warehouse.

Field name: FedTaxID.

Length: 32 characters.

Public Property ForeignExpensesAccountSets or returns the G/L account associated with Foreign Expenses account.

Field name: FrExpensAc.

Length: 15 characters.

Public Property ForeignPurchaseCreditAccSets or returns the G/L account associated with Foreign Purchase Credit Account.

Field name: APCMFrnAct.

Length: 15 characters.

Public Property ForeignRevenuesAccSets or returns the G/L account associated with Sales Revenue - Foreign Account.

Field name: FrRevenuAc.

Length: 15 characters.

Public Property GlobalLocationNumberproperty GlobalLocationNumber
Public Property GoodsClearingAccSets or returns the G/L account associated with closing a purchase delivery note.

Field name: BalanceAcc.

Length: 15 characters.

Public Property Inactiveproperty Inactive
Public Property IncreaseGLAccountSets or returns the G/L account associated to Increase G/L Account.

Field name: IncresGlAc.

Length: 15 characters.

Public Property IncreasingAccSets or returns the G/L account associated to increased stock transactions (inventory offset).

Field name: IncresGlAc.

Length: 15 characters.

Public Property InternalKeyReturns the internal key of the warehouse as assigned by SAP Business One when adding a warehouse.

Field name: IntrnalKey.

Public Property InventoryOffsetProfitAndLossAccount

An offsetting account (contra-account) to an inventory account used within production transactions and for change of value of the inventory account during the production process.

Field name: StockOffst.

Length: 15 characters.

Public Property LegalTextLegal Text defined on the warehouse level.

Field name: LegalText.

Length: 250 characters.

Public Property LocationSets or returns the code of the geographical area inside the warehouse. The locations can be defined through the WarehouseLocations object.

Field name: location.

Public Property ManageSerialAndBatchNumbersproperty ManageSerialAndBatchNumbers
Public Property NegativeInventoryAdjustmentAccountSets or returns the negative stock adjustment Account.

Field name: NegStckAct.

Length: 15 characters.

This is a foreign key to the ChartOfAccounts object.

Public Property Nettableproperty Nettable
Public Property PriceDifferencesAccountSets or returns the G/L account associated with Price Differences Account.

Field name: PriceDifAc.

Length: 15 characters.

Public Property PurchaseAccountSets or returns the G/L account associated with Purchases.

Field name: PurchaseAc.

Length: 15 characters.

Public Property PurchaseBalanceAccountproperty PurchaseBalanceAccount
Public Property PurchaseCreditAccSets or returns the G/L account associated with Purchase Credit Account.

Field name: APCMAct.

Length: 15 characters.

Public Property PurchaseOffsetAccountSets or returns the G/L account associated with Purchase Offsetting.

Field name: PurchOfsAc.

Length: 15 characters.

Public Property PurchaseReturningAccountSets or returns the G/L account associated with Purchase Returning account.

Field name: PAReturnAc.

Length: 15 characters.

Public Property ReceiveUpToMaxQuantityproperty ReceiveUpToMaxQuantity
Public Property ReceiveUpToMaxWeightproperty ReceiveUpToMaxWeight
Public Property ReceiveUpToMethodproperty ReceiveUpToMethod
Public Property ReceivingBinLocationsByThe method by which items are received at receiving bin locations.

Field name: RecItemsBy.

Public Property RestrictReceiptToEmptyBinLocationproperty RestrictReceiptToEmptyBinLocation
Public Property ReturningAccountSets or returns the G/L account associated with Purchase Returning Account.

Field name: PAReturnAc.

Length: 15 characters.

Public Property RevenuesAccountSets or returns the G/L account associated with Revenues Account.

Field name: RevenuesAc.

Length: 15 characters.

Public Property SalesCreditAccSets or returns the G/L account associated with Sales Credit EU Account.

Field name: ARCMEUAct.

Length: 15 characters.

Public Property SalesCreditEUAccSets or returns the G/L account associated with Sales Credit EU Account.

Field name: ARCMEUAct .

Length: 15 characters.

Public Property SalesCreditForeignAccSets or returns the G/L account associated withSales Credit EU Account.

Field name: ARCMFrnAct .

Length: 15 characters.

Public Property ShippedGoodsAccountSets or returns the G/L account associated with Shipping Goods Account.

Field name: ShpdGdsAct.

Length: 15 characters.

Public Property Shipperproperty Shipper
Public Property StateSets or returns the state code of the sub-component of the warehouse address.

Field name: State.

Length: 3 characters.

This is a foreign key to the States table (OCST), which is not exposed through the DI API.

Public Property StockAccountSets or returns the G/L account associated to stock in continues stock system.

Length: 15 characters.

Field name: BalInvntAc.

Public Property StockInflationAdjustAccountSets or returns the G/L account associated with Stock Inflation Adjust.

Length: 15 characters.

Field name: IncreasAc.

Public Property StockInflationOffsetAccountSets or returns the G/L account associated with Stock Inflation Offset.

Field name: DecreasAc.

Length: 15 characters.

Public Property StockInTransitAccountThe stock in transit G/L account for this warehouse.

Field name: StkInTnAct

Public Property Storekeeperproperty Storekeeper
Public Property StreetSets or returns the street subcomponent of the warehouse address.

Field name: street.

Length: 100 characters.

Public Property StreetNoproperty StreetNo
Public Property TaxGroupSets or returns the sales tax code as defined in SalesTaxCodes object.

Field name: VatGroup.

Length: 8 characters.

Public Property TaxOfficeproperty TaxOffice
Public Property TransfersAccSets or returns the G/L account associated with Stock Transfers.

Field name: TransferAc.

Length: 15 characters.

Public Property UserFieldsReturns the UserFields object.

Field name: userSign2.

Public Property VarianceAccountSets or returns the G/L account associated with Variance Account.

Field name: VarianceAc.

Length: 15 characters.

Public Property VATInRevenueAccountSets or returns the G/L account associated with VAT in Revenues.

Field name: VatRevAct.

Length: 15 characters.

This is a foreign key to the ChartOfAccounts Object.

Public Property WarehouseCodeSets or returns the Warehouse identification key. Mandatory field.

Field name: WhsCode.

Length: 8 characters.

Public Property WarehouseNameSets or returns the warehouse name.

Field name: WhsName.

Length: 100 characters.

Public Property WHIncomingCenvatAccountSets or returns the Incoming CENVAT Account (WH) for Account Setting in Warehouses Definition.

Applicable for cluster B only (country-specific for India).

Field name: WhICenAct.

Public Property WHOutgoingCenvatAccountSets or returns the Outgoing CENVAT Account (WH) for Account Setting in Warehouse Definition.

Applicable for cluster B only (country-specific for India).

Field name: WhOCenAct.

Public Property WHShipToNameSets or returns the Ship-to Name (WH) in Warehouses Definition.

Applicable for cluster B only (country-specific for India).

Field name: WhShipTo.

Public Property WIPMaterialAccountSets or returns the G/L account associated to Work In Progress (WIP).

Field name: WipAcct.

Length: 15 characters.

Public Property WIPMaterialVarianceAccountSets or returns the G/L account associated to Work In Progress (WIP) differences. That is, the account for posting differences between the value of the row material (before production) and the value of the complete product (after production).

Field name: WipVarAcct.

Length: 15 characters.

Public Property WipOffsetProfitAndLossAccount

An offsetting account (contra-account) to a WIP (work in progress) account used within production transactions and for change of value of the WIP account during the production process.

Field name: WipOffset.

Length: 15 characters.

Public Property ZipCodeSets or returns the Zip Code of the warehouse address.

Field name: ZipCode.

Length: 20 characters.

See Also