cancel
Showing results for 
Search instead for 
Did you mean: 

Use of ?=

Former Member
0 Kudos

Hi Experts,

In Do_request we usually write the code lke,

data : firstview type ref to if_bsp_page.

dispatch_input( ).

firstview  ?= create_view( view_name = 'FIRST.HTM').

call_view( firstview ).
endmethod.

Here what is <b>?=</b> . What is the use of this Operator?

Thanks,

Poits assured.

Accepted Solutions (0)

Answers (1)

Answers (1)

guillaume-hrc
Active Contributor
0 Kudos

Hi,

It is the <i>cast</i> operator.

When the returned object does not have the same type as the object you want to assign it to, but is <b>compatible with it</b>, then have to use this operator.

Best regards,

Guillaume

athavanraja
Active Contributor
0 Kudos

for more on this check the following link (read sub heading <b>Casting</b>)

http://help.sap.com/saphelp_nw2004s/helpdata/en/c3/225b5f54f411d194a60000e8353423/frameset.htm