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: 

Material Rev Level Update

RafaelVieira
Active Participant
0 Kudos

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

5 REPLIES 5

RafaelVieira
Active Participant
0 Kudos

Any suggestions?

Please, I need it immediate.

Tks.

0 Kudos

keep cool.

Regards,

Clemens

0 Kudos

Any suggestion?

0 Kudos

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

0 Kudos

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?