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: 

How to Capture item text changes in PO

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

Use FM

CHANGEDOCUMENT_READ_HEADERS

CHANGEDOCUMENT_READ_POSITIONS

Regards,

Amole

Manohar2u
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi,

You can also use cdhdr,cdpos table with

objectclass as EINKBELEG.

Regards

Amole

Former Member
0 Kudos

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.