Ver Mensaje Individual
  #4  
Viejo 27/01/10, 17:49:10
Rodolfo SAP Rodolfo SAP is offline
Member
 
Fecha de Ingreso: jun 2009
Mensajes: 89
Thumbs up Solución

La vdd este tema me ha dado mucha lata pero despues de mucho tiempo consegui una solución para estos temas lo cual aconsejo buscar un buen manualito de performance como por ejemplo....

Hacer uso de Field-symbols y estructutas.

Example.

TYPES: BEGIN OF ty_data,
value TYPE string,
END OF ty_data.



DATA: t_data TYPE STANDARD TABLE OF ty_data.

FIELD-SYMBOLS: <fs_data> LIKE LINE OF t_data.

y usar LOOP AT t_data ASSIGNING <fs_data>.
ENDLOOP.


o por ejemplo


usar la instruccion BINARY SEARCH y un SORT antes en la tabla y ocupando la structura.

SORT t_data BY k ASCENDING.
READ TABLE t_data INTO wa_data WITH KEY K = 'X' BINARY SEARCH.


o por ejemplo

Uso de índices para

COrrecto
DELETE t_dataFROM 450 TO 550. es preferible a:

Incorrecto
DO 101 TIMES.
DELETE t_data INDEX 450.
ENDDO.

O utlizar las herramientas que ya SAP nos proporciona por ejemplo o hasta funciones de mucha utilidad siempre hay algo que nos ayudara.

COLLECT
REPLACE
GET
FIND

El USO DE INDICES O VISTAS TAMBEˇIEN ES RECOMENDABLE.

etc etc




Saludos.
Responder Con Cita