I am trying to write a Job Queue codeunit that will at an interval try to post sales shipment from Sales Order. I have looked into
Sales-Post (Yes/No) and Sales-Post codeunits and could not find a procedure that I can use to Post a Sales Shipment from a Sales Order document.
What codeunit is available that will assist me in passing a sales header and possibly sales line and will post a sales shipment for me? Thanks a ton for the advice!
0
Answers
If you want post only shipment:
1. In All Lines in Sales Order set field "Qty to invoice" = 0 and field "Qty to Ship" = Quantity"
2. Run Post Codeunit
System will create sales shippent on Qty in fiwld Qty to Shipm and will not create Sales Invoice (Qty to invoice = 0)