Item journal line - Tracking line

bobnavisionbobnavision Member Posts: 159
All,

Which function/procedure attaches the item tracking lines to item journal line , when we post a transfer order / Purchase order.

When we post an order, program creates posted item tracking lines.
How does it happen? please help.

Thanks and Regards

Comments

  • ArhontisArhontis Member Posts: 667
    Hello,

    If you try a search in the forum with "Item Tracking Lines" you will find a lot of posts about it. It is a very complicated procedure.

    As an example take a look at the post:
    http://www.mibuso.com/forum/viewtopic.p ... king+lines
  • diptish.naskardiptish.naskar Member Posts: 360
    Go through the codeunit 90 there you will see codes with does the item tracking part. In the codes of Purchase post you will find that another codeunit is called named Purch. Line-Reserve

    The code somewhat looks like this:
          // Item Tracking:
          IF Invoice THEN
            IF PurchLine."Qty. to Invoice" = 0 THEN
              TrackingSpecificationExists := FALSE
            ELSE
              TrackingSpecificationExists :=
                ReservePurchLine.RetrieveInvoiceSpecification(PurchLine,TempInvoicingSpecification);
    

    Hope you will get to know something looking at the codes..
    Diptish Naskar
    For any queries you can also visit my blog site: http://msnavarena.blogspot.com/
  • bobnavisionbobnavision Member Posts: 159
    thanks all,

    I don't know why my code is not working.
    Step 1 : I am inserting record in Item Journal Line (not calling .insert)
    Step2 : I am inserting record in Reservation entry
    Step3 : Posting Item journal Line

    Still it gives me error that "Lot No. is required for Item.."

    Regards,
  • lyotlyot Member Posts: 202
    Same problem here... ](*,)
  • dimusdimus Member Posts: 24
    Before Step3 go to the Item Journal Line and then Line -> Item Tracking Line. Can you see the Lot No.?
    The easiest way is to manually create an Item Journal Line, assign a Lot No. and then review related Reservation Entry in the table. In the code create a reservation entry with the same fields updated.
  • matttraxmatttrax Member Posts: 2,309
    It took me a while to figure out how to do this. A lot of trial and error.

    Manually create a journal line. Then manually assign item tracking. Now go run your code to assign item tracking to that SAME journal line. Compare the two reservation entries and find the difference(s).
  • julkifli33julkifli33 Member Posts: 1,087
    if we key in lot no using item tracking line,we will input to the table Reservation Entry (table 337)
    but how to input to table 83 (item journal line) ??
    the one that we can zoom (ctrl + f8) from item journal
    thanks
Sign In or Register to comment.