06-09-2006 11:40 AM
Hi All,
We need to capture all item/schedule level text changes for a PO in the user exit of ME22N: EXIT_SAPMM06E_012 (before saving of PO).
We need to capture both old value and new value of item/schedule level text.
If they are different we need to update a custom field of EKPO table.
How to do this?
Could you please give inputs for this requirement.
Thank you.
Regards
Meenakshi
06-09-2006 11:45 AM
hi
try to query tables
CDHDR & CDPOS which stores the changed document details with object class <b>EINKBELEG</b>
take a look at
CHANGEDOCU_CDPOS_READ
06-09-2006 11:45 AM
hi
try to query tables
CDHDR & CDPOS which stores the changed document details with object class <b>EINKBELEG</b>
take a look at
CHANGEDOCU_CDPOS_READ
06-09-2006 11:48 AM
Hi,
Use FM
CHANGEDOCUMENT_READ_HEADERS
CHANGEDOCUMENT_READ_POSITIONS
Regards,
Amole
06-09-2006 11:50 AM
Meenakshi,
Just a suggestion.
You need to make use of read_text and another FM which will give the buffered changed text (try with GET_TEXT_MEMORY) to compare for your requirement.
Regds
Manohar
06-09-2006 11:52 AM
Hi,
You can also use cdhdr,cdpos table with
objectclass as EINKBELEG.
Regards
Amole
06-09-2006 11:53 AM
Hi meenakshi,
1. We need to capture both old value and new value of item/schedule level text
The NEW values, we will get from the user exit itself.
<b>2. The OLD Values,
fire a SELECT query from the database, (for the same purchase order)
to get the old values, which are already saved.
</b>
regards,
amit m.