10-30-2007 11:28 AM
Dear Peers,
Can anyboy tell me what is the name of function module to update RT???????????
Its really very urgent.
Awaiting for all your inputs
Regards
Pavani
10-30-2007 11:32 AM
10-30-2007 11:33 AM
Payroll results will be stored in RT And BT (results table)
U can acces the data from Clusters
See the below links
http://www.sapdevelopment.co.uk/hr/payres_tcode.htm
http://www.sapdevelopment.co.uk/hr/payres_abap.htm
************************************************8
1. These are related to payroll results.
2. Whenver salary is processed,
VAST & varied amount of information needs
to be stored.
3. Hence, sap uses the concept of CLUSTER table.
4. when salary is processed,
some wage types,amounts etc
are generated.
ie. RESULTS are generated.
the table name is RT
5. Same way, BANK Transfer
ie. bank code, name, amount etc.
also needs to be stored.
Its table name is BT.
Similary there are other tables also viz WPBP etc.
6. Payroll data can be retrived using
macros and also using FM.
7. Below is the technique
DATA: myseqnr LIKE hrpy_rgdir-seqnr.
DATA : mypy TYPE payin_result.
DATA : myrt LIKE TABLE OF pc207 WITH HEADER LINE.
SELECT SINGLE seqnr FROM hrpy_rgdir
INTO myseqnr
WHERE pernr = mypernr
AND fpper = '200409'
AND srtza = 'A'.
IF sy-subrc = 0.
CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'
EXPORTING
clusterid = 'IN'
employeenumber = mypernr
sequencenumber = myseqnr
CHANGING
payroll_result = mypy
EXCEPTIONS
illegal_isocode_or_clusterid = 1
error_generating_import = 2
import_mismatch_error = 3
subpool_dir_full = 4
no_read_authority = 5
no_record_found = 6
versions_do_not_match = 7
error_reading_archive = 8
error_reading_relid = 9
OTHERS = 10.
myrt[] = mypy-inter-rt.
READ TABLE myrt WITH KEY lgart = '1899'.
IF sy-subrc = 0.
entl-cumbal = myrt-betrg.
MODIFY entl.
cumul = entl-cumbal.
ENDIF.
10-31-2007 5:33 AM
HI Vasu,
Thanks for the detailed answer.
My Scenario is for Indian Payroll /552 amount which is coming in RT should be made 0 as that amount in FI posting gives the error.
So Can u suggest me how to go further
Regards
Pavani
06-22-2011 3:14 PM