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 differentaite between material created on & material changed ??

Former Member
0 Kudos

Hi all,

How to differentiate between material created and material changed???

is there any flag or indicator present to differetiate between two....please guide me.

Thanks,

Ashu

5 REPLIES 5

Former Member
0 Kudos

u can check the tables :CDPOS and CDHDR ..

look at field CHNGIND in CDPOS .. the values are

U, I, E, D ..

I is for insert ..

U for Update

E for Delete (single field documetation)

D for delete

GauthamV
Active Contributor
0 Kudos

hi,

check these fields in table MARA.

ERSDA - Creation date

ERNAM - Name of Person who Created the Object

LAEDA - Date of Last Change

AENAM - Name of person who changed object.

Former Member
0 Kudos

Hi,

In table MARA you will find two fields ERSDA(created on) and LAEDA(date of last change).compare this two fields if both are equal then that material not changed otherwise it is changed.

Reward if useful.

Regards,

Swetha.

Former Member
0 Kudos

Hi,

Write a query on mara filtering MATNR, ERSDA, LAEDA.

Those materials which dont have a LAEDA value have not been modified, those which have a value are changed materials.

tc

sajimon chandran

Former Member
0 Kudos

Hi Ashu,

I just want to clarify one point from you.

i always prefer to hit MARA with below feilds, if you want track singe change of the material

ERSDA - Creation date

ERNAM - Name of Person who Created the Object

LAEDA - Date of Last Change

AENAM - Name of person who changed object.

some times material may change multiple times, in these cases we need to hit CDPOS and CDHDR

to track the material changes....

or you can create a custom table with the feild time & date of change...and when ever material getting changed

in the ME21n exit update one entry in custom table.

Many Thanks

Raghu