Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Runtime Error when I insert a data in a internal table

Hi people!!

I need to insert a counter in the same table to organize the data. But the sistem display me a RUNTIME ERROR.

This is the code:

  LOOP AT t_bsid .
    sytabix = sy-tabix.

    READ TABLE t_bsid WITH KEY blart = 'DZ' ordenador = ''.


    IF sy-subrc = 0.

      t_bsid-ordenador = v_contador + 1.

      MODIFY t_bsid  INDEX sytabix.

      READ TABLE t_bsid WITH KEY belnr = t_bsid-rebzg.


      t_bsid-ordenador = v_contador + 1.

      v_contador = v_contador + 1.

      MODIFY t_bsid  INDEX sy-tabix.

    ENDIF.

  ENDLOOP.

Thanks

Tags:
Not what you were looking for? View more on this topic or Ask a question