on 06-12-2008 9:43 AM
Hi all,
I'm new to Web Dynpro for Abap development and just experimenting with the basics.
I have the follwing code in a view:
DATA lv_return TYPE i.
lv_return = wd_this->get_next_index( ).
The methode declaration, declared in the same view is like that:
Parameter = RETURN
Type = Returning
RefTo = checked
Opt = unchecked
Associated Type = i
method GET_NEXT_INDEX .
endmethod.
The code line
lv_return = wd_this->get_next_index( ).
produces the error
The result type of the function method cannot be converted into the type of LV_RETURN. type of LV_RETURN
What have I missed here? Any hint is highly appreciated!
Regards and thanks,
Martin Muellenberg
Hi Martin,
Uncheck the "ref to". This is to be used only for references of class/interfaces. Since your parameter is only an integer, ref to is not required. Uncheck it and it should work.
Regards,
Nithya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.