SAPbobsCOM.CompanyService oCompanyService = oCompany.GetCompanyService();
SAPbobsCOM.EBooksService oEBooksService = (SAPbobsCOM.EBooksService)oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.EBooksService);
SAPbobsCOM.EBooksParams oEBooksParams = (SAPbobsCOM.EBooksParams)oEBooksService.GetDataInterface(SAPbobsCOM.EBooksServiceDataInterfaces.ebkEBooksParams);
oEBooksParams.MARK = "400001830589128";
SAPbobsCOM.EBooks oEBooks = (SAPbobsCOM.EBooks)oEBooksService.GetDataInterface(SAPbobsCOM.EBooksServiceDataInterfaces.ebkEBooks);
oEBooks = oEBooksService.GetByMark(oEBooksParams);
SAPbobsCOM.CompanyService oCompanyService = oCompany.GetCompanyService();
SAPbobsCOM.EBooksService oEBooksService = (SAPbobsCOM.EBooksService)oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.EBooksService);
SAPbobsCOM.EBooksParams oEBooksParams = (SAPbobsCOM.EBooksParams)oEBooksService.GetDataInterface(SAPbobsCOM.EBooksServiceDataInterfaces.ebkEBooksParams);
oEBooksParams.MARK = "400000018439504";
SAPbobsCOM.EBooks oEBooks = (SAPbobsCOM.EBooks)oEBooksService.GetDataInterface(SAPbobsCOM.EBooksServiceDataInterfaces.ebkEBooks);
oEBooks = oEBooksService.GetByMark(oEBooksParams);
oEBooks.LinkedDocType = 18;
oEBooks.LinkedDocEntry = 1;
oEBooks.IsNegativeMark = SAPbobsCOM.BoYesNoEnum.tNO;
oEBooksService.Update(oEBooks);
SAPbobsCOM.CompanyService oCompanyService = oCompany.GetCompanyService();
SAPbobsCOM.EBooksService oEBooksService = (SAPbobsCOM.EBooksService)oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.EBooksService);
SAPbobsCOM.EBooksParams oEBooksParams = (SAPbobsCOM.EBooksParams)oEBooksService.GetDataInterface(SAPbobsCOM.EBooksServiceDataInterfaces.ebkEBooksParams);
SAPbobsCOM.EBooks oEBooks = (SAPbobsCOM.EBooks)oEBooksService.GetDataInterface(SAPbobsCOM.EBooksServiceDataInterfaces.ebkEBooks);
oEBooksParams.MARK = "400000018439826";
oEBooks = oEBooksService.GetByMark(oEBooksParams);
SAPbobsCOM.EBooksLine oEBooksLine = oEBooks.EBooksLines.Item(0);
oEBooksLine.ExpenseClassificationCategory = -8;
oEBooksLine.ExpenseClassificationType = -73;
oEBooksLine.VatClassificationCategory = -5;
oEBooksLine.VatClassificationType = -41;
oEBooksLine = oEBooks.EBooksLines.Item(1);
oEBooksLine.ExpenseClassificationCategory = -6;
oEBooksLine.ExpenseClassificationType = -57;
oEBooksLine.VatClassificationCategory = -1;
oEBooksLine.VatClassificationType = -22;
oEBooksService.Update(oEBooks);
SAPbobsCOM.CompanyService oCompanyService = oCompany.GetCompanyService();
SAPbobsCOM.EBooksService oEBooksService = (SAPbobsCOM.EBooksService)oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.EBooksService);
SAPbobsCOM.EBooksParams oEBooksParams = (SAPbobsCOM.EBooksParams)oEBooksService.GetDataInterface(SAPbobsCOM.EBooksServiceDataInterfaces.ebkEBooksParams);
SAPbobsCOM.EBooks oEBooks = (SAPbobsCOM.EBooks)oEBooksService.GetDataInterface(SAPbobsCOM.EBooksServiceDataInterfaces.ebkEBooks);
oEBooksParams.MARK = "400000018449707";
oEBooks = oEBooksService.GetByMark(oEBooksParams);
oEBooks.LinkedDocType = 0;
oEBooksService.Update(oEBooks);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
12 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
2 | |
2 |