📚 SAP Business One SDK Help

SalesOpportunities Object Members
See Also  Overview 

Public Methods

Public Method AddAdds a record to the object table in SAP Business One company database.
Public Method CloseCloses a record of the object in SAP Business One database.
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 RemoveDeletes 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.
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 BPChanelCodeSets or returns the distribution channel code for the sales opportunity.

Field name: ChnCrdCode.

Length: 15 characters.

This is a foreign key to the BusinessPartners Object.

Public Property BPChanelNameSets or returns the distribution channel card name for the sales opportunity.

Field name: ChnCrdName.

Length: 100 characters.

Public Property BPChannelContactSets or returns the contact person of the distribution channel for the sales opportunity.

Field name: ChnCrdCon.

This is a foreign key to the ContactEmployees Object.

Public Property BrowserReturns the DataBrowser object.
Public Property CardCodeSets or returns the business partner code.

Mandatory property.

Length: 15 characters.

Field name: CardCode.

Public Property ClosingDateThe closing date of the sales opportunity.

Field name: CloseDate.

Public Property ClosingGrossProfitLocalReturns the closing gross profit in local currency.

Field name: RealProfL.

Public Property ClosingGrossProfitSystemReturns the closing gross profit in system currency.

Field name: RealProfS.

Public Property ClosingPercentageSets or returns the propability percentage for closing the sales opportunity.

Field name: CloPrcnt.

Public Property ClosingTypeSets or returns a valid value of BoSoClosedInTypes type that specifies the date types (days, weeks, or months) for the ClosingDate.

Field name: DifType.

Public Property CompetitionReturns the SalesOpportunitiesCompetition child object.
Public Property ContactPersonSets or returns the customer contact person code.

Field name: CprCode.

This is a foreign key to the ContactEmployees object.

Public Property CurrentStageNoReturns the current stage number.

Field name: StepLast.

This is a foreign key to the SalesStages object.

Public Property CurrentStageNumberproperty CurrentStageNumber
Public Property CustomerNameSets or returns the business partner name who is related to the sales opportunity.

Field name: Name.

Length: 100 characters.

Public Property DataOwnershipfieldSets or returns the employee ID who is responsible for the sales opportunity.

Field name: Owner.

This is a foreign key to the Employees table (OHEM), not exposed through the DI API.

Public Property DocumentCheckboxSets or returns a valid value of BoYesNoEnum type that specifies whether or not restrict the search range for the business partner's documents.

Field name: DocChkbox.

Public Property GrossProfitSets or returns the gross profit percentage.

Field name: PrcnProf.

Public Property GrossProfitTotalLocalSets or returns the total gross profit in local currency.

Field name: SumProfL.

Public Property GrossProfitTotalSystemSets or returns the total gross profit in system currency.

Field name: SumProfS.

Public Property IndustrySets or returns the industry ID number.

Field name: Industry.

This is a foreign key to the Industries object.

Public Property InterestField1Sets or returns the main interest range for the sales opportunity.

Field name: IntCat1.

This is a foreign key to the Interest table (ooin), not exposed through the DI API.

Public Property InterestField2Sets or returns the secondary interest range for the sales opportunity.

Field name: IntCat2.

This is a foreign key to the Interest table (ooin), not exposed through the DI API.

Public Property InterestField3Sets or returns the additional interest range for the sales opportunity.

Field name: IntCat3.

This is a foreign key to the Interest table (ooin), not exposed through the DI API.

Public Property InterestLevelSets or returns the interest level (for example: warm, cold, general interest, and so on) for the sales opportunity.

Field name: IntRate.

This is a foreign key to the Interest table (OOIR), not exposed through the DI API.

Public Property InterestsReturns the SalesOpportunitiesInterests child object.
Public Property LinesReturns the SalesOpportunitiesLines child object.
Public Property LinkedDocumentNumberSets or returns the document number that is linked to the sales opportunity.

Field name: DocNum.

Length: 20 characters.

Public Property LinkedDocumentTypeSets or returns the type of the document that is linked to the sales opportunity. For example: sales quotation, sales order, delivery, or A/R invoice.

Field name: DocType.

Length: 2 characters.

Public Property MaxLocalTotalSets or returns the total predicted sales in local currency.

Field name: MaxSumLoc.

Public Property MaxSystemTotalSets or returns the total predicted sales in system currency.

Field name: MaxSumSys.

Public Property OpportunityNameSets or returns the opportunity name.

Field name: Name.

Length: 100 characters.

Public Property OpportunityTypeproperty OpportunityType
Public Property PartnersReturns the SalesOpportunitiesPartners child object.
Public Property PredictedClosingDateSets or returns the predicted closing date.

Field name: PredDate.

Public Property ProjectCodeSets or returns the project code as defined in the Projects object.

This is a foreign key to the Projects table (OPRJ).

Length: 8 characters.

Field name: PrjCode.

Public Property ReasonForClosingSets or returns the reason for closing (exists only if the status is "Missed").

Field name: Reason.

This is a foreign key to the Defect Cause table (OOFR), not exposed through the DI API).

Public Property ReasonsReturns the SalesOpportunitiesReasons child object.
Public Property RemarksSets or returns a memo type string that specifies remarks of the sales opportunity.

Field name: Memo.

Length:64,000 characters.

Public Property SalesPersonSets or returns the sales person code.

Field name: SlpCode.

This is a foreign key to the SalesPersons object.

Public Property SequentialNoReturns the key identifier of the sales opportunity record. SAP Business One assigns this key number automatically when adding a sales opportunity.

Field name: OpprId.

Public Property SourceSets or returns the source of the sales opportunity, for example, Internet, exposition, consultant, and so on.

Field name: Source

This is a foreign key to the Information Source table (OOSR), which is exposed via the SalesOpportunitySourcesSetupService object.

Public Property StartDateSets or returns the start date of the sales opportunity.

Mandatory property.

Field name: OpenDate.

Public Property StatusSets or returns a valid value of BoSoOsStatus type that specifies the summary status of the sales opportunity (Open, Lost, or Won).

Field name: Status.

Public Property StatusRemarksSets or returns the status remarks.

Length: 30 characters.

Field name: StatusRem.

Public Property TerritorySets or returns the sales opportunity territory (segment of the market).

Field name: Territory.

This is a foreign key to the Territories object.

Sets or returns the business partner territory as defined in SAP Business One. Relevant to business partners of customer type only.

Field name: Territory.

This is a foreign key to the Territories object.

Public Property TotalAmounSystemSets or returns the closing total amount of sales in system currency.

Field name: RealSumSys.

Public Property TotalAmountLocalSets or returns the closing total amount of sales in local currency.

Field name: SumProfL.

Public Property UpdateDateproperty UpdateDate
Public Property UpdateTimeproperty UpdateTime
Public Property UserFieldsReturns the UserFields object.
Public Property UserSignatureReturns the ID of the user who enters the sales opportunity details.

Field name: UserSign.

This is a foreign key to the Users object.

Public Property WeightedSumLCSets or returns the weighted predicted sales in local currency.

Field name: WtSumLoc.

Public Property WeightedSumSCSets or returns the weighted predicted sales in system currency.

Field name: WtSumSys.

See Also