📚 SAP Business One SDK Help

ServiceContracts Object Members
See Also  Overview 

Public Methods

Public Method AddAdds a record to the object table in SAP Business One company database.
Public Method CloseNot supported.
Public Method GetAsXMLReturns the object from XML data, which is stored as string in a buffer.
Public Method GetByKeyRetrieves and sets the values of the object's properties by the object's absolute key from the Company database.
Public Method RemoveNot supported.

Field name: .

Public Method SaveToFileSave the object to a file as XML data.
Public Method SaveXMLSaves the object data to XML formatted data.
Public Method UpdateUpdates the object data in the company database.

Public Properties

Public Property AttachmentEntrySets or returns the identification key of the attachment file, as assigned by SAP Business One when adding an Attachment Entry to alert message.

Field name: AtcEntry.

Public Property AttachmentsReturns the Attachments object.
Public Property BrowserReturns the DataBrowser object.
Public Property ContactCodeSets or returns the code of the contact person (from the business partner master data).

Field name: CntctCode.

This is a foreign key to the ContactEmployees object.

Public Property ContractIDReturns the ID of the service contract.

Field name: ContractID.

Public Property ContractTemplateSets or returns the name of the contract template.

Field name: CntrcTmplt.

Length: 20 characters.

This is a foreign key to the ContractTemplates object.

Public Property ContractTypeSets or returns a valid value of BoContractTypes type that specifies the contract type: Customer, Item Group, or Serial Number.

Field name: CntrcType.

Public Property CustomerCodeSets or returns the customer code, which is the business partner code.

Mandatory field in SAP Business One.

Field name: CstmrCode.

Length: 15 characters.

This is a foreign key to the BusinessPartners object.

Public Property CustomerNameSets or returns the customer name, which is the business partner name.

Field name: CstmrName.

Length: 100 characters.

This is a foreign key to the BusinessPartners object.

Public Property DescriptionSets or returns a string that describes the service contract.

Field name: Descriptio.

Length: 254 characters.

Public Property DurationOfCoverageSets or returns the duration of the service contract coverage.

Field name: duration.

Public Property EndDateSets or returns the end date of the service contract.

Mandatory field in SAP Business One.

Field name: EndDate.

Public Property FridayEnabledSets or returns a valid value of BoYesNoEnum type that specifies whether or not to include Fridays to the contract coverage.

Field name: FriEnabled.

Public Property FridayEndSets or returns the ending working hour, for the service coverage, on Fridays.

Field name: FriEnd.

Public Property FridayStartSets or returns the beginning working hour, for the service coverage, on Fridays.

Field name: FriStart.

Public Property IncludeHolidaysSets or returns a valid value of BoYesNoEnum type that specifies whether or not to include holidays to the service contract coverage.

Field name: InclHldays.

Public Property IncludeLaborSets or returns a valid value of BoYesNoEnum type that specifies whether or not to include technician's work to the service contract coverage.

Field name: InclWork.

Public Property IncludePartsSets or returns a valid value of BoYesNoEnum type that specifies whether or not to include replacement parts (items) to the service contract coverage.

Field name: InclParts.

Public Property IncludeTravelSets or returns a valid value of BoYesNoEnum type that specifies whether or not to include travel to the service contract coverage.

Field name: InclTravel.

Public Property LinesReturns the ServiceContract_Lines child object.
Public Property MondayEnabledSets or returns a valid value of BoYesNoEnum type that specifies whether or not to include Mondays to the service contract coverage.

Field name: WedEnabled.

Public Property MondayEndSets or returns the ending working hour, for the service coverage, on Monday.

Field name: MonEnd.

Sets or returns the ending working hour, for the service coverage, on Mondays.

Field name: MonEnd.

Public Property MondayStartSets or returns the beginning working hour, for the service coverage, on Monday.

Field name: MonStart.

Sets or returns the beginning working hour, for the service coverage, on Mondays.

Field name: MonStart.

Public Property OwnerSets or returns the name or title of the employee that is responsible for the service contract.

Field name: Owner.

This is a foreign key to the Users Object.

Public Property RemarksSets or returns a memo type string that specifies remarks for the service contract (in addition to the remarks from the contract template).

Length: 64,000 characters.

Field name: Remarks1.

Public Property ReminderTimeSets or returns the number of days, weeks, or months for the alert to appear prior to the termination of the contract. To enable this reminder, set the Renewal property to tYES.

Field name: RemindVal.

Public Property RemindUnitSets or returns a valid value of BoRemindUnits type that specifies the units (days, weeks, or months) for the ReminderTime property.

Field name: RemindUnit.

