Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Delete services from PO

Former Member
0 Kudos

Hi all.

I need some help deleting services from a PO. I have tried BAPI_PO_CHANGE but it specifically says that it can not be used for deleting services only creating new ones. Does anybody know another way to delete services, is there a function module another BAPI or mabye another solution?

Regards

Liselotte Hjelmbjerg

2 REPLIES 2

Former Member
0 Kudos

Hi Liselotte,

You must use the customer exit 002 (actually function module EXIT_SAPL2012_002).

Inside you will find an Include (ZXMEWU09). This include you must create (if it doesn't exist already).

Now to delete any service you go to the table structure POSERVICES and set the field DELETE_IND to 'X' for each service you want to remove.

That's all.

Regards,

Rob.

0 Kudos

Hi Rob.

I have tried the approach you suggested, but it does not seem to work. I set the delete_ind to 'X' for all the dervices i want to delete, and afterwards i call BAPI_TRANSACTION_COMMIT but nothing changes. What am i doing wrong?

Regards

Liselotte