HR-ABAP Payroll-reports-interfaces-forms
Hi everybody,
Please can any body send me the code for HR-ABAP Payroll, time management in case of REPORTS, Interfaces.
I mean to get coding fof retrievel of data from Payroll and Time Management modules.
Waiting for reply.
Hi,
please go thorugh following links
HR deals with the INFOTYPES which are similar to Tables in General ABAP.
There are different ways of fetching data from these infotypes.
There are different areas in HR LIKE Personal Admn, Orgn Management, Benefits, Time amangement, Event Management, Payroll etc
Infotypes for these areas are different from one another area.
storing of records data in each type of area is different
LDBS like PNP are used in HR programing.
Instead of Select.. we use some ROUTINES and PROVIDE..ENDPROVIDE.. etc
and in the case of Pay roll we use Clusters and we Import and Export them for data fetching.
On the whole Normal ABAP is different from HR abap.
For Personal Admn the Infotypes start with PA0000 to PA1999
Time Related Infotypes start with PA2000 to PA2999.
Orgn related Infotypes start with HRP1000 to HRP1999.
All custom developed infotypes stsrat with PA9000 onwards.
In payroll processing we use Clusters like PCL1,2,3 and 4.
Instead of Select query we use PROVIDE and ENDPROVIDE..
You have to assign a Logical Database in the attributes PNP.
Go through the SAp doc for HR programming and start doing.
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/report%2bin%2bhr%2babap%2b(without%2bLDB)
http://www.sapdevelopment.co.uk/hr/hrhome.htm
See:
http://help.sap.com/saphelp_46c/helpdata/en/4f/d5268a575e11d189270000e8322f96/content.htm
Please check this link for HR sample programs.
http://www.sapdevelopment.co.uk/hr/hrhome.htm
http://www.sapfans.com/forums/viewtopic.php?p=498530&sid=d7ec5866e3fb26880da129de45ce79de
http://www.sapcookbook.com/preview_hr_questions.htm
http://www.atomhr.com/library_full.htm
http://www.sapdevelopment.co.uk/hr/hrhome.htm
http://www.planetsap.com/hr_abap_main_page.htm
http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci983590,00.html
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b74ce990-0201-0010-a595-8c1203c93e56
http://www.planetsap.com/hr_abap_main_page.htm
http://www.sap-img.com/abap/sample-hr-reports-allocate-petrol-allowance.htm
http://www.planetsap.com/HR_ABAP_LDB.htm
http://help.sap.com/erp2005_ehp_02/helpdata/en/16/b8b83b5b831f3be10000000a114084/content.htm
http://help.sap.com/saphelp_45b/helpdata/en/1e/728d281d5e11d289d30000e82158f1/content.htm
http://diocio.wordpress.com/2007/04/27/sap-abap-insert-infotype-data-with-maintain-text/
Reward Points if found helpfull..
Cheers,
Chandra Sekhar.
Similar Messages
-
Hi Gurus,
I have to display payroll report ( With PNP logical data base ), where in I have to compare indicator 'P' & 'A' records of each personal number for given period.
sample code & useful links will be rewarded with points.
Thanks,
U.S.Rajurefer program
EXAMPLE_PNP_GET_PAYROLL.
It might be useful to u.... -
Nodes statement in payroll in SAP ABAP hr Report
hi,
i am working in sap abap hr report for payroll.i am using nodes statement in that report.it is showing error that ""PERNR" is not a node of the logical database __S".how can i solve this error.in this report.
NODES pernr .
INFOTYPES: 0000, 0001, 2001.
TABLES: t554s, pcl1, pcl2.
INCLUDE rpclst00.
INCLUDE rpc2rx09. "Payroll results datadefns-Intl.
INCLUDE rpc2rxx0. "Payroll results datadefns-Intl.
INCLUDE rpc2rgg0. "Payroll results datadefns-GB
INCLUDE rpcfdcg0. "Payroll results datadefns-GB
INCLUDE rpcdatg0.
INCLUDE rpc2cd00. "Cluster Directory defns.
INCLUDE rpc2ps00. "Cluster: Generierte Schematas
INCLUDE rpc2pt00.
INCLUDE rpcfdc10.
INCLUDE rpcfdc00.
INCLUDE rpppxd00.
INCLUDE rpppxd10.
INCLUDE rpcfvp09.
INCLUDE rpcfvpg0.
INCLUDE rpppxm00.
TYPES: BEGIN OF t_salrate,
seqnr TYPE pc261-seqnr,
begda TYPE p2001-begda,
endda TYPE p2001-endda,
split(2) TYPE c,
val TYPE p DECIMALS 2,
END OF t_salrate.
DATA: it_salrate TYPE STANDARD TABLE OF t_salrate INITIAL SIZE 0,
wa_salrate TYPE t_salrate.
*Selection screen
SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE text-001.
SELECT-OPTIONS: so_awart FOR p2001-awart.
SELECTION-SCREEN END OF BLOCK block1.
*START-OF-SELECTION.
START-OF-SELECTION.
GET pernr.
get payroll results data
rp-init-buffer.
CLEAR rgdir. REFRESH rgdir.
CLEAR rt. REFRESH rt.
CLEAR: rx-key.
set key to current pernr
MOVE pernr-pernr(8) TO cd-key-pernr.
retrieves payroll results for specific pernr(personnel number)
rp-imp-c2-cd.
IF rp-imp-cd-subrc = 0. "rgdir success
rx-key-pernr = pernr-pernr.
SORT rgdir BY seqnr ASCENDING.
CLEAR rgdir.
ENDIF.
SORT rgdir BY fpbeg fpend ASCENDING seqnr DESCENDING.
RGDIR the table where all payroll results periods are stored
LOOP AT rgdir WHERE abkrs IN pnpabkrs "pay area
AND srtza EQ 'A'
AND void NE 'V'.
IF sy-subrc NE 0.
set key to specific payroll results period(current RGDIR loop pass)
UNPACK rgdir-seqnr TO rx-key-seqno.
Retrieves data for specific payroll results period (current RGDIR
loop pass)
rp-imp-c2-rg.
Loop at wpbp data for specific payroll results period
LOOP AT wpbp.
wa_salrate-seqnr = rgdir-seqnr.
wa_salrate-begda = wpbp-begda.
wa_salrate-endda = wpbp-endda.
wa_salrate-split = wpbp-apznr.
loop at rt data for specific payroll results period
LOOP AT rt WHERE lgart EQ '/010' AND "wage type
apznr EQ wpbp-apznr. "payroll split
wa_salrate-val = ( rt-betpe * ( wpbp-adivi / wpbp-kdivi ) ).
APPEND wa_salrate TO it_salrate.
ENDLOOP.
ENDLOOP.
Process BT table
LOOP AT BT.
ENDLOOP.
Process NIPAY table
LOOP AT NIPAY.
ENDLOOP.
etc................
ENDIF.
ENDLOOP.
*END-OF-SELECTION.
END-OF-SELECTION.Hi,
Have you put a Logical Database in the attributes of the program that you have created ?
Regards,
Samson Rodrigues. -
RRI (Report Report Interface) with ABAP Sender program
I need to call a Report Writer report from a bespoke ABAP program. I can call transaction START_REPORT to do this, but I wondered if the Report-Report Interface can be used here.
Has anyone ever programmed a direct call to the RRI interface in ABAP?Hi Robin
I know the answer comes late but you might find my wiki posting helpful:
https://wiki.sdn.sap.com/wiki/display/Snippets/ABAP+Report-Report-Interface
Regards,
Marc
SAP NetWeaver RIG -
Regarding payroll report abap hr
hi experts
i have developed one payroll report for indian payroll
its working fine for For View payroll periods like PC00 M99 CWTR - Wage type reporter
i have used HRCM PAYROLL RESULTS GET this function module to fetch payroll results.
Problem is
my end user asking in view payroll perids like PC00 M99 CWTR - Wage type reporter
plz tell me the alternative procedure for fetching in view payroll perids.
please send me sample payroll report
thanks advancehave a go at using this base code.
data: go_prr type ref to cl_hrpay99_prr_4_pnp_reps,
gt_pernr_pr type h99_hr_pay_result_tab,
go_pernr_pr type ref to cl_hr_pay_result_gb,
g_retro type h99_add_retroes,
im_pnpabkrs type hrpy_tt_abkrs.
tables: pernr,
t512t.
select-options r_lgart for t512t-lgart.
parameters: p_inper radiobutton group g1,
p_frper radiobutton group g1.
field-symbols <pernr_pr> type ref to cl_hr_pay_result.
field-symbols <wa_rt> type pc207.
field-symbols <wa_crt> type pc208.
start-of-selection.
im_pnpabkrs = pnpabkrs[].
if not p_inper is initial.
g_retro = 'X'.
else.
g_retro = ' '.
endif.
Call the method that gets the payroll info
call method cl_hrpay99_prr_4_pnp_reps=>get_instance
exporting
im_pn_begda = pn-begda
im_pn_endda = pn-endda
im_ipview = g_retro "In period
im_pnpabkrs = im_pnpabkrs "For sepecif payroll areas only
im_molga = '08'
im_add_retroes_to_rgdir = g_retro "In period Retors
importing
ex_prr = go_prr
exceptions
invalid_entries = 1.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
write:/ 'Payroll Results from RT Table'.
skip.
write: / 'Emp No ',
'For Pd',
'In PER',
'S',
'WTs ',
' AMOUNT',
' RATE',
' UNITS',
'FP PAY',
'IN PAY'.
get pernr.
get the actual payments
call method go_prr->get_pernr_payr_results_allin1
exporting
im_pernr = pernr-pernr
importing
ex_pernr_payroll_results = gt_pernr_pr
exceptions
others = 1.
check sy-subrc = 0.
loop at gt_pernr_pr assigning <pernr_pr>.
go_pernr_pr ?= <pernr_pr>.
loop at go_pernr_pr->inter-rt assigning <wa_rt>.
check <wa_rt>-lgart in r_lgart.
Paid 'In Period' subtract any item that is a part payment
if not p_inper is initial.
if go_pernr_pr->period-srtza = 'P'.
<wa_rt>-anzhl = <wa_rt>-anzhl * -1.
<wa_rt>-betrg = <wa_rt>-betrg * -1.
<wa_rt>-betpe = <wa_rt>-betpe * -1.
endif.
write : / pernr-pernr,
go_pernr_pr->period-fpper, go_pernr_pr->period-inper,
go_pernr_pr->period-srtza, <wa_rt>-lgart, <wa_rt>-betrg, <wa_rt>-betpe,
<wa_rt>-anzhl,
go_pernr_pr->inter-versc-abkrs, ' ', go_pernr_pr->inter-versc-iabkrs.
else.
This part is 'For Period'
check go_pernr_pr->period-srtza = 'A'.
write : / pernr-pernr,
go_pernr_pr->period-fpper, go_pernr_pr->period-inper,
go_pernr_pr->period-srtza, <wa_rt>-lgart, <wa_rt>-betrg, <wa_rt>-betpe,
<wa_rt>-anzhl ,
go_pernr_pr->inter-versc-abkrs, ' ', go_pernr_pr->inter-versc-iabkrs.
endif.
endloop.
endloop.
Jules -
Program name Report title
1. CACS00_PMNT_BLOCK_RESET Unlock Payment
2. CACS_PMNT_BLOCK_RESET Lift Payment Locks
3. CCARDEC_CHECK Check: Payment Card Encryption
4. CONTEXT_S_HR_PAY_CH_ABREH HR-CH: Context for Payroll Units
5. DFKZ2F00 FORM Routines FBZP/Payment Methods
6. EWUMPOHD_40 Payment Order History: Fill WRBTR and WAERS, HSWAE as of Release 4
7. EXAMPLE_PNP_GET_PAYROLL Example Program for Reading Payroll Results Using GET PAYROLL
8. F111CONS Constants for Payment Request Payment Program
9. F111MAIN Main Program of Payment Run
10. F111SFIE Data for the PR Payment Program: Field Groups
11. F111SINT Payment Request Payment Run: Structures and Internal Tables
12. F111SMAC Macro Definitions for the PR Payment Run
13. F111STOP Data Pool of Payment Run for Payment Requests
14. F111TYPE Types for Payment Request Payment Run
15. FITP_GENERAL_READ_TRVCC Read Characteristic TRVCC (Determination of Payment Method)
16. FIWTPY10 Withholding Tax at Point of Payment
17. H01PLOGA Payroll Log for Company Pensions
18. H01PLOGT Routines for Payroll Log
19. H02PLOG0 Subroutine Pool for International Payroll Log
20. H02PLOG1 HR-CH: Macros for Payroll Log
21. H02PLOGERR HR-CH: Error log: Payroll Switzerland
22. H03PLOG0 Subroutines Pool for Payroll Log Austria
23. H04PLOG0 Subroutines Payroll Log Spain
24. H06PLOG0 Subroutine Pool for Payroll Log (France)
25. H07PLOG0 Subroutine-Pool for Payroll Log Canada
26. H07PLOG1 Include H07PLOG1: Macro of Payroll Log Error Messages
27. H07PLOGA Include H07PLOGA: Payroll log functions for Absence Processing
28. H07PLOGD Include H07PLOGD: Payroll log functions for function ADDCU
29. H07PLOGE Include H07PLOGE: Payroll log for tax calculation and vacation pay
30. H07PLOGM Include H07PLOGM: Payroll log functions for - messages
31. H07PLOGS Include H07PLOGS: Payroll log functions for tax calculation
32. H08PLOG0 Subroutines Payroll Log Great Britain
33. H08PLOG0PBS Subroutines Payroll Log Great Britain Public Sector (HR PS GB)
34. H10PLOGC Include H10PLOGC - Constants for US Payroll Log Message Passing
35. H10PLOGO Include H07PLOGD: Payroll log functions for function ADDCU
36. H10PLOGP Payroll log messages for general payroll
37. H13PLOG0 Subroutine Pool for Payroll Log Australia
38. H14PLOG2 Include for SOCSO - Payroll Log
39. H14PLOG3 Include for STD TAX - Payroll Log
40. H14PLOG4 Include for Zakat - Payroll log
41. H16PLOG0 Payroll Log Subroutines for South Africa
42. H20PLOGA Payroll log subroutines for absence handling
43. H20PLOGE Payroll log for missing data (tables, infotypes, etc.)
44. H20PLOGG Payroll log for deductions
45. H20PLOGH Payroll log subroutines for hol. allowance and garnishment
46. H20PLOGS Payroll log for Norwegian specific tables (SCRT, RETT, RETP, ...)
47. H20PLOGT Payroll log subroutines for tax and employers contributions
48. H23PLOG0 Subroutinepool for Payroll Log (SE)
49. H23PLOG_CAR Payroll Log Subroutines for company car
50. H25PLOG1 Include for new Payroll log (Infotypes - Singapore)
51. H25PLOG3 Include for new Payroll log (Tables- Singapore)
52. H26PLOG0 Subroutine pool for Payroll Log - TH
53. H26PLOG4 Error Routines - Payroll Log
54. H27PLOG1 HR-HK: Payroll log data definitions
55. H27PLOG6 HR-HK: Payroll log common forms
56. H37PLOG21 Payroll log - Retrocalculation (old BRRET and labor debits)
57. H42PLOG6 Include for Payroll LOG Taiwan
58. H43PLOG0 Subroutine Pool for Payroll Log New Zealand
59. H99CMLI0 Cash Breakdown for Cash Payment Based on Payment Method
60. H99PLOG0 Subroutine Pool for International Payroll Log
61. H99PLOG6 Subroutine Pool for International Payroll Log
62. H99PLOGPF Subroutine Pool for Pension Fund Payroll Log
63. H99PLOGS Subroutine Pool for Payroll Log for Special Payments
64. H99PLOGT Subroutine Pool for International Payroll Log, Gross Part
65. H99PLOGY Subroutine pool for Benefits Payroll Log: International
66. H99UGSP0 Splits in Payroll
67. H99U_CONVERSION_CA Converting Cluster CA for Archived Payroll Results
68. H99U_PYINFTY_CC_XPRA Payroll IT: Main XPRA report for country grouping conversion in 4.
69. H99_DISPLAY_PAYRESULT_OLD Display Payroll Results
70. H99_FORMSTEMPLATE_PAYDIM_02 HR Forms: Template for Local Class (Payroll)
71. H99_FORMSTEMPLATE_PAYR_02 HR Forms: Template for Local Class (Payroll)
72. H99_SELECT_PERNR Select Personnel Numbers for a Payroll Process (PY)
73. H99_SELECT_PERNR_INTERFACE Select Personnel Numbers, Interface Without Payroll Driver
74. H99_SELECT_PERNR_PU12_GROSS Payroll number selection for payroll run and export
75. HARCALC0 Payroll accounting program Argentina
76. HARCKTO0 Payroll account
77. HARCLJN0 Payroll journal
78. HARLIBR0 Legal Payroll Payments Book: Law 20.744 Art. 52 - Forms version
79. HARLIBR1 Legal Payroll Payments Book: Law 20.744 Art.52 - SapScripts versio
80. HBPPLOG0 Payroll log Benfit Point
81. HBRCALC0 Payroll accounting program - Brazil
82. HBRCKTO0 Payroll accounts
83. HBRPAYR0 Payroll Monthly Report
84. HBRSALM0 Maternity Pay data sheet
85. HCNCALC0 Payroll Driver, Version China
86. HCNCDTA0 Preliminary Program - Data Medium Exchange for Several Payment Run
87. HCNCKTO0 Payroll Accounts China
88. HCNCLJN0 Payroll Journal China
89. HFICALC0 Payroll driver (Finland)
90. HFICDTA0 Preliminary Program - DME for Several Payment Runs (Finland)
91. HFICKTO0 Payroll Accounts
23. HFICLJN0 Payroll Journal - Finland
24. HFIIABP0 Batch Input for Vacation Bonus Payments Finland
25. HFILHPA0 Holiday Pay Accrual
26. HFILTVR0 Pay Scale Reclassification data for Parake employees
27. HHKCALC0 Payroll Driver Hong Kong
28. HHKCKTO0 Payroll Accounts
29. HHKCLJN0 Payroll Journal - Hong Kong
30. HHKCLST1 Payroll Results for Cluster HZ - Hongkong Payroll Projection
31. HHKCLSTR Payroll Results for Cluster HK
32. HHKCREC0 Payroll results check tool
33. HHKUREC0 Payroll results check tool: Generation
34. HHKUREC5 Payroll results check tool: Display
35. HIDCALC0 Payroll Driver, Version ID (Indonesia)
36. HIDCANN0 Payroll Annual Display
37. HIDCDTC0 Preliminary Program - Data Medium Exchange for Several Payment Run
38. HIDCKTO0 Payroll Account
39. HIDCLJN0 Payroll Journal
40. HIDCLSTR Display Payroll Results (Cluster IS) Indonesia
41. HIECALC0 Payroll Calculation Driver for Ireland
42. HIECDTA0 Preliminary Program - DME for Several Payment Runs (Ireland)
43. HIECDTB0 Preliminary DME Program for Separate Payment Run
44. HIECEDT0 Payslip - Ireland
45. HIECKTO0 Payroll account
46. HIECLJN0 Payroll journal for Ireland
47. HIECLSTR Display cluster IE (Payroll results Ireland)
48. HIEUDIR0 Create Directory for Payroll Results (Cluster IE)
49. HINCALC0 Payroll Driver, India
50. HINCANN0 Payroll Annual Display - India
51. HINCDTA0 Preliminary Program - Data Medium Exchange - Post Payroll - India
52. HINCKTO0 Payroll Account - India
53. HINCLJN0 Payroll Journal - India
54. HINCLSTR Cluster Display IN ( Payroll Results, India )
55. HINUULK0 INLK Payroll Tables T558B and T558C Upload
56. HINU_M40_FFOD Create DME (Print Payment advice note)
57. HKRCALC0 Payroll Driver, Version for South Korea
58. HKRCDTA0 Preliminary Program - Data Medium Exchange for Several Payment Run
59. HKRCKTO0 Payroll Accounts
60. HKRCLJN0 Payroll Journal South Korea
61. HKRCLSTR Payroll Results for Cluster KR (South Korea)
62. HKRPLOG0 Payroll messages South Korea
63. HMXCINO0 Payroll tax report
64. HMXCKTO0 Payroll account
65. HMXCLJN0 Payroll journal
66. HMXCLSTR Payroll accounting results (Cluster MX)
67. HMXUACTPBSF2 Subroutines for Change in Pay
68. HNZCALC0 Payroll Driver, Version NZ (New Zealand)
69. HNZCDTA0 Preliminary Program - Data Medium Exchange for Several Payment Run
70. HNZCEDT0 Editing Payroll Results (New Zealand Version)
71. HNZCLJN0 Payroll Journal International
72. HNZCLSTR Display Payroll Results (Cluster NZ) - New Zealand
73. HNZDLN10 Advance Pay Cluster(N1) Display and Deletion Program for New Zeala
74. HNZLDET0 HR-NZ: Employee Pay Details Report
75. HNZLEXC0 HR-NZ: Payroll Exception Report
76. HNZLSUM0 HR-NZ: Employee Payroll Summary Report
77. HNZUCDC0 Convert Payroll Results for Conversion to > 2 Decimal Places
78. HNZUCLR0 Payroll Results (RQ) - Original and differences from retro periods
79. HPHCALC0 Payroll Driver - Philippines
80. HPHCAWS0 13th Month Pay
81. HPHCDTA0 Preliminary Program - Data Medium Exchange for Several Payment Run
82. HPHCLJN0 Payroll Journal - Philippines
83. HPHCLSTR Display Payroll Results (Cluster PH) - Philippines
84. HPHCMP00 HR-PH: Advance Payment Multiple Runs
85. HPHUALR0 Payroll Results (PH) - Actual/most recent result for CRT
86. HPHUCDC0 Convert Payroll Results for Conversion to > 2 Decimal Places
87. HPHUCLR0 Payroll Results (PH) - Original and differences from retro periods
88. HTHCALC0 Payroll Driver, Version 9 (Thailand)
89. HTHCDTC0 Preliminary Prog - Data Medium Exchange for Several Payment Runs
90. HTHCKTO0 Payroll Accounts Thailand
91. HTHCLJN0 Payroll Journal - THAILAND
92. HTHCLSTR Payroll Results for Cluster TH
93. HTWCALC0 Payroll Driver for Taiwan
94. HTWCDTA0 Preliminary Program - Data Medium Exchange for Several Payment Ru
95. HTWCKTO0 Taiwan Payroll Accounts
96. HTWCLJN0 Payroll Journal Taiwan specific
97. HTWCLSTR Payroll Results for Cluster TN
98. HTWCTXW0 Tax Certificate Report & Media Form (Payday)
99. HVECALC0 Payroll accounting program (Venezuela)
100. HVECEDT0 Payslip and severance payslip
101. HVECKTO0 Payroll account
102. HVECLJN0 Payroll journal
103. IBKKARCHLOG_FIBA_ITEM Data Declarations for Archiving Payment Items
104. IBKKARCH_FIBA_ITEM Data Declarations for Archiving Payment Items
105. IBKKARCH_FIBA_ORDER Data Declarations for Archiving Payment Orders
106. IBKKCOGPAYMNOTE Public Constants of Payment Notes
107. IBKKCONPAYMNOTE Internal Constants of Payment Notes
108. IFIFMKAO IS-PS: Constant Declarations for Payment Requests
109. IHC_BCAREVPO_ALV01 List of Cross-Bank Area Payment Orders
110. J_1AF011 Payment Notice (AR)
111. J_1AF012 Payment Notice (AP)
112. J_1AINFK Inflation Adjustment of Open Payables in Local Currency
113. L0FVTI01 F4 Help for Incoming Payment Method
114. L0P02O01 PBO Module for Restricting Payments/Deductions
115. L3HKEU01 Long Service Payment and Severance Payment for Hongkong
116. L3HKFU03 Print function for EOY Payment, Hongkong
117. L3HKFU05 Print function for EOY Payment, Hongkong
118. L3NZ0U08 New Zealand Payroll Messages
119. L3TH0U04 Function to return the Begin Date and End Date for a given Payrol
120. LACC3U02 Check BAPI: Account, incoming invoice (Load Payable)
121. LACC3U03 Check BAPI: Account, incoming invoice (Load Payable)
122. LACCSU02 Derivation of Payment Flow from SD Document (Quotation, Order)
123. RPCOIFU6 Delete Interface Results forward using Payroll Area and Pay Perio
124. HFILTVR0 Pay Scale Reclassification data for Parake employees
125. LHRFPBS4U02 Derive Amount from Pay Scale group, Pay Scale level
126. LHRFPBS4U05 Read Pay Scale, Pay Area, Pay Groups from Corps or Corps and Grade
127. RHPAYSC0 Display Pay Scale Structure
128. RPIPSR00 Pay Scale Reclassification
129. RPISTLVP Pay Scale Reclassification due to change in job code
130. RPITIG00 Pay Scale Reclassification
131. RPITIGVP Pay Scale Reclassification
132. RPITUM00 Pay Scale Reclassification acc. to Age or Pay Scale Membership Per
133. RPITUMH0 Pay Scale Reclassification acc. to Age or Pay Scale Membership Per
134. RPLPSCJ0 Time Spent in Pay Scale Group (Japan)
135. RPLTRF10 Defaults for Pay Scale Reclassification
136. RPU510N0 Simple Pay Scale Increase for Wage Types Determined Indirectly
137. RPU510Q0 Pay Scale Increase for the Family-Related Bonus
138. RPUEHBD0 Table conversion: Valuation of Pay Scales for Statistics
139. RPUEMU00 Currency Changeover EMU for Pay Scale and Pay Grade Structures
140. RPUT510BPBS SAP-HR Belgian Public Sector : Generation of Pay Scales (T510)
141. Y0PXIRLPRANGE Upload Pay Scale Range
142. ZPMIRAS1 Program to Fill Pay Scales for Annual Salaries Table (T510N)
143. ZPMIRSC1 Program to Fill Pay Scale Group Table (T510)
144. ZT510LOAD Program to Fill Pay Scale Group Table (T510)
145. RPISTLVP Pay Scale Reclassification due to change in job code
146. RPUSADU0 Data Definition for Salary Calculation
147. RPUSALU0 Salary Calculation Subroutines
148. RPUSCC00 Compare Schemas
149. RPUSCCA0
150. RPUSCCA1
151. RPUSCCB0 Checkprogramm for Scheme (Belgium)
152. RPUSCCB1 Checkprogramm for Personnel Calculation Scheme's (Belgium)
153. RPUSCCC0 Schema Check for Payroll - Swiss Country Version
154. RPUSCCC1
155. RPUSCCD0 Schema Check for Payroll - German Version
156. RPUSCCD1
157. RPUSCCE0 Schema check for payroll - Spain
158. RPUSCCE1
159. RPUSCCF0 Check schemas for France ( generated by RPUGSC00 )
160. RPUSCCF1
161. RPUSCCG0
162. RPUSCCG1
163. RPUSCCH0 Schema Prüfungsprogramm - Ungarn
164. RPUSCCH1 Schema Prüfungsprogramm - Ungarn
165. RPUSCCI0
166. RPUSCCI1
167. RPUSCCJ0 Schema Check for Payroll Accounting - Japanese Version
168. RPUSCCJ1 Check Program for Schemas (Japan)
169. RPUSCCK0 RPUSCCK0hi Suresh,
thank u so much.
been searchin for this for some time.
Regards,
Hari Kiran -
Manpower output (HR-ABAP Payroll)
Hi ABAP Gurus,
I have done manpower detalis using PNP logical database.
this program is regarding manpower details according to plant wise and payroll area wise.
for this i have used smart forms, but where ever i call smartform function, the output is comming as n times(i.e single output for each pernr )
Can you please help me out.
Thanks and Regards,
GiriHi
See this sample report to display Cost center wise Man power and do accordingly
report zporgr0040
line-size 108
line-count 60(1)
no standard page heading
message-id zndc.
Database Tables
tables: hrp1001, " HR Master Record (Orgn. Assignment)
pa0002, " Personal Data
t528t, " Position Texts
t527x, " Org Unit Text
t528b, " Positions
csks, " Cost Center
cskt. " Cost Center Texts
Declaration of Internal Tables
Internal Table for Orgn Object Data HRP1000
data: begin of obj_tab occurs 0,
otype like hrp1000-otype, " Object Type
objid like hrp1000-objid, " Object ID
plvar like hrp1000-plvar, " Plan Version
istat like hrp1000-istat, " Planning Status
begda like hrp1000-begda, " Begin date
endda like hrp1000-endda, " End date
end of obj_tab.
Internal Table for Active Employees data PA0000
data: begin of stat_tab occurs 0,
pernr like pa0000-pernr, " Object Type
begda like pa0000-begda, " Begin date
endda like pa0000-endda, " End date
stat2 like pa0000-stat2, " Employment Status
end of stat_tab.
Internal Table for Actual Orgn Assignment Data PA0001
data: begin of act_tab occurs 0,
pernr like pa0001-pernr, " Object Type
begda like pa0001-begda, " Begin date
endda like pa0001-endda, " End date
kostl like pa0001-kostl, " Cost Center
orgeh like pa0001-orgeh, " Org Unit
plans like pa0001-plans, " Position
natio like pa0002-natio, " Nationality
end of act_tab.
Internal Table for Orgn Data HRP1001
data: begin of org_tab occurs 0,
otype like hrp1001-otype, " Object Type
objid like hrp1001-objid, " Object ID
plvar like hrp1001-plvar, " Plan Version
istat like hrp1001-istat, " Planning Status
begda like hrp1001-begda, " Begin date
endda like hrp1001-endda, " End date
subty like hrp1001-subty, " Sub Type
sclas like hrp1001-sclas, " Type of Related Object
sobid like hrp1001-sobid, " Id of Related Object
kostl like pa0001-kostl, " Cost Center
plstx like t528t-plstx, " Position Text
orgtx like t527x-orgtx, " Org Unit Text
end of org_tab.
Internal Table for Position Calculations
data: begin of org1_tab occurs 0,
kostl like pa0001-kostl, " Cost Center
objid like hrp1001-objid, " Object ID
end of org1_tab.
Internal Table for Position Calculations
data: begin of org2_tab occurs 0,
kostl like pa0001-kostl, " Cost Center
count type i, " No of Positions
end of org2_tab.
Internal Table for Actual Manpower Calculations
data: begin of act1_tab occurs 0,
kostl like pa0001-kostl, " Cost Center
natio like pa0002-natio, " Nationality
plans like pa0001-plans, " Position
end of act1_tab.
Internal Table for Actual Manpower Calculations(UAE)
data: begin of act2_tab occurs 0,
kostl like pa0001-kostl, " Cost Center
natio like pa0002-natio, " Nationality
end of act2_tab.
Internal Table for Actual Manpower Calculations(Others)
data: begin of act3_tab occurs 0,
kostl like pa0001-kostl, " Cost Center
natio like pa0002-natio, " Nationality
end of act3_tab.
Internal Table for Actual Manpower Calculations(UAE)
data: begin of act4_tab occurs 0,
kostl like pa0001-kostl, " Cost Center
count1 type i, " No of Positions(UAE)
end of act4_tab.
Internal Table for Actual Manpower Calculations(OTHERS)
data: begin of act5_tab occurs 0,
kostl like pa0001-kostl, " Cost Center
count2 type i, " No of Positions(Others)
end of act5_tab.
Internal Table for Vaccancies Data
data: begin of vac_tab occurs 0,
plvar like hrp1007-plvar, " Plan Version
otype like hrp1007-otype, " Object Type
objid like hrp1007-objid, " Object ID
istat like hrp1007-istat, " Planning Status
begda like hrp1007-begda, " Begin date
endda like hrp1007-endda, " End date
vacan like hrp1007-vacan, " Vacancy Indicator
status like hrp1007-status, " Status of Vacancy
end of vac_tab.
Internal Table to store the Report Output data
data : begin of rep_tab occurs 0 ,
kostl(10) type n, " Cost Cente
plans like pa0001-plans, " Position
vacan like hrp1007-vacan, " Vacancy Indicator
status like hrp1007-status, " Status of Vacancy
plstx like t528t-plstx, " Position Text
orgtx like t527x-orgtx, " Org Unit Text
end of rep_tab.
Internal Table to store the Report Output data
data : begin of rep1_tab occurs 0 ,
kostl(10) type n, " Cost Cente
cnt type i, " No of Vacancies
end of rep1_tab.
Internal Table to store the Report Output data
data : begin of rep2_tab occurs 0 ,
kostl(10) type n, " Cost Cente
app_no type i, " Approved
nat_no type i, " National
exp_no type i, " Expatriate
tot_no type i, " Total
vac_no type i, " Vacancies
end of rep2_tab.
Declaration of Variables
data: v_sobid like hrp1001-sobid, " Object Id
v_sobid1 like hrp1001-sobid, " Object Id
v_sobid2 like hrp1001-sobid, " Object Id
v_sclas like hrp1001-sclas, " Related Obj Type
v_subty like hrp1001-subty, " Related Object Id
v_otype like hrp1007-otype, " Object Type
v_str(9) type c, " Text
v_str1(10) type c, " Text
v_cnt like sy-tabix. " Table Index
Declaration of Constants
constants : c_x type c value 'X', " Flag
c_stat1 like pa0000-stat2 value '3', " Emp Status
c_plan like hrp1001-plvar value '01', " Plan Version
c_name like hrp1000-uname value 'SAP', " Uname
c_uae like pa0002-natio value 'AE', " Country
c_type like hrp1007-otype value 'O', " Object Type
c_otype like hrp1007-otype value 'S', " Object Type
c_stat like hrp1007-status value '0', " Status
c_pstat like hrp1007-istat value '1', " Plang Status
c_sclas like hrp1001-sclas value 'K', " Rel. Obj Type
c_subty like hrp1001-subty value 'A002', " Related ObjId
c_subty2 like hrp1001-subty value 'A003', " Related ObjId
c_sclas1 like hrp1001-sclas value 'O', " Rel.Obj Type
c_subty1 like hrp1001-subty value 'A011', " Rel.Object Id
c_kokrs like coej-kokrs value '1000'. " Controlling Area
Selection Screen
selection-screen begin of block b1 with frame title text-001.
parameters :
p_date like pa0001-begda obligatory default sy-datum. " Date
select-options :
s_kostl for csks-kostl, " Cost Center
s_plans for t528b-plans. " Position ID
selection-screen end of block b1.
At selection-screen
at selection-screen.
Validate the Selection Screen fields
perform validate_screen.
Start-of-Selection
start-of-selection.
Get the Orgn data from database Table HRP1001
perform get_org_data.
Get the Actual Manpower from PA0001
perform get_act_data.
Get the Vaccancies data from database Table HRP1007
perform get_vac_data.
Append the data into final Internal Table
perform append_data.
Top-of-page
top-of-page.
Write the Report and Column Headings
perform top_of_page.
End-of-Page
end-of-page.
write /1(108) sy-uline.
End-of-Selection
end-of-selection.
Display the Output Report.
perform display_report.
Form-Routines
*& Form validate_screen
Validation of selection Screen fields
form validate_screen.
Validation of Position ID
clear t528b.
if not s_plans[] is initial.
select single plans
into t528b-plans
from t528b
where plans in s_plans.
if sy-subrc <> 0.
message e999 with 'Invalid Position ID'(009).
endif.
endif.
Validation of Cost Center
clear csks.
if not s_kostl[] is initial.
select single kostl
into csks-kostl
from csks
where kostl in s_kostl.
if sy-subrc <> 0.
message e999 with 'Invalid Cost Center'(008).
endif.
endif.
endform. "validate_screen
*& Form get_org_data
Get the Orgn Data from Database Table HRP1001
form get_org_data.
v_str = 'Developee'(002).
v_str1 = 'Deployment'(003).
Select All the Positions from HRP1000
select otype " Object Type
objid " Object ID
plvar " Plan Version
istat " Planning Status
begda " Begin date
endda " End date
into table obj_tab
from hrp1000
where otype = c_otype and
plvar = c_plan and
istat = c_pstat and
begda le p_date and
endda ge p_date and
objid in s_plans and
uname ne c_name.
sort obj_tab by otype objid.
Get the Orgn and Cost Center for all the above Positions
if not obj_tab[] is initial.
select otype " Object Type
objid " Object ID
plvar " Plan Version
istat " Planning Status
begda " Begin date
endda " End date
subty " Sub Type
sclas " Type of Related Object
sobid " Id of Related Object
into table org_tab
from hrp1001
for all entries in obj_tab
where otype = c_otype and
plvar = c_plan and
istat = c_pstat and
begda le p_date and
endda ge p_date and
sclas eq c_sclas1 and
subty eq c_subty2 and
objid eq obj_tab-objid.
endif.
sort org_tab by otype objid.
Get the Cost Center
loop at org_tab.
v_otype = c_otype. " S
v_sclas = c_sclas. " K
v_subty = c_subty1. " A011
v_sobid = org_tab-objid.
perform get_org using v_otype v_sclas v_subty
v_sobid.
if sy-subrc = 0.
org_tab-kostl = hrp1001-sobid+0(10).
else.
v_otype = c_otype. " S
v_sclas = c_sclas1. " O
v_subty = c_subty2. " A003
v_sobid = org_tab-objid.
perform get_org using v_otype v_sclas v_subty
v_sobid.
if sy-subrc = 0.
v_otype = c_type. " O
v_sclas = c_sclas. " K
v_subty = c_subty1. " A011
v_sobid1 = v_sobid.
perform get_org using v_otype v_sclas v_subty
v_sobid.
if sy-subrc <> 0.
v_otype = c_type. " O
v_sclas = c_sclas1. " O
v_subty = c_subty. " A002
v_sobid = v_sobid1.
perform get_org using v_otype v_sclas v_subty
v_sobid.
if sy-subrc = 0.
v_otype = c_type. " O
v_sclas = c_sclas. " K
v_subty = c_subty1. " A011
v_sobid2 = v_sobid.
perform get_org using v_otype v_sclas v_subty
v_sobid.
if sy-subrc <> 0.
v_otype = c_type. " O
v_sclas = c_sclas1. " O
v_subty = c_subty. " A002
v_sobid = v_sobid2.
perform get_org using v_otype v_sclas v_subty
v_sobid.
else.
org_tab-kostl = hrp1001-sobid+0(10).
endif.
endif.
else.
org_tab-kostl = hrp1001-sobid+0(10).
endif.
else.
v_otype = c_otype. " S
v_sclas = c_otype. " S
v_subty = c_subty. " A002
v_sobid = org_tab-objid.
perform get_org using v_otype v_sclas v_subty
v_sobid.
if sy-subrc = 0.
v_otype = c_otype. " S
v_sclas = c_sclas. " K
v_subty = c_subty1. " A011
v_sobid1 = v_sobid.
perform get_org using v_otype v_sclas v_subty
v_sobid.
if sy-subrc <> 0.
v_otype = c_otype. " S
v_sclas = c_sclas1. " O
v_subty = c_subty2. " A003
v_sobid = v_sobid1.
perform get_org using v_otype v_sclas v_subty
v_sobid.
if sy-subrc = 0.
v_otype = c_type. " O
v_sclas = c_sclas. " K
v_subty = c_subty1. " A011
v_sobid2 = v_sobid.
perform get_org using v_otype v_sclas v_subty
v_sobid.
if sy-subrc <> 0.
v_otype = c_type. " O
v_sclas = c_sclas1. " O
v_subty = c_subty. " A002
v_sobid = v_sobid2.
perform get_org using v_otype v_sclas v_subty
v_sobid.
else.
org_tab-kostl = hrp1001-sobid+0(10).
endif.
endif.
else.
org_tab-kostl = hrp1001-sobid+0(10).
endif.
endif.
endif.
endif.
Get the Position Text
clear t528t.
select single plstx from t528t into t528t-plstx
where sprsl = sy-langu and
otype = c_otype and
plans = org_tab-objid.
org_tab-plstx = t528t-plstx.
Get the Org Unit Text
clear t527x.
select single orgtx from t527x into t527x-orgtx
where sprsl = sy-langu and
orgeh = org_tab-sobid+0(8).
org_tab-orgtx = t527x-orgtx.
modify org_tab index sy-tabix.
clear v_sobid.
endloop.
sort org_tab by otype objid.
Calculate the Approved No of Positions
loop at org_tab.
if org_tab-kostl in s_kostl.
move-corresponding org_tab to org1_tab.
append org1_tab.
clear org1_tab.
endif.
endloop.
sort org1_tab by kostl objid.
clear v_cnt.
loop at org1_tab.
at end of kostl.
sy-tabix = sy-tabix - v_cnt.
org2_tab-kostl = org1_tab-kostl.
org2_tab-count = sy-tabix.
v_cnt = v_cnt + sy-tabix.
append org2_tab.
clear:org2_tab.
endat.
endloop.
sort org2_tab by kostl.
endform. "get_org_data
*& Form get_act_data
Get the Actual Manpower Data from Database Table PA0001
form get_act_data.
clear : stat_tab, act_tab.
refresh: stat_tab, act_tab.
Get all the Active Employees
select pernr " Object Type
begda " Begin date
endda " End date
stat2 " Emp Status
into table stat_tab
from pa0000
where stat2 eq c_stat1 and
begda le p_date and
endda ge p_date.
sort act_tab by pernr.
if not stat_tab[] is initial.
select pernr " Object Type
begda " Begin date
endda " End date
kostl " Cost Center
orgeh " Org Unit
plans " Position
into table act_tab
from pa0001
for all entries in stat_tab
where pernr eq stat_tab-pernr and
kostl in s_kostl and
plans in s_plans and
persg eq '1' and
begda le p_date and
endda ge p_date.
endif.
sort act_tab by pernr.
loop at act_tab.
move-corresponding act_tab to act1_tab.
clear pa0002-natio.
select single natio into pa0002-natio from pa0002
where pernr = act_tab-pernr.
if sy-subrc = 0.
act1_tab-natio = pa0002-natio.
endif.
append act1_tab.
clear act1_tab.
endloop.
sort act1_tab by kostl natio.
Calculate the Local and Expatriate Manpower
loop at act1_tab.
if act1_tab-natio = c_uae.
act2_tab-kostl = act1_tab-kostl.
act2_tab-natio = act1_tab-natio.
else.
act3_tab-kostl = act1_tab-kostl.
act3_tab-natio = act1_tab-natio.
endif.
append: act2_tab, act3_tab.
clear : act2_tab,act3_tab.
endloop.
sort act2_tab by kostl.
sort act3_tab by kostl.
Actual UAE Manpower
clear v_cnt.
loop at act2_tab.
at end of kostl.
sy-tabix = sy-tabix - v_cnt.
act4_tab-kostl = act2_tab-kostl.
act4_tab-count1 = sy-tabix.
v_cnt = v_cnt + sy-tabix.
append act4_tab.
clear:act4_tab.
endat.
endloop.
sort act4_tab by kostl.
Other Countries
clear v_cnt.
loop at act3_tab.
at end of kostl.
sy-tabix = sy-tabix - v_cnt.
act5_tab-kostl = act3_tab-kostl.
act5_tab-count2 = sy-tabix.
v_cnt = v_cnt + sy-tabix.
append act5_tab.
clear:act5_tab.
endat.
endloop.
sort act5_tab by kostl.
endform. "get_act_data
*& Form get_org
Get the Cost Center from Parent Org Id
form get_org using p_v_otype p_v_sclas p_v_subty p_v_sobid.
clear hrp1001.
select single * from hrp1001
where otype = p_v_otype and
plvar = c_plan and
istat = c_pstat and
begda le p_date and
endda ge p_date and
sclas eq p_v_sclas and
subty eq p_v_subty and
objid eq p_v_sobid.
v_sobid = hrp1001-sobid+0(8).
endform. " get_org
*& Form get_vac_data
Get the Vaccancies Data from Database Table HRP1007
form get_vac_data.
if not org_tab[] is initial.
select plvar " Plan Version
otype " Object Type
objid " Object ID
istat " Planning Status
begda " Begin date
endda " End date
vacan " Vacancy Indicator
status " Status of Vacancy
into table vac_tab
from hrp1007
for all entries in org_tab
where plvar = c_plan and
otype = c_otype and
istat eq c_pstat and
objid = org_tab-objid and
begda le p_date and
endda ge p_date and
vacan eq c_x and
status eq c_stat.
endif.
sort vac_tab by plvar otype objid.
Get the HR data into the rep_tab Internal Table
loop at vac_tab.
rep_tab-plans = vac_tab-objid.
rep_tab-vacan = vac_tab-vacan.
rep_tab-status = vac_tab-status.
read table org_tab with key objid = vac_tab-objid.
if sy-subrc = 0.
rep_tab-kostl = org_tab-kostl.
rep_tab-plstx = org_tab-plstx.
rep_tab-orgtx = org_tab-orgtx.
endif.
append rep_tab.
clear rep_tab.
endloop.
loop at rep_tab.
if not rep_tab-kostl in s_kostl.
delete rep_tab index sy-tabix.
endif.
endloop.
sort rep_tab by kostl plans.
delete rep_tab where plstx cs v_str.
delete rep_tab where orgtx cs v_str1.
Calculate the Count of Vacancies in each Division
clear v_cnt.
loop at rep_tab.
at end of kostl.
sy-tabix = sy-tabix - v_cnt.
rep1_tab-kostl = rep_tab-kostl.
rep1_tab-cnt = sy-tabix.
v_cnt = v_cnt + sy-tabix.
append rep1_tab.
clear:rep1_tab.
endat.
endloop.
sort rep1_tab by kostl.
endform. "get_vac_data
*& Form append_data
Append the data into final Internal Table
form append_data.
loop at org2_tab.
rep2_tab-kostl = org2_tab-kostl.
rep2_tab-app_no = org2_tab-count.
read table act4_tab with key kostl = org2_tab-kostl
binary search.
if sy-subrc = 0.
rep2_tab-nat_no = act4_tab-count1.
endif.
read table act5_tab with key kostl = org2_tab-kostl
binary search.
if sy-subrc = 0.
rep2_tab-exp_no = act5_tab-count2.
endif.
read table rep1_tab with key kostl = org2_tab-kostl
binary search.
if sy-subrc = 0.
rep2_tab-vac_no = rep1_tab-cnt.
endif.
rep2_tab-tot_no = rep2_tab-nat_no + rep2_tab-exp_no.
append rep2_tab.
clear rep2_tab.
endloop.
sort rep2_tab by kostl.
endform. "append_data
*& Form top_of_page
Write the Report and Column Headings
form top_of_page.
skip.
format color col_heading on.
write: /1(108) 'NATIONAL DRILLING COMPANY'(010) centered,
/1(108) 'Summary of Manning Level Report'(011) centered.
format color off.
skip.
write: /2 'Key Date :'(013), p_date,
75 'Report Run Date:'(041), sy-datum.
if not s_kostl[] is initial.
if s_kostl-high is initial.
write: /2 'Cost Center :'(023), s_kostl-low,
75 'Time :'(042), sy-uzeit.
else.
write: /2 'Cost Center From:'(024), s_kostl-low+7(3),
'To'(022), s_kostl-high,
75 'Time :'(042), sy-uzeit.
endif.
else.
write: /75 'Time :'(042), sy-uzeit.
endif.
if not s_plans[] is initial.
if s_plans-high is initial.
write: /2 'Position Id :'(019), s_plans-low,
75 'User :'(043), sy-uname.
else.
write: /2 'Position Id From:'(021), s_plans-low,
'To'(022), s_plans-high,
75 'User :'(043), sy-uname.
endif.
else.
write: /75 'User :'(043), sy-uname.
endif.
write: /75 'Page No :'(044), sy-pagno.
skip.
write /1(108) sy-uline.
format color col_heading.
write:/1 sy-vline,
12 sy-vline, 53 sy-vline,
64 sy-vline, 65(32) 'Actual'(018) centered,
97 sy-vline,108 sy-vline.
write:/1 sy-vline, 2(10) 'CostCenter'(014),
12 sy-vline, 13(40) 'Description'(026) centered,
53 sy-vline, 54(10) 'Approved'(025) centered,
64 sy-vline, 65(32) sy-uline,
97 sy-vline, 98(10) 'Vacancies'(017),
108 sy-vline.
write:/1 sy-vline,
12 sy-vline, 53 sy-vline,
64 sy-vline, 65(10) 'National'(015) centered,
75 sy-vline, 76(10) 'Expatriate'(020) centered,
86 sy-vline, 87(10) 'Total'(016) centered,
97 sy-vline,108 sy-vline.
format color off.
write /1(108) sy-uline.
endform. "top_of_page
*& Form Display_report
Write the Report Output
form display_report.
if rep2_tab[] is initial.
message i999 with
'No Data found for the entered Selection'(035).
else.
loop at rep2_tab.
Authorization Check for the Orgn and Cost Centers
perform auth_check_org.
if sy-subrc = 0.
clear cskt.
select single ltext into cskt-ltext from cskt
where spras = sy-langu and
kokrs = c_kokrs and
kostl = rep2_tab-kostl.
format color col_normal.
write: /1 sy-vline, 2(10) rep2_tab-kostl+7(3),
12 sy-vline, 13(40) cskt-ltext,
53 sy-vline, 54(10) rep2_tab-app_no,
64 sy-vline, 65(10) rep2_tab-nat_no,
75 sy-vline, 76(10) rep2_tab-exp_no,
86 sy-vline, 87(10) rep2_tab-tot_no,
97 sy-vline, 98(10) rep2_tab-vac_no,
108 sy-vline.
format color off.
at last.
sum.
format color 3.
write /1(108) sy-uline.
write: /1 sy-vline, 2(10) 'Total'(027),
12 sy-vline,
53 sy-vline, 54(10) rep2_tab-app_no,
64 sy-vline, 65(10) rep2_tab-nat_no,
75 sy-vline, 76(10) rep2_tab-exp_no,
86 sy-vline, 87(10) rep2_tab-tot_no,
97 sy-vline, 98(10) rep2_tab-vac_no,
108 sy-vline.
format color off.
endat.
endif.
endloop.
endif.
write /1(108) sy-uline.
endform. " Display_report
*& Form auth_check_org
Authorization Check for the Orgn and Cost Center
form auth_check_org.
authority-check object 'ZNDCHROM'
id 'PLVAR' dummy
id 'OTYPE' dummy
id 'KOSTL' field rep2_tab-kostl.
endform. "auth_check_org
Reward points for useful Answers
Regards
Anji -
Hi All Experts,
I am new to ABAP-HR,I want One Sample PayRoll Report.Thanks in Advance.am providing you the e-link :
http://cma.zdnet.com/book/abap/
http://cma.zdnet.com/book/abap/index.htm
http://www.sapdevelopment.co.uk/
http://www.sap-img.com/
http://juliet.stfx.ca/people/fac/infosys/abap.htm
http://help.sap.com/saphelp_46c/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm
http://help.sap.com/saphelp_46c/helpdata/en/d6/0db357494511d182b70000e829fbfe/frameset.htm
http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
http://www.sapgenie.com/abap/example_code.htm
http://www.geocities.com/SiliconValley/Campus/6345/abapindx.htm
http://help.sap.com/printdocu/core/Print46c/en/Data/Index_en.htm
http://help.sap.com/saphelp_40b/helpdata/en/4f/991f82446d11d189700000e8322d00/applet.htm
http://www.sap-img.com/abap-function.htm
http://www.sapgenie.com/abap/code/abap19.htm
http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm
http://www.planetsap.com/Tips_and_Tricks.htm
http://help.sap.com/saphelp_40b/helpdata/ru/d6/0dc169494511d182b70000e829fbfe/applet.htm
http://www.henrikfrank.dk/abapexamples/SapScript/symbols.htm
http://www.henrikfrank.dk/abapexamples/index.html
http://sap.ittoolbox.com/documents/document.asp?i=752
http://members.aol.com/_ht_a/skarkada/sap/
http://sappoint.com/abap/
http://members.tripod.com/abap4/SAP_Functions.html
http://members.ozemail.com.au/~anmari/sap/index.html
http://www.planetsap.com/Userexit_List.htm
http://www.planetsap.com/Tips_and_Tricks.htm
http://www.kabai.com/abaps/q.htm
http://www.planetsap.com/Userexit_List.htm
http://help.sap.com/saphelp_bw21c/helpdata/en/c4/3a8090505211d189550000e829fbbd/frameset.htm
http://www.sapgenie.com/abap/bapi/example.htm
http://help.sap.com/saphelp_45b/helpdata/en/65/897415dc4ad111950d0060b03c6b76/content.htm
http://www.sap-basis-abap.com/index.htm
http://help.sap.com/saphelp_40b/helpdata/en/fc/eb2c46358411d1829f0000e829fbfe/frameset.htm
http://help.sap.com/saphelp_46c/helpdata/en/aa/aeb23789e95378e10000009b38f8cf/frameset.htm
http://www.geocities.com/ResearchTriangle/1635/system.html
http://www.sapdesignguild.org/resources/MiniSG/3_Managing/3_Functions_Table_Control.htm
http://help.sap.com/saphelp_45b/helpdata/en/d1/801bdf454211d189710000e8322d00/content.htm
http://www.sapfans.com/sapfans/repos/saprep.htm
http://www.planetsap.com/howdo_a.htm
http://help.sap.com/saphelp_util464/helpdata/en/69/c2516e4ba111d189750000e8322d00/content.htm
http://www.sapgenie.com/abap/smartforms_detail.htm
http://www.sap-img.com/abap.htm
http://help.sap.com/saphelp_46c/helpdata/en/fc/eb2d67358411d1829f0000e829fbfe/content.htm
http://www.geocities.com/victorav15/sapr3/abap.html
http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
http://abap4.tripod.com/Other_Useful_Tips.html
http://help.sap.com/saphelp_45b/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm
http://www.sap-basis-abap.com/sapmm.htm
http://sap.ittoolbox.com/nav/t.asp?t=303&p=448&h1=303&h2=322&h3=448
http://sapfans.com/
http://cma.zdnet.com/book/abap/ch03/ch03.htm
http://help.sap.com/saphelp_40b/helpdata/en/4f/991f82446d11d189700000e8322d00/applet.htm
http://sappoint.com/abap/
http://www.henrikfrank.dk/abapuk.html
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
http://www.sapgenie.com/abap/index.htm
http://www.sap-img.com/abap.htm
http://www.sapdevelopment.co.uk/tips/tipshome.htm
http://help.sap.com/printdocu/core/Print46c/en/Data/Index_en.htm
http://sap.ittoolbox.com/nav/t.asp?t=322&p=322&h1=322
http://sap.ittoolbox.com/nav/t.asp?t=448&p=448&h1=448
http://www.thespot4sap.com/
http://www.kabai.com/abaps/q.htm
http://www.geocities.com/mpioud/Abap_programs.html
http://www.sapgenie.com/abap/tips_and_tricks.htm
http://www.sapassist.com/code/d.asp?whichpage=1&pagesize=10&i=10&a=c&o=&t=&q=&qt=
For FAQ
http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm
http://www.sapgenie.com/faq/abap.htm
BAPI-step by step
http://www.sapgenie.com/abap/bapi/example.htm
Weblog for receive email and processing it through ABAP
/people/thomas.jung3/blog/2004/09/09/receiving-e-mail-and-processing-it-with-abap--version-610-and-higher
For Logical database
http://help.sap.com/saphelp_46c/helpdata/en/9f/db9bed35c111d1829f0000e829fbfe/frameset.htm
very useful
http://help.sap.com/saphelp_46c/helpdata/EN/35/2cd77bd7705394e10000009b387c12/frameset.htm
Useful link to websites
http://www.hernangn.com.ar/sap.htm
Useful for background
http://www.sappoint.com/basis/bckprsng.pdf
http://help.sap.com/saphelp_nw04/helpdata/en/6f/08703713bf277ee10000009b38f8cf/frameset.htm
http://publib.boulder.ibm.com/infocenter/wbihelp/index.jsp?topic=/com.ibm.wbix_adapters.doc/doc/mysap4/sap4x41.htm
Table control in BDC
http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
For posting weblog,
/people/sap.user72/blog/2005/06/28/sdn-weblogs-making-it-easier
Dynamic Internal table -weblog in sdn
/people/subramanian.venkateswaran2/blog/2004/11/19/dynamic-internal-table
Smartforms
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-press.com/downloads/h955_preview.pdf
http://www.ossincorp.com/Black_Box/Black_Box_2.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
How to trace smartform
http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
Workflow
http://www.sap-img.com/workflow/sap-workflow.htm
http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
For examples on WorkFlow...check the below link..
http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.workflowing.com/id18.htm
http://www.e-workflow.org/
http://web.mit.edu/sapr3/dev/newdevstand.html
ALV
http://www.geocities.com/mpioud/Abap_programs.html
Mail
http://www.geocities.com/mpioud/Z_EMAIL_ABAP_REPORT.html
http://www.thespot4sap.com/Articles/SAP_Mail_SO_Object_Send.asp
http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm
BOM Explosion
/people/prakash.singh4/blog/2005/05/15/explode-boms-in-enterprise-portal-using-htmlb-tree--part-1-abap
BOM
http://help.sap.com/saphelp_erp2005/helpdata/en/ea/e9b7234c7211d189520000e829fbbd/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/d1/2e4114a61711d2b423006094b9d648/frameset.htm
http://www.sap-img.com/sap-sd/sales-bom-implementation.htm
http://www.sap-basis-abap.com/sappp007.htm
OLE
http://www.sapgenie.com/abap/ole.htm
http://help.sap.com/saphelp_46c/helpdata/en/59/ae3f2e488f11d189490000e829fbbd/frameset.htm
ALVGRID with refresh
http://www.geocities.com/mpioud/Z_DEMO_ALV_REFRESH_BUTTON.html
For language setting and decimal separator
/people/horst.keller/blog/2004/11/16/abap-geek-7-150-babylonian-confusion
Oracle queries
http://sqlzoo.net/
To format SQL
http://www.sqlinform.com/
SCOT settings
http://www.sap-img.com/basis/basis-faq.htm
Status Icon ALV,Table Control,Tab Strip
http://www.sapdesignguild.org/resources/MiniSG-old/from_develop/norm_status_icons.htm#positioning_4
ALV Group Heading
http://www.sap-img.com/fu037.htm
For multiMedia
/people/thomas.jung3/blog/2005/05/11/using-classic-activex-controls-in-the-abap-control-framework
Uploading LOGO in SAP
http://www.sap-img.com/ts001.htm
LSMW
http://www.sap-img.com/sap-data-migration.htm
http://www.sapgenie.com/saptech/lsmw.htm
http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf
http://www.sap.info/public/INT/int/glossary/int/glossaryletter/Word-17643ed1d6d658821_glossary/L#Word-17643ed1d6d658821_glossary
Here are the two links which contains lots of PDFS:
http://www.easymarketplace.de/online-pdfs-q-s.php
http://www.consolut.de/saphelp/sap_online_help.html -
Interface Type "ABAP Dictionary-Based Interface" not generating Interac
Hi All,
I am getting problem in ABAP Adobe interactive forms in ECC6.
I tried designing Adobe interactive form by 2 following ways:
1) in SFP -->> Interface Type -->"ABAP Dictionary-Based Interface"
2) in SFP -->> Interface Type -->"XML Schema-Based Interface"
When I designed with 1st way I am not getting Interactive form, I get only read
only form when executing ABAP webdynpro application.
But same form giving interactive form when calling ABAP program.
But when I designed with 2nd(XML) way I am getting Interactive form. In Webdynpro application.
In both case i have kept view property as enabled.
Please guide me, Is there any step which is mandatory for Adobe interactive forms when
we use (SFP -->> Interface Type -->"ABAP Dictionary-Based Interface"), with ABAP webdynpro application.
ThanksXML Schema-Based Interface
-
Hi all,
I have a question regarding US Payroll Journal (RPCLJNU0) .
By using the standard the UJT1 header form I have created a custom form for my client in pe51
When I execute the form the Payroll area shows up as an astrick ( *) instead of displaying the payroll area the PERNRs belong to in the HEader of the form.
Eg: Payroll Area: *
I have picked the Payroll area from VERSC - ABKRS.
Is there any additional config I have to do for the payroll area to be displayed.
Any input will be greatly appretiated.
Thanks a ton in advance.Take the help of your ABAPer and check the Form you are using.
Veer -
Run a report in Forms 9i after migration from Forms 6i
Hi,
I face the following problem:
We do have to migrate from Forms 6i to 9i. In our "old" application, reports where called by using RUN_PRODUCT (in different forms and menues). But to start a report in 9i environment, RUN_REPORT_OBJECT must be used. Does the report has to be an object in the calling form or is it possble to start it as we used to directly from the file system ?
Regards,
Markushi
you need to create a report object in the object navigator.
and follow these
declare
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
pl_id paramlist;
d date;
BEGIN
/* for passing parameters
PL_ID:=GET_PARAMETER_LIST('P1');
IF(ID_NULL(PL_ID)) THEN
PL_ID:=CREATE_PARAMETER_LIST('P1');
ELSE
DESTROY_PARAMETER_LIST('p1');
PL_ID:=CREATE_PARAMETER_LIST('P1');
end if;
select to_char(max(start_date),'dd-mon-yyyy') into d from work_schedule_detail;
add_parameter(pl_id,'MACHINE',text_parameter,'C');
-- add_parameter(pl_id,'S245',text_parameter,'HI FROM FORM');
repid := find_report_object(:report_list);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'htmlcss');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_devserver');
--SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=yes');
use only if u r using reports parameter form
need some coding in reports before parameter form trigger
IF(:report_list NOT IN ('monthly_exp')) THEN
-- SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'MACHINE=C');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,
'paramform=yes P_USER_CONNECT=PAYROLL/PAYROLL@PINNACLE
P_SERVER_NAME=rep_devserver P_ACTION=http://devserver:7778/reports/rwservlet?');
v_rep := RUN_REPORT_OBJECT(repid);
else
for reports with out any parameters
v_rep := RUN_REPORT_OBJECT(repid);
end if;
rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(v_rep);
END LOOP;
IF rep_status = 'FINISHED' THEN
/*Display report in the browser*/
WEB.SHOW_DOCUMENT('http://devserver:7778/reports/rwservlet/getjobid'||
substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=rep_devserver','_blank');
ELSE
message('Error when running report');
END IF;
END; -
Report interface to Report writer reports
Hi
I have created a RW report for Profit Centers based on Ledger 0L and Table FAGLFLEXT. I want to drilldown to Line item level after i have executed the report
Is it possible to drilldown to Line item level. If yes, which Report interface do i need to assign to my Report group / Library. I assigned RFSOPO00 (ABAP program category) but it takes me to the report screen and not to the Line item level
Pls advice
Thanks
ShivShiv,
You could create a SAP query using table FAGLFLEXA, which includes the lines items you may looking for. Then instead of adding a Report group to your exsiting Library you could add as other report type this new SAP Query.
Hope this helps if so please award the points.
GG -
IN HR PAYROLL REPORT USING PNP LOGICAL DATABASE
Dear abapers,
when i ab runing HR payroll report usin PNP Logical database there are some error occurs.
INCLUDE DBPNPCOM
IN UNICODE PROGRAMS, THE "-" CHARECTOR CAN NOT APPEAR IN NAME , AS IT DOES HERE IN THE NAME
PNP-SW-FOUND.
INCLUDE DBPNPCOM
IN UNICODE PROGRAMS , THE "-" THE CHARECTOR CAN NOT APPEAR IN NAMES, AS IT DOES HERE IN THE NAME
PNP-SW-IGNORELOCKEDRECORDS.
INCLUDE DBPNPCOM
IN UNICODE PROGRAMS , THE "-" THE CHARECTOR CAN NOT APPEAR IN NAMES, AS IT DOES HERE IN THE NAME
PNP-SW-ENQUEUEPERNR.
PLEASE GIVE ME SOLUTIONS .
THANK YOU SIR.Hi, please check, these might be warnings, not errors.
-
How to create a report in Form line Style and can display Image field?
Hi,
In Report builder 10g, I would like to create a Report with Form Line Style and this report included a Image field.
I can choose this Style only when Select Report type is Paper Layout. Because, If I choose Create both Web & Paper Layout or Create Web Layout only then in the next Style tab 03 option Form, Form letter and Mailing Label be Disabled.
But in Paper Layout, my report can not display Image field.
I tried with Web layout and all the other Styles (Except 03 mentioned be Disabled) then all Styles are displayed Imager field OK.
How to create a report in Form line Style and can display Image field?
I was change File Format property of my Image field from text to Image already in Property Inspector. But report only showed MM for my Image field.
Thanks & regards,
BACH
Message was edited by:
bachnpHere you go..Just follow these steps blindly and you are done.
1) Create a year prompt with presentation variable as pv_year
2) Create a report say Mid report with year column selected 3 times
- Put a filter of pv_year presentation variable on first year column with a default value say @{pv_year}{2008}
- Rename the second time column say YEAR+1 and change the fx to CAST(TIME_DIM."YEAR" AS INT)+1
- Rename the second time column say YEAR-1 and change the fx to CAST(TIME_DIM."YEAR" AS INT)-1
Now when you will run Mid Report, this will give you a records with value as 2008 2009 2007
3) Create your main report with criteria as Year and Measure col
- Change the fx for year column as CAST(TIME_DIM."YEAR" AS INT)
- Now put a filter on year column with Filter based on results of another request and select these:
Relationship = greater than or equal to any
Saved Request = Browse Mid Report
Use values in Column = YEAR-1
- Again,put a filter on year column with Filter based on results of another request and select these:
Relationship = less than or equal to any
Saved Request = Browse Mid Report (incase it doesn't allow you to select then select any other request first and then select Mid Report)
Use values in Column = YEAR+1
This will select Year > = 2007 AND Year < = 2009. Hence the results will be for year 2007,2008,2009
This will 100% work...
http://i56.tinypic.com/wqosgw.jpg
Cheers -
Performance issue in HR Payroll Report
Hi Experts
I having performance issue in HR payroll report
My issue as follows
I have selection period to select date range
if I select start date & end date Which is giving EMP name, wage type,wage text, amount, etc
whenever I excute it takes morethan one hour to get the resust
my code is some wht like this
loop at GT_REDIR where
begda(start date) ge pnpbegda and
endat(end date) le pnpendat and
paytyp eq ''
move gt-sqnr to lv_sqnr
call function PYXX_READ_PAYROLL_RESULT
here i am passing pernr and sequence number
please give me some idea to fix this issue
Thanks in Advance
Gopinath SubramanyamHi Jhings
Thanks for Your immediate reply
data is coming from cluster table and also I am using Logical database
I will post my code here soon
Regards
Gopinath subramayam
Maybe you are looking for
-
HT203200 Cannot get into itunes via Mac keep getting error −50 ? help
Cannot get into itunes via Mac keep getting error −50 ? help please
-
Tutor Material for Account Receivable
Please help with Tutor Material ( study material) for account Receivable. I preparing to study this module but i do not have a study material. If someone has this material or know were i can download please share.
-
Canceling some areas of an invoice
Hi Apologies if the answer to this thread is somewhere else in this forum but i could find it. I have created an invoice to a company for 4 quantitys. I now need to cancel three of them but still charge them for one of the quantity. Is there a way in
-
2011 email router digital signature problem
Hi, We're running 2011 on premise with the email router feeding a queue for service items. We've recently seen a number of emails that hit the mail box but don't ever get processed by the email router. There are no errors in the event logs that we ca
-
How can generated EWA for SAP Portal system
Hi Guru there, Usually generate EWA should maintenan RFC, We have SAP Portal systems ( prod PP1 and test PT1 and dev PD1), but they are not appeared at saplogon and no general SAP interface, only operationing system level we can start/stop SAP system