I want to split the line in warehouse shipment For e.g.- i have line no 1000 in which quantity is 190 now i want to split in 10 line in each line with 19 qty.
If you use the “Create &Whse. Shipment” button on the Sales Order page you need to create loop inside WhseActivityCreate.FromSalesLine2ShptLine(WhseShptHeader,“Sales Line”) (where WhseActivityCreate is Codeunit “Whse.-Create Source Document”).
But my advice - think where you can setup this value (19TM) instead of hardcode it… Maybe you can add 1 field in the Sales line like “Split into” and lookup to special table (or Item - I can’t write now correctly) and take value from this setup.
Why you want to SPLIT, Can you post 10 times with 19 quantities each!!
Still if you want to Split then navigate to any Warehouse Put Away Document there in line section we have SPLIT lines functionality from where you can take help from and do the same.