cancel
Showing results for 
Search instead for 
Did you mean: 

Question regarding Absence Request BAPI

Former Member
0 Kudos

Hello:

We are trying to create Absence Requests in PA2001 using the BAPI "BAPI_PTMGRATTABS_MNGCREATION". After we lock the record and run the above BAPI, we get the return message "Attendance/absence record transferred to posting without errors", but no record is created in PA2001. The ReturnNumber is 11.

Any suggestions on what we are doing wrong or is the BAPI executing as designed, but we have some configuration errors?

Thanks!

Regards

Rajesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You probably have to call BAPI_TRANSACTION_COMMIT after the BAPI runs in order to commit the work.

Thanks,

Brian

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Rajesh,

You'll have to use BAPI_TRANSACTION_COMMIT after this BAPI call. Most of the BAPI do not come with implicit COMMIT WORK and this happens to be one of them.

So, you can not do a single test of this BAPI using SE£& transaction as the data won't be committed to the database.

Thanks, Debasish

Former Member
0 Kudos

We assumed the BAPI came with a commit...it did not...