you're updating those fields. You won't get an error when compiling the
BPM, but the code won't update either. Eventually, you'd find a message on
the app server logs at run time. You'll also need to convert the pack num
to a string to compare to the Key1 field.
Make sure to include the Company in your "Where" statements when linking to
the UD table. All indices on the tables have the Company as the first field
in the index, so if you don't use it - you're doing a full table scan.
And actually, since we're talking about optimizing, anytime you can combine
statements, you're increasing the performance. So, a rewrite of this
statement would be:
for each ttShipHead where ttShipHead.RowMod = "A" And ttShipHead.ShipDate
= today And ttShipHead.ShipViaCode = 'pwf' And ttShipHead.CustNum = 534,
each UD40 no-lock where UD40.Company = ttShipHead.Company and UD40.key1
= string(ttShipHead.PackNum):
assign ttshiphead.trackingnumber = UD40.ShortChar01.
End.
Hope that helps.
Kevin Simon
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
Scotty K.
Sent: Monday, December 16, 2013 6:49 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] RE: E9: I would like to do a customization with a UD
table
Change you action to ABL with no condition and use the following code.
for each ttShipHead no-lock where ttShipHead.RowMod = "A" And
ttShipHead.ShipDate = today And ttShipHead.ShipViaCode = 'pwf' And
ttShipHead.CustNum = 534:
Find First UD40 no-lock where UD40.key1 = ttShipHead.PackNum no-error.
If Avail UD40 then do:
ttshiphead.trackingnumber = UD40.ShortChar01.
End.
End.
Good luck, Scott
On Mon, Dec 16, 2013 at 5:11 PM, Miguel Santillan <msantillan@...
<mailto:msantillan@...> > wrote:
I was able to create the UD Entry Form and my Key 1 and ShortChar01 are
populated.
UD40.Key1 and UD40.ShortChar01
So now I want to be able to take that data and populate into the shipment.
This was my query on the Pre CustShip.Update and I have a informational
message and it opened.
for each ttShipHead no-lock where ttShipHead.RowMod = "A" And
ttShipHead.ShipDate = today And ttShipHead.ShipViaCode = 'pwf' And
ttShipHead.CustNum = 534
I want to assign ttshiphead.trackingnumber = UD09.ShortChar01.
but that did not work as the action. I am missing how to link the UD40
table in here.
Miguel A. Santillan
Compass Manufacturing Systems
510-661-6666 <tel:510-661-6666> Office
From: vantage@yahoogroups.com <mailto:vantage@yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage@yahoogroups.com> ] On Behalf
Of bruce.d.ordway@... <mailto:bruce.d.ordway@...>
Sent: Friday, December 13, 2013 8:27 AM
To: vantage@yahoogroups.com <mailto:vantage@yahoogroups.com>
Subject: [Vantage] RE: E9: I would like to do a customization with a UD
table
Hi Miguel,
I'm assuming this would be your first customization?
And you have already set up your EpicWeb account?
If so I would start with downloading the Customization Guides.
I think the basic customization chapters will answer your questions.
https://epicweb.epicor.com/Education/Pages/UserGuides.aspx
[Non-text portions of this message have been removed]