I added new field in SalesParmTable, that should be printed in consolidated sales packing slip report in d365f&o

Customization in sales packing slip posting, mutiple sales order in single packing slip posting and in the single sales order multiple lines. In the standards SalesPackingSlipDP class i took extension and added the logic in initializeSalesPackingSlipLine() method but i’m not getting multiple lines against single sales order only last record i’m getting in the report.

The report isn’t based on those Parm tables. They’re used just as parameter for posting the journal and the report actually shows the packing slip journal, not the parameters. The parameter may even be already deleted.

Therefore if you want to get something from SalesParmTable to the packing slip report, the first step is putting the value from SalesParmTable to the packing slip during posting (in SalesPackingSlipJournalCreate.initJournalLine(), I assume).

Regarding initializeSalesPackingSlipLine(), its purpose it initializing a single line, therefore you shouldn’t try to access any other. Take the value from a packling slip line and put it into SalesPackingSlipDetailsTmp. For example:

protected SalesPackingSlipDetailsTmp initializeSalesPackingSlipLine(
        SalesPackingSlipHeaderTmp                       _salesPackingSlipHeaderTmp,
        SalesPackingSlipDPPackingSlipLineQuerySelection _packingSlipLineSelection)
{
    var salesPackingSlipTmp = next initializeSalesPackingSlipLine(_salesPackingSlipHeaderTmp, _packingSlipLineSelection);

    salesPackingSlipTmp.MyField = _packingSlipLineSelection.parmCustPackingSlipTrans().MyField;

    return salesPackingSlipTmp;
}

Thanks for the reply. line level it’s fine but while doing consolidation in sales packing slip report each sales order can have customer reference number in the header level that should be print in the report multiple times against each sales order.

Thanks in advance.

Your problem description isn’t clear to me. When you say “should be print in the report multiple times against each sales order”, how many times should it be printed? Once for each line?

Please show us a mockup of the new report design, or give us a proper textual description.

For example, If we are posting two sales orders in a single packing slip posting two customer reference values need to come. If we are posting three sales orders in a single packing slip posting three customer reference values need to come This is not at a line level. It is based on the sales order header.

Please show us how it should look like in the report?

Are saying that you can’t use existing data sources of the report and you’ll need an additional one?