Hi Team,
While designing an HR Head count report, I've an requirement as shown in the Screen Shot below.
So, Actual requirement is i need to maintain, Closing Head count of previous month to be an opening head count of the next month.
Closing Head count:-it is based on selection showed in the screenshot Below
Joinee:- it is based on selection showed in the screenshot below
Resignee:- it is based on selection showed in the screenshot below
Transfer In:- it is based on selection showed in the screenshot below
Transfer Out is based on the ABAP/4 code return at the End Routine Level that is mentioned below.
l_date = wa_result-CALDAY + 1. " get start date for next transfer
READ TABLE it_psa into wa_psa WITH KEY
pernr = wa_result-EMPLOYEE
CALDAY = l_date " check start date
massn = '07'.
if sy-subrc = '0'.
if wa_psa-massg = '02' or wa_psa-massg = '01'.
wa_result-/bic/ZHDCNTTRA = '1'.
So, Kindly some one help how to keep the Opening Head of next month will be an closing head count of the previous month.
Thanks & Regards.
P Sriram