cancel
Showing results for 
Search instead for 
Did you mean: 

Operator to add wage type to CRT with cumulation type other than "Y"

mikaellayuk
Participant
0 Kudos

Hi Expert,

I want to ask question related to payroll schema and rules. Is there any operator to perform addition to wage type stored in Cumulation Table (CRT), with cumulation type other than "Y" (Annually)?

I have tried to use operator ADDWTC, but this operator always add wage type with cumulation type "Y", and make no changes to wage type with cumulation type other than "Y".

Thanks in advance.

Best Regards,

M.A.L

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello M.A.L.

Maybe you already have found the answer?

The reason is that operation ADDWT with C in the operation modifier (ADDWTC) has "Y" hardcoded for all other molgas than 07 - Canada and 10 - USA:

IF calcmolga = '07' OR "Canada

calcmolga = '10'. "USA

MESSAGE e031(hrpay99calc) with i52c5-ccycl into dummy.

MOVE-CORRESPONDING sy TO error_msg.

PERFORM errors_t100 USING error_msg.

ELSE.

IF ot-anzhl NE 0 OR ot-betrg NE 0.

MOVE-CORRESPONDING ot TO crt.

crt-cumty = 'Y'. "Year-To-Date QXOK146693

COLLECT crt.

ENDIF.

So you have to create your own version of ADDWT if you want other values - ideally to pich the value from table V_T54C3.

Best regards,

Christian von der Recke

Senior HR Consultant

Gavdi A/S

Sankt Nikolaj Vej 8

1953 Frederiksberg C.

www.gavdi.com

T: +45 3391 2929