SAPbobsCOM.CompanyService oCompanyService = oCompany.GetCompanyService();
SAPbobsCOM.ExceptionalEventService oExceptionalEventService = oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.ExceptionalEventService);
SAPbobsCOM.ExceptionalEvent oExceptionalEvent = oExceptionalEventService.GetDataInterface(SAPbobsCOM.ExceptionalEventServiceDataInterfaces.eesExceptionalEvent);
oExceptionalEvent.Code = "16";
oExceptionalEvent.Description = "Added via DI";
oExceptionalEventService.AddExceptionalEvent(oExceptionalEvent);
SAPbobsCOM.CompanyService oCompanyService = oCompany.GetCompanyService();
SAPbobsCOM.ExceptionalEventService oExceptionalEventService = oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.ExceptionalEventService);
SAPbobsCOM.ExceptionalEventParams oExceptionalEventParams = oExceptionalEventService.GetDataInterface(SAPbobsCOM.ExceptionalEventServiceDataInterfaces.eesExceptionalEventParams);
SAPbobsCOM.ExceptionalEventsParams oExceptionalEventsParams = oExceptionalEventService.GetDataInterface(SAPbobsCOM.ExceptionalEventServiceDataInterfaces.eesExceptionalEventsParams);
oExceptionalEventParams.Code = "16";
SAPbobsCOM.ExceptionalEvent oExceptionalEvent = oExceptionalEventService.GetDataInterface(SAPbobsCOM.ExceptionalEventServiceDataInterfaces.eesExceptionalEvent);
oExceptionalEvent = oExceptionalEventService.GetExceptionalEvent(oExceptionalEventParams);
oExceptionalEvent.Description = "Updated via DI";
oExceptionalEventService.UpdateExceptionalEvent(oExceptionalEvent);
SAPbobsCOM.CompanyService oCompanyService = oCompany.GetCompanyService();
SAPbobsCOM.ExceptionalEventService oExceptionalEventService = oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.ExceptionalEventService);
SAPbobsCOM.ExceptionalEventParams oExceptionalEventParams = oExceptionalEventService.GetDataInterface(SAPbobsCOM.ExceptionalEventServiceDataInterfaces.eesExceptionalEventParams);
oExceptionalEventParams.Code = "16";
oExceptionalEventService.DeleteExceptionalEvent(oExceptionalEventParams);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
5 | |
5 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |