project QadFinancials > class BMfgEmployee > method CreateMfgData

Description

Controls the process of creating a new row in the MFG/PRO data temp table and assigning the MFG/PRO OID to the buffer. If the table belongs to a domain then that value is also assigned in this procedure.
KEEP THE ANCESTOR TAG IN THE DESCENDANTS TO AVOID SCOPING PROBLEMS ON THE RECORD-AVAILABILITY


Parameters


icMfgDomaininputcharacterControls the process of creating a new row in the MFG/PRO data temp table and assigning the MFG/PRO OID to the buffer.
icMfgTableNameinputcharacterName of the MFG/PRO table name that is currently being processed. This is used to determine which logic to execute within the method in the cases where one business component maps to multiple tables in MFG/PRO.
icFinancialTableNameinputcharacterName of the current financials table being processed, used to determine which logic to execute.
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


unused


program code (program/bmfgemployee.p)

<ANCESTOR-CODE>

/* Create new record */
<M-4 run AddDetailLine (input  'emp_mstr':U (icTable), 
                        input  '' (icParentRowid), 
                        output viFcReturnSuper (oiReturnStatus)) in BMfgEmployee>
if viFcReturnSuper <> 0 then assign oiReturnStatus = viFcReturnSuper.
if viFcReturnSuper < 0 then return.

assign temp_mstr.emp_domain = vcMfgDomain.

/* Synch buffer handle */
temp-table temp_mstr:default-buffer-handle:find-by-rowid(rowid(temp_mstr)).

if oiReturnStatus = -98
then assign oiReturnStatus = 0.