2006 Jun 27 11:39 AM
In MM03
Tab at upper part. Environment->Display Changes.
It will show all changes done to the material with user name and transaction code.
After hitting the tab display changes,there s an int.table icdhdr & icdpos are getting populated with unique change number for every change.
Can you pls tell me at which place this tables are getting populated.i tried but didnt get.
i know it was populated from database table cdhdr & cdpos ,i want in the coding side in which Fun.Mod or in which perform this int tables are populated...
Good points will be rewarded.
Thanks,
Ponraj.s.
2006 Jun 27 11:43 AM
Hi Ponraj!
It's in function module MATERIAL_WRITE_DOCUMENT, but be careful when thinking about some changes...
Regards,
Christian
In MM03
Tab at upper part. Environment->Display Changes.
It will show all changes done to the material with user name and transaction code.
After hitting the tab display changes,there s an int.table icdhdr & icdpos are getting populated with unique change number for every change.
Can you pls tell me at which place this tables are getting populated.i tried but didnt get.
i know it was populated from database table cdhdr & cdpos ,i want in the coding side in which Fun.Mod or in which perform this int tables are populated...
Good points will be rewarded.
Thanks,
Ponraj.s.
2006 Jun 27 11:43 AM
Hi Ponraj!
It's in function module MATERIAL_WRITE_DOCUMENT, but be careful when thinking about some changes...
Regards,
Christian
2006 Jun 27 11:45 AM
Hi ponraj,
"CHANGE DOCUMENTS" in SAP Terminology
1 The same thing which u are asking
we had developed here. For Eg : Any change
in the material master will be detected
and a mail will be sent to the concerned
employee.
THIS WILL ALSO DETECT WHICH FILEDS HAVE CHANGED.
IT CAN ALSO GIVE, The Old Value, And The New Value.
2. This Mechanism is called CHANGE DOCUMENTS in
SAP Terminology
3. 2 Fuction Modules are Required.
(They will fetch necessary data from CDHDR,CDPOS)
CHANGEDOCUMENT_READ_HEADERS
CHANGEDOCUMENT_READ_POSITIONS
4. The First FM gives list of all
records ( with change no) which have changed.
5. Loop at the above and the second FM will
provide the details (old-val, new-val) for
each record.
6. While using 1st Fm, i used docclass as 'MATERIAL'.
BCOS
the concept of change documents is applicable
to other type of documents also (depends upon
customization)
regards,
amit m.
2006 Jun 27 11:49 AM
Go to the source code of the program MM03AI00 and see that the function modules
CHANGEDOCUMENT_READ_HEADERS
CHANGEDOCUMENT_READ_POSITIONS are used to get the change documents.
REgards,
Ravi