on 04-30-2007 2:29 PM
Hi,
<b>1) when i use this code WDDOMODIFYVIEW method, it is not showing any error.</b>
DATA TV4 TYPE REF TO CL_WD_TEXT_VIEW.
tv4 ?= view->get_element( 'ID OF ELEMENT' ).
TV4->SET_TEXT ( 'ABC' ).
<b>2)
I have one more own method called DISPLAY, which contains</b>
DATA TV4 TYPE REF TO CL_WD_TEXT_VIEW.
tv4 ?= myview->get_element( 'ID OF ELEMENT' ).
TV4->SET_TEXT ( MSG ).
I am calling this method from one event ONACTIONGETTRIPS
I am passing two parameters myview & msg.
CALL METHOD DISPLAY EXPORTING MSG = 'xxxx'.
<b>but it is showing error: </b> <u>Result type of the fuction cannot be converted into the type of TV4.</u>
I had come across a similar problem.
It worked when i changed the ID.
I dont remember exactly -- but it was something like i changed 'ORT01' to 'ORT1'.
although it sounds silly ..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mog.
The ID that you pass to the get_element method is the same?
Cheers,
Sascha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.