SAPbobsCOM.CompanyService oCompanyService = oCompany.GetCompanyService();
ImportDeterminationService oImportDeterminationService = oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.ImportDeterminationService);
ImportDetermination oImportDetermination = oImportDeterminationService.GetDataInterface(ImportDeterminationServiceDataInterfaces.idsImportDetermination);
oImportDetermination.Code = ElectronicDocProtocolCodeStrEnum.edpcs_PEPPOL;
oImportDetermination.LineNumber = 4;
oImportDetermination.ObjectType = ((int)BoObjectTypes.oPurchaseCreditNotes).ToString();
oImportDetermination.ObjectTypeXPath = "?object_type_xpath";
oImportDetermination.FieldType = ImportFieldTypeEnum.iftFederalTaxID;
oImportDetermination.FieldTypeXPath = "field_type_xpath";
oImportDetermination.ImportFormat = -12; //eDoc PEPPOL - Credit Note Import (System);
oImportDetermination.DefaultDigitalSeries = 72;
oImportDeterminationService.AddDetermination(oImportDetermination);
SAPbobsCOM.CompanyService oCompanyService = oCompany.GetCompanyService();
ImportDeterminationService oImportDeterminationService = oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.ImportDeterminationService);
ImportDeterminationParams oImportDeterminationParams = oImportDeterminationService.GetDataInterface(ImportDeterminationServiceDataInterfaces.idsImportDeterminationParams);
oImportDeterminationParams.Code = ElectronicDocProtocolCodeStrEnum.edpcs_PEPPOL;
oImportDeterminationParams.AbsEntry = 9;
ImportDetermination oImportDetermination = oImportDeterminationService.GetDetermination(oImportDeterminationParams);
oImportDetermination.FieldType = ImportFieldTypeEnum.iftUnifiedFederalTaxID;
oImportDeterminationService.UpdateDetermination(oImportDetermination);
SAPbobsCOM.CompanyService oCompanyService = oCompany.GetCompanyService();
ImportDeterminationService oImportDeterminationService = oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.ImportDeterminationService);
ImportDeterminationsParams oImportDeterminationsParams = oImportDeterminationService.GetDataInterface(ImportDeterminationServiceDataInterfaces.idsImportDeterminationsParams);
ImportDeterminationsCollection oImportDeterminations = (ImportDeterminationsCollection)oImportDeterminationService.GetDeterminations(oImportDeterminationsParams);
for (int i = 0; i < oImportDeterminations.Count; ++i)
{
var ImportDetermination = oImportDeterminations.Item(i);
var AbsEntry = ImportDetermination.AbsEntry;
var Code = ImportDetermination.Code;
var LineNumber = ImportDetermination.LineNumber;
var ObjectType = ImportDetermination.ObjectType;
var ObjectTypeXPath = ImportDetermination.ObjectTypeXPath;
var FieldType = ImportDetermination.FieldType;
var FieldTypeXPath = ImportDetermination.FieldTypeXPath;
var ImportFormat = ImportDetermination.ImportFormat;
var DefaultDigitalSeries = ImportDetermination.DefaultDigitalSeries;
}
SAPbobsCOM.CompanyService oCompanyService = oCompany.GetCompanyService();
ImportDeterminationService oImportDeterminationService = oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.ImportDeterminationService);
ImportDeterminationParams oImportDeterminationParams = oImportDeterminationService.GetDataInterface(ImportDeterminationServiceDataInterfaces.idsImportDeterminationParams);
oImportDeterminationParams.Code = ElectronicDocProtocolCodeStrEnum.edpcs_PEPPOL;
oImportDeterminationParams.AbsEntry = 9;
ImportDetermination oImportDetermination = oImportDeterminationService.GetDetermination(oImportDeterminationParams);
oImportDeterminationService.DeleteDetermination(oImportDeterminationParams);
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 | |
4 | |
4 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |