In SAP Business One SDK,recordset object is used for executing SQL queries and stored procedures.
The acronym of A/P Invoice is Account Payable Invoice. For purchasing the goods.
following invoices are added in SAP Business One:
So A/P Invoice is the last process for the purchase department. When A/P Invoice is added, the accouting effect can be seen.
SAP Business One Event Logger is a tool provided by SAP for keeping the track of events.Both SAP Business One and event logger should be executed simultaneously.Event logger will give you detailed list of events that fired while operating SAP.Event logger is very useful tool while devleloping add-ons in SDK.Coding can be done as per the events that are shown in event logger.For devleoping robust applications in SAP Business One SDK,event logger is useful tool since entire programming in SAP Business One SDK is event driven.
Following are the different objects in DI API :
The standard behaviour or the convensional flow of SAP Business One can not be altered using SDK.Some or other error will occur.So it is advisable not to disturb the convensional flow of SAP Business One using SDK.
0 is the value returned by a method when it executes successfully.
Following are the functions of Data Interface API (DI API):
UI API stands for User Interface Application Program.Dll is provided by SAP i.e. Interop.SAPbouiCOM.dll.The reference of this dll is added in the project to access it in project.UI API is used for accessing the controls that are displayed on the form.
Following are the functions of UI API:
If we remove EventFilters,then the all the events will fire.While programming in SDK,the unneccessary events should be neglected since it will decline the performance of the application.When EventFilter is applied to the SAPbouiCOM.Application object,then the events will fire as per the requirement of the user and thus enhancing the performance of the application.
In OBServerDLL.DLL , the business objects of the SAP Business One client are copied.
Screen painter is used for developing form in SAP Business One SDK.Screen painter is provided as add-on by SAP and it can be used to designing and developing forms.The files created by screen painter has srf extension and these files should be renamed to xml for deploying then in SAP Business One.
DBDataSource is used for storing data from database.DBDataSource is linked to database table and it represents tabular data.DBDataSource is used by all system forms.You can get DBDataSource as follows – Here I have assumed that I have opened the form of Sales Order and I want to get the database details of the sales order.The table name is ORDR. Dim objDS As SAPbouiCOM.DBDataSource
objDS = SBO_Application.Forms.ActiveForm.DataSources.DBDataSources.Item(“ORDR”)
The following are the uses of company object in SAP Business One:
DI server executes on the server.
The property Visual RowCount gives the total number of rows in the matrix.
SAP Business One is implemented as a two-layer architecture. The system is based on a Microsoft SQL Server database where data is stored centrally. The business logic is mostly processed on the client software (fat client).
0 is returned when any method of an DI API object executes successfully.
For performing heavy duty operation DI server is suitable.The DI Server implements a connection pooling mechanism to enhance performance and scalability of the server.As DI Server is a SOAP-based interface it does not limit the client to a COM interface, but allows a wide range of possible client technologies.
Graphical user interface and the business object classes connecting to the database are the different components of SAP Business One client software .
BubbleEvent specifies whether the event will be processed by SAP Business One or not.If BubbleEvent=True ,then SAP Business One will process the event else the execution will terminate.For eg,
If pVal.EventType = BoEventTypes.et_CLICK And pVal.Action_Success = True And pVal.FormUID = “F_32” And pVal.ItemUID = “btnSave” Then
BubbleEvent=False
End If
In the above code,click event of save button is handeled.When the user clicks on the save button,then first the above code will execute and then it will be handeled by SAP Business One.Here I have set BubbleEvent=False.So the click event will terminate and SAP Business One will not handle the event.
OCRY table saves the details of country.
Company object represents SAP Business One database.Is used to establish a connection to a Microsoft SQL Server database.
Following are the limitations of DI server:
The following are the different types of DataSources :
In SAP Business One,DI Server is DCOM service that runs on the SAP Business One server and accepts XML data packed in SOAP (Simple Object Access Protocol)
Yes,datatable can be loaded directly using sql query as follows:
Dim obJECT as SAPbouiCOM.DataTable Dim strQuery as String strQuery=”SELECT * FROM OITM” obJECT.ExecuteQuery(strQuery)
Following are the different parts of DI API:
The acronym of A/R Invoice is Account Receivable Invoice. For selling a product
following invoices are added in SAP Business One:
So A/R Invoice is the last process for the sales department. When A/R Invoice is added, the respective accouting entries are added. The report from the A/R Invoice is send as bill along with the product.
Following are the different types of transactions supported by DI API:
In the recordset ,data can be filled in the recordset using the sub-routine DoQuery.The sample illustrates this in detail , Dim objRS As SAPbobsCOM.Recordset
objRS = objCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
objRS.DoQuery(“SELECT * FROM OITM”)
Learn SAP Business One Course makes an emphasis on all that is required to manage critical business functions across sales.