07-01-2011 2:38 PM
Hi,
I'm using the FM 'CCAP_REV_LEVEL_MAINTAIN' to update material Revision Level and Change Number.
CALL FUNCTION 'CCAP_REV_LEVEL_MAINTAIN'
EXPORTING
CHANGE_NO = gt_alv_table-naennr "Mat. New Change Number
* DOCUMENT_TYPE =
* DOCUMENT_NUMBER =
* DOCUMENT_VERSION =
* DOCUMENT_PART =
MATERIAL = gt_alv_table-matnr "Material Code
REV_LEVEL_NEW = gt_alv_table-nrevlv "Mat. New Revision Level
It's updating properly but when the material is updated by the t-code (MM02), the changes history is held. When using this function, only the last change is held and all other changes history are deleted.
Does anyone knows how to update revision level without losing its changes history*?
*Rev. Level changes history = MM03 t-code, Basic Data 1, hit Display Revision Level button.
Tks.
Edited by: rvsilvax on Jul 1, 2011 3:40 PM
07-01-2011 8:40 PM
07-02-2011 2:57 PM
07-06-2011 6:59 PM
07-07-2011 10:30 AM
Hi rvsilmax,
the SAP standard does not remove any CHANGE DOCUMENT. You may check the tables CDHDR and CDPOS and see that the full history exists.
If it is not shown in transaction, there may be a user modification. If not, feel free to post the question to SAP OSS - that's what you pay maintenance fees for.
Regards,
Clemens
07-07-2011 2:40 PM
Clemens, thanks for your reply.
When I use MM03 to see a material details (Basic Data 1 tab, Display Rev Level), let's say it is like that:
Rev Level ValidFrom Change No. CN Description
A 04/20/2009 CN-153688 SAP - Initial Materials and BOM Release.
E 08/12/2010 CN-02251971 Test Generic Materials
then I call the function as described above and, with the next suggested RevLevel ('F') and a CN informed ('CN-153962'), the result (in MM03) appear like that:
Rev Level ValidFrom Change No. CN Description
A 04/20/2009 CN-153688 SAP - Initial Materials and BOM Release.
F 05/07/2009 CN-153962 Test Generic Materials
So, if the history was kept, where is the corresponding record of RevLevel 'E' and CN 'CN-02251971' for that material?