AP Manual Check Entry screen with UDF from another business object

Hello,

Can anyone help me with example code on how to get a User Defined Field in another object? I'm used to using oSession and oLines to get the header values and details for AP_ManualCheckHeader and AP_ManualCheckDetail. But I'm trying to get one field from AP_Check_Detail. I think I get that I have to set an object to get the value and am currently working on this. If I get the solution myself, I will be sure to post it here for others. The user defined scripts are for Manual Check Entry on post write.

thank you