biuan SAP® BUSINESS ONE SDK
API Service Contracts

Description

ServiceContracts is a business object that represents the service contracts table in the Service module of SAP Business One application.

This object enables you to:

  • Add a service contract.
  • Retrieve a service contract by its key.
  • Update a service contract.
  • Remove a service contract.
  • Save the object in XML format.

Source table: OCTR.

Object Model

Remarks

Mandatory fields in SAP Business One: CustomerCode, EndDate, and ResolutionTime.

To display the form in the application:

  • Select Service --> Service Contract.

See Also

SAP® B1 DI-API C# definition

public class ServiceContractsClass : IServiceContracts, ServiceContracts { public virtual int AttachmentEntry { get; set; } public virtual SAPbobsCOM.Attachments Attachments { get; } public virtual DataBrowser Browser { get; } public virtual int ContactCode { get; set; } public virtual int ContractID { get; } public virtual string ContractTemplate { get; set; } public virtual BoContractTypes ContractType { get; set; } public virtual string CustomerCode { get; set; } public virtual string CustomerName { get; set; } public virtual string Description { get; set; } public virtual int DurationOfCoverage { get; } public virtual DateTime EndDate { get; set; } public virtual BoYesNoEnum FridayEnabled { get; set; } public virtual DateTime FridayEnd { get; set; } public virtual DateTime FridayStart { get; set; } public virtual BoYesNoEnum IncludeHolidays { get; set; } public virtual BoYesNoEnum IncludeLabor { get; set; } public virtual BoYesNoEnum IncludeParts { get; set; } public virtual BoYesNoEnum IncludeTravel { get; set; } public virtual ServiceContract_Lines Lines { get; } public virtual BoYesNoEnum MondayEnabled { get; set; } public virtual DateTime MondayEnd { get; set; } public virtual DateTime MondayStart { get; set; } public virtual int Owner { get; set; } public virtual string Remarks { get; set; } public virtual int ReminderTime { get; set; } public virtual BoRemindUnits RemindUnit { get; set; } public virtual BoYesNoEnum Renewal { get; set; } public virtual int ResolutionTime { get; set; } public virtual BoResolutionUnits ResolutionUnit { get; set; } public virtual int ResponseTime { get; set; } public virtual BoResponseUnit ResponseUnit { get; set; } public virtual BoYesNoEnum SaturdayEnabled { get; set; } public virtual DateTime SaturdayEnd { get; set; } public virtual DateTime SaturdayStart { get; set; } public virtual BoServiceTypes ServiceType { get; set; } public virtual DateTime StartDate { get; set; } public virtual BoSvcContractStatus Status { get; set; } public virtual BoYesNoEnum SundayEnabled { get; set; } public virtual DateTime SundayEnd { get; set; } public virtual DateTime SundayStart { get; set; } public virtual string TemplateRemarks { get; } public virtual DateTime TerminationDate { get; set; } public virtual BoYesNoEnum ThursdayEnabled { get; set; } public virtual DateTime ThursdayEnd { get; set; } public virtual DateTime ThursdayStart { get; set; } public virtual BoYesNoEnum TuesdayEnabled { get; set; } public virtual DateTime TuesdayEnd { get; set; } public virtual DateTime TuesdayStart { get; set; } public virtual SAPbobsCOM.UserFields UserFields { get; } public virtual BoYesNoEnum WednesdayEnabled { get; set; } public virtual DateTime WednesdayEnd { get; set; } public virtual DateTime WednesdayStart { get; set; } public extern ServiceContractsClass(); public virtual extern int Add(); public virtual extern int Close(); public virtual extern string GetAsXML(); public virtual extern bool GetByKey( int ContractID); public virtual extern int Remove(); public virtual extern void SaveToFile( string FileName); public virtual extern void SaveXML( ref string FileName); public virtual extern int Update(); }

Related information


Service Contract Lines ServiceContract_Lines Object· Table: CTR1
ServiceContract_Lines is a child object of the ServiceContracts object that represents the line entries of each service contract. This object is part of the Service module. Source table: CTR1.
   Parent: Service Contracts ServiceContracts Object· Table: OCTR

Bo Contract Types BoContractTypes Enumeration
Specifies the service contract types.
   Parent: Service Contracts ServiceContracts Object· Table: OCTR

Bo Remind Units BoRemindUnits Enumeration
Specifies the reminder time units.
   Parent: Service Contracts ServiceContracts Object· Table: OCTR

Bo Resolution Units BoResolutionUnits Enumeration
Specifies the units for the maximum time required to resolve a service call.
   Parent: Service Contracts ServiceContracts Object· Table: OCTR

Bo Response Unit BoResponseUnit Enumeration
Specifies the units for the maximum time required to response to a service call.
   Parent: Service Contracts ServiceContracts Object· Table: OCTR

Bo Service Types BoServiceTypes Enumeration
Specifies the service type for the service contract.
   Parent: Service Contracts ServiceContracts Object· Table: OCTR

Bo Svc Contract Status BoSvcContractStatus Enumeration
Specifies the service contract status.
   Parent: Service Contracts ServiceContracts Object· Table: OCTR


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