MUNDOSAP

MUNDOSAP (foro/index.php)
-   Programación ABAP IV (foro/forumdisplay.php?f=4)
-   -   Tamano de tabla interna (foro/showthread.php?t=12870)

quillen 23/04/08 16:53:49

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 23/04/08 22:02:17

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

crounly 24/04/08 07:47:38

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.

crounly 24/04/08 08:05:09

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


Husos Horarios son GMT. La hora en este momento es 10:41:00.

www.mundosap.com 2006 - Spain
software crm, crm on demand, software call center, crm act, crm solutions, crm gratis, crm web