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
icMfgDomain | input | character | Controls the process of creating a new row in the MFG/PRO data temp table and assigning the MFG/PRO OID to the buffer. |
icMfgTableName | input | character | Name 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. |
icFinancialTableName | input | character | Name of the current financials table being processed, used to determine which logic to execute. |
oiReturnStatus | output | integer | Return status of the method. |
Internal usage
unused
program code (program/bmfgnrm.p)
<ANCESTOR-CODE>
/* ====================================================== */
/* Set the return status to unexpected system error (-98) */
/* ====================================================== */
assign oiReturnStatus = -98.
/* ========================================== */
/* Create a record in the objects temp table. */
/* ========================================== */
<M-3 run AddDetailLine (input 'nr_mstr':U (icTable),
input '' (icParentRowid),
output viFcReturnSuper (oiReturnStatus)) in BMfgNRM>
if viFcReturnSuper <> 0 then assign oiReturnStatus = viFcReturnSuper.
if viFcReturnSuper < 0 then return.
/* ======================================================== */
/* Assign the Domain to the MFG/PRO table as this business */
/* component belongs to a domained table in MFG/PRO. */
/* ======================================================== */
assign tnr_mstr.nr_domain = icMfgDomain.
/* ============================================================ */
/* 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 tnr_mstr:default-buffer-handle:find-by-rowid(rowid(tnr_mstr)).
/* ====================================================== */
/* Set the return status = OK */
/* ====================================================== */
if oiReturnStatus = -98
then assign oiReturnStatus = 0.