cancel
Showing results for 
Search instead for 
Did you mean: 

Add Button in Sales Order

ramco1917
Participant
0 Kudos
169

Hi

  I have below code . I want to add button in Sales Order Form after Cancell Button

SAPbobsCOM.Company oCompany = new SAPbobsCOM.Company();
SAPbouiCOM.Application oApplication = new SAPbouiCOM.Application();

oCompany.Server = "10.0.1.28:30015";
oCompany.DbServerType = BoDataServerTypes.dst_HANADB;
oCompany.CompanyDB = "Test_LIVE";
oCompany.UserName = "manager";
oCompany.Password = "123";
oCompany.language = BoSuppLangs.ln_English;
oCompany.UseTrusted = true;

int connectionResult = oCompany.Connect();
if (connectionResult != 0)
{
throw new Exception("Error connecting to SAP Business One: " + oCompany.GetLastErrorDescription());
}

Thanks

View Entire Topic
ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi ramco1917 ,

Install SAP Business One SDK from SAP Business One Patch Package.

Then, you can refer to the sample project "11.SystemFormManipulation" from the following location:

C:\Program Files (x86)\sap\SAP Business One SDK\Samples\COM UI\CSharp

It will help you.

Kind regards,

ANKIT CHAUHAN

SAP Business One Support