Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Reading infotype 2050 ( No database table )

Former Member
0 Kudos

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

3 REPLIES 3

sivaprasad_ml
Participant
0 Kudos

Hi,

Have you tried with HR_READ_INFOTYPE fuinction module ?

Rgds

0 Kudos

Yes i tried using hr_read_infotype.

Thanks

0 Kudos

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