In the above GET is not properly used. The Primary Key of Service Header Table( I assume RecServiceHeader is “Service Header”) is Document Type,No., so GET should have two values as parameter.
By the way, what are you trying to achieve?
Edit: David Cox posted while I was writing, I noticed his reply after posting.
Ok Lets look at this again, with no code required.
Your table 207 = Res. Journal Line, and you have a field added called “No.” Code 20
You want this to be populated with a Service Header “No.”, so it is as easy as setting the Table > Field > Properties > TableRelation for your new field, use the assist edit and lookup the table and set the filter to give you:
TableRelation = “Service Header”.No. WHERE (Document Type=CONST(Order))
Add the field to the form so the user can lookup and select the Service Header, it is as simple as that!