on 10-12-2006 6:46 AM
Hi all,
I have one doubt while using DI API. I am creating Sales Invoice using DI API. For some reasons i need to rollback the created SalesInvoice. Is it possible using DI API. If it is a salesorder i have a option of cancelling the salesOrder. But for Invoice i was unable to Cancel it.
So i need to rollback the current Transaction. How can i achieve this? Can any body send me Sample Code of this?
Thanks in Advance,
Ramu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Using the DI API you could always:
-
-
Public vCompany As SAPbobsCOM.Company
vCompany.StartTransaction()
'SOME CODE HERE
If some_error Then vCompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_RollBack)
Else vCompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_Commit)
End If
-
-
Hope it helps !
-
-
Alfredo Pérez
SAP Developer & Consultant
alperal (at) gmail.com
+52-(81)-137-937-80
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.