cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Deleting Task of a Cproject

trupti_raikar2
Explorer
0 Likes
830

Hi ,

I have a requirement to delete a Task from the project through report.

I used

BAPI_BUS2175_DELETE . The function module is returning below information message

157 BOR object Task '00000000000000024109': BAPI method DELETE

But task is not getting deleted.

I also tried using /RPM/OBJECTS DELETE. but couldn't succeed. 

Please suggest some solution.

-Trupti

Accepted Solutions (1)

Accepted Solutions (1)

hanspeterbaier
Active Participant
0 Likes

Hi Trupti,

are your using accounting integration? Is the task 'transferred' to e.g. PS? In this scenario you can't delete tasks, if they are 'transferred' to PS.

br,

Peter

trupti_raikar2
Explorer
0 Likes

Hi Peter,

No. Its a simple task created in Cprojects.  Nothing related to PS. I am able to delete it through UI. But unable to delete it through code. Tried even with referring code used by UI.

😞

-Trupti

Former Member
0 Likes

Hi Trupti,

Are you getting any error message in the Return parameter of the BAPI"BAPI_BUS2175_DELETE"

Also are you using "BAPI_CPROJECTS_COMMIT_WORK" for committing work ? Please check Function module documentation once of "BAPI_BUS2175_DELETE".

Regards,

Alex

trupti_raikar2
Explorer
0 Likes

The Bapi BAPI_BUS2175_DELETE  didnt work independently or in report.

The call to it with in BADI implementation worked for me and task deleted successfully

Former Member
0 Likes

Hello Trupti,

What Implementation (code) made in BADI implementation class "DELETE_EXIT_IN".

trupti_raikar2
Explorer
0 Likes

I just called the fm BAPI_BUS2175_DELETE  inside my BADI and it worked. 


But then actual cause was ,

BAPI_BUS2175_DELETE  expect project to be in change mode. Even in standalone code too , if we set the Project in change mode before calling BAPI_BUS2175_DELETE it works.

Former Member
0 Likes

Thanks Trupti .

I could able to delete tasks associated with project definition. But unable to delete tasks created under Phase .

trupti_raikar2
Explorer
0 Likes

It should work. But then Try putting relevant phase is change mode and call the delete bapi

Answers (0)