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

fm statments

Former Member
0 Likes
525

whats is the statments to execute a fm ?

1 ACCEPTED SOLUTION
Read only

marcelo_ramos1
SAP Mentor
SAP Mentor
0 Likes
505

Hi,

Try this way,

CALL FUNCTION ´FM NAME ´.

Regards.

Marcelo Ramos

3 REPLIES 3
Read only

marcelo_ramos1
SAP Mentor
SAP Mentor
0 Likes
506

Hi,

Try this way,

CALL FUNCTION ´FM NAME ´.

Regards.

Marcelo Ramos

Read only

alejandro_bindi
Active Contributor
0 Likes
505

Easiest way is to use the pattern button, it generates all parameters and exceptions code.

Read only

Former Member
0 Likes
505

HI,

With CALL FUNCTION statement ..

here is an example to illustrate ...

  • Check user did not cancel request

  CHECK ld_result EQ '0'.

  CALL FUNCTION 'GUI_DOWNLOAD'
   EXPORTING
        filename         = ld_fullpath
        filetype         = 'ASC'
*       APPEND           = 'X'
        write_field_separator = 'X'
*       CONFIRM_OVERWRITE = 'X'
   TABLES
        data_tab         = it_datatab[]     "need to declare and populate
   EXCEPTIONS
        file_open_error  = 1
        file_write_error = 2
        OTHERS           = 3.