cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe


Hi all,

this is naresh,

i am getting payroll data from clusters using functions modules CD_READ_RGDIR and PYXX_READ_PAYROLL_RESULT using PNP LDB.

now i want to get same payroll data with same function modules but without using LDB.

how can i write the code for this.

please share soon.

thanks,

Naresh.

0 Likes
View Entire Topic
GirieshM
Active Contributor
0 Likes

Hi Naresh,

You need to fetch the payroll cluster details without LDB. Ok try the below method (same as we do in LDB now without LDB). Mandatory: Selection fields: Pernr and Payroll start date and end date.

1. Find the molga of the pernr.

2. Use FM   CU_READ_RGDIR passing pernr and molga, the outcome will be rgdir.

3. Get the sequence number by passing begda, endda and rgdir in FM   CD_READ_LAST

4. Read the payroll results using   PYXX_READ_PAYROLL_RESULT FM.

Hope it might help you. Revert back if you need anything further. But may i know why you dont wanna use LDB

With Regards,

Giriesh M


Former Member
0 Likes

Hi Giriesh,

in FM's we pass pernr-pernr as input right. this will get from GET PERNR event.

if we dnt use LDB, how can we write code and wat code should be written?

thanks,

naresh.

GirieshM
Active Contributor
0 Likes

Hi Naresh,

If you are not using LDB then use the selection screen field by using

Parameters: PERNR TYPE PERSNO.

The user has to provide the pernr in the selection screen which he needs nor he can get the list of active pernrs in an internal table.

Hope it might help you. Revert back for further needs.

With Regards,

Giriesh M

Former Member
0 Likes

Hi Giriesh,

i have done the same.

i taken a parameter with pernr and after start-of-selection i have selected the emp data with respective to pernr.

within loop i have used the FM's.

thanks for ur info.

thanks,

naresh.