on 10-13-2008 10:23 AM
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
Do you have sufficient leaves availble
Best Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.