biuan SAP® BUSINESS ONE SDK
API Sales Opportunities

Description

SalesOpportunities is a business object that represents the sales opportunities data in SAP Business One. Sales opportunities include potential sale volumes that may arise from business with customers and interested parties.

This object enables you to:

  • Add a sales opportunity.
  • Retrieve a sales opportunity by its key.
  • Update a sales opportunity with the progress of the sales activities and negotiations.
  • Remove a sales opportunity.
  • Save the object in XML format.

Source table: OOPR.

Object Model

Remarks

Mandatory fields in SAP Business One: CardCode and StartDate.

To display the form in the application:

  • Select Sales Opportunities --> Sales Opportunity.

See Also

SAP® B1 DI-API C# definition

public class SalesOpportunitiesClass : ISalesOpportunities, SalesOpportunities { public virtual int AttachmentEntry { get; set; } public virtual string BPChanelCode { get; set; } public virtual string BPChanelName { get; set; } public virtual int BPChannelContact { get; set; } public virtual DataBrowser Browser { get; } public virtual string CardCode { get; set; } public virtual DateTime ClosingDate { get; set; } public virtual double ClosingGrossProfitLocal { get; } public virtual double ClosingGrossProfitSystem { get; } public virtual double ClosingPercentage { get; } public virtual BoSoClosedInTypes ClosingType { get; set; } public virtual SalesOpportunitiesCompetition Competition { get; } public virtual int ContactPerson { get; set; } public virtual double CurrentStageNo { get; } public virtual int CurrentStageNumber { get; } public virtual string CustomerName { get; set; } public virtual int DataOwnershipfield { get; set; } public virtual string DocumentCheckbox { get; } public virtual double GrossProfit { get; set; } public virtual double GrossProfitTotalLocal { get; set; } public virtual double GrossProfitTotalSystem { get; } public virtual int Industry { get; set; } public virtual int InterestField1 { get; set; } public virtual int InterestField2 { get; set; } public virtual int InterestField3 { get; set; } public virtual int InterestLevel { get; set; } public virtual SalesOpportunitiesInterests Interests { get; } public virtual SalesOpportunitiesLines Lines { get; } public virtual string LinkedDocumentNumber { get; } public virtual int LinkedDocumentType { get; } public virtual double MaxLocalTotal { get; } public virtual double MaxSystemTotal { get; } public virtual string OpportunityName { get; set; } public virtual OpportunityTypeEnum OpportunityType { get; set; } public virtual SalesOpportunitiesPartners Partners { get; } public virtual DateTime PredictedClosingDate { get; set; } public virtual string ProjectCode { get; set; } public virtual int ReasonForClosing { get; set; } public virtual SalesOpportunitiesReasons Reasons { get; } public virtual string Remarks { get; set; } public virtual int SalesPerson { get; set; } public virtual int SequentialNo { get; } public virtual int Source { get; set; } public virtual DateTime StartDate { get; set; } public virtual BoSoOsStatus Status { get; set; } public virtual string StatusRemarks { get; set; } public virtual int Territory { get; set; } public virtual double TotalAmounSystem { get; } public virtual double TotalAmountLocal { get; set; } public virtual SAPbobsCOM.UserFields UserFields { get; } public virtual int UserSignature { get; } public virtual double WeightedSumLC { get; } public virtual double WeightedSumSC { get; } public extern SalesOpportunitiesClass(); public virtual extern int Add(); public virtual extern int Close(); public virtual extern string GetAsXML(); public virtual extern bool GetByKey( int OpprId); 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


Sales Opportunities Competition SalesOpportunitiesCompetition Object· Table: OPR3
SalesOpportunityCompetition is a child object of the SalesOpportunities object that represents the competitors of the sales opportunity. Source table: OPR3.
   Parent: Sales Opportunities SalesOpportunities Object· Table: OOPR

Sales Opportunities Interests SalesOpportunitiesInterests Object· Table: OPR4
SalesOpportunitiesInterests is a child object of the SalesOpportunities object and represents the interests range of sales opportunity. Source table: OPR4.
   Parent: Sales Opportunities SalesOpportunities Object· Table: OOPR

Sales Opportunities Lines SalesOpportunitiesLines Object· Table: OPR1
SalesOpportunityLines is a child object of the SalesOpportunities object and represents the stages of the sales opportunity. Source table: OPR1.
   Parent: Sales Opportunities SalesOpportunities Object· Table: OOPR

Sales Opportunities Partners SalesOpportunitiesPartners Object· Table: OPR2
SalesOpportunityPartner is a child object of the SalesOpportunities object that represents the partners of the sales opportunity. Source table: OPR2.
   Parent: Sales Opportunities SalesOpportunities Object· Table: OOPR

Sales Opportunities Reasons SalesOpportunitiesReasons Object· Table: OPR5
SalesOpportunitiesReasons is a child object of the SalesOpportunities object and represents the reasons for failures of sales opportunity. Source table: OPR5.
   Parent: Sales Opportunities SalesOpportunities Object· Table: OOPR

Bo So Closed In Types BoSoClosedInTypes Enumeration
Defines the date types for closing sales opportunities.
   Parent: Sales Opportunities SalesOpportunities Object· Table: OOPR

Bo So Os Status BoSoOsStatus Enumeration
Specifies the summary status of the sales opportunity.
   Parent: Sales Opportunities SalesOpportunities Object· Table: OOPR

Opportunity Type Enum OpportunityTypeEnum Enumeration
   Parent: Sales Opportunities SalesOpportunities Object· Table: OOPR


SAP® Business One is the trademark(s) or registered trademark(s) of SAP AG in Germany and in several other countries. Icons by Icons8 Contact
This website is not affiliated with, maintained, authorized, endorsed or sponsored by SAP AG or any of its affiliates