Application Development and Automation 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: 
Read only

Problem with HR_READ_INFOTYPE

Former Member
0 Likes
1,612

Hi,

I have a problem to use HR_READ_INFOTYPE to infotype 2011.

CALL FUNCTION 'HR_READ_INFOTYPE'

EXPORTING

pernr = zpernr

infty = '2011'

begda = zbegda

endda = zendda

IMPORTING

subrc = v_subrc

TABLES

infty_tab = ita_2011

EXCEPTIONS

infty_not_found = 1

OTHERS = 2.

the infty_not_found return 1, I not be the cause.

tks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,299

hi to all,

I comment them that it is able to solve my problems, a table exists TEVEN where they are all the registrations entered to the infotype 2011, then the validation carries out it directly to that table.

Thank you for the help.

Hi,

I have a problem to use HR_READ_INFOTYPE to infotype 2011.

CALL FUNCTION 'HR_READ_INFOTYPE'

EXPORTING

pernr = zpernr

infty = '2011'

begda = zbegda

endda = zendda

IMPORTING

subrc = v_subrc

TABLES

infty_tab = ita_2011

EXCEPTIONS

infty_not_found = 1

OTHERS = 2.

the infty_not_found return 1, I not be the cause.

tks.

8 REPLIES 8
Read only

Wil_Wilstroth
Active Participant
0 Likes
1,299

Hi Olivia,

Did you check whether your employee number has Time Event's (2011) data for that infotype? If the employee number does not have time event saved for that infotype, it will also return 1.

Maybe the date zbegda and zendda both having invalid date range?

Did you try searching for the data in PA30 for that employee?

Thanks

william wilstroth

William Wilstroth
Read only

0 Likes
1,299

tks, williams,

The infoty have two record for this employee

The zbegda an zendda correspond the data into infotype

I need that the function returns the information that has according to those parameters, since until the moment me this duplicating then doesn't carry out the validations.

tks.

Read only

0 Likes
1,299

Hi Olivia,

From the way i look at how you enter the value in the FM, it seems fine...

And since you said that there is data in 2011,

did you do a trace using se37 for this FM so you know where your FM goes wrong giving you back a return 1.

Hmmm...

Thanks

William Wilstroth

William Wilstroth
Read only

0 Likes
1,299

Williams,

I proved in the se37 and for the case I specify of the infotipo 2011 it doesn't work, I proved with another infotipo and there if I work, apparently the chart of the infotipo 2011 this directly to the clushter.

will that be the cause?

tks.

Read only

Former Member
0 Likes
1,299

please try fm HR_P2011_LIST_SHOW_FOR_PICK

Read only

0 Likes
1,299

hi to all,

I comment them that it is able to solve my problems, a table exists TEVEN where they are all the registrations entered to the infotype 2011, then the validation carries out it directly to that table.

Thank you for the help.

Read only

Former Member
0 Likes
1,300

hi to all,

I comment them that it is able to solve my problems, a table exists TEVEN where they are all the registrations entered to the infotype 2011, then the validation carries out it directly to that table.

Thank you for the help.

Read only

0 Likes
1,299

Hi Olivia,

Just to mention that you dont need to put validations in TEVEN..

There is a Function module called

HR_TMW_DB_READ_TEVENT which will directly solve your

purpose.