---
title: "Codeunit 6404 E-Doc. Create Purch. Cr. Memo"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/6404-e-doc-create-purch-cr-memo/
type: codeunit
id: 6404
name: "E-Doc. Create Purch. Cr. Memo"
app: "E-Document Core"
namespace: Microsoft.eServices.EDocument.Processing.Import
versions: "24-29"
build: 29.0.54011.55644
countries: "W1, DE, US"
source: "https://jonas-paprotka.de/ref/codeunit/6404-e-doc-create-purch-cr-memo/source/?v=28 https://jonas-paprotka.de/ref/codeunit/6404-e-doc-create-purch-cr-memo/source/"
checked: 2026-11-20
changed: 2026-10-24
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 6404 E-Doc. Create Purch. Cr. Memo

JOP-AL, https://jonas-paprotka.de/ref/codeunit/6404-e-doc-create-purch-cr-memo/

| | |
| --- | --- |
| App | E-Document Core |
| Namespace | Microsoft.eServices.EDocument.Processing.Import |
| Versions | 24-29 |
| Minors | W1 24.0-27.5, 28.5-29.0; DE 24.0-27.5, 28.5-29.0; US 24.0-27.5, 28.5-29.0, [every minor](https://jonas-paprotka.de/ref/codeunit/6404-e-doc-create-purch-cr-memo/editions.json) |
| Implements | IEDocumentFinishDraft, IEDocumentCreatePurchaseCreditMemo |
| Access | Internal |
| App by version | Base Application from 24, E-Document Core from 28 |
| Name by version | FS Setup Defaults from 24, E-Doc. Create Purch. Cr. Memo from 28 |
| Source file | src/Processing/Import/FinishDraft/EDocCreatePurchCrMemo.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| ResetConfiguration | (var FSConnectionSetup: Record "FS Connection Setup") | - | internal | 24-27 | - | - |
| ResetProjectTaskMapping | (var FSConnectionSetup: Record "FS Connection Setup"; IntegrationTableMappingName: Code[20]; ShouldRecreateJobQueueEntry: Boolean) | - | internal | 24-27 | - | - |
| ResetProjectJournalLineWOProductMapping | (var FSConnectionSetup: Record "FS Connection Setup"; IntegrationTableMappingName: Code[20]; ShouldRecreateJobQueueEntry: Boolean) | - | internal | 24-27 | - | - |
| ResetProjectJournalLineWOServiceMapping | (var FSConnectionSetup: Record "FS Connection Setup"; IntegrationTableMappingName: Code[20]; ShouldRecreateJobQueueEntry: Boolean) | - | internal | 24-27 | - | - |
| ResetResourceBookableResourceMapping | (var FSConnectionSetup: Record "FS Connection Setup"; IntegrationTableMappingName: Code[20]; ShouldRecreateJobQueueEntry: Boolean) | - | internal | 24-27 | - | - |
| ResetServiceItemCustomerAssetMapping | (var FSConnectionSetup: Record "FS Connection Setup"; IntegrationTableMappingName: Code[20]; ShouldRecreateJobQueueEntry: Boolean) | - | internal | 24-27 | - | - |
| CreateUncoupleJobQueueEntry | (var IntegrationTableMapping: Record "Integration Table Mapping") | Boolean | public | 24-27 | - | - |
| CreateCoupleJobQueueEntry | (var IntegrationTableMapping: Record "Integration Table Mapping") | Boolean | public | 24-27 | - | - |
| CreateJobQueueEntry | (IntegrationTableMapping: Record "Integration Table Mapping") | Boolean | public | 24-27 | - | - |
| CreateJobQueueEntry | (IntegrationTableMapping: Record "Integration Table Mapping"; ServiceName: Text) | Boolean | internal | 24-27 | - | - |
| RecreateJobQueueEntryFromIntTableMapping | (IntegrationTableMapping: Record "Integration Table Mapping"; IntervalInMinutes: Integer; ShouldRecreateJobQueueEntry: Boolean; InactivityTimeoutPeriod: Integer; ServiceName: Text; IsOption: Boolean) | - | internal | 24-27 | - | - |
| GetDefaultDirection | (NAVTableID: Integer) | Integer | public | 24-27 | - | - |
| GetPrioritizedMappingList | (var NameValueBuffer: Record "Name/Value Buffer") | - | public | 24-27 | - | - |
| GetCustomerTableMappingName | () | Text | public | 24-27 | - | - |
| GetVendorTableMappingName | () | Text | public | 24-27 | - | - |
| RegisterAssistedSetup | () | - | internal | 24-27 | - | - |
| SetCustomIntegrationsTableMappings | (FSConnectionSetup: Record "FS Connection Setup") | - | internal | 24-27 | - | - |
| ApplyDraftToBC | (EDocument: Record "E-Document"; EDocImportParameters: Record "E-Doc. Import Parameters") | RecordId | public | 28-29 | - | - |
| RevertDraftActions | (EDocument: Record "E-Document") | - | public | 28-29 | - | - |
| CreatePurchaseCreditMemo | (EDocument: Record "E-Document") | Record Purchase Header | public | 28-29 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterResetConfiguration | (FSConnectionSetup: Record "FS Connection Setup") | 24-27 | - | - |
| Integration event | OnAfterResetProjectJournalLineWOProductMapping | (IntegrationTableMappingName: Code[20]) | 24-27 | - | - |
| Integration event | OnAfterResetProjectJournalLineWOServiceMapping | (IntegrationTableMappingName: Code[20]) | 24-27 | - | - |
| Integration event | OnAfterResetServiceItemCustomerAssetMapping | (IntegrationTableMappingName: Code[20]) | 24-27 | - | - |
| Integration event | OnAfterResetResourceBookableResourceMapping | (var IntegrationTableMappingName: Code[20]) | 24-27 | - | - |
| Integration event | OnBeforeResetConfiguration | (var FSConnectionSetup: Record "FS Connection Setup"; var IsHandled: Boolean) | 24-27 | - | - |
| Integration event | OnBeforeResetProjectJournalLineWOProductMapping | (var IntegrationTableMappingName: Code[20]; var ShouldRecreateJobQueueEntry: Boolean; var IsHandled: Boolean) | 24-27 | - | - |
| Integration event | OnBeforeResetProjectJournalLineWOServiceMapping | (var IntegrationTableMappingName: Code[20]; var ShouldRecreateJobQueueEntry: Boolean; var IsHandled: Boolean) | 24-27 | - | - |
| Integration event | OnBeforeResetServiceItemCustomerAssetMapping | (var IntegrationTableMappingName: Code[20]; var ShouldRecreateJobQueueEntry: Boolean; var IsHandled: Boolean) | 24-27 | - | - |
| Integration event | OnBeforeResetProjectTaskMapping | (var IntegrationTableMappingName: Code[20]; var ShouldRecreateJobQueueEntry: Boolean; var IsHandled: Boolean) | 24-27 | - | - |
| Integration event | OnBeforeResetResourceBookableResourceMapping | (var IntegrationTableMappingName: Code[20]; var ShouldRecreateJobQueueEntry: Boolean; var IsHandled: Boolean) | 24-27 | - | - |
| Integration event | OnCreateJobQueueEntryOnBeforeJobQueueEnqueue | (var JobQueueEntry: Record "Job Queue Entry"; var IntegrationTableMapping: Record "Integration Table Mapping"; JobCodeunitId: Integer; JobDescription: Text) | 24-27 | - | - |

## Source

Symbols: Microsoft.E-DocumentCore.symbols.e1d97edc-c239-46b4-8d84-6368bdf67c8b, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-11-20.
AL source 28: https://github.com/microsoft/BCApps, MIT, releases/28.x at 408a4cc8d3a4c54b60464cc14c964479facb9ba0.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
