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

call method

Former Member
0 Likes
438

how do we call a method.

for calling a fn module we do : ctlr + F6

is there any short cut for calling a method ?

or do we have to type all the contents lyk

CALL METHOD cl_gui_frontend_services=>file_exist

EXPORTING

file = l_file

RECEIVING

result = l_result

EXCEPTIONS

cntl_error = 1

error_no_gui = 2

wrong_parameter = 3

not_supported_by_gui = 4

OTHERS = 5.

rememebering export parameter etc ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
413

Hi,

You can use the pattern button on ABAP editor (SE38/SE80). Click on radio button ABAP objects in the PATTERNS pop-up then give the object instance and the method you need and click continue. The method will automatically be inserted in your code with all the importing and exporting parameters.

Regards,

Ferry Lianto

2 REPLIES 2
Read only

Former Member
0 Likes
414

Hi,

You can use the pattern button on ABAP editor (SE38/SE80). Click on radio button ABAP objects in the PATTERNS pop-up then give the object instance and the method you need and click continue. The method will automatically be inserted in your code with all the importing and exporting parameters.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
413

Thank u so much..............I knew it but wanted a hint