API Document Lines / Sales Person Code


Sets or returns the code of the sales employee who has created this document.

Field name: SlpCode.

This is a foreign key to the SalesPersons object.

Property type

Read-write property


Visual Basic
Public Property SalesPersonCode() As Long


Can be updated in open sales quotations and open purchase orders only.

If a sales employee is defined for the selected business partner, the value for this property is retrieved from the SalesPersonCode property (BusinessPartners object), else the value is retrieved from the SalesEmployeeCode property (SalesPersons object).

This property is not relevant for oInventoryGenEntry and oInventoryGenExit document types.

See Also

Related information

Batch Numbers BatchNumbers Object· Table: OBTN BTNT
BatchNumbers is a business object that represents the batch numbers of an item in the Inventory and Production module. This object enables you to add batch numbers for a selected item row (one record per item). Source table: OBTN, OBTW, OITL,...
   Parent: Document Lines Document_Lines Object· Table: IGE1 IGN1

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