cancel
Showing results for 
Search instead for 
Did you mean: 

dump after going back from a view

joan_ayala
Participant
0 Kudos

i call view VIEW_SPRL from view VIEW_ALTA, and when i go back to VIEW_ALTA

using navigation plugs, this view is showed for about a second and inmediately

after i get the dump error "Access via 'NULL' object reference not possible"

Any idea ?

Should i display my code for VIEW_SPRL in the Handle_IN event ? Or is it ok

to have it as I do in the WDDOMODIFYVIEW() with the sentence:

CHECK first_time = abap_true

thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Joan,

put a breakpoint and debug .check traces in st22

Thanks

Bala Duvvuri

arjun_thakur
Active Contributor
0 Kudos

Hi Joan,

Have you done the coding for VIEW_SPRL view in its WDDOMODIFY method??

joan_ayala
Participant
0 Kudos

yeah i did the coding in WDDOMODIFYVIEW(), The reason is that I need the VIEW parameter in order to call the OfficeControl UI in the view VIEW_SPRL. But I think this is an error that SAP does not control...

Here is the code where I use the VIEW parameter in WDDOMODIFYVIEW():

* get the office control
  office ?= view->get_element( 'OFFICE_CONTROL' ).
  ASSERT ID SIOS_DEMO condition  office IS BOUND.

Edited by: Joan Ayala on May 14, 2009 9:21 AM

joan_ayala
Participant
0 Kudos

Arjun,

i debugged and the dump is occurring after WDDOMODIFYVIEW() of the

returning view (VIEW_ALTA), so that I can see the display of this view for a

few moments and then the dump message. The error is:

OBJECTS_OBJREF_NOT_ASSIGNED_NO

The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not caught in procedure "IF_WDR_CLIENT~GET_CLIENT_UPDATES" "(METHOD)", nor was it propagated by a RAISING clause.

Former Member
0 Kudos

Can you copy-paste the entire dump along with the call stack so that we can know more details.

Also you can go to ST22 and on the left side click on "Source Code Extract". This will take you to the line in code which caused the dump.

joan_ayala
Participant
0 Kudos

I don't think I can paste all this info here so that it can be nice displayed, but I will try anyway.

Call stack:

Nº Cl. Programa Include Lín.

Nom.

6 METHOD CL_WDR_CLIENT_SSR=============CP CL_WDR_CLIENT_SSR=============CM00T 142

CL_WDR_CLIENT_SSR=>IF_WDR_CLIENT~GET_CLIENT_UPDATES

5 METHOD CL_WDR_MAIN_TASK==============CP CL_WDR_MAIN_TASK==============CM00I 78

CL_WDR_MAIN_TASK=>EXECUTE

4 METHOD CL_WDR_MAIN_TASK==============CP CL_WDR_MAIN_TASK==============CM00J 69

CL_WDR_MAIN_TASK=>IF_HTTP_EXTENSION~HANDLE_REQUEST

3 METHOD CL_HTTP_SERVER================CP CL_HTTP_SERVER================CM01B 366

CL_HTTP_SERVER=>EXECUTE_REQUEST_FROM_MEMORY

2 FUNCTION SAPLHTTP_RUNTIME LHTTP_RUNTIMEU02 946

HTTP_DISPATCH_REQUEST

1 MODULE (PBO) SAPMHTTP SAPMHTTP 13

%_HTTP_START

Source code extract:

112 i_update_data = m_data_update_tmp

113 i_event_queue = event_queue.

114 enddo.

115

116

117 param_str = wdr_task=>request->get_form_field( mc_request_field_name ).

118 check param_str is not initial.

119

120 split param_str at ';' into table param_entries.

121

122 loop at param_entries into param_entry.

123 " skip client removed events

124 check param_entry is not initial.

125

126 clear event_param_1.

127 clear event_param_2.

128 clear event_param_3.

129 clear event_param_4.

130 clear event_param_5.

131 split param_entry at ','

132 into handler_id event_name event_param_1 event_param_2 event_param_3 event_param_4

133 replace all occurrences of '_' in handler_id with ''.

134 replace all occurrences of '_' in event_name with ''.

135 replace all occurrences of '_' in event_param_1 with ''.

136 replace all occurrences of '_' in event_param_2 with ''.

137 replace all occurrences of '_' in event_param_3 with ''.

138 replace all occurrences of '_' in event_param_4 with ''.

139 replace all occurrences of '_' in event_param_5 with ''.

140

141 event_handler = get_event_handler( handler_id ).

>>>>> call method event_handler->handle_event

143 EXPORTING

144 i_event_handler_id = handler_id

145 i_event_name = event_name

146 i_event_param_1 = event_param_1

147 i_event_param_2 = event_param_2

148 i_event_param_3 = event_param_3

149 i_event_param_4 = event_param_4

150 i_event_param_5 = event_param_5

151 i_update_data = m_data_update_tmp

152 i_event_queue = event_queue.

153 endloop.

154

155 m_data_update_tmp->send_to( client_application ).

156 m_data_update_tmp->clear( ).

Edited by: Joan Ayala on May 14, 2009 10:31 AM

Former Member
0 Kudos

HI,

data:
  lr_view_ele type ref to if_wd_view_element, 
  lr_office type ref to cl_wd_office_control.


lr_view_ele = view->get_element( 'OFFICE_CONTROL' ).
lr_office ?= lr_vew_ele.

Regards,

Lekha.

joan_ayala
Participant
0 Kudos

Lekha,

i got the same error with your code...

thanks

Former Member
0 Kudos

Hi,

Try to create the navigations agian and activate agian.

Are you trying to call any methods of the view1 in the view2.

Regards,

Lekha.

joan_ayala
Participant
0 Kudos

Lekha,

I don't call any method from view1 in view2.

Do you really think creating navigations again is gonna work ?

Did something similar happen to you ?

Former Member
0 Kudos

Hi,

Yes, there are chances. Delete the current navigations and test the application again.

Regards,

Lekha.

joan_ayala
Participant
0 Kudos

so you mean deleting the Navigation Links and creating them again ?

I don't have to delete and create the inbound and outbound plugs, right ?

Former Member
0 Kudos

Hi,

Yes, delete the link and create them again.

Aslo check the firing of plugs in the respective methods.

Wether they are being fired properly or not.

Regards,

Lekha.

joan_ayala
Participant
0 Kudos

I created the links again. The plugs are fired properly...

joan_ayala
Participant
0 Kudos

but still the same error !!!

Former Member
0 Kudos

Hi,

Can you debug before the point where you are getting the error.

How are you calling view2 in the view1 and viceversa...

Can you paste your code.

One more thing have you created the application for the component before the coding itself or after the final coding and active the compoenent you have created the application. Sometimes this also causese the proble. I'm unable to trace your error because of less inputs. I think there is a problem with the event handling.

Regards,

Lekha.