SAPbobsCOM.CompanyService oCompanyService = oCompany.GetCompanyService();
SAPbobsCOM.IdentificationCodeService oBISService = oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.IdentificationCodeService);
SAPbobsCOM.IdentificationCode oBISCode = oBISService.GetDataInterface(SAPbobsCOM.IdentificationCodeServiceDataInterfaces.icsIdentificationCode);
SAPbobsCOM.IdentificationCodeParams oAddedBISInfo;
oBISCode = oBISService.GetDataInterface(SAPbobsCOM.IdentificationCodeServiceDataInterfaces.icsIdentificationCode);
oBISCode.Codelist = SAPbobsCOM.IdentificationCodeTypeEnum.idctItemCommodityClassification;
oBISCode.Code = "BIS1";
oBISCode.Description = "BIS Code 1 Description created via DI";
oBISCode.SchemaCode = "BISCode1SchemaCodeA";
oBISCode.SchemaDesc = "BIS Code 1 Schema Code A Desc";
oAddedBISInfo = oBISService.Add(oBISCode);
SAPbobsCOM.CompanyService oCompanyService = oCompany.GetCompanyService();
SAPbobsCOM.IdentificationCodeService oBISService = oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.IdentificationCodeService);
SAPbobsCOM.IdentificationCodeParams oBISCodeToBeUpdated = oBISService.GetDataInterface(SAPbobsCOM.IdentificationCodeServiceDataInterfaces.icsIdentificationCodeParams);
SAPbobsCOM.IdentificationCode oUpdatedBISCode;
oBISCodeToBeUpdated.AbsEntry = 1;
oUpdatedBISCode = oBISService.GetByParams(oBISCodeToBeUpdated);
oUpdatedBISCode.Description = "Updated Description for BISCode1SchemaCodeA";
oBISService.Update(oUpdatedBISCode);
SAPbobsCOM.CompanyService oCompanyService = oCompany.GetCompanyService();
SAPbobsCOM.IdentificationCodeService oBISService = oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.IdentificationCodeService);
SAPbobsCOM.IdentificationCodeParams oBISCodeToBeDeleted = oBISService.GetDataInterface(SAPbobsCOM.IdentificationCodeServiceDataInterfaces.icsIdentificationCodeParams);
oBISCodeToBeDeleted.AbsEntry = 1;
oBISService.Remove(oBISCodeToBeDeleted);
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 | |
4 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |