on 05-11-2009 6:00 PM
Hi,
I am getting this error. I dont know why.
Plese help. Thx in advance for your kindly efforts.
Regards
ertas
The following error text was processed in the system I60 : Access via 'NULL' object reference not possible.
The error occurred on the application server apssap15_I60_00 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: WDDOMODIFYVIEW of program /1BCWDY/5NRD5TKGE1K9JUDKWN52==CP
Method: IF_WDR_VIEW_DELEGATE~WD_DO_MODIFY_VIEW of program /1BCWDY/5NRD5TKGE1K9JUDKWN52==CP
Method: DO_MODIFY_VIEW of program CL_WDR_DELEGATING_VIEW========CP
Method: MODIFY_VIEW of program CL_WDR_VIEW===================CP
Method: DO_MODIFY_VIEW of program CL_WDR_CLIENT_COMPONENT=======CP
Method: DO_MODIFY_VIEW of program CL_WDR_WINDOW_PHASE_MODEL=====CP
Method: PROCESS_REQUEST of program CL_WDR_WINDOW_PHASE_MODEL=====CP
Method: PROCESS_REQUEST of program CL_WDR_WINDOW=================CP
Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP
Method: IF_WDR_RUNTIME~EXECUTE of program CL_WDR_MAIN_TASK==============CP
I only have programmed the following code into views WDDOMODIFYVIEW
method WDDOMODIFYVIEW .
data lr_textview type ref to cl_wd_text_view.
data lr_flow_data type ref to cl_wd_flow_data.
data lr_container type ref to cl_wd_transparent_container.
IF first_time EQ 'X'.
lr_textview = cl_wd_text_view=>new_text_view( id = 'TXV_TOPIC'
view = view
text = 'Hello !' ).
lr_flow_data = cl_wd_flow_data=>new_flow_data( element = lr_textview ).
lr_container->add_child( lr_textview ) .
ENDIF.
endmethod.
Edited by: Ilhan Ertas on May 11, 2009 7:00 PM
Hi,
In your code, lr_container doesn't contain any value. That is why it is giving a dump message.
Use this statement
LR_CONTAINER ?= view->GET_ELEMENT( 'ROOTUIELEMENTCONTAINER' ). " pass the name of container in which you want to insert the UI element
And your code will look like:
data lr_textview type ref to cl_wd_text_view.
data lr_flow_data type ref to cl_wd_flow_data.
data lr_container type ref to cl_wd_transparent_container.
IF first_time EQ 'X'.
lr_textview = cl_wd_text_view=>new_text_view( id = 'TXV_TOPIC'
view = view
text = 'Hello !' ).
lr_flow_data = cl_wd_flow_data=>new_flow_data( element = lr_textview ).
LR_CONTAINER ?= view->GET_ELEMENT( 'ROOTUIELEMENTCONTAINER' ).
lr_container->add_child( lr_textview ) .
I hope it helps.
Regards
Arjun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.