Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

retro pay

Former Member
0 Likes
1,735

Hi all, I'm wondering how do I report retro in payroll, so far I know that in table HRPY_RGDIR field

CALCD = 'X', it's retro,

Things are how do I report it?

Does retro effect wagetype? so retro amount has separated wagetype? in my case I think I will need to report RT amount instead of CRT's to report the retro amount only.

Any suggestion? Thanks in advance!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,679

Hi,

Ull get only RT amount.

U need to get 'rgdir' using FM CU_READ_RGDIR.

from this get the seqnr where fpper <> inper and srtza <> 'A'.

(to get retro ... )

Pass this seqnr to rp-imp-c2-ru.(if it's US payroll) and get

RT structure ..

Read RT for the Wage types(LGART) and get amount(BETRG)

Regards,

Srinivas.

13 REPLIES 13
Read only

Former Member
0 Likes
1,680

Hi,

Ull get only RT amount.

U need to get 'rgdir' using FM CU_READ_RGDIR.

from this get the seqnr where fpper <> inper and srtza <> 'A'.

(to get retro ... )

Pass this seqnr to rp-imp-c2-ru.(if it's US payroll) and get

RT structure ..

Read RT for the Wage types(LGART) and get amount(BETRG)

Regards,

Srinivas.

Read only

0 Likes
1,679

Hi Srini, prompt reply, GREAT thanks! I did use CU_READ_RGDIR. Got sequence number, so you mean the following fields are

fpper = A

inper = A

srtza = A

to make sure it's retro? dont you need to consider field CALCD?

I noticed that you use rp-imp-c2-ru to get payroll result but what's the point if I use FM "PYXX_READ_PAYROLL_RESULT"? any difference?

Read only

0 Likes
1,679

I mean if UR using macro to read .. U need to check that

the for period <> the in period and the SRTZA <> A ...

U can use FM also ..

Read only

0 Likes
1,679

I got it thanks!

I have some testing wagetypes, they are /301 and /603. So in case it's a regular run, these wagetypes can report the amount normally, in retro case, the amount still sit in these wagetype? or it has any indicator to tell /301 has a retro amount?

Read only

0 Likes
1,679

U can loop at rgdir as ...

LOOP AT rgdir WHERE ipend <= pn-endda AND ipend >= pn-begda

AND void IS INITIAL

AND reversal IS INITIAL

AND ocrsn IS INITIAL

AND inocr IS INITIAL.

  • original results => forperiod = inperiod

  • retro results => forperiod <> inperiod

IF rgdir-fpper <> rgdir-inper.

  • assign emp no. & seq no. to rx-key

v_seqno = rgdir-seqnr.

ENDIF.

ENDLOOP.

pass this to the FM below ..

CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'

EXPORTING

clusterid = c_relid

employeenumber = pernr-pernr

sequencenumber = v_seqno <---

read_only_international = c_x

CHANGING

payroll_result = gs_result.

LOOP AT gs_result-inter-rt INTO gs_rt.

CASE gs_rt-lgart.

  • Gross salary

WHEN c_101. "/101

it_data-gross = gs_rt-betrg.

ENDCASE.

ENDLOOP.

Read only

0 Likes
1,679

The amount will still be there in the wagetypes ...

Read only

0 Likes
1,679

But just different sequence number?

Read only

0 Likes
1,679

yes .. U need to send a different sequence number where

srtza <> 'A'.

Read only

0 Likes
1,679

Correct me if I'm wrong, you're reading this part for off-cycle run?

LOOP AT rgdir WHERE ipend <= pn-endda AND ipend >= pn-begda

AND void IS INITIAL

AND reversal IS INITIAL

AND ocrsn IS INITIAL

AND inocr IS INITIAL.

Why did you have to repeat Reversal Indicator and Off Cycle reason twice?

Read only

0 Likes
1,679

for off-cycle .. we will not check for the below condition ..

ocrsn IS INITIAL .. instead OCRSN will not be initial ..

Read only

0 Likes
1,679

Yes, OCRSN and PAYTY has to be NOT INITIAL in case of Off cycle.

I'm getting your idea now, so again,

OCRSN and VOID have to be INITIAL , and SRTZA = 'A' in Retro case, please confirm that I'm correct. Will mark this as answered.

Read only

0 Likes
1,679

in case of retro SRTZA is not equal to 'A' ..

Read only

0 Likes
1,679

questions answered, all points rewarded, Nice to meet you!