Item tracking problem

karstenrobertkarstenrobert Member Posts: 27
Hi,
I need to fill the consumption journal with consumption entries from another form that contains a buffer of component lines.
That works well. I have valid entries for posting.
The only problem is that I need to automatically assign the lot. numbers for the consumption journal entries in order to be able to just post the consumption journal.
Is there an easy way to create the necessary entries?(via a codeunit?)

I know the item numbers, quantities and the lot. no to be used.

Thanks in advance.
Karsten Frank
MCP - Dynamics NAV Developer

Comments

  • cernstcernst Member Posts: 280
    I've done something simular with assigning lot no and it's not easy. The way item tracking functionality is developed in NAV isn't like other things in NAV.
    Take a look at how the standard item tracking function works in NAV.
    _____________________
    NAV Freelance Consultant
  • jreynoldsjreynolds Member Posts: 175
    Check out the functions in codeunit 99000830 (Create Reserv. Entry), particularly CreateReservEntryFor and CreateEntry. Calls to these two functions should do the job.

    On a side note - don't forget the dimensions that may need to be created for the consumption line.
Sign In or Register to comment.