biuan SAP® BUSINESS ONE SDK
API Company Service

Description

The CompanyService enables to manage the company administration data. This includes the following tables:

You can also retrieve the status of the application features, whether these features are blocked or not, according to the installation type and localization (see GetFeaturesStatus method).

Object Model

Remarks

To use the service:

  1. Connect to a valid company.
  2. Call the CompanyService, which is the main DI service that you must call before using any other service.
  3. Call the method GetBusinessService for the required service.
  4. Create an empty data structure related to the required service.
    - or-
    You can create a data structure from an XML file or XML string.
  5. Set the required properties of the specified data structure.
  6. Call the required service method.

To display the form in the application:

  1. Select Business Partners

See Also

SAP® B1 DI-API C# definition

public class CompanyServiceClass : ICompanyService, CompanyService { public extern CompanyServiceClass(); public virtual extern PeriodCategoryParams CreatePeriod( PeriodCategory pIPeriodCategory); public virtual extern PeriodCategoryParams CreatePeriodWithFinanceParams( PeriodCategory pIPeriodCategory, FinancePeriodParams pIFinancePeriodParams); public virtual extern AdminInfo GetAdminInfo(); public virtual extern AdvancedGLAccountReturnParams GetAdvancedGLAccount( AdvancedGLAccountParams pIAdvancedGLAccountParams); public virtual extern Blob GetBlob( BlobParams pIBlobParams); public virtual extern object GetBusinessService( ServiceTypes enumServiceType); public virtual extern CompanyInfo GetCompanyInfo(); public virtual extern object GetDataInterface( CompanyServiceDataInterfaces enumMSDI); public virtual extern object GetDataInterfaceFromXMLFile( string bstrFileName); public virtual extern object GetDataInterfaceFromXMLString( string bstrXMLString); public virtual extern FeatureStatusCollection GetFeaturesStatus(); public virtual extern FinancePeriod GetFinancePeriod( FinancePeriodParams pIFinancePeriodParams); public virtual extern FinancePeriods GetFinancePeriods( PeriodCategoryParams pIPeriodCategoryParams); public virtual extern GeneralService GetGeneralService( string sServiceCode); public virtual extern ItemPriceReturnParams GetItemPrice( ItemPriceParams pIItemPriceParams); public virtual extern PathAdmin GetPathAdmin(); public virtual extern PeriodCategory GetPeriod( PeriodCategoryParams pIPeriodCategoryParams); public virtual extern PeriodCategoryParamsCollection GetPeriods(); public virtual extern string GetServiceMetaData( ServiceTypes ServiceCode); public virtual extern bool IsUserLicensed( string bstrUserName, string bstrLicType); public virtual extern void LoadBlobFromFile( BlobParams pIBlobParams); public virtual extern RoundedData RoundDecimal( DecimalData pIDecimalData); public virtual extern void SaveBlobToFile( BlobParams pIBlobParams); public virtual extern void SetBlob( BlobParams pIBlobParams, Blob pIBlob); public virtual extern void UpdateAdminInfo( AdminInfo pIAdminInfo); public virtual extern void UpdateCompanyInfo( CompanyInfo pICompanyInfo); public virtual extern void UpdateFinancePeriod( FinancePeriod pIFinancePeriod); public virtual extern void UpdatePathAdmin( PathAdmin pIPathAdmin); public virtual extern void UpdatePeriod( PeriodCategory pIPeriodCategory); public virtual extern void UpdateUserLicense( UserLicenseParams pIUserLicenseParams); }

Related information


Finance Period Params FinancePeriodParams Object
The FinancePeriodParams specifies the identification key(system number, period indicator ) for which the CompanyService is related.
   Parent: Company Service CompanyService Service

User License Params UserLicenseParams Object
Contains the parameters for assigning licenses.
   Parent: Company Service CompanyService Service

Admin Info AdminInfo Object· Table: OADM
The AdminInfo is a data structure related to the CompanyService. It includes administration properties for system initialization (company details, document settings, and general settings), and various definitions, such as financials and banking....
   Parent: Company Service CompanyService Service

Company Info CompanyInfo Object· Table: CINF
The CompanyInfo is a data structure related to the CompanyService. It includes initial parameters related to the company. The default values of part of the properties vary according to the country localization. Source table: CINF.
   Parent: Company Service CompanyService Service

Get Business Service GetBusinessService Service
Creates a specified business service. Use this method for all types of services
   Parent: Company Service CompanyService Service

Get General Service GetGeneralService Service
Returns an instance of GeneralService for the specified user-defined object (UDO). The GeneralService instance can be used to add, retrieve and delete rows of the main table and child tables linked to the specified UDO.
   Parent: Company Service CompanyService Service

Finance Period FinancePeriod Object· Table: OFPR
The FinancePeriod object is a data structure related to the CompanyService. The object is used to identify and define a new Finance Period. Source table: OFPR.
   Parent: Company Service CompanyService Service

General Service GeneralService Service
The GeneralService provides access to UDOs. With the service, you can add, look up and remove rows from user-defined tables. You can also invoke custom methods on the UDO's custom business implementation DLL.
   Parent: Company Service CompanyService Service

Period Category PeriodCategory Object
The PeriodCategory object is a data structure related to the CompanyService. The PeriodCategory object provides two types of properties: Properties that access existing Accounts and function as foreign keys to ChartOfAccounts Object....
   Parent: Company Service CompanyService Service

Company Service Data Interfaces CompanyServiceDataInterfaces Enumeration
CompanyService data interfaces.
   Parent: Company Service CompanyService Service

Advanced GL Account Params AdvancedGLAccountParams Object
AdvancedGLAccountParams Class
   Parent: Company Service CompanyService Service

Advanced GL Account Return Params AdvancedGLAccountReturnParams Object
AdvancedGLAccountReturnParams Class
   Parent: Company Service CompanyService Service

Blob Blob Object
Holds blob content to be added to or retrieved from a blob field in the SAP Business One database.
   Parent: Company Service CompanyService Service

Blob Params BlobParams Object
Specifies a set of blob fields, as follows: The Table property specifies the database table. The Field property specifies the blob field in the database table. The BlobTableKeySegments property specifies the records whose blob fields are to...
   Parent: Company Service CompanyService Service

Decimal Data DecimalData Object
Represents the data before rounding.
   Parent: Company Service CompanyService Service

Feature Status Collection FeatureStatusCollection Collection
FeatureStatusCollection is a Data Collection of FeatureStatus data structures.
   Parent: Company Service CompanyService Service

Finance Periods FinancePeriods Collection
FinancePeriods is a collection of FinancePeriod objects.
   Parent: Company Service CompanyService Service

Item Price Params ItemPriceParams Object
ItemPriceParams Class
   Parent: Company Service CompanyService Service

Item Price Return Params ItemPriceReturnParams Object
ItemPriceReturnParams Class
   Parent: Company Service CompanyService Service

Path Admin PathAdmin Object
An object for setting and getting directory paths for storing various files. Source tables: OADP
   Parent: Company Service CompanyService Service

Period Category Params PeriodCategoryParams Object
The PeriodCategoryParams specifies the identification key (AbsoluteEntry) for which the DocumentSeriesParams service is related. .
   Parent: Company Service CompanyService Service

Period Category Params Collection PeriodCategoryParamsCollection Collection
PeriodCategoryParamsCollection is a collection of PeriodCategoryParams identification keys.
   Parent: Company Service CompanyService Service

Rounded Data RoundedData Object
Represents the data after rounding.
   Parent: Company Service CompanyService Service

Service Types ServiceTypes Enumeration
DI API services.
   Parent: Company Service CompanyService Service


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