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: 

fm statments

Former Member
0 Kudos

whats is the statments to execute a fm ?

1 ACCEPTED SOLUTION

marcelo_ramos
Active Contributor
0 Kudos

Hi,

Try this way,

CALL FUNCTION ´FM NAME ´.

Regards.

Marcelo Ramos

3 REPLIES 3

marcelo_ramos
Active Contributor
0 Kudos

Hi,

Try this way,

CALL FUNCTION ´FM NAME ´.

Regards.

Marcelo Ramos

alejandro_bindi
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.