on 04-27-2009 10:26 AM
hi friends...
I am practising the WDA programs...
in that they hav used this code
data wd_table type ref to cl_wd_table.
wd_table ?= view->get_element( 'TABLE' ).
wd_this->table_control ?= wd_table->_method_handler.
wd_this->table_control->set_key_attribute_name( 'MATNR' ).
i don't know why they used this code...
here ( ?= ) what is the purpose of this ?= ?
what is the purpose of this class cl_wd_table ?
i am not clear with all statement, can you guide me..
i am waiting for ur reply
regards
Deva
cl_wd_table is runtime class for Table UI Element.
Look out for Table Details in : http://help.sap.com/saphelp_nw70/helpdata/EN/b5/ac884118aa1709e10000000a155106/frameset.htm
Thanx.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
The symbol ?= symbol represents down cast that means we are assging the properties of the parent to the child class . You can observe here wht is the parent class and wht is the child and wht they are tryng to assgin here .
Then you will clearly understand why are they usign this symbol .
GoodDay.
Regards,
Sana.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
?= this is called downcast or narrow casting operator in abap.
The purpose of this is assignment between reference variables in which the static type of the target varible more specific than the static type of the source varible.
Check this link, hope it helps !
[https://help.sap.com/saphelp_nw70ehp1/helpdata/en/c3/225b5f54f411d194a60000e8353423/frameset.htm]
Radhika.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
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.