project QadFinancials > class PMFGLCDetailByOrderLine > method QueryLacodDet

Description

Method to query the lacod_det table from the operationals.


Parameters


tOidLacodDetinputtemp-tableInputer parameter: the oid value for the lacod_det record.
tLCChargeDetailByOrderlineoutputtemp-tableOutput paramter: LC charge detail by order line table.
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


unused


program code (program1/pmfglcdetailbyorderline.p)

if oiReturnStatus = 0 then
    assign oiReturnStatus = -98.



assign  vhIn    = dataset tOidLacodDet:handle
        vhInOut = ?
        vhOut   = dataset tLCChargeDetailByOrderLine:handle.

<M-22 run CallService
   (input  vcDefaultMfgProgram (icProgramName), 
    input  'ReturnlacodDetForAPMatching':U (icMethodName), 
    input  vhIn (izInput), 
    input-output vhInOut (bzInputOutput), 
    input-output vhOut (bzOutput), 
    input  ? (icAsyncHandler), 
    output viFcReturnSuper (oiReturnStatus)) in PMFGLCDetailByOrderLine>
   
if viFcReturnSuper <> 0 then 
    assign oiReturnStatus = viFcReturnSuper.


if oiReturnStatus = -98 then
    assign oiReturnStatus = 0.
    
delete object vhIn.
delete object vhOut.