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

74 questions
9
votes
3 answers

How to integrate with SAP B1 using DI Server integration?

We are trying to integrate SAP business one to our application using Java Where can we find more information on it any Documents, API , tutorial, links, how to start/do it pointer towards the right direction will be appreciated. SAP's Developer…
Fossil
  • 179
  • 1
  • 3
  • 15
5
votes
2 answers

Error attaching a file using the DI API in SAP Business One 9

I'm creating an application to attach scanned documents at SAP documents, but I have some problems with that process. I'm using SAP BO 9 PL8 and found the next problems: When I try to add a new attachment line in a existing attachment (using the…
PedroHdez
  • 51
  • 1
  • 3
3
votes
1 answer

Why SAPbobsCOM.Company COM is too slow to instance on windows server?

I developed an console application to connect to SAP B1 via DI API and notice the line below is too slow to execute. It takes about 1 min to run. SAPbobsCOM.Company oCompany = new SAPbobsCOM.Company(); *I'm using SAPBusinessOneSDK.dll and already…
Maykol Rypka
  • 531
  • 6
  • 19
3
votes
1 answer

SAP DI API: How to add payments with multiple invoice?

I'm trying to post to SAP B1 from my add-on application payments with multiple invoices. I'm using C# in developing my add-on app. Upon posting, SAP creates one payment for every invoice or payment detail but suppose to be the invoices of those…
2
votes
3 answers

Connect Sap B1 hana with C# Application using DI API

I am Trying to Connect MY Sap B1 HANA on C# Web Based Application using DI API but my connection is giving me error. Here is Error Screenshot Failed to Connect SLD,make Sure Your SLD Server is Available and Connected. Any Relevant Help would be…
shahzaib
  • 49
  • 1
  • 10
2
votes
1 answer

SAP B1 DI API - Differences between SBObob GetItemPrice and CompanyService GetItemPrice?

What's the main differences between the DI API methods for GetItemPrice? The SBObob accepts less parameters (and returns a Recordset), but as far as I can tell it provides the accurate price for the item taking into accounts any Business Partner…
2
votes
1 answer

Change due date for production order in SAP B1 with the DI SDK

I am trying to change/update the due date of a production order in SAP B1 with the code below: public static void ChangeDueDateForProductionOrder(SAPB1Credentials credentials, int poAbsEntry, DateTime dueDate) { …
rotgers
  • 1,992
  • 1
  • 15
  • 25
1
vote
2 answers

SAP B1 How to create approved document from approved draft via SDK

I've tried sample code like this; SAPbobsCOM.Documents oDocDraft = SAPbobsCOM.Documents)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts);
oDocDraft.GetByKey(docEntry);
oDocDraft.SaveDraftToDocument(); but this only creates regular…
Leotardo
  • 25
  • 4
1
vote
0 answers

SAP B1 Inventory Counting : Getting error as Internal error (-5002) Occurred

We are implementing inventory counting service in our application & we are making calls using DIAPI. When we perform the add operation on inventory counting we are getting an error: Internal error (-5002) occurred We are using SAP B1 V10 with…
1
vote
1 answer

How to properly inactivate a Business Partner via DI API?

I need to inactivate thousands of abandoned Leads. I'm doing it by loading up each one, setting Valid = NO, and saving it back to the database. Here is my code: var ocrd = Company.GetBusinessObject( SAPbobsCOM.BoObjectTypes.oBusinessPartners ) as…
Charles Jenkins
  • 340
  • 4
  • 10
1
vote
1 answer

ItemEvent in SAP B1 SDK with a SAP form created in Visual Studio 2015

I truly really need your help. I want to be able to deal with a Click on an Item on my Form which has been created in Visual Studio 2015 this is my Main Methode : static void Main(string[] args) { try { Application…
1
vote
1 answer

SAP Business One DI API StockTransfer Object Error -1116

i'm trying to insert Inventory Transfer using SBO DI API (v9), but every time its executed always failed and return error code -1116 Internal error (-5002) occurred If we change oDoc =…
Hendra
  • 13
  • 3
1
vote
0 answers

Multiple instances of forms has data writing to first opened form

I have this SAP B1 addon where a user can open multiple instances of a UDO from. The form is loaded from XML. SAPUtility.LoadFromXML(SboConnection.SboApplication, GUI.FormsPath, "SalesOrder.xml"); I have CFLs but when I open the 2nd form and select…
Kinyanjui Kamau
  • 1,890
  • 10
  • 55
  • 95
1
vote
0 answers

Undo the total amount round / A/R invoice - document total, field cannot be updated (odbc -1029) SAP B1

I am trying to undo the automatic total amount round in A/R RESERVEI NVOICE b1 on an add on extension. The error throws after: txtDocTotalAfterDiscountFreightCharge.Active = true; txtDocTotalAfterDiscountFreightCharge.String =…
1
vote
0 answers

SAP B1 - Service Layer on-premise availability

Related at this question SAP Business One - > Rest API for embedded incident, I'd like to know if Service Layer (REST API in OData format) is available both on-premise and cloud solution. From many different documents I've already seen it's not…
bit
  • 934
  • 1
  • 11
  • 32
1
2 3 4 5