cancel
Showing results for 
Search instead for 
Did you mean: 

Approve absence using BAPI_ABSENCE_APPROVE

Former Member
0 Kudos

Hello Experts,

I was able to create an absence using BAPI_EMPLOYEE_ENQUEUE, BAPI_ABSENCE_CREATE/REQUEST in a sequence. But not able to approve the same using BAPI_ABSENCE_APPROVE.

Approve BAPI has the following input fields(input data that I am passing):

1. EMPLOYEENUMBER - Emp Number

2. SUBTYPE - 0200

3. OBJECTID - 01 "not sure if I am using correct data here"

4. LOCKINDICATOR - X

5. VALIDITYBEGIN - Start date

6. VALIDITYEND - End Date

7. RECORDNUMBER - 000

8. NOCOMMIT - blank

It returns the following error " No Data record was saved in the selection period".

Any clues? where am I going worng?

Please help

Thanks

Sandhya

Edited by: Sandhya Vennu on Oct 13, 2008 12:54 PM

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Do you have sufficient leaves availble

Best Regards

Former Member
0 Kudos

Did you check that the record in PA2001 to ensure it was really in the database?

Then get the recordnumber and objectid from PA2001 for the pernr ....

Than should resolve your issue.

Hello Experts,

I was able to create an absence using BAPI_EMPLOYEE_ENQUEUE, BAPI_ABSENCE_CREATE/REQUEST in a sequence. But not able to approve the same using BAPI_ABSENCE_APPROVE.

Approve BAPI has the following input fields(input data that I am passing):

1. EMPLOYEENUMBER - Emp Number

2. SUBTYPE - 0200

3. OBJECTID - 01 "not sure if I am using correct data here"

4. LOCKINDICATOR - X

5. VALIDITYBEGIN - Start date

6. VALIDITYEND - End Date

7. RECORDNUMBER - 000

8. NOCOMMIT - blank

It returns the following error " No Data record was saved in the selection period".

Any clues? where am I going worng?

Please help

Thanks

Sandhya

Edited by: Sandhya Vennu on Oct 13, 2008 12:54 PM