Questions tagged [sap-business-one-di-api]

74 questions
0
votes
1 answer

Unable to set date values in SAP B1 matrix combobox

I am trying to set values in a matrix combobox but I cannot be able to set the first value of date to that combobox. It shows blank and when I select a date, it does not fill the field anyway. The values I get from the DB are as follows: Here is…
Kinyanjui Kamau
  • 1,890
  • 10
  • 55
  • 95
0
votes
2 answers

SAP B1: Getting an error when trying to create an AP Credit Memo - 540020003 - Missing document type

I am trying to create an A/P Credit Memo as a copy of an A/P Invoice. I am doing it manually, but copying values, instead of point the Credit Memo back to the base document. The pertinent bits are all in this method: private int…
Thomas Due
  • 43
  • 1
  • 2
0
votes
0 answers

Save oCompany in a cookie or session

Does anyone know how I can save the variable oCompany from Sap b1 DiAPI in a cookie or in a session to reuse it? $oCompany = new COM("SAPbobsCOM.Company")or die ("No connection");
YesidG
  • 1
  • 1
0
votes
3 answers

SAP B1 v10: DI-API - The type initializer threw an exception

I am trying to run an addon in debug mode (x64) in Visual Studio for SAP B1 version 10.00.150. This addon worked well in version 9.3. I have updated the .dll files for SAP bobs and boui with the correct version in the code. This is a Hana DB. I have…
Kinyanjui Kamau
  • 1,890
  • 10
  • 55
  • 95
0
votes
1 answer

Save oCompany object to reusable variable, Sap b1 Di Api

HI I wanted to see if anyone knows how I could save the oCompany variable in a cookie or a session for reuse For example with this code: Pressing the connect button connects but pressing the disconnect button does not work, it does not disconnect…
YesidG
  • 1
  • 1
0
votes
1 answer

SAP DI API update OBTW location field

Hi I'm trying to update the location of the OBTW table using the DI API of SAP Business One. It's really hard to find any examples on how to do this and I could only find a function to get to the OBTN table here:…
0
votes
1 answer

SAP Business One - Add BP (DI Error: (-5002)

I am trying to add new addresses into a BP. If there is an address registered in the BP everything works, but now if it is new addresses return the error -5002 - Error updating BP: [OCRD.State2], 'the linked value' SP 'does not exist' I test with…
Paulo
  • 1
  • 1
  • 1
0
votes
0 answers

Creating a EF Core DbContext on a SAP Business One database

I am wondering about designing a EF core model of the SAP B1 database. I realize that this is a major undertaking, but I aim to start small. This is mainly as an exercise, which may lead to something in the future. My main issue right now, is to…
0
votes
2 answers

What is the name of field Absence Type of HEM1 table of SAP B1 in SDK?

What is the name of field Absence Type of HEM1 table of SAP B1 in SDK? I tried to use type and AbsenceType in SDK but I failed Please anyone can help me
Schadro
  • 63
  • 6
0
votes
1 answer

SAP Business one SDK require on client machine if addon developed using SAPBusinessOneSDK dll

I am getting error class not register while installing my sap business one add-on. When I installed SAPBusinessOneSDK tools then it is working. So Is it mandatory to install SAP Business one SDK if add-on developed using SAP business one visual…
0
votes
0 answers

Get Invoice PDF from SAP Business One Database with REST API

I got the task to front- and backend code a web interface for an overview about all the invoices from a specific customer in our SAP Business One system. So far so good, but now I also need to call these invoices as a PDF file and display them in a…
0
votes
1 answer

SAP B1 Service Layer slow performance

I have been developing an application in MVC for SAP with DI API for a month, but due to administrative decisions the client will hire a cloud service, which only allows me to use "Service Layer". The last two weeks I have been transferring…
0
votes
1 answer

Cannot inspect Sap B1 SDK objects while debugging in Visual Studio 2019

I am working with Visual Studio 2019 Community Edition Version 16.7.2. I have referenced the SapBusinessOneSDK.dll inside a .Net Core Console Application to access SAP B1 via DI API and I am not able to inspect any Sap B1 COM Object while debugging.…
0
votes
1 answer

SAP Business One Integration Framework browser stuck on "Loading"

I spun up an instance of Business One using the SAP Cloud Appliance Library that included an install of the Integration Framework but when I try to load the framework via the browser (127.0.0.1:8080/) I get stuck on a "Loading" screen. I've turned…
Erich Wehrmann
  • 464
  • 2
  • 11
0
votes
1 answer

Cannot add row without complete selection of batch/serial numbers

ERROR: (-4014) Cannot add row without complete selection of batch/serial numbers. The default function of DI API SaveDraftToDocument() is working fine on MS SQL Database but not SAP HANA. I am posting the Delivery document with Serial…