Best Way to Source SODetail UDF from SOHeader UDF

Is there an easy way to source an UDF from the SOHeader to the SODetail without a script?  Thought there might be a work around but can't find it, so cam up with this script to test but will have to wait until I can get everyone out of the system.

If oSession.CompanyCode = "TST" then

rVal = 0
nRec = 0
nPull = 0
nUnits = 0
nTotal = 0
sType = ""
dToday = ""

rVal = oHeader.GetValue("OrderType$", sType)

if sType = "S" Or sType = "B" then

rVal = oHeader.GetValue("UDF_TOTAL_QTY_REC", nRec)
rVal = oHeader.GetValue("UDF_TOTAL_QTY_PULLED", nPull)
rVal = oHeader.GetValue("UDF_UNIT_COUNT", nUnits)

nTotal = nRec+nPull

	if nTotal = nUnits then

	rVal = oBusObj.SetValue("UDF_SOLINE_ALLOCATED$", "Y")

	end if

end if

end if