Skip to Content
0
Jul 01, 2011 at 01:38 PM

Material Rev Level Update

116 Views

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