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: 

Calling Methods

ammad_zaman
Explorer
0 Kudos

hi

i have just read the class, method instance etc i have created Class defination and Class Implementation created a method . any one can help me that how to call the method ?? kindly explain with example

regards

Ammad

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Use:

Class->Method (Instance of a class is required)

Ex:

Data: t_grid type ref to cl_gui_alv_grid.

Create object T_grid.

Call T_grid->Set_table_for_first_display.

Class=>Method ( Call a static class no instance required.)

Ex:

CL_GUI_ALV_GRID=>GET_FOCUS (Static Method)

Regards,

Gurpreet

2 REPLIES 2

Former Member
0 Kudos

use like thi

CL_JAVA_SCRIPT=>CREATE( ).

where CL_JAVA_SCRIPT is class.

and CREATE( ). is method

кu03B1ятu03B9к

Former Member
0 Kudos

Use:

Class->Method (Instance of a class is required)

Ex:

Data: t_grid type ref to cl_gui_alv_grid.

Create object T_grid.

Call T_grid->Set_table_for_first_display.

Class=>Method ( Call a static class no instance required.)

Ex:

CL_GUI_ALV_GRID=>GET_FOCUS (Static Method)

Regards,

Gurpreet