D365 FO - Post a manually given Packing slip in Sales order


I am trying to import a file for posting Sales Order packing slip .

the file has packing slip id and the system has to use that value for Packing Slip Id.

I am trying to update the Num_W field in SalesParmTable but it doesn`t get updated. Is there other approach to be followed ?



Got the solution.

It might be helpful for others.

It cannot be done directly. Create a new field in SalesParmTable and populate it before posting the packing slip.

Also the method ‘getNumAndVoucher’ in the class SalesPackingSlipJournalCreate has to be extended (I used CoC) to refer the new field for the journal number.