cancel
Showing results for 
Search instead for 
Did you mean: 

"=>" Usage?

Former Member
0 Kudos

Hi,

When and in which scenarios is the operator "=>" used in WD-ABAP. Probably i know just two scenarios, if someone can give me the name of this opeartor and in some other case in which it would be used, just reply to this thread.

Scenarios:

1: When Accessing child element of a node directly from a root context node.

2: Accessing the methods of a class directly with a class name.

Please lemme know.

Thanks & Regards.

Ashish

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

This is ABAP OO concept and not related to WDA. This symbol means that u can access the statis method or attributes of the classes ie without creating a object you can call the method or attribute.

I think this will clear you Question.

best Regards,

Vijay

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ashish,

the =>operator is the ABAP static method operator.

Ie not instance but static class.

Not a WDA specific concept. Pure ABAP OO question.

so you use it CLASS_NAME=>METHOD

where as an instance is

create object lr_x

lr_x->method

hope that helps

regards

Phil