Application Development 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: 

How to retrieve last record from "PC_PAYRESULT" - HR

Former Member
0 Kudos
110

Hi!

I'm working on HR programming and would like to retrieve the last record from "PC_PAYRESULT" according to "Personnel Number". I will double click on the last record, and go to the "RT_".

How can retrieve this through HR programming? Can I use any call function?

Please kindly advice. Thanks a lot!

br,

ying ying

1 ACCEPTED SOLUTION

former_member194669
Active Contributor
0 Kudos
65

Hi,

Try to use FM "'CU_READ_RGDIR'"

Then you will results in RGDIR

sort it by Seqnr ascending

Describe table RGDIR into v_last .

read table RGDIR index v_last.

After the read you will get last record.

aRs

2 REPLIES 2

former_member194669
Active Contributor
0 Kudos
66

Hi,

Try to use FM "'CU_READ_RGDIR'"

Then you will results in RGDIR

sort it by Seqnr ascending

Describe table RGDIR into v_last .

read table RGDIR index v_last.

After the read you will get last record.

aRs

0 Kudos
65

Hi Ars,

I am able to get the records, but how can I get the RT table according to the last records I select?

Please advice, thanks.