Hello,
I hope this message finds you well.
I am currently working on a request to add a DateCode field to the purchase line in our business system. The DateCode represents the manufacturing date of a lot, formatted as WWYY. My goal is to ensure that the values from the DateCode field on the purchase line flow through to the Lot No. Information Card, which is automatically created upon PO Posting. This feature is enabled through the Item Tracking Codes under the Lot section, specifically the "Create Lot No. Info on Posting" option.
From my research, I understand that the Lot No Creation Method exists in Codeunit 6500, and I need to subscribe to it. However, for this subscription to work, the "Item Tracking Specification" record must include the DateCode field. Since the Item Tracking Specification is created through the Reservation Entry table, I realize that I need to add the DateCode to that table as well.
Unfortunately, this approach does not seem to be working. I have spent over a week on this task without making significant progress. I have added the DateCode field to several tables, including the Tracking Specification, Reservation Entry, Lot No Information, Item Ledger Entry, Item Journal Line, and the Purchase Order Subform. Below, you will find a portion of the code I have written for the event subscription.
I would greatly appreciate any assistance or clarification if I have misunderstood anything.
Thank you for your help!
I hope you are doing well while reading this question.
In our business, I have got a request to add a DateCode field to the purchase line, DateCode is a code that symbols when was this lot manufactured in the format WWYY, however, I need to flow this DateCode field values from the purchase line, to the Lot No. Information Card, which is automatically created on PO Posting (This option was enabled from Item Tracking Codes -> Lot -> Create Lot No. Info on Posting. As per my research, I have understood the following: The Lot No Creation Method exist in Codeunit 6500, which you need to subscribe to. However, to subscribe, the record "Item Tracking Specification" Must have the DateCode Field in it, while the Item Tracking Specification gets created through Reservation Entry Table, this means that I need to add the Datecode to the Reservation Entry table. However, this approach does not seem to work, I have been working on this task for over a week, and still not reaching to any point, I have added the date code field to the following tables: Tracking Specification, Reservation Entry, Lot No Information, Item Ledger Entry, Item Journal Line, Purchase Order Subform below you can find a portion of the code that I have created for events subscription.
I appreciate any help in this, or any clarification if there's something that I misunderstood.