cancel
Showing results for 
Search instead for 
Did you mean: 

get pernr

Former Member
0 Kudos

hi all,

I have changed standard selection screen for PNP and now i dont have PERNR on it but it has only company code and one extra field added by me.

then after "GET PERNR."

Now if i execute statement "provide * from P0001 between pn-begda and pn-endda.", it gives me record for only pernr.

can someone explain me??

Reena..

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Reena,

Did u solve ur problem?

If not, explain me more in detail,So that I can help you.

Thanks,

Sarika.

Former Member
0 Kudos

i did not exactly solve my problem. I am very confused. the functional guy cannot explaine to me properly. I have to develop a report for wage types for a month.

Basically in our system a user closes his month at month-end. then if he has done overtime hours we assign them wage type which is stored in table ZL.

Now problem is i dont knw what records should i fetch frm IT0001. I mean only those records whos endda and begda fall in last month or all the records. Like what does the a record mean in IT0001. does it represent the overtime hours an employee has worked in a month??

thanks Sarika and it wud be great if u can help..

Reena..

Former Member
0 Kudos

Hi Reena,

IT0001 is used for organizational assignment data, it doesn't represnt the overtime hours an employee has worked in a month. Only ZL data represents that for that perticular month.

If you want to get the data for cluster ZL for that perticular month i.e. payroll period.

Use FM as below one by one in ur z-program.

Get Pernr.

FM 'CU_READ_RGDIR'

FM 'CD_RED_LAST'.

FM 'PYXX_READ_PAYROLL_RESULT'.

Hope this helps.

Thanks,

Sarika.

suresh_datti
Active Contributor
0 Kudos

I don't see the need to read the Payroll Results here.. where is the OT recorded?

IT0001 in your case is just to restrict the people selection to the relevant Cost Center based on the profit center & the period on the sel scr..

YOu can do the following..

fill the ranges r_kostl by doing a SELECT on CSKS in the start-of-selection event..

get pernr.

rp-provide-from-last p0001 pn-begda pn-endda.

check p0001-kostl in r_kostl.

  • now pick the OT from wherever it is stored.. infotype/catsdb etc..

~Suresh

Former Member
0 Kudos

thanks again..

Actually i have another doubt. I am closing this thread after alloting points to you and then i wll post my new thread. Sarika its regarding the FMS u have given me. and suresh it would be great if you can contribute your knowledge of fetching data from cluster table.

Thanks once again for ur help and looking forward 4 ur help..

Answers (1)

Answers (1)

suresh_datti
Active Contributor
0 Kudos

GET PERNR event is executed for one pernr at a time ie.. the block of code between the GET PERNR & END-OF-SELECTION events get executed for every pernr that is picked up by the selection-screen values..

~Suresh