I am unable to post packing slip of sales order through x++ code in ax2012r3. I am using below code. when I changed document status to invoice. its working, it will create invoice for particular order. but when I put document status as packing Slip, its not doing anything not even throwing any error.
I understand its been a long time for this post and it might be late for me to answer. Still I would like to answer by updating your above piece of code: