03-17-2007 6:26 AM
i ve a tast to develop a report in HR module to list the employees who have taken leaves for three days in a row , plz help me how to begin?
03-17-2007 9:44 AM
HI,
Go through this below link. Hope it helps to u.
http://www.sap-img.com/abap/sample-hr-reports-allocate-petrol-allowance.htm
Thanks,
Shankar
03-17-2007 9:44 AM
HI,
Go through this below link. Hope it helps to u.
http://www.sap-img.com/abap/sample-hr-reports-allocate-petrol-allowance.htm
Thanks,
Shankar
03-17-2007 10:59 AM
Employee Absences are recorded in Infotype 2001. Write your report by reading this infotype for all employees.
~Suresh
03-18-2007 8:47 AM
Hello, Kannan.
One of the following is what you need in order to watch the absences you like:
1. SELECT * FROM pa2001 INTO TABLE get_2001
WHERE pernr IN s_pernr AND
begda <= p_date AND
endda >= p_date.
2. CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
TCLAS = 'A'
PERNR = P_PERNR
INFTY = '2001'
BEGDA = P_BEGDA
ENDDA = P_ENDDA
TABLES
INFTY_TAB = GT_2001.
Plz reward if it helps you,
R.R
03-18-2007 8:53 AM
Look at report RPTENT00
Extract of <a href="http://help.sap.com/saphelp_46c/helpdata/en/35/b09272906b0f32e10000009b38f9b8/frameset.htm">Time recording for multiple persons and infotypes</a>
<u> </u>
Time Recording for Multiple Persons and Infotypes
In some branches of industry, employees planned and actual working times can fluctuate, which makes it necessary for working times to be recorded manually. In order to support this activity as much as possible, the report RPTENT00 has a new data entry screen that enables time recording for multiple persons and infotypes. You can use this report to record several infotypes for several employees at the same time. Not all types of data can be recorded using this report. If you want to record more complex time data, you should use the standard transactions for maintaining time data or fast entry.
Time data recorded using this report is stored in the R/3 System as:
Absences in the Absences infotype (2001), including quota deduction
Attendances in the Attendances infotype (2002)
Substitutions in the Substitutions infotype (2003)
Employee remuneration information in the EE Remuneration Info infotype (2010)
Control information for time evaluation and time balance revisions in the Time Balance Revisions infotype (2012)
Step-by-step procedure
1.Start the report RPTENT00
2.Select the persons and time period, and determine various options and default values on the report selection screen
3.Execute the report
4.The system displays the existing time data for the persons and days selected on the display screen. Enter, change or delete the time data on the entry screen
5.Save the data
6.The system displays a log with any system message that occurred when the data was posted
7.Use the standard transactions for maintaining time data or fast entry to postprocess the incorrect records (error handling)
Selection screen for report RPTENT00
On the selection screen you can use the following functions to select the data to be processed:
1.You can use selection options from the logical database PNP and additional report-specific selection according to the work schedule rule and the employees' time management status to select the persons and processing period.
2.You can choose the data recording view (day or person view) and entry mode (display or maintain mode).
3.You can select the infotypes to be processed or displayed (any infotypes you have not selected are hidden during processing). You can choose up to four time balance revisions as checkboxes.
4.You can specify various default values (Absence or attendance type, substitution type or times).
You can store the selection screen as a variant that can be called at any time.
Selection options from the logical database PNP
You can use the standard selection options of the logical database PNP.
If no time interval is specified, the report uses the current week (Monday through Sunday) as the default.
Report-specific selection
In addition to the selection options of the logical database PNP, selections can be made according to the employees' work schedule rule and time management status.
Time data recording
<u> </u>
Regards