project QadFinancials > class BMfgUserRole > 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/bmfguserrole.p)

<ANCESTOR-CODE>

assign oiReturnStatus = -98.

/*
* Create a record in the objects temp table.
*/
<M-1 run AddDetailLine (input  'usrgd_det':U (icTable), 
                        input  ? (icParentRowid), 
                        output viFcReturnSuper (oiReturnStatus)) in BMfgUserRole>

if viFcReturnSuper <> 0 then assign oiReturnStatus = viFcReturnSuper.
if viFcReturnSuper < 0 then return.


/*
* Ensure that the buffer handle points to the same row as the 
* row we have just created in the tac_mstr temp table.
*/
temp-table tusrgd_det:default-buffer-handle:find-by-rowid(rowid(tusrgd_det)).

if oiReturnStatus = -98 
then assign oiReturnStatus = 0.