06-22-2016 2:44 PM
Hello All,
Thanks to the people who are supporting me for long time .
Below is the issue which i am facing .
I have written ALV grid with oops .I even had double click event .
After alv display if i click back its coming to selection screen ,If i click still back instead of leave program its coming to alv screen .
06-22-2016 2:50 PM
Seems you coded some CALL SCREEN instead of a LEAVE SCREEN (LEAVE TO SCREEN, SET SCREE or similar code)
Regards,
Raymond
06-22-2016 2:47 PM
Try "Leave to screen 0" instead of "call screen 1000" in your PAI
06-22-2016 2:54 PM
Hello Marc Altabus,
Thanks for your reply .
if i write leave to screen 0 .after that it goes to handle double click event and leading to dump .
Method call sequence .
INITIALIZATION.
* *class declaration
DATA : lcl_storage TYPE REF TO lcl_storage.
DATA : lcl_event TYPE REF TO lcl_event.
CREATE OBJECT : lcl_storage.
*-------------------------------------------------------------------------------------*
* Start of selection
*-------------------------------------------------------------------------------------*
START-OF-SELECTION.
CALL METHOD : lcl_storage->get_mlgn,
lcl_storage->get_mlgt ,
lcl_storage->get_text,
lcl_storage->get_final,
lcl_storage->build_fieldcat,
lcl_storage->hotspot_click,
lcl_event->handle_double_click.
Dump :
An exception has occurred which is explained in more detail below. The
exception, which is assigned to class 'CX_SY_REF_IS_INITIAL' was not caught and
therefore caused a runtime error. The reason for the exception is:
You are trying to access a component with a 'ZERO' object reference
(points to 'nothing'). Variable: "LCL_EVENT".
An object reference must point to an object (an instance of a class)
before it can be used to access a component. The reference has either
never been set, or it was set to 'ZERO' with a CLEAR statement.
79 START-OF-SELECTION.
80 CALL METHOD : lcl_storage->get_mlgn,
81 lcl_storage->get_mlgt ,
82 lcl_storage->get_text,
>>>>> lcl_storage->get_final,
84 lcl_storage->build_fieldcat,
85 lcl_storage->hotspot_click,
86 lcl_event->handle_double_click.
06-22-2016 2:50 PM
Seems you coded some CALL SCREEN instead of a LEAVE SCREEN (LEAVE TO SCREEN, SET SCREE or similar code)
Regards,
Raymond
06-22-2016 2:58 PM
06-22-2016 3:32 PM
To make it more clear .
I have 3 screen's
1000-Selection screen
8889- Alv Report
8888-Model Dialog box.
If i double click on 8889 screen and go to 8888 do some action and come back .
Once i am back to 8889 screen if can go to selection screen if i write ( Call selection-screen) if i write leave screen 0 or leave screen its calling 8888 screen .
06-22-2016 3:52 PM
How do you handle the back button in the ALV? (PS: of course you must not use CALL SELECTION-SCREEN from your ALV to return to the selection screen, because when you leave the selection screen, you come back to the ALV)
06-22-2016 4:06 PM
You should have a logic like
SELECTION-SCREEN 1000 |
CALL SCREEN 8889 1000 8889
CALL SCREEN 8888 1000 8889 8888
SET/LEAVE SCREEN 1000 8889
SET/LEAVE SCREEN 1000 |
Remember LEAVE TO SCREEN 0 / SET SREEN 0 + LEAVE SCREEN will go to the statement following previous CALL SCREEN
Regards,
Raymond
06-22-2016 4:26 PM
Thanks its working now.
I have written call screen due to which i am faced issue .