Business Central RDLC Shipment Report

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.
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';

}

Hello,

You need to add the customized field to your base report layout (RDLC).
And need to replace the base report layout with the new layout where you added the customized field.

Thanks,
Guru Krishnan.

1 Like