Ver Mensaje Individual
  #13  
Viejo 02/07/10, 12:44:00
Siem Siem is offline
Member
 
Fecha de Ingreso: jul 2009
Mensajes: 33

He hecho la prueba al reves y tampoco va.

Cuando lo creo:
0050 --> 0300 --> ALV OO
Al hacer el refresh_table_display
0050 --> 0200 --> 0300 --> ALV OO -----> No se ve el ALV
0050 --> 0300 --> ALV OO --------------> OK


La primera vez que intento acceder a la dynpor 0300, evidentemente es initial, por lo que crea el ALV y lo muestra correctamente. Si vuelvo a acceder por el mismo camino,el refresh_table_display lo muestra correctamente. Pero si ahora accedo por el otro camino (Sin pasar por la dynpro 0200) el refresh_table_display no muestra el alv. En este caso el
g_grid_act no es initial.


Pego ahora el dump que da el metodo is_alive( )

Texto breve
Access via 'NULL' object reference not possible.

¿Qué ha sucedido?
Error in the ABAP Application Program

The current ABAP program "ZRFCTA_DEPOS" had to be terminated because it has come across a statement that unfortunately cannot be executed.

Anál.errores
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not caught in procedure "STATUS_0300" "(FORM)", nor was it propagated by a RAISING clause.
Since the caller of the procedure could not have anticipated that the exception would occur, the current program is terminated.
The reason for the exception is:
You attempted to use a 'NULL' object reference (points to 'nothing')
access a component (variable: "G_GRID_ACT").
An object reference must point to an object (an instance of a class)
before it can be used to access components.
Either the reference was never set or it was set to 'NULL' using the
CLEAR statement.

Eso es lo que me dice, simplemente por poner la linea:

DATA lv_state type i.

>>>>> lv_state = g_grid_act->is_alive( ).


De nuevo muchas gracias por tu tiempo, Ballan
Responder Con Cita