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

Question to access method object

Former Member
0 Likes
542

Look my code class :

CLASS myclass DEFINITION.

PUBLIC SECTION.

METHODS:

get_data_list.

get_data_list_spe.

ENDCLASS.

CLASS myclass IMPLEMENTATION.

METHOD get_data_list.

... my code

ENDMETHOD.

METHOD get_data_list_spe.

me->get_data_list.

ENDMETHOD.

ENDCLASS.

The ABAP compilator reject this code because me->get_data_list is not defined. Is it possible to call a other method ? if yes how can i get this in my code ?

Thanks

Cheers

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
502

Hi,

you have tho call the oder method like this:

call method me->get_data_list.

and not

me->get_data_list.

then it works..

Regards,

Gianpietro

3 REPLIES 3
Read only

Former Member
0 Likes
503

Hi,

you have tho call the oder method like this:

call method me->get_data_list.

and not

me->get_data_list.

then it works..

Regards,

Gianpietro

Read only

0 Likes
502

Shame on me

Thanks and 10 points for you

Read only

alejandro_bindi
Active Contributor
0 Likes
502

Actually, there are two valid syntaxes:

You can use this syntax as already suggested:


CALL METHOD me->get_data_list.

And this one is also valid:


me->get_data_list( ).

Notice the space between the braces.

Regards