Skip to Content
author's profile photo Former Member
Former Member

In transaction CG02 'Error in buffer:update of nonexistent record'

Error in buffer:update of nonexistent record -> in cg02 transsaction. I am getting this error when changing the value of MATNR under identifier tab and on saving.

We have an exit in standard transaction in cg02.

On debug the standard CG02 transaction I found when the global buffer table LG_BUFTAB is empty , I am getting this error.

Pl provide details how this buffer table is updated.( I think it should have all our previous changes updated).

So that while updating the new changes , old changes is overwritten.

Since this buffer table is empty, I am getting the above specified error.

Pl provide your inputs to resolve this issue.

thanks

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Best Answer
    Posted on May 24, 2013 at 06:18 PM

    Dear Thenmozhi

    this is very "special". The topic is too complex to be explained here.

    PLease refer to:

    http://scn.sap.com/docs/DOC-41109

    you will find a list of some threads dealing with API/BAPIs etc. and the right use of them. PLease check OSS marektplace. There is in consulting OSS note referring to some ABAP code which should be part in your system. Here SAp is showing "how should it be done"

    E.g. check:

    http://www.se80.co.uk/sapreports/r/rc1_/rc1_1077_bapi_example_change.htm

    http://www.se80.co.uk/sapreports/r/rc1_/rc1_1077_bapi_example_dg.htm

    http://www.se80.co.uk/sapreports/r/rc1_/rc1_1077_bapi_example_general.htm

    C.B.

    Add comment
    10|10000 characters needed characters exceeded

    • Dear Thenmozhi

      I did not completely understood your scenario. Therefore I need to ask questions:

      1.) during the "read" of data only active data is read (usage etc.)

      2.) in your code you need to pay attention regardgin use of "Change numbers" as well

      3.) You can update an "existing" recor, or you can try to create a new one

      I did not really catch what you would like to achieve. Can you please try to explain step by step? Be aware of the fact: what you would liek to achieve is not simple and therefore I cna only provide hints not the complete solution

      C.B.