BPM for Lot Expiration date

Liss, I think the problem is "if partlot.LotNum <> 0". PartLot.LotNum is alphanumeric so you may want to compare it to null.
Â
-Karl

From: liss_c <lcontreras@...>
To: vantage@yahoogroups.com
Sent: Friday, July 22, 2011 9:43 AM
Subject: [Vantage] BPM for Lot Expiration date


Â
Hi guys,

I am trying to create this UDfield in the receipt entry that will get populated in these 2 escenarios:

-If the part is lot tracked then display the partlot.expirationdate
-If the part is not lot tracked then display today's date.

This is the BPM but I get an error when I validate it.
I am not a BPM expert but this is what i came up with:

For each ttrcvdtl where ttrcvdtl.RowMod = 'a' or ttrcvdtl.RowMod = 'u' no-lock.
find Partlot where ttrcvdtl.Company = Partlot.Company and ttrcvdtl.PartNum = partlot.PartNum no-lock.
if available PartLot then do:
if partlot.LotNum <> 0 then ttrcvdtl.date01 = partlot.ExpirationDate
else ttrcvdtl.date01 = today.
end.

The following application error was encountered:

** Incompatible data types in expression or assignment. (223)
** C:\Program Files (x86)\Epicor Software\EpicorData\13218013883177592094519711515243533132127.p Could not understand line 16. (198)




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

I am trying to create this UDfield in the receipt entry that will get populated in these 2 escenarios:

-If the part is lot tracked then display the partlot.expirationdate
-If the part is not lot tracked then display today's date.

This is the BPM but I get an error when I validate it.
I am not a BPM expert but this is what i came up with:


For each ttrcvdtl where ttrcvdtl.RowMod = 'a' or ttrcvdtl.RowMod = 'u' no-lock.
find Partlot where ttrcvdtl.Company = Partlot.Company and ttrcvdtl.PartNum = partlot.PartNum no-lock.
if available PartLot then do:
if partlot.LotNum <> 0 then ttrcvdtl.date01 = partlot.ExpirationDate
else ttrcvdtl.date01 = today.
end.


The following application error was encountered:

** Incompatible data types in expression or assignment. (223)
** C:\Program Files (x86)\Epicor Software\EpicorData\13218013883177592094519711515243533132127.p Could not understand line 16. (198)