cancel
Showing results for 
Search instead for 
Did you mean: 

HR_READ_INFOTYPE...not working.. for infty 2011

Former Member
0 Kudos

hi

i have just put this code and its not working for the pernr for which i have data..which i can c in pa20 transaction.

actually its throwing exceptionn as infotype not found.

where as 2011 is std infotype...

DATA : p_2011 TYPE STANDARD TABLE OF p2011 WITH HEADER LINE.

start-of-selection.

get pernr.

CALL FUNCTION 'HR_READ_INFOTYPE'

EXPORTING

pernr = pernr-pernr

infty = '2011'

TABLES

infty_tab = p_2011

EXCEPTIONS

INFTY_NOT_FOUND = 1

OTHERS = 2.

end-of-selection.

plz help me

regards

vivek

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Vivek,

Time Events are storing in table TEVEN, only if you are using any third party terminal to record the time datas.

Good Luck

Om

Reward it, if u feel helpful.

Former Member
0 Kudos

hi om prakash

i didnt get you..

i know data is stored in teven table..in my case..but as it has many entries for particular date...

i have to take data from it2011

i hope u understood the problem

regards

vivek

suresh_datti
Active Contributor
0 Kudos

The previous response is correct.. Time Events are stored in the TEVEN db Table.. the Infotype 2011 is only a frontend to load this table.. you cannot use HR_READ_INFOTYPE in this case as the Infotype 2011 table ( PA2011 ) doesn't exist. PL go through the following <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/8a/98589346c411d189470000e829fbbd/frameset.htm">SAP Help</a> on Infotype 2011.

You can use the function call HR_EVENT_READ to read the Time events data displayed on Infotype 2011.

~Suresh