Codeunit 452 "Report Distribution Management"
Base Application · Microsoft.Foundation.Reporting
Across versions
- BC23present
- BC242 events added, 1 procedures added
- BC251 procedures added, 1 procedures changed
- BC261 procedures added, 1 procedures removed
- BC273 procedures added, 2 procedures changed
- BC281 procedures removed
- BC29-30unchanged
Neighbourhood 28 connected objects and pages
Base Application · Microsoft.Foundation.Reporting · BC23-30 · source at ea08af5e · facts from BC29
Events published
OnBeforeRunDefaultCheckSalesElectronicDocument(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean)(integration)OnBeforeGetBillToCustomer(var Customer: Record Customer; DocumentVariant: Variant; var IsHandled: Boolean)(integration)OnBeforeGetReportCaption(ReportID: Integer; LanguageCode: Code[10]; var ReportCaption: Text[250]; var IsHandled: Boolean)(integration)OnBeforeSendXmlEmailAttachment(var ElectronicDocumentFormat: Record "Electronic Document Format"; var Customer: Record Customer; var DocumentSendingProfile: Record "Document Sending Profile")(integration)OnBeforeVANDocumentReport(HeaderDoc: Variant; var TempDocumentSendingProfile: Record "Document Sending Profile" temporary; var ElectronicDocumentFormat: Record "Electronic Document Format")(integration)OnAfterGetBillToCustomer(var Customer: Record Customer; DocumentVariant: Variant; DocumentRecordRef: RecordRef)+ BC25 − BC25 (integration)- subscribers: Codeunit 6463 “Serv. Report Distribution Mgt.” OnAfterGetBillToCustomer
OnAfterGetFullDocumentTypeText(DocumentVariant: Variant; var DocumentTypeText: Text[50]; var DocumentRecordRef: RecordRef)(integration)OnGetDocumentLanguageCodeCaseElse(DocumentRecordRef: RecordRef; var LanguageCode: Code[10])(integration)- subscribers: Codeunit 6463 “Serv. Report Distribution Mgt.” OnGetDocumentLanguageCodeCaseElse
OnVANDocumentReportOnBeforeLoopIteration(var RecordRef: RecordRef; var HeaderDoc: Variant)(integration)OnVANDocumentReportOnBeforeRunDeliveryCodeunit(var RecordExportBuffer: Record "Record Export Buffer")(integration)OnGetFullDocumentTypeTextElseCase(DocumentRecordRef: RecordRef; var DocumentTypeText: Text[50])+ BC24 (integration)- subscribers: Codeunit 6463 “Serv. Report Distribution Mgt.” OnGetFullDocumentTypeTextElseCase
OnGetBillToCustomerOnUnhandledTableNo(DocumentRecordRef: RecordRef; var Customer: Record Customer)+ BC24 (integration)
Procedures
VANDocumentReport(HeaderDoc: Variant; TempDocumentSendingProfile: Record "Document Sending Profile" temporary)DownloadPdfOnClient(ServerPdfFilePath: Text): TextInitializeFrom(NewHideDialog: Boolean)GetFullDocumentTypeText(DocumentVariant: Variant): Text[50]GetDocumentLanguageCode(DocumentVariant: Variant): Code[10]GetReportCaption(ReportID: Integer; LanguageCode: Code[10]): Text[250]SaveFileOnClient(var TempBlob: Codeunit "Temp Blob"; ClientFileName: Text)GetIssuedReminderDocTypeTxt(): Text+ BC24 (internal)SendXmlEmailAttachment(DocumentVariant: Variant; DocumentFormat: Code[20]; ServerEmailBodyFilePath: Text[250]; SendToEmailAddress: Text[250]; ReportUsage: Enum "Report Selection Usage")+ BC26 − BC26 Δ BC27 + BC27 (obsolete 27.0: Replaced with SendXmlEmailAttachment that accepts a TempBlob as additional parameter.)SendXmlEmailAttachment(DocumentVariant: Variant; DocumentFormat: Code[20]; var EmailBodyTempBlob: Codeunit "Temp Blob"; SendToEmailAddress: Text[250]; ReportUsage: Enum "Report Selection Usage")+ BC26 − BC26 Δ BC27 + BC27SendXmlEmailAttachmentVendor(DocumentVariant: Variant; DocumentFormat: Code[20]; ServerEmailBodyFilePath: Text[250]; SendToEmailAddress: Text[250])Δ BC27 + BC27 (obsolete 27.0: Replaced with SendXmlEmailAttachmentVendor that accepts a TempBlob as additional parameter.)SendXmlEmailAttachmentVendor(DocumentVariant: Variant; DocumentFormat: Code[20]; var EmailBodyTempBlob: Codeunit "Temp Blob"; SendToEmailAddress: Text[250])Δ BC27 + BC27RunDefaultCheckSalesElectronicDocument(SalesHeader: Record "Sales Header")GetElectronicDocumentFormat(var ElectronicDocumentFormat: Record "Electronic Document Format"; DocumentVariant: Variant)Δ BC25CreateOrAppendZipFile(var DataCompression: Codeunit "Data Compression"; var ServerTempBlob: Codeunit "Temp Blob"; ClientFileName: Text[250]; var ClientZipFileName: Text[250])
Plus 3 local procedures.
Triggers
OnRun
Calls
From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.
- Codeunit 419 “File Management” (4 calls:
CreateOrAppendZipFile → GetFileNameWithoutExtension,DownloadPdfOnClient → DownloadTempFile,SaveFileOnClient → BLOBExport, …) - Codeunit 425 “Data Compression” (4 calls:
CreateOrAppendZipFile → AddEntry,CreateOrAppendZipFile → CreateZipArchive,CreateOrAppendZipFile → IsGZip, …) - Codeunit 53 “Translation Helper” (4 calls:
GetFullDocumentTypeText → RestoreGlobalLanguage,GetFullDocumentTypeText → SetGlobalLanguageByCode,GetReportCaption → RestoreGlobalLanguage, …) - Codeunit 260 “Document-Mailing” (3 calls:
SendAttachment → EmailFile,SendXmlEmailAttachment → GetToAddressFromCustomer,SendXmlEmailAttachmentVendor → GetToAddressFromVendor) - Codeunit 4100 “Temp Blob” (3 calls:
CreateOrAppendZipFile → CreateInStream,SendAttachment → CreateInStream,SendAttachment → HasValue) - Codeunit 1306 “Company Information Mgt.” (1 call:
GetDocumentLanguageCode → GetLanguageDefault) - Codeunit 1410 “Doc. Exch. Service Mgt.” (1 call:
VANDocumentReport → SendDocument)
Called by
- Table 60 “Document Sending Profile” (10 calls:
SendToDisk → CreateOrAppendZipFile,SendToDisk → SaveFileOnClient,SendToDiskVendor → CreateOrAppendZipFile, …) - Table 112 “Sales Invoice Header” (4 calls:
EmailRecords → GetFullDocumentTypeText,GetDocTypeTxt → GetFullDocumentTypeText,SendProfile → GetFullDocumentTypeText, …) - Table 110 “Sales Shipment Header” (3 calls:
EmailRecords → GetFullDocumentTypeText,SendProfile → GetFullDocumentTypeText,SendRecords → GetFullDocumentTypeText) - Table 114 “Sales Cr.Memo Header” (3 calls:
EmailRecords → GetFullDocumentTypeText,SendProfile → GetFullDocumentTypeText,SendRecords → GetFullDocumentTypeText) - Table 167 “Job” (3 calls:
EmailRecords → GetFullDocumentTypeText,SendProfile → GetFullDocumentTypeText,SendRecords → GetFullDocumentTypeText) - Table 38 “Purchase Header” (2 calls:
GetDocTypeTxt → GetFullDocumentTypeText,GetReportSelectionsUsageFromDocumentType → GetFullDocumentTypeText) - Table 5992 “Service Invoice Header” (2 calls:
SendProfile → GetFullDocumentTypeText,SendRecords → GetFullDocumentTypeText) - Table 5994 “Service Cr.Memo Header” (2 calls:
SendProfile → GetFullDocumentTypeText,SendRecords → GetFullDocumentTypeText) - Table 6660 “Return Receipt Header” (2 calls:
EmailRecords → GetFullDocumentTypeText,SendRecords → GetFullDocumentTypeText) - Table 77 “Report Selections” (2 calls:
SaveDocumentAttachmentFromRecRef → GetDocumentLanguageCode,SaveDocumentAttachmentFromRecRef → GetReportCaption) - Codeunit 1890 “Reminder Communication” (1 call:
OnBeforeGetEmailSubject → GetIssuedReminderDocTypeTxt) - Codeunit 6463 “Serv. Report Distribution Mgt.” (1 call:
RunDefaultCheckServiceElectronicDocument → GetElectronicDocumentFormat) - Codeunit 6753 “Send Reminder Event Handler” (1 call:
AttachDocument → GetFullDocumentTypeText) - Codeunit 6762 “Reminder-Send” (1 call:
SendReminderImplementation → GetFullDocumentTypeText) - Codeunit 80 “Sales-Post” (1 call:
CheckSalesDocument → RunDefaultCheckSalesElectronicDocument) - Table 1001 “Job Task” (1 call:
SendProfile → GetFullDocumentTypeText) - Table 297 “Issued Reminder Header” (1 call:
PrintRecords → GetFullDocumentTypeText) - Table 304 “Issued Fin. Charge Memo Header” (1 call:
PrintRecords → GetFullDocumentTypeText) - Table 36 “Sales Header” (1 call:
GetDocTypeTxt → GetFullDocumentTypeText) - Table 61 “Electronic Document Format” (1 call:
GetDocumentType → GetDocumentLanguageCode)
Deprecations
- procedure SendXmlEmailAttachment: Pending 27.0 (#if not CLEAN27), “Replaced with SendXmlEmailAttachment that accepts a TempBlob as additional parameter.”
- procedure SendXmlEmailAttachmentVendor: Pending 27.0 (#if not CLEAN27), “Replaced with SendXmlEmailAttachmentVendor that accepts a TempBlob as additional parameter.”
Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).
Ask your agent
Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Report Distribution Management"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.