2007 May 24 3:41 AM
Hi Experts,
I debug SAP program (<b>RPCT39L1</b>), and run this syntax <b>rp-imp-c2-rl</b>.
If I'm not wrong that is macros.
After run that syntax internal table CRT was filled.
I have requirements to know how SAP got the amount on the CRT itab for wage type /139
because my functional team doubt about how SAP got that value.
I want to know what logic SAP used to got that value, how to do this?
Please advise since i don't have macros exp before.
Many Thanks!
Best Regards,
Victor.
2007 May 24 7:59 AM
hi
use this tcode " PC_PAYRESULT "
are less see this link there it was give some payroll code how it retriecve sdata from the cluster .
<a href="http://">http://www.sapdevelopment.co.uk/hr/payres_abap.htm</a>
reward points if it is usefull
Girish
Hi Experts,
I debug SAP program (<b>RPCT39L1</b>), and run this syntax <b>rp-imp-c2-rl</b>.
If I'm not wrong that is macros.
After run that syntax internal table CRT was filled.
I have requirements to know how SAP got the amount on the CRT itab for wage type /139
because my functional team doubt about how SAP got that value.
I want to know what logic SAP used to got that value, how to do this?
Please advise since i don't have macros exp before.
Many Thanks!
Best Regards,
Victor.
2007 May 24 3:54 AM
if you double click on the rp-imp-c2-rl. it will take you to
define RP-IMP-C2-RL.
clear:
ORL-VERSION, "OBJECTS_FOR_CLEAR
VERSC,
WPBP, WPBP[],
ABC, ABC[],
RT, RT[],
CRT, CRT[],
BT, BT[],
C0, C0[],
C1, C1[],
V0, V0[],
VCP, VCP[],
ALP, ALP[],
DFT, DFT[],
GRT, GRT[],
LS, LS[],
STATUS,
ARRRS, ARRRS[],
DDNTK, DDNTK[],
ACCR, ACCR[],
BENTAB, BENTAB[],
AB, AB[],
FUND, FUND[],
AVERAGE, AVERAGE[],
MODIF, MODIF[],
CODIST, CODIST[],
TAX, TAX[],
SOCSO,
EPF.
import
RL-VERSION TO ORL-VERSION "OBJECTS_FOR_IMPORT
VERSC
WPBP
ABC
RT
CRT
BT
C0
C1
V0
VCP
ALP
DFT
GRT
LS
STATUS
ARRRS
DDNTK
ACCR
BENTAB
AB
FUND
AVERAGE
MODIF
CODIST
TAX
SOCSO
EPF
from database PCL2(RL) id rx-key using pcl2_exp_imp
IGNORING STRUCTURE BOUNDARIES.
rp-imp-RL-subrc = sy-subrc.
RL-VERSION-number = '01'.
if sy-subrc eq 0 and
ORL-VERSION-number ne RL-VERSION-number.
rp-imp-RL-subrc = 8.
endif.
end-of-definition.
the above code is for defining the query for importing the data from the cluster tables....
as you know the cluster tables are
WPBP
RT
RT_
CRT
BT
PCALAC
ABC
VERSION
PCL2
VERSC
TAX1
TAX2
TCRT
TCRTI
ROE
VC1
NAME
PERM
MODIF
WCB1..
SO THE SAP-HR ABAP query is different for retreiveing data from the cluster instead of using the select queries in normal ABAP....
Reward points if it is usefulll ....
Girish
2007 May 24 3:59 AM
Hi Girish,
Thanks for your prompt reply.
So we can't know exactly how the CRT tables filled?
only import ....
from database PCL2(RL) id rx-key using pcl2_exp_imp ?
Because i have to show my functional how SAP got that amount.
or please advise how to explain to the functional and let them check?
Functional Check from the Payroll result Table (RT) they said the amount is different.
Best Regards,
Victor.
2007 May 24 4:06 AM
pleae use program <b> HINCLSTR</b> in se38 there you can show the cluster tables to your functional poeple .
please give the personal no in the selection screen and press enter it will show all the payroll data .....
it mean when the payroll is run for an period it will store the payroll data in this cluster table only .....the total amount paod will be stored in the normal PA Tables .....
So when ever you payroll reports are useing the data then it will retreive data from the cluster tables .....
provide points if it is usefull ...
girish
2007 May 24 4:17 AM
Hi Girish,
Unfortunately, now they using SAP version 4.0b
So that program not exist at that version.
Need your advice to show the cluster tables for the functional teams using SAP version 4.0b
Best Regards,
Victor.
2007 May 24 7:39 AM
Hi ,
there is one program where all the structure are declared ....please go through it
<b>H99PAYDATA</b>
exapmlye for RT & CRT
*Abrechnungsergebnis: Ergebnistabelle
DATA: BEGIN OF RT OCCURS 0.
INCLUDE STRUCTURE PC207 .
DATA: END OF RT .
*-------------
*Abrechnungsergebnis: kumulierte Ergebnistabelle
DATA: BEGIN OF CRT OCCURS 0.
INCLUDE STRUCTURE PC208 .
DATA: END OF CRT .
*-------------
the data are retrieved dynamically from the wage type table and mapps it from the Fi table to the structure ..
provide points if it is usefull ...
Girish
2007 May 24 7:59 AM
hi
use this tcode " PC_PAYRESULT "
are less see this link there it was give some payroll code how it retriecve sdata from the cluster .
<a href="http://">http://www.sapdevelopment.co.uk/hr/payres_abap.htm</a>
reward points if it is usefull
Girish