Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

error Calling method in pattern

Former Member
0 Likes
423

Hi all,

I have gone thru a simple oops program locally in se38.

My doubt cant we call our local method using "pattern" .

while i m trying i m getting error.

my program is :

<code>

data : w_da type i.

class c1 definition.

public section.

methods : m1 importing input1 type i

input2 type i

returning value(result) type i.

endclass.

class c1 implementation.

method m1.

result = input1 * 2 + input2.

endmethod.

endclass.

start-of-selection.

data : obj1 type ref to c1.

create object obj1.

</code>

so after this when i m pressing "pattern" and in giving "in call method radiobutton"

obj1,c1 and m1.

then i m getting message as "unable to find method m1 for classs class c1.

can anyone hlep me regarding this.

Thnks,

kamal

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
364

This functionality only works for global classes which are defined with SE24.

Regard,

Rich Heilman

1 REPLY 1
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
365

This functionality only works for global classes which are defined with SE24.

Regard,

Rich Heilman