web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Missing CodeUnit "Serv. Report Management"

(6) ShareShare
ReportReport
Posted on by 22

I'm currently updating my AL code to Business Central version 26.0. I've resolved almost all warnings, except for one that I can't get rid of:

 

"Method 'GetServHeaderDocTypeUsage' is marked for removal. Reason: Replaced by same procedure in codeunit 'Serv. Report Management'. Tag: 25.0."

 

The problem is: I can't find a codeunit named Serv. Report Management in my AL packages. I'm using a BC Cloud Sandbox Environment with the following version:

 

Version: DE Business Central 26.3 (Platform 26.0.37552.0 + Application 26.3.36158.37831)

 

I've already tried redownloading the symbols, but the codeunit still doesn't show up. I also couldn't find any helpful resources online.

Does anyone know why this codeunit might be missing or how I can add it to my project?

I have the same question (0)
  • Suggested answer
    Sumit Singh Profile Picture
    10,079 on at
    The replacement method for GetServHeaderDocTypeUsage is not in a codeunit named Serv. Report Management—that name appears to be incorrect or misleading in the deprecation message.
    Instead, the correct replacement is located in:

    Codeunit 6461 "Serv. Document Print"

    • Namespace: Microsoft.Foundation.Reporting
    • Method:
    • procedure GetServHeaderDocTypeUsage(ServiceHeader: Record "Service Header"): Enum "Report Selection Usage"
    📘 Official Microsoft Learn Reference [1]
    1. Replace your call to the deprecated method with:
    2. ServDocumentPrint.GetServHeaderDocTypeUsage(ServiceHeader);
    3. Declare the codeunit in your AL code:
    4. var
    5.     ServDocumentPrint: Codeunit "Serv. Document Print";
    6. Ensure your app.json includes the correct dependencies:
    7. "dependencies": [
    8.     {
    9.         "id": "437dbf0e-84ff-417a-965d-ed2bb9650972",
    10.         "name": "Base Application",
    11.         "publisher": "Microsoft",
    12.         "version": "26.0.0.0"
    13.     }
    14. ]
    15. Redownload symbols after updating app.json:
      • Run AL: Download Symbols from the Command Palette.
    • The deprecation message refers to a non-existent or internal alias (Serv. Report Management), but the actual implementation is in Serv. Document Print.
    • This has been confirmed by Microsoft documentation and community reports.
    References
    [1] Codeunit "Serv. Document Print" | Microsoft Learn
    Note: This response was created in collaboration with Microsoft Copilot to ensure clarity and completeness. I hope it helps to some extent.
    Mark the Answer as Verified if this is Helpful.
     
  • Suggested answer
    Dynamics_Decoded_Gokul Profile Picture
    451 on at
    Hi

    The code unit is available under the latest release V26.3, Please check for the code unit ID : 6461
     
    and the same method is also available.
     
    Thanks 
    Gokulnath
  • Verified answer
    YUN ZHU Profile Picture
    95,331 Super User 2025 Season 2 on at
    Hi, Try the following method
    codeunit 6461 "Serv. Document Print"
     
     
    Also deprecated is the following one, apparently there is something wrong with its information writing...
     
    Thanks
    ZHU
  • Verified answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at
    The comment is incorrect, it is not Serv. Report Management should be "Serv. Document Print"; you will find this function in the corresponding codeunit.
  • Verified answer
    Sohail Ahmed Profile Picture
    11,136 Super User 2025 Season 2 on at

    That codeunit isn’t missing it’s just been renamed. You’ll find the same function in codeunit “Serv. Document Print”, so you can switch your call there instead of waiting for “Serv. Report Management.”

     

    ✅ Mark this as the verified answer if helpful.

  • Suggested answer
    Khushbu Rajvi. Profile Picture
    20,275 Super User 2025 Season 2 on at
    Use “Serv. Document Print,” not “Serv. Report Management.” The function is in the related codeunit.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans