Tamano de tabla interna

Colapsar
X
 
  • Tiempo
  • Mostrar
Limpiar Todo
nuevos mensajes
  • quillen
    Junior Member
    • ene
    • 9

    #1

    Tamano de tabla interna

    Hola a todos!!!!
    Conocen alguna funcion o metodo para medir el tamaño de una tabla interna???
    Preciso saber cuanto mide en MB, pues si supera los 20MB debo particionarla.

    Muchas gracias.
  • josefon
    Member
    • mar
    • 61

    #2
    tu puedes determinar el tamaño te tu tabla interna es decir puedes declarar algo asi

    DATA : BEGIN OF it_a OCCURS 2000,
    line(100),
    END OF it_a.

    donde 2000 creo que equivale a 20 megas no estoy seguro seria cosa de probar..

    saludos

    Comentario

    • crounly
      Senior Member
      • nov
      • 227

      #3
      Uhm... creo que esta orden te devuelve la memoria requerida cuando se define la tabla, igual te sirve:

      DESCRIBE TABLE <Nombre_Tabla> OCCURS N

      suerte.
      http://codigoderetorno.blogspot.com.es/

      Comentario

      • crounly
        Senior Member
        • nov
        • 227

        #4
        He encontrado este hilo en los foros de SAP, hablan sobre los tamaños en memoria de una tabla interna dependiendo del parametro OCCURS

        No me deja cojer el enlace, te pego el comentario:

        there is no such limit... but it depends on the memory alloted for the application server..
        moreover.. when we use occurs 0(zero) then 8 kb memory is being allocated to the internal table..
        similarly when occurs 2,3,4.... ....n , a memory of n x 8 kb is alloted .
        this memory allocation is in patches .. ie, when u use occurs 2 and suppose ur internal table has used up the alloted 16 kb memory then
        another 16 kb memory is allocated...
        but if ur internal tableis not that big to use this 16kb.. there is waste of memory ..
        so use occurs 0 when u are not sure about the size of ur internal table....and use occurs n when you are know the size.
        syntax:
        data: begin of <itab> occurs n,
        ....
        .........
        end of <itab>.

        Tambien he encontrado que hablan de esta clase CL_ABAP_MEMORY_UTILITIES

        espero que te ayude
        http://codigoderetorno.blogspot.com.es/

        Comentario

        Trabajando...