Hi,
I am facing an issue while trying to update a supplier's purchase order delivery schedule using X++ code. Here's the scenario:
We have a purchase order with, for example, 3 items, each having a defined delivery schedule with specific quantities yet to be delivered. The delivery schedule has been confirmed. Now, considering a situation where the remaining quantity for a certain item has been physically received, I need to update the delivery schedule by adding new lines for the items that have been received anew. Additionally, I need to input primary information for these quantities, such as the lot number.
In this case, I am encountering a problem with inserting these new delivery lines, especially in relation to line numbers.
Could you please provide guidance on how to insert these new delivery lines through X++ code and ensure proper linkage to the line numbers?
Thank you for your assistance.