11-16-2006 4:46 AM
HI,
Do we have any standard program or a function module or at least any approach to delete the change history data for example the change history data for MM02 application.
Any suggestions wuld be really helpful.
regards,
shekar.
11-16-2006 5:20 AM
Hi,
Usually changes are stored in <b>Change documents</b>
The tables are <b>CDPOS </b>and <b>CDHDR</b>.
For material changes the Object Class is <b>MATERIAL</b>
Check this function module.
<b>C14O_CHANGEDOCUMENT_DELETE</b>
Also search function modules with selection parameter <b>changedoc*</b>
These options might help you.
--Ragu
11-16-2006 5:23 AM
Hi Shekar,
Why do you want to delete the change history of the material? I think it is not recommended.
Actaully we maintain change history in customizing, If you don't want to log changes for material, you just need to remove/deactive customization for material change history.
Thanks
Ramakrishna
11-16-2006 5:23 AM
U need to delete from CDPOS & CDHDR tables for the Material for which change history exists....Initially, check CDHDR for relevant fields & then go to CDPOS and get the relevant fields....U can delete data from these tables.