mmneal,
Yes it should be possible. Where does the UDF live? In the Sales Order Detail? or in the original Repeating Sales Order?
You can use the value of the repeating order stored in the header from within a lines script.
rptgOrder = ""
retVal = oHeaderObj.GetValue("MasterRepeatingOrderNo$", rptgOrder)
You can then use it to make decisions:
If rptgOrder<>"" Then
' you would have to further decide if this is a master order or repeating order if that is important to you.
Set oSOChild = oSession.AsObject(oHeaderObj.GetChildHandle("MasterRepeatingOrderNo"))
retVal = oSOChild.Find(rptgOrder)
If retVal<>0 Then
type = ""
retVal =oSOChild.GetValue("OrderType$", type)
If type<>"R" Then
rptgOrder = ""
End If
End If
If rptgOrder<>"" Then
' calculate whatever date
End If
End If
Hope that helps.
Elliott