Error in Export to excel code - Dynamics Nav 365BC wave 2

Hi Folks -

I have a processing only report with below 2 dataitems and on Makdatabody its saying that Sales shipment line does not exist. Can anyone please let me know how can I refer a field in 365. I migrated this report from NAV 2017.  Any help is highly appreciated.  

    Sales shipment header

       Sales shipment line

procedure MakeDataBody();
    begin
        ExcelBuf.NewRow;
        IF i = 1 THEN BEGIN
            ExcelBuf.AddColumn("sales shipment line"."Document No.", FALSE, '', TRUE, FALSE, FALSE, '', ExcelBuf."Cell Type"::Text);
            ExcelBuf.AddColumn("Sales Shipment Line"."Document Date", FALSE, '', FALSE, FALSE, FALSE, '', ExcelBuf."Cell Type"::Date);
        END ELSE BEGIN
            ExcelBuf.AddColumn('', FALSE, '', FALSE, FALSE, FALSE, '', ExcelBuf."Cell Type"::Text);
            ExcelBuf.AddColumn('', FALSE, '', FALSE, FALSE, FALSE, '', ExcelBuf."Cell Type"::Text);
        END;
        ExcelBuf.AddColumn("sales shipment header"."Shipment Method Code", FALSE, '', FALSE, FALSE, FALSE, '', ExcelBuf."Cell Type"::Text);
        ExcelBuf.AddColumn("Sales Shipment Line"."Order No.", FALSE, '', TRUE, FALSE, FALSE, '[RED]', ExcelBuf."Cell Type"::Number);
        ExcelBuf.AddColumn(FORMAT("Sales Shipment Line".Type), FALSE, '', FALSE, FALSE, FALSE, '', ExcelBuf."Cell Type"::Text);
        ExcelBuf.AddColumn("Sales Shipment Line"."No.", FALSE, '', FALSE, FALSE, FALSE, '', ExcelBuf."Cell Type"::Text);
        ExcelBuf.AddColumn("Sales Shipment Line".Description, FALSE, '', FALSE, FALSE, FALSE, '', ExcelBuf."Cell Type"::Text);
        ExcelBuf.AddColumn("Sales Shipment Line"."Shortcut Dimension 2 Code", FALSE, '', FALSE, FALSE, FALSE, '', ExcelBuf."Cell Type"::Text);
        ExcelBuf.AddColumn("Sales Shipment Header"."Location Code", FALSE, '', FALSE, FALSE, FALSE, '', ExcelBuf."Cell Type"::Text);
        ExcelBuf.AddColumn("Sales Shipment Line".Quantity, FALSE, '', FALSE, FALSE, FALSE, '#,##0', ExcelBuf."Cell Type"::Number);
        '
ERROR
The name '"Shortcut Dimension 2 Code"' does not exist in the current context
The name '"sales shipment line"' does not exist in the current context
The name '"sales shipment header"' does not exist in the current context
Related
Recommended