08-18-2011 10:35 AM
Hi to all experts,
I have a requirement to display the details exactly as in infotype 2050. When you check 2050 how it is displayed the annual calender i need to display exactly as it is .I tried using LDB, Macro, FM but the database table for 2050 doesnt exist.The p2050 is there but there is no pa2050. There is no underlying database table for that infotype 2050 (annual calender display).
I check some related fm
like module HR_PERSONAL_WORK_SCHEDULE
any information regarding this will be greatly appreciated.
THanks
08-18-2011 10:57 AM
08-18-2011 11:00 AM
08-18-2011 11:21 AM
Actually this information is retrieved based on the data of Planned Working Time, Infotype (0007) and Absences, Attendances and Substitutions (2001, 2002, 2003), there's no specific Infotype DB Table.
You were using the Correct FM to read the Employee's work schedule (Relevant data is retrieved in PERWS parameter)
CALL FUNCTION 'HR_PERSONAL_WORK_SCHEDULE' "XOQK064687
EXPORTING "XOQK064687
PERNR = PSPAR-PERNR "XOQK064687
BEGDA = FIA_BEGDA "XOQK064687
ENDDA = FIA_ENDDA "XOQK064687
SWITCH_ACTIV = 1 "XOQK064687
READ_CLUSTER = READ_CLUSTER "YMMAHRK037395
TABLES "XOQK064687
I0000 = M0000 "XOQK064687
I0001 = M0001 "XOQK064687
I0002 = M0002 "XOQK064687
I0007 = M0007 "XOQK064687
I2001 = M2001 "XOQK064687
I2002 = M2002 "XOQK064687
I2003 = M2003 "XOQK064687
PERWS = PSP2050 "XOQK064687
EXCEPTIONS "XOQK064687
ERROR_OCCURED = 1 "XOQK064687
ABORT_OCCURED = 2 "XOQK064687
OTHERS = 3. "XOQK064687
If you need to do something similar you'll have to check the IT2050 code