Your code seems to be correct.
What is the error you are getting after changing the sales order.
You can not change the material number after the PGI has been done.
Hope this helps.
Your code seems to be correct.
What is the error you are getting after changing the sales order.
You can not change the material number after the PGI has been done.
Hope this helps.