SAP Business One SDK

About update SAP business one cloud extension

Dear All These are the steps when you update the new addon on cloud. 1. Unassign tenants 2. Undeploy service units 2 times. 3. Remove extension from CCC 4. Clear addon from presentation server: a. Delete addon folder from “C:Program Files (x86)SAPSAP Business OneAddOns” b. Delete addon relevant information in “C:Program Files (x86)SAPSAP Business OneAddOnsLocalRegistration.sbo” 5. restart SAP B1 client agent (if show to install) 6. Put the extension in …

Read More »

‘Project Management’ object is exposed from SAP Business One Version 9.2 PL03

“Project Management” object is exposed as a Service Type Object from SAP Business One Version 9.2 PL03. It is yet to be implemented in DTW. Here is how to use the Project Management object using DI API: 1. Add a Project using DI API: int absEntryOfCreatedProject = -1; SAPbobsCOM.CompanyService oCompServ = null; SAPbobsCOM.ProjectManagementService pmgService = null; try { oCompServ = (SAPbobsCOM.CompanyService)oCompany.GetCompanyService(); pmgService = (SAPbobsCOM.ProjectManagementService)oCompServ.GetBusinessService(SAPbobsCOM.ServiceTypes.ProjectManagementService); SAPbobsCOM.PM_ProjectDocumentData project = (SAPbobsCOM.PM_ProjectDocumentData)pmgService.GetDataInterface(SAPbobsCOM.ProjectManagementServiceDataInterfaces.pmsPM_ProjectDocumentData); project.ProjectName = …

Read More »

Guidelines for Modifying SAP Business One Data

We can always see customers/partners using several direct updates in some form of Add-Ons/TransactionNotification. Below are some guidelines: Question1: Is it permit to INSERT/UPDATE/DELETE on UDTs through HANA Studio, Coding, B1if? Answer: Direct updates not allowed. It is ok for UDTs of type [No Object & No Object with Auto. Increment] only. Question2: Is it permit to INSERT/UPDATE/DELETE on UDFs from System table through HANA Studio, Coding, B1if? Answer: Not allowed …

Read More »

Sample code to Update existing Item Batches Properties via DI API

Hello Everyone, Below is a sample C# code I wrote for updating an existing Item Batches properties for SAP 9.1.      private static void BatchUpdate()      {           SAPbobsCOM.CompanyService oCompanyService;           oCompanyService = oCompany.GetCompanyService();           SAPbobsCOM.BatchNumberDetailsService oBatchNumbersService;           oBatchNumbersService = oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.BatchNumberDetailsService);           SAPbobsCOM.BatchNumberDetailParams oBatchNumberDetailParams;           oBatchNumberDetailParams = oBatchNumbersService.GetDataInterface(SAPbobsCOM.BatchNumberDetailsServiceDataInterfaces.bndsBatchNumberDetailParams);                      try           {                int docentry = 81; //Put here the actual AbsEntry of the Batchnumber record from table OBTN …

Read More »

How to build Fiori apps for SAP Business One on HANA – part3

This blog explains the part3 of how to build B1 Fiori apps running on top of SAP HANA, with the help of the WEB IDE for HCP. Please follow part1&2 for basic understnading of Fiori: How to build Fiori apps for SAP Business One, version for SAP HANA – part1 How to build Fiori apps for SAP Business One on HANA – part2 In order to make it simpler for …

Read More »

SAP Business One Service Layer – SSO with UI API

As of SAP Business One 9.2, version for SAP HANA, besides the normal login, Service Layer supports SSO with SAP Business One SDK UI API. In order to use Service Layer SSO you just have to connect as usual to the UI API and use the UI API SBO_Application object to get the Service Layer B1SESSION and ROUTEID cookies. Here you have a very simple sample getting Service Layer context …

Read More »

SAP Business One Service Layer, what’s new in version 9.2 PL03?

Hi, There are some interesting new features available in SAP Business One Service Layer version for SAP HANA 9.2 PL03 version that I will like to shortly highlight in this blog. Service Layer supports grouping on oData queryB1 Service Layer: GroupingNote: 2312981 – Service Layer supports grouping on OData query (S-user required)Grouping behavior is triggered using the query option apply and the groupby keyword. This keyword specifies the grouping properties, …

Read More »

How to avoid ‘502 Proxy Error’ when adding large documents via Service Layer

If you have ever tried to add large documents (500+ lines) to SAP Business One using SAP Business One Service Layer on HANA, you may have encountered the following error: 502 Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request POST /b1s/v1/InventoryGenEntries Reason: Error reading from remote server However, even if you got the error message, which is …

Read More »

openSAP Courses relevant to the SAP Business One Community

openSAP is SAP’s innovative learning platform and a thought leader for Enterprise MOOCs (Massive Open Online Courses), giving you maximum flexibility to learn about SAP Technology, Innovation and Product at your convenience with free of charge. Below list the courses we think most relevant to SAP Business One. You can visit Enterprise MOOCs: Learn anywhere, anytime and on any device! | openSAP for more details. Note: If the course is …

Read More »