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: 

Function module for changing service line item in PO

Former Member
0 Kudos

Hi,

Is there any function module or class for changing the service line item values in Purchase order?

while creating PO, if we select the item category as 'D'. we will be getting the service tab like account assignment tab.

in service tab we are having multiple service line item.

i want to change the price of some service line items programatically.

if any one knows the function module/ Class for changing the PO service Line item please let me know

Thanks in advance

Laxman

4 REPLIES 4

raymond_giuseppi
Active Contributor
0 Kudos

in BAPI BAPI_PO_CHANGE parameter table POSERVICES. (Look at OSS [Note 561507 - BAPI_PO_CHANGE for services|https://service.sap.com/sap/support/notes/561507] for more information, this is the note released with this parameter)

Regards,

Raymond

0 Kudos

Raymond ,

Recently we are upgraded to ECC 6.0. all the changes that are mentioned in the note are implemented in ECC 6.0

when i Check the bapi_po_change function module documentation it clearly says that " you can oly created service item, you cannot change them ".

I have tried to change the price of service entry with BAPI_PO_CHANGE. but it not changing.

please help me is there any alternative process to change the serivce price.

Thanks for helping me in this and sorry for the late reply due to vacation

Thanks

Laxman

0 Kudos

Make sure you are using BAPI_TRANSACTION_COMMIT after calling the BAPI.

0 Kudos

J@y,

yeah, I'm using 'BAPI_TRANSACTION_COMMIT' after the callin the BAPI.

In the return table of 'BAPI_PO_CHANGE'. I'm getting the message 'NO DATA CHANGED'

Thanks

Laxman