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: 

HR Book leave and get leave entitlement under Infotype 2001 or 2006

Former Member
0 Kudos

Hello Experts,

hope i post this in the correct category.

I am using JCO in connection with some Bapis.

I am using BAPI_PTMGRATTABS_MNGCREATION for adding leave in SAP (infotype 2006)

This works fine, I've got all return values

1st Question

what's the difference between Infotype 0005 and infotype 2001 regarding HR ?

To my opinion, leave was managed with infotype 2001 before 2006 was

introduced and in this case, remaining leave could be accessed via Infotype 0005

2nd Question.

Can the BAPI from above also be used, when leave is managed with infotype 2001 ?

....Or do i have to use BAPI_ABSENCE_CREATE ?

if so -> where can i have a look für the return values of a BAPI

3rd Question

To gain Information abount remaining leave i user BAPI_TIMEQUOTA_GETDETAILEDLIST (infotype 2006)

To get the same for infotype 2001 i have to use BAPI_ABSENCE_GETDETAILEDLIST or ?

if so -> where can i have a look für the return values of a BAPI

thanks for any tips or a short description

bye

Christian

3 REPLIES 3

Former Member
0 Kudos

> Hello Experts,

>

> hope i post this in the correct category.

>

> I am using JCO in connection with some Bapis.

>

> I am using BAPI_PTMGRATTABS_MNGCREATION for adding leave in SAP (infotype 2006)

> This works fine, I've got all return values

>

> 1st Question

>

> what's the difference between Infotype 0005 and infotype 2001 regarding HR ?

> To my opinion, leave was managed with infotype 2001 before 2006 was

> introduced and in this case, remaining leave could be accessed via Infotype 0005

>

> 2nd Question.

>

> Can the BAPI from above also be used, when leave is managed with infotype 2001 ?

>

> ....Or do i have to use BAPI_ABSENCE_CREATE ?

> if so -> where can i have a look für the return values of a BAPI

>

> 3rd Question

>

> To gain Information abount remaining leave i user BAPI_TIMEQUOTA_GETDETAILEDLIST (infotype 2006)

>

> To get the same for infotype 2001 i have to use BAPI_ABSENCE_GETDETAILEDLIST or ?

> if so -> where can i have a look für the return values of a BAPI

>

> thanks for any tips or a short description

>

> bye

> Christian

Answers

1 : 0005 is all possible absences and the number allowed. So what you say is true...

2 : this bapi is correct

3 : use BAPI_ABSENCE_GETDETAILEDLIST

You'd already got the answers to your questions...

Former Member
0 Kudos

Fine. Many thanks

0 Kudos

Related with this infotype 0005 and 2001-2006.

should i create infotype 0005 first before 2001?

if yes, can i use HR_MAINTAIN_MASTERDATA for IT0005? seem this is not working when populate Q0005-UANSP for leave entilment.