SAP Function Modules

FI_CHECK_FAX_MAIL_OPTIONS SAP Function module







FI_CHECK_FAX_MAIL_OPTIONS is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name FI_CHECK_FAX_MAIL_OPTIONS into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: SEND_PDF
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM FI_CHECK_FAX_MAIL_OPTIONS - FI CHECK FAX MAIL OPTIONS





CALL FUNCTION 'FI_CHECK_FAX_MAIL_OPTIONS' "
* EXPORTING
*   ib_bundling = SPACE         " fpbool        Boolean Value (True or False)
  IMPORTING
    ed_device =                 " tddevice      Output device
    eb_send =                   " c
    eb_archive =                " c
    eb_preview =                " fppreview
  TABLES
    it_mail_recip =             " somlreci1
    it_fax_recip =              " somlreci1
  CHANGING
    cs_params =                 " sfpoutputparams  Form Processing Output Parameter
  EXCEPTIONS
    INVALID_DEVICE = 1          "
    INVALID_ARCMODE = 2         "
    .  "  FI_CHECK_FAX_MAIL_OPTIONS

ABAP code example for Function Module FI_CHECK_FAX_MAIL_OPTIONS





The ABAP code below is a full code listing to execute function module FI_CHECK_FAX_MAIL_OPTIONS including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
ld_ed_device  TYPE TDDEVICE ,
ld_eb_send  TYPE C ,
ld_eb_archive  TYPE C ,
ld_eb_preview  TYPE FPPREVIEW ,
it_it_mail_recip  TYPE STANDARD TABLE OF SOMLRECI1,"TABLES PARAM
wa_it_mail_recip  LIKE LINE OF it_it_mail_recip ,
it_it_fax_recip  TYPE STANDARD TABLE OF SOMLRECI1,"TABLES PARAM
wa_it_fax_recip  LIKE LINE OF it_it_fax_recip .

DATA(ld_cs_params) = 'Check type of data required'.
DATA(ld_ib_bundling) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_mail_recip to it_it_mail_recip.

"populate fields of struture and append to itab
append wa_it_fax_recip to it_it_fax_recip. . CALL FUNCTION 'FI_CHECK_FAX_MAIL_OPTIONS' * EXPORTING * ib_bundling = ld_ib_bundling IMPORTING ed_device = ld_ed_device eb_send = ld_eb_send eb_archive = ld_eb_archive eb_preview = ld_eb_preview TABLES it_mail_recip = it_it_mail_recip it_fax_recip = it_it_fax_recip CHANGING cs_params = ld_cs_params EXCEPTIONS INVALID_DEVICE = 1 INVALID_ARCMODE = 2 . " FI_CHECK_FAX_MAIL_OPTIONS
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_cs_params  TYPE SFPOUTPUTPARAMS ,
ld_ed_device  TYPE TDDEVICE ,
ld_ib_bundling  TYPE FPBOOL ,
it_it_mail_recip  TYPE STANDARD TABLE OF SOMLRECI1 ,
wa_it_mail_recip  LIKE LINE OF it_it_mail_recip,
ld_eb_send  TYPE C ,
it_it_fax_recip  TYPE STANDARD TABLE OF SOMLRECI1 ,
wa_it_fax_recip  LIKE LINE OF it_it_fax_recip,
ld_eb_archive  TYPE C ,
ld_eb_preview  TYPE FPPREVIEW .

ld_cs_params = 'Check type of data required'.
ld_ib_bundling = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_mail_recip to it_it_mail_recip.

"populate fields of struture and append to itab
append wa_it_fax_recip to it_it_fax_recip.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name FI_CHECK_FAX_MAIL_OPTIONS or its description.