SAPbobsCOM.CompanyService oCompanyService = oCompany.GetCompanyService();
ExportDeterminationService oExportDeterminationService = oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.ExportDeterminationService);
ExportDetermination oExportDetermination = (ExportDetermination)oExportDeterminationService.GetDataInterface(ExportDeterminationServiceDataInterfaces.edsExportDetermination);
oExportDetermination.Code = ElectronicDocProtocolCodeStrEnum.edpcs_PEPPOL;
oExportDetermination.Priority = 1;
oExportDetermination.BusinessPartner = "TESTBP";
oExportDetermination.Country = "IT";
oExportDetermination.Series = 70;
oExportDetermination.DocumentType = ((int)BoObjectTypes.oCreditNotes).ToString();
oExportDetermination.ExportFormat = -14; //// eDoc PEPPOL - Credit Note (System)
oExportDetermination.PathFileName = @"\{OADM.CompnyName}\{Entry.ProtocolCode}\{OCRD.CardCode}\{Entry.SrcObjAbbrev}\{ReportID.ReportID}.xml";
oExportDeterminationService.AddDetermination(oExportDetermination);
SAPbobsCOM.CompanyService oCompanyService = oCompany.GetCompanyService();
ExportDeterminationService oExportDeterminationService = oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.ExportDeterminationService);
ExportDeterminationParams oExportDeterminationParams = oExportDeterminationService.GetDataInterface(ExportDeterminationServiceDataInterfaces.edsExportDeterminationParams);
oExportDeterminationParams.Code = ElectronicDocProtocolCodeStrEnum.edpcs_PEPPOL;
oExportDeterminationParams.AbsEntry = 3;
ExportDetermination oExportDetermination = oExportDeterminationService.GetDetermination(oExportDeterminationParams);
oExportDetermination.Priority = 2;
oExportDeterminationService.UpdateDetermination(oExportDetermination);
SAPbobsCOM.CompanyService oCompanyService = oCompany.GetCompanyService();
ExportDeterminationService oExportDeterminationService = oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.ExportDeterminationService);
ExportDeterminationsParams oExportDeterminationsParams = oExportDeterminationService.GetDataInterface(ExportDeterminationServiceDataInterfaces.edsExportDeterminationsParams);
var oExportDeterminations = oExportDeterminationService.GetDeterminations(oExportDeterminationsParams);
for (int i = 0; i < oExportDeterminations.Count; ++i)
{
var ExportDetermination = oExportDeterminations.Item(i);
var AbsEntry = ExportDetermination.AbsEntry;
var Code = ExportDetermination.Code;
var Priority = ExportDetermination.Priority;
var BusinessPartner = ExportDetermination.BusinessPartner;
var Country = ExportDetermination.Country;
var Series = ExportDetermination.Series;
var DocumentType = ExportDetermination.DocumentType;
var ExportFormat = ExportDetermination.ExportFormat;
var PathFileName = ExportDetermination.PathFileName;
}
SAPbobsCOM.CompanyService oCompanyService = oCompany.GetCompanyService();
ExportDeterminationService oExportDeterminationService = oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.ExportDeterminationService);
ExportDeterminationParams oExportDeterminationParams = oExportDeterminationService.GetDataInterface(ExportDeterminationServiceDataInterfaces.edsExportDeterminationParams);
oExportDeterminationParams.Code = ElectronicDocProtocolCodeStrEnum.edpcs_PEPPOL;
oExportDeterminationParams.AbsEntry = 3;
ExportDetermination oExportDetermination = oExportDeterminationService.GetDetermination(oExportDeterminationParams);
oExportDeterminationService.DeleteDetermination(oExportDeterminationParams);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
8 | |
5 | |
4 | |
4 | |
4 | |
3 | |
3 | |
3 | |
2 |