Message Boards
how to find work order no associated with a GL labor posting
Stephen Lee, modified 3 Years ago.
how to find work order no associated with a GL labor posting
Post Date: 11/7/18 (Bronze, 17 Posts) Recent Posts| 2017/05 | 5/1/2017 | SYSTEM/0000002991 | 100 | VAR-POST 14348 | |||||||||||
Francis Malengier, modified 7 Years ago.
Re: how to find work order no associated with a GL labor posting
Post Date: 11/8/18 (Bronze, 13 Posts) Recent PostsHi,
This is what I did in a browse (gl916, unposted transaction browse), but it can also be applied to all gl entries.
In the browse I defined a function in the local variables :
Function GetReferringDoc returns character (input parTransType as character, input parReference as character).
define variable returnDoc as character.
returnDoc = "N/A".
if parTransType = "WO" then do:
for first opgl_det no-lock where opgl_domain = global_domain and opgl_gl_ref = parReference,
first op_hist no-lock where opgl_domain = op_domain and opgl_trnbr = op_trnbr:
returnDoc = op_wo_nbr.
end.
end.
if parTransType = "IC" then do:
for first trgl_det no-lock where trgl_domain = global_domain and trgl_gl_ref = parReference,
first tr_hist no-lock where trgl_domain = tr_domain and trgl_trnbr = tr_trnbr:
returnDoc = tr_nbr.
end.
end.
return returnDoc.
end function.
then I added a caclulated field using this function :
GetReferringDoc (glt_tr_type, glt_ref)
I hope this can help you.
kr,
Francis
Phill Norrey, modified 7 Years ago.
Re: how to find work order no associated with a GL labor posting
Post Date: 11/8/18 (Yoda, 1010 Posts) Recent PostsMessage place holder
Forums