Deposit via DIAPI
Dear Members,
I have a requirement to create a deposit using DIAPI. i have to do deposit for cash as well as Cheque.
i have tried with Bill of exchange Transaction object but i dont have provision for cash.
Any body can help me in this regard.
Thanks in advance
Regards,
G.Shankar Ganesh.
Dear Godon,
i have tried with BillOfExchangeTrans_Deposits objects since i could not add Deposit.
Could you Provide Sample code for this. i want to deposit via cash.
With Regards,
G.Shankar Ganesh.
Similar Messages
-
Hi,
Is there any way in which a document created via the DiAPI can trigger formatted searches that are normally triggered via the gui?.
The reason being is that we receive sales orders via webtools, which creates sales orders in B1 via the DiAPI. Normally we capture the total stock and total on sales order at this point to provide future stock out analysis. This is not being captured for web orders. I have also posted in the e-commerce forum, but my question is more based on the DiAPI than anything else.
Thanks.
Martin.Hi Martin
DIAPI can not trigger FMS as generally speaking,FMS is linked to UIAPI.
However,I think you can capture the total stock and total on sales order
directly via DIAPI instead of using FMS as all the data are accessable
to DI.
Regards,
Syn Qin
SAP Business One Forums Team -
Stock Transfer Discount via DIAPI
Dear Expert,
I want to add Stock Transfer via DIAPI. The Stock Transfer successful added but without discount. How can I add Stock Transfer via DIAPI with Discount value?
Thanks for any help.This is my code, just simple only... but discount become blank. How to add stock transfer with discount? Others fields can add successfully, except the discount column.
Dim lRetCode As Long
Dim lErrCode As Long
Dim sErrMsg As String
Dim oTransfer As SAPbobsCOM.StockTransfer
oTransfer = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oStockTransfer)
oTransfer.FromWarehouse = "01"
oTransfer.Lines.ItemCode = "AT010"
oTransfer.Lines.WarehouseCode = "04"
oTransfer.Lines.Quantity = 1
oTransfer.Lines.Price = 10
oTransfer.Lines.DiscountPercent = 9
lRetCode = oTransfer.Add
If lRetCode <> 0 Then
oCompany.GetLastError(lErrCode, sErrMsg)
SBO_Application.MessageBox(lErrCode & " - " & sErrMsg)
Else
SBO_Application.MessageBox("successful")
End If -
Hi,
My client needs me to create two documents via the SDK using DIAPI (SAPbobsCOM). I am creating an A/P Invoice and an A/P Credit Memo. He wants me to reconcile the two after they are created but I can't seem to see the object that will allow me to do this. Is this possible and does anyone have any sample code?
Thanks,
DavidHello
If the Credit memo and Invoice is belongs to the same vendor, than you can do it the CM with reference to A/P Invoice lines, This creates automatic reconsiliation in the system.
BTW, the manual reconsiliation is not implemented via dia DI API.
Regards
János -
Set a default layout for all users via DIAPI
Hello everyone,
I am attempting to set a default report for all users/business partners using the DI-API.
I can accomplish this in the B1 application via Tools> Layout Designer...>Set as Default
If there are entries in the RDFL table for this layout, I am prompted to delete these entries and set this layout as the default for all users/BP's
Based on the SDK Documentation, the following code should accomplish the same thing via the DI-API
(stripped down for clarity)
Dim oDefaultReportParams As DefaultReportParams
oDefaultReportParams = oLayoutService.GetDataInterface(ReportLayoutsServiceDataInterfaces.rlsdiDefaultReportParams)
oDefaultReportParams.LayoutCode = sMyLayoutCode
oDefaultReportParams.ReportCode = sMyReportCode
Me.oLayoutService.SetDefaultReport(oDefaultReportParams)
Code executes fine, but it doesn't have the expected impact on settings. The above code adds an entry to the RDFL table rather than changing the DfltReport field in the RTYP table like I expected, so instead of setting the default report globally for all bps/users, its adding an entry to the RDFL table to set the value for a specific user/bp
I experimented by including and setting the following properties to every combination I could think of with the same results
oDefaultReportParams.UserID = 'tried 1, 0, -1
oDefaultReportParams.CardCode = 'tried "", "0", "-1"
Am I misunderstanding the API, or using the wrong objects/calls...? If all else fails I could accomplish this via the UI-API instead, but the application was intended to be a stand alone app that didn't rely on SAP B1 application running, so any help or suggestions would be much appreciated.
Thanks!Hi,
Please repost at SDK forum to get quick response. Close this thread here with helpful answer.
Thanks. -
Hi,
We have created a small utility which receives incoming payment information thru emails. after this it adds incoming payment into the sbo using di-api. we want to further add cheque deposit, for these incoming payments.
Can anybody suggest how can it be done using di api.
Thanks
Rahul JainShouldn't you be using Payments objects and its children like Payments_Checks ?
-
Apps for bank deposit via android?
I'm looking into getting a new Droid X within the next week or so. I'm just wondering if there are any apps that support taking a picture of a check and then depositing into your bank account? If so which banks support such apps and features?
Thank you in advance for your help. We currently are B of A Customers and are looking to switch banks. This is a feature that we would like to have. I know Chase Banks supports it for iPhone but not sure if they do for the android market.There is an app in the android market called Portable Bank Android 1.5 with the check deposit feature. The app is $2.50. There are many other banking apps in the market. Keep in mind that these are third party apps and are not supported by VZW.
-
Need an example to add an Invoice via DIAPI
Hi,
I'm trying to add an invoice, but the Totals aren't calculated right.
probably due to the fact that I'm missing something or there's something I dont know
My invoice is added but when I look at the totals, it doesn't make sence
Document.DocTotal = 1000
Document.Lines.Price = 1000
what this does is that, I get :
Total Before Discount = 1000
Discount = 5.66 - $56.60
Tax = $56.60
Total = 1000
Well, I just want it right so if I add 1000 without tax
this should be 1056.60 and no discount should be there since I'm not adding discount when adding my invoice.
I'm actually strugling with that since yesterday !
Thank you for your helpHi Marc,
The reason why you are getting this behaviour is because there is a tax code defined by default on the business partner you are using. If you specify in your code that the line amount is 1000 and the total is 1000 and the business partner is tax liable, SBO knows that 100 + tax is not 1000, so it takes the tax amount and make it the discount. If you want your total to be 1000 + tax, then don't specify a total. If you want your total to be 1000, then specify that the tax rate is zero rated.
Hope it helps,
Adele -
Dear Members,
I want to Add Deposit via DIAPI but Sap doesnt expose the Deposit object. so anybody could tell me the steps for Implement our own deposit function with UDO, and also access the UDO with GeneralService.Thanks in advance
With Regards,
G.Shankar Ganesh.Hi Shankar Ganesh,
Since the DI API isn't exposed, you really can't do much about it. As you had hinted, you can create a UDO screen and can handle all that you want to. But whats your doubt in this? Is your question about the feasibility using a UDO screen or is it about linking your screen to default functionalities of B1?
Best Regards,
Satish. -
Removing attachments from Purchase Order using DIAPI
Dear all,
I have added attachment to PO using DIAPI. I have given below the code.
Dim oAtt As SAPbobsCOM.Attachments2 = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oAttachments2)
Dim FileName As String = ""
Dim SourceFile As String = ""
Dim DestinationFile As String = ""
For i As Integer = 0 To PurchaseOrderInfo.Attachments.Length - 1
FileName = PurchaseOrderInfo.Attachments(i).FileName
SourceFile = PurchaseOrderInfo.Attachments(i).SourcePath & "\" & FileName
DestinationFile = PurchaseOrderInfo.Attachments(i).TargetPath & "\" & FileName
If i > 0 Then oAtt.Lines.Add()
oAtt.Lines.SetCurrentLine(i)
oAtt.Lines.FileName = System.IO.Path.GetFileNameWithoutExtension(FileName)
oAtt.Lines.FileExtension = Replace(System.IO.Path.GetExtension(FileName), ".", "")
oAtt.Lines.SourcePath = PurchaseOrderInfo.Attachments(i).SourcePath
If System.IO.File.Exists(DestinationFile) Then
System.IO.File.Delete(DestinationFile)
End If
If PurchaseOrderInfo.Attachments(i).Override = True Then
oAtt.Lines.Override = SAPbobsCOM.BoYesNoEnum.tYES
Else
oAtt.Lines.Override = SAPbobsCOM.BoYesNoEnum.tNO
End If
Next
Dim iAttEntry As Integer = -1
Dim lResult As Long
Dim lErrCode As Long, sErrMsg As String = ""
lResult = oAtt.Add()
It works fine. But, I am not able to remove an attachment via diapi.
Could you please help me how to solve this.
Thanks in advance.
ManikandanI am pretty sure you are looking for SAP Business One SDK Topic Space. To ensure you are posting in the correct SCN Space, always check the description for the Space under the Overview tab.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada -
Can I set the default version of DIAPI?
I have got a problem,that is when I develop an addon via DIAPI 2005,the addon can work in SAP Business One 2005 normaly.but when I install a SAP Business One 2007 client in a other PC,though the PC installed DIAPI 2005,the addon can't work.
The reseaon maybe is that the addon used DIAPI 2007. and now ,can I set the default version in my addon,so that the addon can work on DIAPI 2005?
Thank you.Hi,
I have not heard of any method to have a default version..
Vasu Natari. -
Deposit invoices and payemnts from Order Manangment
Hi All,
We manually create Deposit invoices in AR then generate the Receipt and manually apply these receipt to Deposit invoices.
Accountant generally complete this activity while booking the order. The goods are delivered to customers based on schedules.
for each delivery of goods accountant generate manual standard invoice in AR and mentioned in commitment field the deposit invoice number close invoices.
Now management advised to use the Oracle Order Manangement and remove the manual process of generating AR invoices and Receipt.
Can someone guide you how this can be achieved.
Thanking you in anticipation.Hello,
There are two OM-AR Integrated features may meet stated requirement:
(1) Using Commitment (Deposits) in Sales Orders Lines, and
(2) Generating AR Prepayments from OM.
Which one to go with depends on your business process or concept of advance payments. Following explains briefly the steps involved in each process:
Deposits:
Enter Deposit Trx In AR to record customer liability to make prepayment for goods/services you will provide in the future (independent of sale orders)
Enter Receipts to record customer prepayment incurred in previous step
While entering Sales Order line(s) select which Commitment the Sales Order line to be applied to.
When a Sales Order line is fulfilled and the Auto-invoice process is kicked off, the Invoice is created directly against the Commitment in question (i.e. Invoice is automatically applied to Deposit via adjustment applied to it while Deposit Commitment Balance is reduced by the Adjustments generated against the Invoice).
Prepayments:
Create a Sales Order in OM
Attach a Payment term which is defined with Prepayment option checked.
Book the Sales Order
Select Payments from the Action list.
Enter payment information
Click on ‘Process Payments’ button to get the prepayment receipt created.
Click on ‘View Receipt’ to view the receipt that got created in step 6 in AR.
Fulfill the sales order lines and Run the Autoinvoice import program
The Autoinvoice import program will automatically kick-off Prepayments Matching Program
Check previously created receipt after the Autoinvoice import to confirm that the receipt has been automatically applied to the invoice.
To roll out the details, let me hear from you.
Thanks -
Apropriação de impostos em ordem de investimento
Olá pessoal boa tarde!
Precisamos que o valor do imposto da substituição tributária ICMS seja lançado para a ordem interna informada na pedido de compras.
Situação Atual:
Exemplo: Valor da despesa: R$1000,00 - Conta: 49100 (conta de resultado) - Ordem interna: 650001
Valor substituição tributaria -> R$ 50,00 - Conta: 203000 (Conta de balanço)
Situação desejada:
Exemplo: Valor da despesa: R$1000,00 - Conta: 49100 (conta de resultado) - Ordem interna: 650001
Valor substituição tributaria -> R$ 50,00 - Conta: 650001 (Conta de balanço) - Ordem interna: 650001
Foi efetuado uma alteração pela OB40 da conta 203000 para a 49100 porem ocorre erro quando executado a entrada da fatura pela MIRO (erro: conta 49100 exige objeto de custo).
Agradeço se alguém puder contribuir com qualquer ajuda para esse problema.
Muito obrigado.
César Sevilha.
Moderator: You are kindly advised to create threads in English.
Message was edited by: Eli KlovskiHi,
Para informar el valor del impuesto en un documento de Marketing via DIAPI debes de utilizar la propiedad VatGroup, que depende de las lineas del documento:
oDLN = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDeliveryNotes)
oDLN.Lines.VatGroup = "R3"
donde R3 seria por ejemplo una clave de impuesto valida en el fichero de tipos de impuestos OVTG.
Para llegar por SBO al mantenimiento de esa tabla:
Administracion --> Inicializacion del sistema --> Configuracion --> Financiera --> Imposto -> Grupos de imposto -
How to add sales history and purchase history without affecting inventory.
In order to help client migrating sales and purchase history into B1.
I checked through the Business One objects reference file. I couldn't find any object that allow adding historical record into both Sales or Purchase history, via DIAPI.
Do I have to always depend on the Sales Invoice object to add the document and let it affect the inventory level.No, you can't add historical data without affecting GL and Inventory. In SAP B1 any invoice addition thru DI API will automatically behave like the regular B1 process and it will post to GL and inventory.
I saw in the partner edge portal SAP B1 forum a post from an SAP employee that is working on developing a process where historical data will be able to be migrated without afecting inventory and GL. But there is no ETA on when this will be available.
Regards,
WB -
Creating a sales order document
Hi,
When I create a sales order document in one company I want to automatically create a purchase order document (in the same company), and when this one is created I want to create a sales order document (in another company) with the same data as the purchase order. The purchase order is created via DIAPI and it works fine, but the problem is when creating the sales order in the second company. When I add the itemcode to the line , it doesn't write automatically any data of that itemcode, the vatgroup neither. So I have to introduce this field. The thing is that althought introducing the vatgroup manually, it doesn't calculate the vatsum, so in the doctotal isn't added. I've tried writing it manually but the problem is that the vatsum field is readonly.
Why can this be? How can I solve it?
The code is the next (in vb.net):
Dim oPedidoCompra As Documents
Dim oPedidoCompraLineas As Document_Lines
oPedidoCompra = oCompany.GetBusinessObject(BoObjectTypes.oPurchaseOrders)
If Not oPedidoCompra.GetByKey(DocEntry) Then
oApplication.MessageBox(oCompany.GetLastErrorDescription)
End If
oPedidoCompraLineas = oPedidoCompra.Lines
oPedidoVentaB = oCompanyB.GetBusinessObject(BoObjectTypes.oOrders)
oPedidoVentaLineasB = oPedidoVentaB.Lines
oPedidoVentaB.CardCode = ValorSql(s, oCompanyB)
oPedidoVentaB.DocDate = Date.Now.Day.ToString + "/" + Date.Now.Month.ToString + "/" + Date.Now.Year.ToString
oPedidoVentaB.DocDueDate = Date.Now.Day.ToString + "/" + Date.Now.Month.ToString + "/" + Date.Now.Year.ToString
oPedidoVentaB.DocType = BoDocumentTypes.dDocument_Items
oPedidoVentaB.UserFields.Fields.Item("U_NR").Value = oPedidoCompra.DocNum
For i As Integer = 0 To oPedidoCompraLineas.Count - 1
oPedidoCompraLineas.SetCurrentLine(i)
oPedidoLineas.ItemCode = Codigoarticulo
oPedidoLineas.Quantity = Cantidad
oPedidoLineas.Price = Precio
s = "select WhsCode from OWHS where WhsName like '%" & oCompanyB.CompanyDB & "%'"
oPedidoVentaLineasB.WarehouseCode = ValorSql(s, oCompanyB)
oPedidoVentaLineasB.ItemDescription = oPedidoCompraLineas.ItemDescription
oPedidoVentaLineasB.Price = oPedidoCompraLineas.Price
oPedidoVentaLineasB.Currency = oPedidoCompraLineas.Currency
s = "select vatgourpsa from oitm where itemcode = '" & oPedidoVentaLineasB.ItemCode & "'"
oPedidoVentaLineasB.VatGroup = ValorSql(s, oCompanyB)
oPedidoVentaLineasB.LineTotal = oPedidoCompraLineas.LineTotal
s = "select rate from ovtg where code = (select VatGourpSa from OITM where ItemCode = '" & oPedidoVentaLineasB.ItemCode & "')"
oPedidoVentaLineasB.TaxPercentagePerRow = ValorSql(s, oCompanyB)
s = "select suppCatNum from oitm where itemcode = '" & oPedidoVentaLineasB.ItemCode & "'"
oPedidoVentaLineasB.VendorNum = ValorSql(s, oCompanyB)
oPedidoVentaLineasB.PriceAfterVAT = oPedidoCompraLineas.PriceAfterVAT
If i < oPedidoCompraLineas.Count - 1 Then
oPedidoVentaLineasB.Add()
End If
Next
n = oPedidoVentaB.Add
If n <> 0 Then
oApplication.MessageBox(oCompanyB.GetLastErrorDescription)
End If
Thanks in advance,
vanesaHi Vanesa
When makin the sales order you must just select a vat group.It will then calculate it using the settings for that vat group. So, is the vatgroups set up in your other company?? Don't calcualte everyhting like line total. Just do itemcode, price,itemcode, vatgroup, warehouse and then the system will calculate the rest. Dont do PriceAfterVAT and all the extra's.
If you did it through the front end would you enter all that? No, you would just select item,qty,price and wh. The system calculates the rest for you.....same goes for di api. Do this to minimize errors.
Hope this helps
Maybe you are looking for
-
DOES ANYONE KNOW HOW TO GET PASSED MY PASSWORD LOGIN on a mac pro? I FORGOT IT. (yosemite 10.10.1)
-
Getting error in Mozilla, reading xml using JavaScript
Hi All, I am working with javascript with xml, getting error in Mozilla 1. see html and xml file and check xml file path before test --- 2. please, go through the html and xml file. read_xml.html ================= <html> <head> <title>xml file using
-
Acrobat 9 Std - Comments- 'Enable for Commenting And Analysis In Reader' option Missing
Hi, We've purchased a copy of Adobe Acrobat 9 Standard, and need to enable comments in Reader for PDFs that we create in Acrobat. The option to "Enable For Commenting And Analysis In Reader" seems to be missing from the "comments" menu, even though
-
Switched Cable Modem, Home Sharing Kaput (WiFi Sync Too)
I'm on Time Warner Cable in New York City. We had a Motorola Surfboard combined modem/router. I was able to play movies from my MacBook Pro on my AppleTV through Home Sharing without a problem (and play music, view photos too). I also had no problem
-
Unicode character not displaying correctly
when i am stroring Unicode Character in Oracle 8 DB .The Stored Character are not displayed correctly . Through sql client seen as '�' .Altough through JSp it displays correct value 集 (in japanese) My client wants to see through sql also same value .