on ‎2014 Jan 20 6:36 AM
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.
Request clarification before answering.
Hi
Use of FMs not dependent on with / with out using LDBs.
Use the same fucntion module . But instead pernr-pernr pass your selection screen paramter as personnel number . if you are not using LDB you must define a selection screen paramter for PERNRs .
So you can loop that selection parameter and pass the pernr to FM to pull pay results.
If you use LDB GET PERNR will behave as loop here .
Thanks
Kamesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
| User | Count |
|---|---|
| 45 | |
| 30 | |
| 17 | |
| 10 | |
| 4 | |
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.