How to Update PO Item value using ABAP not Me22

Question: Hi Gurus,

An issue for an experienced programmer!!!!!

We have a custom program which is supposed to change the value of service items. Since this is simple ABAP code which is directly updating table ESLL etc so the changes dont get accumulated in the PO Item value EKPO.

Eg:

PO: 123456789
PO-item: 001
PO-Serv Item 01,02,03.

As can be seen from above the value of PO-item 001 is the summed up value of the 3 service items 01,02 and 03.

The std SAP transactions( Me21/22) takes care about all the value calculations before updating a database but since we have a custom prog which does a direct table update ONLY for service item values, the changes never are reflected at the PO-item.

So wanted to know if there any standard FM or logic to do it. In nutshell is there any std FM available which will update the item value if the service items value related to it are changed.
( I want to keep debugging the std SAP as the last option).

Has anybody done something similar.Pls share ur views.

Thanks heaps!!
FX3

Answer:
When you say you are directly updating ESLL - do you actually mean that you are modifying the data using "UPDATE" rather than through a SAP BAPI or BDC?

Yorkie
_________________
Nothing ever burns down by itself, every fire needs a little bit of help.

Answer:
Nobody in their right mind would do something similar! A direct table update is something that will invalidate your SAP support contract at best and can decimate your database integrity at the worst..

Have a look at BAPI_PO_CHANGE. This might do the job you're after.
_________________
Regards

R


Abap KC
SFMDR

Answer:
Hi Yorkie,

Thats right the program is directly modifying the value in ESLL without any BDC or BAPI. ( This is an existing program and I have to fix it... ).

R,
I very much agree with what you havementioned and thats the reason I posted the question here. The BAPI PO CHANGE so far doesnt seem to help me.
Do you know of any better way.

Thanks
FX3

Answer:
Am back again....

Does anyone have some idea


Cheers
FX3

Answer:
BAPI_PO_CHANGE should work and it is THE interface to change a PO. if its not working thats because you've missed out something before the BAPI call. debug and check your code.

Answer:
Hi Guest,

I have explored the BAPI_PO_CHANGE and it clearly states in the documentation under RESTRICTIONS that it is not possible to Change service data of a PO through this function.

Thats the reason I am trying to get some clues from all the expert Gurus here in the forum.

Anyways thanxs for your comments.

FX3
Copyright ?2007 - 2008 www.jt77.com