cancel
Showing results for 
Search instead for 
Did you mean: 

purchase order layout

Former Member
0 Kudos

hello!

I am looking for the table that saves the information about which line was changed in trans ME22N, for example

if i change the quantity in line 10, and i didnt touch line 20, there has to be a flag showing this indication.

thanks

yifat

Accepted Solutions (0)

Answers (1)

Answers (1)

raguraman_c
Active Contributor
0 Kudos

Hi,

There are CDPOS and CDHDR tables that contain all the

document change details but since CDPOS is a clustered table, a join on this table with CDHDR may not be possible.

Or

Use these function modules.

<b>CHANGEDOCUMENT_READ_HEADERS</b>

Example:

CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'

EXPORTING

objectclass = 'EINKBELEG'

objectid = l_objectid

username = space

TABLES

i_cdhdr = lt_cdhdr.

LOOP AT lt_cdhdr WHERE udate IN s_aedat.

CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'

EXPORTING

changenumber = lt_cdhdr-changenr

TABLES

editpos = lt_editpos.

LOOP AT lt_editpos WHERE fname = 'LOEKZ'

AND f_new = 'L'.

p_desc = text-r01. " Cancel Contract

ENDLOOP.

ENDLOOP.

<b>CHANGEDOCUMENT_READ_POSITIONS</b>

Example:

CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'

EXPORTING

objectclass = 'EINKBELEG'

objectid = l_objectid

username = space

TABLES

i_cdhdr = lt_cdhdr.

LOOP AT lt_cdhdr WHERE udate IN s_aedat.

CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'

EXPORTING

changenumber = lt_cdhdr-changenr

TABLES

editpos = lt_editpos.

LOOP AT lt_editpos WHERE fname = 'LOEKZ'

AND f_new = 'L'.

p_desc = text-r01. " Cancel Contract

ENDLOOP.

ENDLOOP.

Check this link.

http://www.sap-img.com/mm001.htm

Hope this will solve your problem.

Feel free to revert back.

--Ragu