Public Property RenewalSets or returns a valid value of BoYesNoEnum type that specifies whether or not to renew the service contract.

Field name: Renewal.

Public Property ResolutionTimeSets or returns the maximum time, in days or hours, to resolve a service call.

Field name: ResponsVal.

Public Property ResolutionUnitSets or returns a valid value of BoResolutionUnits type that specifies the units, hours or days, for the ResolutionTime property.

Field name: ResponsUnt.

Public Property ResponseTimeSets or returns the maximum time, in hours or days, to respond to a service call.

Field name: ResponseV.

Public Property ResponseUnitSets or returns a valid value of BoResponseUnit type that specifies the units, hours or days, for the ResponseTime property.

Field name: ResponseU.

Public Property SaturdayEnabledSets or returns a valid value of BoYesNoEnum type that specifies whether or not to include Saturdays to the service contract coverage.

Field name: SatEnabled.

Public Property SaturdayEndSets or returns the ending working hour, for the service coverage, on Saturday.

Field name: SatEnd.

Sets or returns the ending working hour, for the service coverage, on Saturdays.

Field name: SatEnd.

Public Property SaturdayStartSets or returns the starting working hour, for the service coverage, on Saturday.

Field name: SatStart.

Sets or returns the beginning working hour, for the service coverage, on Saturdays.

Field name: SatStart.

Public Property ServiceBPTypeproperty ServiceBPType
Public Property ServiceTypeSets or returns a valid value of BoServiceTypes type that specifies the service type of the contract: Regular or Warranty.

Field name: SrvcType.

Public Property StartDateSets or returns the start date of the service contract.

Field name: StartDate.

Public Property StatusSets or returns a valid value of BoSvcContractStatus type that specifies the status of the service contract (approved, on-hold, or draft).

Field name: Status.

Public Property SundayEnabledSets or returns a valid value of BoYesNoEnum type that specifies whether or not to include Sundays to the service contract coverage.

Field name: SunEnabled.

Public Property SundayEndSets or returns the ending working hour, for the service coverage, on Sunday.

Field name: SunEnd.

Sets or returns the ending working hour, for the service coverage, on Sundays.

Field name: SunEnd.

Public Property SundayStartSets or returns the starting working hour, for the service coverage, on Sunday.

Field name: SunStrart.

Sets or returns the beginning working hour, for the service coverage, on Sundays.

Field name: SunStrart.

Public Property TemplateRemarksReturns a memo type string that specifies remarks for the contract template as defined in the Remarks property of the ContractTemplates object.

Field name: Remarks1.

Length: 64,000 characters.

Public Property TerminationDateSets or returns the termination date of the service contract.

Field name: TermDate.

Public Property ThursdayEnabledSets or returns a valid value of BoYesNoEnum type that specifies whether or not to include Thursdays to the service contract coverage.

Field name: ThuEnabled.

Public Property ThursdayEndSets or returns the ending working hour, for the service coverage, on Thursdays.

Field name: ThuEnd.

Sets or returns the ending working hour, for the service coverage, on Thursdays.

Field name: ThuEnd.

Public Property ThursdayStartSets or returns the starting working hour, for the service coverage, on Thursdays.

Field name: ThuStart.

Sets or returns the beginning working hour of the company on Thursdays.

Field name: ThuStart.

Public Property TuesdayEnabledSets or returns a valid value of BoYesNoEnum type that specifies whether or not to include Tuesdays to the service contract coverage.

Field name: TueEnabled.

Public Property TuesdayEndSets or returns the ending working hour, for the service coverage, on Tuesdays.

Field name: TueEnd.

Sets or returns the ending working hour, for the service coverage, on Tuesdays.

Field name: ThuEnd.

Public Property TuesdayStartSets or returns the starting working hour, for the service coverage, on Tuesdays.

Field name: TueStart.

Sets or returns the beginning working hour of the company on Tuesdays.

Field name: ThuStart.

Public Property UserFieldsReturns the UserFields object.
Public Property WednesdayEnabledSets or returns a valid value of BoYesNoEnum type that specifies whether or not to include Wednesdays to the service contract coverage.

Field name: WedEnabled.

Public Property WednesdayEndSets or returns the ending working hour, for the service coverage, on Wednesdays.

Field name: WedEnd.

Sets or returns the ending working hour, for the service coverage, on Wednesdays.

Field name: WedEnd.

Public Property WednesdayStartSets or returns the starting working hour, for the service coverage, on Wednesdays.

Field name: WedStart.

Sets or returns the beginning working hour, for the service coverage, on Wednesdays.

Field name: WedStart.

See Also