A.Ikram
A.Ikram

Reputation: 95

What does ?= mean in ABAP

Can someone explain what does a question mark before an equal symbol mean?

lo_obj ?= <lo_kernel>.

Upvotes: 2

Views: 1045

Answers (2)

Moumita Pal
Moumita Pal

Reputation: 61

?= is used for explicit downcast. Although it is not required for character type but recommended to use for other data type to avoid any unexpected short dump.

The best way is to check if the data element has any Routine(i.e Conversion Exit).

Upvotes: 6

Florian
Florian

Reputation: 5061

?= is the casting operator, a shorter synonym for CAST.

Upvotes: 4

Related Questions