Good morning,
I have to develop a report that scrolls all production order lines having an item with item tracking code (and a flag that I already manage) to assign automatically to them lot no or serial no. in
table reservation entry 337 with a method similar to form 6510 - menu Item ID 51 Assign &Serial No. and menu Item ID 52 Assign &Lot No.
NAV 5.0
I want to know wich is the better way as I cannot call the trigger/function of the form and manage the tmp table Tracking Specification.
I only would like to call functions to populate correctly the table 337 Reservation Entry. Is there something or do I need to develop all?
Thank you
Andy
0
Comments
If you fill the parameters correctly, it will do the job for you...
Or you can look into codeunit 99000837 Prod. Order Line-Reserve...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Thank you very much
CreateReservEntry Codeunit Create Reserv. Entry
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I don't understand if:
-99000837 Prod. Order Line-Reserve.CreateReservation can be used by my report and when it is called in standard NAV code, for which aim
- what is the aim/difference of function :
CreateReservEntryFor(ForType : Option;ForSubtype : Integer;ForID : Code[20];ForBatchName : Code[10];ForProdOrderLine : Integer;ForRefNo
and
CreateReservEntryFrom(FromType : Option;FromSubtype : Integer;FromID : Code[20];FromBatchName : Code[10];FromProdOrderLine : Integer;Fr
Thank you again
If you do not know the From part (you are just assigning Lot/Serial no. to the line which will produce the item), you just use the For function to select for which target you want to create the reservation...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I create a codeunit to insert into Journal Line, then Insert Temporary table Tracking Specification.
Then i call function :
- CreateReservEntry.SetDates(
- CreateReservEntry.CreateReservEntryFor(
- CreateReservEntry.CreateEntry(
from CU "Create Reserv. Entry"
Then i open the Item Journal, i can see my item journal is already inserted.
and when i check table 337 "Reservation Entry" its already filled.
The problem is when i Open Item Journal, then click on [Line] - [Item Tracking Lines] it didn't show my tracking specifications.
Where did i go wrong? When i do it manually, the result in table 337 is the already the same with the one that i run with my codeunit.
Is there any other table that i need to insert?
Thanks in advance
Regards,
Steven
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I already find out the problems. Its the "Source Ref. No." field that i got it wrong.
And also Thanks for everyone in this thread
Regards,
Steven