project QadFinancials > class BMfgGeneralizedCode > method UpdateMfgData

Description

Controls the processing of any update logic that is required when performing a create/modfiy operation on an MFG/PRO business component.
KEEP THE ANCESTOR TAG IN THE DESCENDANTS TO AVOID SCOPING PROBLEMS ON THE RECORD-AVAILABILITY
This method is the place holder for nay update ligic and complex mapping from the financials table to MFG/PRO.


Parameters


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 Financial 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 has multiple tables that map to MFG/PRO.
ihFinancialDataBufferinputhandle
ihMfgDataBufferinputhandle
icMfgDomaininputcharacter
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


unused


program code (program/bmfggeneralizedcode.p)

<ANCESTOR-CODE>

/*this code needs to be here to fix the assign of tcode_mstr.oid_code_mstr = tcodemstr.oid_code_mstr
  like it is coded in MfgDatabaseComponent
  whick results in tcode_mstr.oid_code_mstr being 0*/
If tcode_mstr.tc_Status = 'N':U
Then Assign tcode_mstr.oid_code_mstr = <M-1 GetNextOidValue  () in BMfgGeneralizedCode>.

If tcode_mstr.tc_Status = '':U
Then Assign tcode_mstr.tc_Status = 'C':U.