SAP FM_FUNC_AREA_CREATE Function Module for Create Functional Area









FM_FUNC_AREA_CREATE is a standard fm func area create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create Functional Area processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for fm func area create FM, simply by entering the name FM_FUNC_AREA_CREATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: FM_FUNCTIONAL_AREA
Program Name: SAPLFM_FUNCTIONAL_AREA
Main Program: SAPLFM_FUNCTIONAL_AREA
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FM_FUNC_AREA_CREATE pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'FM_FUNC_AREA_CREATE'"Create Functional Area
EXPORTING
I_FUNC_AREA = "Functional Area
IS_TFKB = "Functional Area Direct Input Data
IS_TFKBT = "Name of the functional areas
* I_FLG_TESTRUN = ABAP_TRUE "Switch to Simulation Session for Write BAPIs
* I_FLG_COMMIT = ABAP_FALSE "Perform Commit ?

IMPORTING
ET_MESSAGES = "Return parameter table
.



IMPORTING Parameters details for FM_FUNC_AREA_CREATE

I_FUNC_AREA - Functional Area

Data type: FKBER
Optional: No
Call by Reference: Yes

IS_TFKB - Functional Area Direct Input Data

Data type: FMFA_TFKB_DI
Optional: No
Call by Reference: Yes

IS_TFKBT - Name of the functional areas

Data type: FMFA_TFKBT_DI
Optional: No
Call by Reference: Yes

I_FLG_TESTRUN - Switch to Simulation Session for Write BAPIs

Data type: ABAP_BOOL
Default: ABAP_TRUE
Optional: Yes
Call by Reference: Yes

I_FLG_COMMIT - Perform Commit ?

Data type: ABAP_BOOL
Default: ABAP_FALSE
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for FM_FUNC_AREA_CREATE

ET_MESSAGES - Return parameter table

Data type: BAPIRET2_T
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FM_FUNC_AREA_CREATE Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_et_messages  TYPE BAPIRET2_T, "   
lv_i_func_area  TYPE FKBER, "   
lv_is_tfkb  TYPE FMFA_TFKB_DI, "   
lv_is_tfkbt  TYPE FMFA_TFKBT_DI, "   
lv_i_flg_testrun  TYPE ABAP_BOOL, "   ABAP_TRUE
lv_i_flg_commit  TYPE ABAP_BOOL. "   ABAP_FALSE

  CALL FUNCTION 'FM_FUNC_AREA_CREATE'  "Create Functional Area
    EXPORTING
         I_FUNC_AREA = lv_i_func_area
         IS_TFKB = lv_is_tfkb
         IS_TFKBT = lv_is_tfkbt
         I_FLG_TESTRUN = lv_i_flg_testrun
         I_FLG_COMMIT = lv_i_flg_commit
    IMPORTING
         ET_MESSAGES = lv_et_messages
. " FM_FUNC_AREA_CREATE




ABAP code using 7.40 inline data declarations to call FM FM_FUNC_AREA_CREATE

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
DATA(ld_i_flg_testrun) = ABAP_TRUE.
 
DATA(ld_i_flg_commit) = ABAP_FALSE.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!