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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Business Central RDLC Shipment Report

(6) ShareShare
ReportReport
Posted on by 21

Hello, everyone

I am making an extension of the Sales Shipment report in BC adding 3 columns (custom fields) to the Shipment Lines but when I generate the report I don't get the information that I can see in the Posted Form in BC. I have also added some custom fields in the Shipment header and when I generate the report I get the corresponding information. Can you help me to give me an idea of what I have wrong?  This is the code I have.

The red ones are the custom fields in Shipment Header and the Blue ones are the custom field in the Lines. 

 

 

Here´s the AL Code we are using:

reportextension 50106 RE_SalesShipment extends /Sales Shipment NA/

{

    RDLCLayout = './SalesShipmentNA.rdlc';
    dataset
    {
        // Add changes to dataitems and columns here        
        add(/SalesShptLine/)
        {
            column(Item_Details; TempSalesShipmentLines./Item Details/)
            {
            }
            column(ItemDetailsLbl; ItemDetailsLbl)
            {
            }
            column(LineNo; TempSalesShipmentLines.LineNo)
            {
            }
            column(Line_No; LineNoLbl)
            {
            }
            column(labelLine; TempSalesShipmentLines.labelLine)
            {
            }
            column(Label_Line; LabelLineLbl)
            {
            }
        }

        add(/Sales Shipment Header/)
        {
            column(DealerContact; DealerContact)
            {
            }
            column(Dealer_Contact; DealerContactLbl)
            {
            }
            column(Project; Project)
            {
            }
            column(ProjectLbl; ProjectLbl)
            {
            }
        }
    }

   requestpage
    {
        // Add changes to the requestpage here
    }

    var

        TempSalesShipmentLines: Record /Sales Shipment Line/ temporary;
        ItemDetailsLbl: Label 'Item Details';
        LabelLineLbl: Label 'Label Line';
        LineNoLbl: Label 'Line No.';
        DealerContactLbl: Label 'Dealer Contact';
        ProjectLbl: Label 'Project';
}

 

Best Regards

I have the same question (0)
  • Suggested answer
    KasparsSemjonovs Profile Picture
    4,817 Super User 2026 Season 1 on at
    Have You provided the RDLC layout, not just the Report Extension?
    You can try to create a custom report layout for this Report ID and import Your RDLC layout, then test it on any Shipment.
  • Suggested answer
    Kamal Khakhkhar Profile Picture
    2,491 on at
    Hii There,
    As far as the code you provided in that Report which is blank in output, So you need to export the layout and add the fields in RDLC layout and Import to replace the existing layout.! Or You can export the existing layout, create a new layout. Import as new id and create a codeunit by which you will open the new layout in place of old layout.
     
    Thank you,
    Kamal Khakhkhar.
  • Suggested answer
    Kamal Khakhkhar Profile Picture
    2,491 on at
    Hii There,
    as per checked you need to use the Same data item variable for report extension . you are using another variable please check and update some of case.
     
    If You found answer other then this share here .
    or if you found answer mark it answered.
     
    Thank You.
    Kamal Khakhkhar.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,857 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,047 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 959 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans