ItemJnlLine.INIT; ItemJnlLine.VALIDATE("Posting Date", TODAY); ItemJnlLine.VALIDATE("Document No.", 'QWERTY1111'); ItemJnlLine.VALIDATE(ItemJnlLine."Entry Type", ItemJnlLine."Entry Type"::"Negative Adjmt."); ItemJnlLine.VALIDATE("Item No.", 'LOTITEM'); ItemJnlLine.VALIDATE("Location Code", 'DEFAULT'); ItemJnlLine.VALIDATE(Quantity, 1); TempJnlLineDim.RESET; TempJnlLineDim.DELETEALL; TempTrackingSpec.RESET; TempTrackingSpec.DELETEALL; // not sure how to specify TempTrackingSpec and pass to ItemJnlPostLine codeunit for posting!!! ItemJnlPostLine.RunWithCheck(ItemJnlLine, TempJnlLineDim);
Comments
Here is code on how to create the reservation entry.
CreateReservEntry = CU 99000830 Create Reserv. Entry
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Thanks. It is working now.
Jordan
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n