Table Pre-Write events are the only events that will be triggered during a copy of a record.
If you place your event on the SO_SalesOrderDetail Pre-Write event, you can use the following code to determine if the current line is a new line created during a copy operation.
ncCopyingLines = 0 : oBusObj.GetValue "cCopyingLines", ncCopyingLines
If oBusObj.EditState = 2 And CBool(ncCopyingLines) Then
' This line is new and being copied.
' Process your logic in here.
End If
------------------------------
David Speck II
Tennessee Software Solutions
------------------------------