cancel
Showing results for 
Search instead for 
Did you mean: 

Can i RollBack in BusinessOne

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

AlexGrebennikov
Active Contributor
0 Kudos

Note that sometimes search-tool could give you a solution faster than SDN members..

HTH

Former Member
0 Kudos

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

www.corponet.com.mx

SAP Developer & Consultant

alperal (at) gmail.com

+52-(81)-137-937-80

Former Member
0 Kudos

Hi Alfredo Pérez,

Thankyou very much for your reply.

The solution was worked.

Thanks,

Ramu.

Answers (0)