cancel
Showing results for 
Search instead for 
Did you mean: 

Updating task details with BAPI and then free the LUW for next updation of same task.

mk123monis
Explorer
0 Kudos

Hi All,

I am facing a problem,

first I am using BAPI_BUS2175_SET_STATUS BAPI for changing the status of task, then BAPI_CPROJECTS_COMMIT_WORK to commit the work, then in same program I am using

BAPI_BUS2175_CHANGE BAPI to change some details in the same task. and after that BAPI_CPROJECTS_COMMIT_WORK BAPI.

But, when the first BAPI is processed, the task object is then locked and not allowing the second BAPI to update the details.

However when first is not processing, then second is working.

I checked in BAPI documentation, that for using more than one BAPI for same object, we need to free the LUW.

The current LUW enables you to unlock and unload a single main object using the Free method or the BAPI_xxx_FREE BAPI function module.

But I am not able to find BAPI_BUS2175_FREE, (xxx = BUS2175 for task) and also not getting that how to use Free method to free unlock the task object.

Your suggestions will be very helpful.

Regards,

Monis

Accepted Solutions (1)

Accepted Solutions (1)

mk123monis
Explorer
0 Kudos

I used BAPI BAPI_BUS2172_FREE, and it works with the same GUID of the Task.

I think the GUID is common for Project also, as this BAPI is for unlocking and unloading the Project definition.

Answers (0)