SAP Function Modules

FM_FUNC_AREA_CREATE SAP Function module - Create Functional Area







FM_FUNC_AREA_CREATE 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 FM_FUNC_AREA_CREATE into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM FM_FUNC_AREA_CREATE - FM FUNC AREA CREATE





CALL FUNCTION 'FM_FUNC_AREA_CREATE' "Create Functional Area
  EXPORTING
    i_func_area =               " fkber         Functional Area
    is_tfkb =                   " fmfa_tfkb_di  Functional Area Direct Input Data
    is_tfkbt =                  " fmfa_tfkbt_di  Name of the functional areas
*   i_flg_testrun = ABAP_TRUE   " abap_bool     Switch to Simulation Session for Write BAPIs
*   i_flg_commit = ABAP_FALSE   " abap_bool     Perform Commit ?
  IMPORTING
    et_messages =               " bapiret2_t    Return parameter table
    .  "  FM_FUNC_AREA_CREATE

ABAP code example for Function Module FM_FUNC_AREA_CREATE





The ABAP code below is a full code listing to execute function module FM_FUNC_AREA_CREATE 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_et_messages  TYPE BAPIRET2_T .

DATA(ld_i_func_area) = 'Check type of data required'.
DATA(ld_is_tfkb) = 'Check type of data required'.
DATA(ld_is_tfkbt) = 'Check type of data required'.
DATA(ld_i_flg_testrun) = 'Check type of data required'.
DATA(ld_i_flg_commit) = 'Check type of data required'. . CALL FUNCTION 'FM_FUNC_AREA_CREATE' EXPORTING i_func_area = ld_i_func_area is_tfkb = ld_is_tfkb is_tfkbt = ld_is_tfkbt * i_flg_testrun = ld_i_flg_testrun * i_flg_commit = ld_i_flg_commit IMPORTING et_messages = ld_et_messages . " FM_FUNC_AREA_CREATE
IF SY-SUBRC EQ 0. "All OK 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_et_messages  TYPE BAPIRET2_T ,
ld_i_func_area  TYPE FKBER ,
ld_is_tfkb  TYPE FMFA_TFKB_DI ,
ld_is_tfkbt  TYPE FMFA_TFKBT_DI ,
ld_i_flg_testrun  TYPE ABAP_BOOL ,
ld_i_flg_commit  TYPE ABAP_BOOL .

ld_i_func_area = 'Check type of data required'.
ld_is_tfkb = 'Check type of data required'.
ld_is_tfkbt = 'Check type of data required'.
ld_i_flg_testrun = 'Check type of data required'.
ld_i_flg_commit = 'Check type of data required'.

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 FM_FUNC_AREA_CREATE or its description.