In my selection screen ...i wrote like this:
SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS : S_BEGDA FOR P2001-BEGDA,
S_ENDDA FOR P2001-ENDDA,
S_BTRTL FOR P0001-BTRTL.
SELECTION-SCREEN : END OF BLOCK B1.
Flow of the Report:-
1. Get Date(P2001- BEGDA and P2001- ENDDA) using selection criteria from selection screen
2. Get Personnel sub area from the table PA0001
3. Number of Occurrence is the Total number of Absences which were recorded in the specific period.
4. Get all the Absences from the table ZWSOABS which were recorded in the specific period (P2001- BEGDA and P2001- ENDDA).
5. Number of Workers is the Average number of workers who worked in the recording period excluding those persons who were absent from work on paid/unpaid leave for the entire period.
6. Get the Number of Workers from PA0000 using the following:
- Select Count(*) from PA0000 where PA0000-ENDDA = 31/12/9999 and PA0000-STAT2 = 3
7. Perform the report
Further Information:- The Incidence rate is the number of occurrences of injury/disease for each one hundred workers employed. The following formula should be applied:
Number of Occurrences in the period /Number of Workers * 100
The number of occurrences in the period refers to all cases of lost time injury/disease, which were recorded in the specific period. The number of workers is defined as the average number of workers who worked in the recording period. Persons who were absent from work on paid or unpaid leave for the entire period should be excluded from this calculation.
CAN ANYONE PLEASE SEND ME THE CODE?
YOUR HELP IS DEFINITELY REWARDED BY POINTS