cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI for setting holiday values

Former Member
0 Kudos

Hi,

I'm badly searching for a BAPI to set the holiday information from outside of SAP.

We have a very nice and higly accepted system to request and confirm holiday of an employee. Full workflow supported.

The only thing missing is to automatically set the accepted and confirmed holiday in SAP. Till now we have to enter the data again manually in SAP.

Unfortunately I don't find anything.

Is there a already existing BAPI?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

thanks for info, but SAP shows me the function is obsolet, outdated:

"Note! This API method writes exclusively the IT 2001 (absences). It should not be used any longer. The use of these API method can lead to inconsistent time data."

Unfortunately, they don't lead me to which function I should use instead.

The BAPI should set all neccessary absence data including IT 0005 and remaining holidays...

Thanks in advance

suresh_datti
Active Contributor
0 Kudos

try BAPI_PTMGRATTABS_MNGCREATION

Regards,

Suresh Datti

Former Member
0 Kudos

Yes, this is what I found now too.

I'm just figuring out which import params I have to set,

so I'm searching for the absence type for vacation.

Thanks for your assistence

Former Member
0 Kudos

Here I am again

Next problem, next question ... Hope you bear with me...

Now I get the return code

Type Information

Number 11

~Absence passed to the booker without errors

(Hope, I the translation of the message from german to english is understandable and somewhat similiar to the original english message)

suresh_datti
Active Contributor
0 Kudos

Hi Knud,

PL use BAPI_TRANSACTION_COMMIT after the original BAPI call.

Regards,

Suresh Datti

Former Member
0 Kudos

So at least I have 4 bapi calls:

1. lock the user

2. send absence date

3. unlock user

4. send commit

It was a stony path to the goal, but it was a great pleasure to get such a great assistence.

Thanks so much.

Answers (1)

Answers (1)

suresh_datti
Active Contributor
0 Kudos

Hi Knud,

You can use BAPI_ABSENCE_CREATE.

Regards,

Suresh Datti