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: 

Help with function PYXX_READ_PAYROLL_RESULT

Former Member
0 Kudos

Hi Friends,

I'm using the function PYXX_READ_PAYROLL_RESULT in a include program that it's called in a HR process.

In the rgdir table, i have a sequence number that i use with PYXX_READ_PAYROLL_RESULT in order to get the RT table, but that sequence number it's not yet in the rt table, so i got an error. How can i avoid this?.

Thanks,

Albio.-

4 REPLIES 4

Former Member
0 Kudos

The sequence number which you have for the RGDIR will be the same for all the tables under neeth that rgidir.

For example if you are reading the rgdir with sequence number 1234, then all the tables underneeth that (RT, CRT, WPBP etc) will carry the same sequence number.

Venu

abdul_hakim
Active Contributor
0 Kudos

Hi

If you simply want to skip the error message in your program then u can use the below code after calling the function.

IF SY-SUBRC NE 0.

ENDIF.

Regards,

Abdul Hakim

Former Member
0 Kudos

HI,

make sure that ur passing all the inputs to the function module correctly i.e, CLUSTERID

EMPLOYEENUMBER, SEQUENCENUMBER, PAYROLL_RESULT(sturcture).

then u if dont get reply back i will try to sort it.

thanks

Aditya

0 Kudos

Hi friends,

Well, in te rgdir table are de values that are going to be created... so the last sequence that it's in te rgdir table are not yet in the rt table, the function itself display the message error, so i do nothing asking for sy-subrc after call de function pyxx_read_payroll_result.

I search in the forum, i i found that there it's a table "hrpy_rgdir" in wich are the data created, so i resolve my problem looking in that table if exits the sequence number that i have in rgdir.

Thanks !

Regards,

Albio.-