on 10-17-2007 11:01 AM
I am currently using this function module HR_PAYROLL in the simulation mode,i.e, the exporting parameter TST_ON is equates to 'X'.I have used the function module but i cannot read RT table for a payroll period whose actual payroll has not been run.I would really apprciate if someone could help me out on how this function module HR_PAYROLL is used for simulated RT results.
This function module or HR_PAYROLL_SIMULATION simply submits the Payroll Driver that you pass as a parameter (Program) in simulation mode.. So it is as good as running the Payroll Driver in simulation..You have to dispaly the report log to see the RT values..
Arya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aryani Earla
Thanks for the reply,but i need to ask you how can i access the report log in my own program.I am able to get the simulated cluster directory number of the simulted period, whose actual payrol has been run.
CALL FUNCTION 'HR_PAYROLL'
EXPORTING
PAYROLL_AREA = 'UP'
PAYROLL_PERIOD = PNPPABRP
PAYROLL_YEAR = PNPPABRJ
PAYROLL_TYPE =
PAYROLL_ID =
PAYROLL_DATE =
PAYROLL_OCRSN =
SELECTION_VARIANT = 'PTML'
PROGRAM_NAME = 'RPCALCX0'
OFF_CYCLE = ' '
LOG_MEM_KEY =
COUNTRY_GRP = '99'
TST_ON = 'X'
IMP_BUFF = ' '
OBJ_IPREL =
COSTPLANNING = ' '
PRT_PROT = ' '
SEL_ALL_AREAS = ' '
TABLES
EMPLOYEE_NUMBERS = EMPLOYEE_NUMBERS
ADVANCE_PERIODS =
BUFFER = TBUFF
BUFFER_DIRECTORY = BUFFER_DIR
DELETE_PCLX =
PS_OPER =
PT_BEFORE_IMAGE =
PT_BEFORE_IMAGE_PCLX =
EXCEPTIONS
PROGRAM_NOT_EXIST = 1
VARIANT_NOT_EXIST = 2
MISSING_PARAMETER = 3
WRONG_PARAMETER = 4
WRONG_COUNTRY_GROUP = 5
OTHERS = 6
.
buffer1-tbuff[] = tbuff[].
buffer1-buffer_dir[] = buffer_dir[].
buffer1-del_pclx_tab[] = del_pclx_tab[].
call function 'CU_READ_RGDIR'
exporting
persnr = pernr-pernr
buffer = buffer1
tables
in_rgdir = rgdir
exceptions
no_record_found = 1
others = 2.
call function 'CD_READ_LAST_RESULT_IN_RGDIR'
importing
ptx_rgdir_nv = rgdir_line
tables
pt_rgdir = rgdir.
***--- fill rx-key
UNPACK rgdir_line-SEQNR TO RX-KEY-SEQNO.
RX-KEY-PERNR = PERNR-PERNR.
RP-IMP-C2-RX.
SORT RT ASCENDING BY LGART .
But when i iimport the RT through this macro "RP-IMP-C2-RX."
RT dosnt get filled.I would really apprciate if you could tell me get the report log, so i can extract the RT in my code.
Thanks.
>>But when i iimport the RT through this macro "RP-IMP-C2-RX."
>>RT dosnt get filled.
Exactly! its a simulation run, which means the payroll cluster doesn't get updated.. As mentioned earlier, the function call simply SUBMITs the Payroll driver..To access the payroll results in your Program, you have to dig into the driver program ..which doesn't look feasible.. one option you could try out is copy the schema into a custom version & see if you can export the RT table to Memory via an ABAP routine inside your custom schema..
Arya
Try
IMPORT RT FROM ITBUFF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Simulation won't update the DataBase, it is just a test run to know the payroll is running without any error. But still you can generate the payslip for that period.
RT table will get update only in live run for the period.
Good Luck
Om
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.