SAP Function RP_CONVERT_GRCUM_CA - Move cumulations from GRNUM to GRREC/GRORD and viceversa - Canada

Parameter Reference Type Length Default Optional Text
FILL_GRREC_GRDBT C C 0 Flag to determine whether to fill GRREC and GRDBT

Parameter Reference Length Optional Text
GRCUM HRPAYNA_GRCUM 44 Payroll results - cumulated garnishments
GRDBT PC29F 197 X Garnishment debt (CA)
GRREC PC29G 74 X Garnishment results records (CA)
OGRDBT PC29F 197 X Garnishment debt (CA)
OGRREC PC29G 74 Garnishment results records (CA)

Functionality
This function module is used to fill table GRREC/GRORD orOGRORD/OGRORD with cumulations coming from table GRCUM. Pleasereview the following instructions for proper use of this functionmodule:
Flag:
FILL_GRREC_GRORDthis flag is used to determine whether to fillGRREC and GRORD or OGRREC and OGRORD respectevely.Only the first two orthe last two fill be filled depending on the value of the flag.
flag value = X fill GRREC and GRORD
flag value = ' ' fill OGRREC and OGRORDThis flag shouldbe used for reporting: reports should invoke this function with raisedflagwhereas the payroll driver calls this function module with clearedflag.
Tables and their use:required:
GRCUM
OGRRECthese two tables must always be passed to the functionmodule in order. OGRREC is the"GRREC" table coming from the clusterhence in the case of reporting, this tablecorrespond to the "GRREC" inthe cluster.optional:
GRREC ,,(to be provided if the flag is raised)
GRORD ,,(to be provided if the flag is raised)
OGRORD,,(to be provided if the flag is cleared)
These table should be provided accordingly to the flag value aboveindicated.