Skip to content

table 38 "Purchase Header" global variable UpdateDocumentDate to protected var #29606

@viktorijakot

Description

@viktorijakot

Why do you need this change?

In 4PS Construct, we need to control the automatic document date update behavior in the Purchase Header table from our extensions. The original code uses a global variable UpdateDocumentDate to determine whether the document date should be updated during certain validation processes. However, this variable is not accessible from extensions, preventing us from implementing custom business logic that requires conditional control over document date updates. For specific business scenarios in construction project management - such as when processing historical purchase orders, importing legacy data, handling contract renewals, or managing multi-year framework agreements - we need to preserve original document dates without triggering automatic updates. By making the UpdateDocumentDate variable protected, extensions can access and modify this variable to control the document date update behavior based on custom business rules, enabling more flexible handling of purchase documents without core code modifications.

Describe the request

Dear ALAppExtensions team,

On behalf of 4PS, I would like to request that the global UpdateDocumentDate variable in the Purchase Header table (Table 38) be changed from a global variable to a protected variable.

This variable controls whether the document date should be automatically updated during certain validation processes. Making it protected will allow extensions to access and modify this variable to implement custom business logic for controlling document date updates in specialized scenarios such as historical data imports, multi-year framework agreements, and construction project phase management.

Suggested extensibility:

Image Internal work item: [AB#619157](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/619157)

Metadata

Metadata

Assignees

No one assigned

    Labels

    SCMGitHub request for SCM arearequest-for-externalRequest for exposing a function for extension development

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions