Where is the Lot created when receiving?

The method that is being called during a receipt is Receipt so the post processing should go on receipt.update. In your post processing code you will want to look at ttRcvDtl.lotnum field to get the lot number. Use this value along with company and part number to retrieve the part lot record and update it as needed.

Jim K

--- In vantage@yahoogroups.com, Ed Garbowski <egarbowski@...> wrote:
>
> Hi Jim,
> My current code is in the LotSelectUpdate.Update method as a Pre-processing record, and works only from direct Lot Entry changes. If I understand correctly, I could basically add this same code to the Part.Update method as a Post-processing record to get this to work on Lot creation?
>
> Thanks,
> Ed
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of jckinneman
> Sent: Wednesday, January 13, 2010 7:42 AM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Re: Where is the Lot created when receiving?
>
>
>
>
> Do you want to add this information via a customization or a BPM? I have resolved this via a customization by doing an after event on the receipt method. As you have discovered the partlot record is not exposed during the receipt operation. I am guessing this was a design choice as the partlot record only needs to created if the part is lot tracked. As part of the receipt method the partlot record is created behind the scenes. The partlot number is returned and present in the receipt view. With the partlot number we can look up the partlot record. As part of the after event I do a getbyid on the partlot record, update the fields I am interested in. And then do an .update() on the partlot adapater. You should be able to do the same thing with a post processing BPM using ABL code.
>
> Jim K.
> Senior Consultant
> En>compass Solutions Inc.
> Tel 336.298.1296 (Google Voice)
> Fax 336.217.7983
> E-mail jimki@...<mailto:jimki%40encompass-inc.com>
> www.encompass-inc.com
>
> --- In vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>, "Ed Garbowski" <egarbowski@> wrote:
> >
> > I am trying to add some data to the PartLot record when it gets created through the Receipt process, but the trace doesn't appear to point to the Method used that creates the Lot. PartLot.Update isn't it, and Receipt.Update doesn't reference PartLot either. Can anyone point me in the right direction?
> > Thanks,
> > Ed
> >
>
>
> ________________________________
> The information contained in this message is intended solely for the individual to whom it is specifically and originally addressed. This message and its contents may contain confidential or privileged information. If you are not the intended recipient, you are hereby notified that any disclosure or distribution, or taking any action in reliance on the contents of this information, is strictly prohibited.
> We have taken precautions to minimize the risk of transmitting software viruses, but we advise you to carry out your own virus checks on any attachment to this message. We cannot accept liability for any loss or damage caused by software viruses.
>
> This message (including any attachments) is intended only for
> the use of the individual or entity to which it is addressed and
> may contain information that is non-public, proprietary,
> privileged, confidential, and exempt from disclosure under
> applicable law or may constitute as attorney work product.
> If you are not the intended recipient, you are hereby notified
> that any use, dissemination, distribution, or copying of this
> communication is strictly prohibited. If you have received this
> communication in error, notify us immediately by telephone and
> (i) destroy this message if a facsimile or (ii) delete this message
> immediately if this is an electronic communication.
>
> Thank you.
>
>
> [Non-text portions of this message have been removed]
>
I am trying to add some data to the PartLot record when it gets created through the Receipt process, but the trace doesn't appear to point to the Method used that creates the Lot. PartLot.Update isn't it, and Receipt.Update doesn't reference PartLot either. Can anyone point me in the right direction?
Thanks,
Ed
Do you want to add this information via a customization or a BPM? I have resolved this via a customization by doing an after event on the receipt method. As you have discovered the partlot record is not exposed during the receipt operation. I am guessing this was a design choice as the partlot record only needs to created if the part is lot tracked. As part of the receipt method the partlot record is created behind the scenes. The partlot number is returned and present in the receipt view. With the partlot number we can look up the partlot record. As part of the after event I do a getbyid on the partlot record, update the fields I am interested in. And then do an .update() on the partlot adapater. You should be able to do the same thing with a post processing BPM using ABL code.

Jim K.
Senior Consultant
En>compass Solutions Inc.
Tel 336.298.1296 (Google Voice)
Fax 336.217.7983
E-mail jimki@...
www.encompass-inc.com


--- In vantage@yahoogroups.com, "Ed Garbowski" <egarbowski@...> wrote:
>
> I am trying to add some data to the PartLot record when it gets created through the Receipt process, but the trace doesn't appear to point to the Method used that creates the Lot. PartLot.Update isn't it, and Receipt.Update doesn't reference PartLot either. Can anyone point me in the right direction?
> Thanks,
> Ed
>
Hi Jim,
My current code is in the LotSelectUpdate.Update method as a Pre-processing record, and works only from direct Lot Entry changes. If I understand correctly, I could basically add this same code to the Part.Update method as a Post-processing record to get this to work on Lot creation?

Thanks,
Ed
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of jckinneman
Sent: Wednesday, January 13, 2010 7:42 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: Where is the Lot created when receiving?




Do you want to add this information via a customization or a BPM? I have resolved this via a customization by doing an after event on the receipt method. As you have discovered the partlot record is not exposed during the receipt operation. I am guessing this was a design choice as the partlot record only needs to created if the part is lot tracked. As part of the receipt method the partlot record is created behind the scenes. The partlot number is returned and present in the receipt view. With the partlot number we can look up the partlot record. As part of the after event I do a getbyid on the partlot record, update the fields I am interested in. And then do an .update() on the partlot adapater. You should be able to do the same thing with a post processing BPM using ABL code.

Jim K.
Senior Consultant
En>compass Solutions Inc.
Tel 336.298.1296 (Google Voice)
Fax 336.217.7983
E-mail jimki@...<mailto:jimki%40encompass-inc.com>
www.encompass-inc.com

--- In vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>, "Ed Garbowski" <egarbowski@...> wrote:
>
> I am trying to add some data to the PartLot record when it gets created through the Receipt process, but the trace doesn't appear to point to the Method used that creates the Lot. PartLot.Update isn't it, and Receipt.Update doesn't reference PartLot either. Can anyone point me in the right direction?
> Thanks,
> Ed
>


________________________________
The information contained in this message is intended solely for the individual to whom it is specifically and originally addressed. This message and its contents may contain confidential or privileged information. If you are not the intended recipient, you are hereby notified that any disclosure or distribution, or taking any action in reliance on the contents of this information, is strictly prohibited.
We have taken precautions to minimize the risk of transmitting software viruses, but we advise you to carry out your own virus checks on any attachment to this message. We cannot accept liability for any loss or damage caused by software viruses.

This message (including any attachments) is intended only for
the use of the individual or entity to which it is addressed and
may contain information that is non-public, proprietary,
privileged, confidential, and exempt from disclosure under
applicable law or may constitute as attorney work product.
If you are not the intended recipient, you are hereby notified
that any use, dissemination, distribution, or copying of this
communication is strictly prohibited. If you have received this
communication in error, notify us immediately by telephone and
(i) destroy this message if a facsimile or (ii) delete this message
immediately if this is an electronic communication.

Thank you.


[Non-text portions of this message have been removed]
We are on version 803.408b

thanx


[Non-text portions of this message have been removed]