on 05-04-2011 9:15 AM
Hi
I am using an assistance class and have specified it in the component...
i am getting the error Access via null obj ref not possible at following point in the code..
temp = wd_assist->IF_WD_COMPONENT_ASSISTANCE~GET_TEXT( key = '001' ).
i do not think we need to instantiate a assistance class ( or am i missing something ?/ )
do you have a text element created in your assistance class with key '001'?
Regards,
Ashish Shah
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I tried it is working fine for me..
data lv_str type string.
CALL METHOD wd_assist->if_wd_component_assistance~get_text
EXPORTING
key = 'HEL' "It is atext symbol/elemnt present in my component assistance class
receiving
text = lv_str .
Have you checked wether you are getting the error at the same place..ST22 can you check again for detailed error and paste it here..
Regards,
Lekha.
Hi,
After reading all these posts and i have done a small test , it is working for me as the other posts already confirmed. I am not sure why it is not working for you the way you described and it is working for all others.
I hope that you are not executing this code from used component->view referring the WD_ASSIST where in the wd_assist reference is not passed.
moreover to make sure that the error is from this code you can code a if else construct.
if wd_assist is bound.
" get the text element.
endif.
If the above code is working then i suspect that the text element is not active .
Success.
Hi ,
Try calling the assistence class method as
temp = wd_assist->GET_TEXT( key = '001' ).
Thanks,
Aditya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.