Application Development 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: 

call the CALL METHOD and CREATE OBJECT

Former Member
0 Kudos

Hi Friends,

How to call the CALL METHOD and CALL OBJECT in the se38 edit program.For example for calling the FUNCTION MODULE we can use the pattern in that using the call function we can get the function module in the se38 edit.but in METHOD hoe to call if you explain me in detail it would be very much usefulfor me.

Thanks,

Regards,

Rajendra Kumar

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi rajendra,

its the same way we do. call pattern ..there will be another radiobutton whcich says 'ABAP objects' , give the method name and the class name there.. this will call the method similar to function module..

we can also write our own classes and methods...

say..you created your own class c1 and method m1

then first create the instance of the object..

data:obj1 type ref to c1.

create object obj1.

call method obj1->m1.

Regards,

Vidya.

2 REPLIES 2

Former Member
0 Kudos

Hi rajendra,

its the same way we do. call pattern ..there will be another radiobutton whcich says 'ABAP objects' , give the method name and the class name there.. this will call the method similar to function module..

we can also write our own classes and methods...

say..you created your own class c1 and method m1

then first create the instance of the object..

data:obj1 type ref to c1.

create object obj1.

call method obj1->m1.

Regards,

Vidya.

0 Kudos

Hi Vidya,

Thanks a lot for the explaination and i understood to do.

Thanks,

Raj.