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/bmfgsupplier.p)
<ANCESTOR-CODE>
assign
oiReturnStatus = -98.
/*
* Create a record in the objects temp table.
*/
<M-1 run AddDetailLine (input 'vd_mstr':U (icTable),
input '' (icParentRowid),
output viFcReturnSuper (oiReturnStatus)) in BMfgSupplier>
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
tvd_mstr.vd_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 tvd_mstr:default-buffer-handle:find-by-rowid(rowid(tvd_mstr)).
if oiReturnStatus = -98 then
assign oiReturnStatus = 0.