SAP FMCA_EVENT_1221_CONS Function Module for Event 1221: Consolidation









FMCA_EVENT_1221_CONS is a standard fmca event 1221 cons SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Event 1221: Consolidation 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 fmca event 1221 cons FM, simply by entering the name FMCA_EVENT_1221_CONS into the relevant SAP transaction such as SE37 or SE38.

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



Function FMCA_EVENT_1221_CONS 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 'FMCA_EVENT_1221_CONS'"Event 1221: Consolidation
EXPORTING
IV_CALL_STEP = "
* IV_ID = "
* IR_CONTAINER = "
* IV_CONTROL_NAME = "
* IS_MASTERDATA = "
* IV_PROFILE = 'ACC' "

IMPORTING
EV_ID = "
EV_DESCRIPTION = "
ER_SALV_TABLE = "
ET_MASTERDATA = "
.



IMPORTING Parameters details for FMCA_EVENT_1221_CONS

IV_CALL_STEP -

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

IV_ID -

Data type: CHAR2
Optional: Yes
Call by Reference: Yes

IR_CONTAINER -

Data type: CL_GUI_CUSTOM_CONTAINER
Optional: Yes
Call by Reference: Yes

IV_CONTROL_NAME -

Data type: STRING
Optional: Yes
Call by Reference: Yes

IS_MASTERDATA -

Data type: FKK_MASTERDATA
Optional: Yes
Call by Reference: Yes

IV_PROFILE -

Data type: C
Default: 'ACC'
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for FMCA_EVENT_1221_CONS

EV_ID -

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

EV_DESCRIPTION -

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

ER_SALV_TABLE -

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

ET_MASTERDATA -

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

Copy and paste ABAP code example for FMCA_EVENT_1221_CONS 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_ev_id  TYPE CHAR2, "   
lv_iv_call_step  TYPE N, "   
lv_iv_id  TYPE CHAR2, "   
lv_ev_description  TYPE TEXT50, "   
lv_ir_container  TYPE CL_GUI_CUSTOM_CONTAINER, "   
lv_er_salv_table  TYPE CL_SALV_TABLE, "   
lv_et_masterdata  TYPE FKK_MASTERDATA_T, "   
lv_iv_control_name  TYPE STRING, "   
lv_is_masterdata  TYPE FKK_MASTERDATA, "   
lv_iv_profile  TYPE C. "   'ACC'

  CALL FUNCTION 'FMCA_EVENT_1221_CONS'  "Event 1221: Consolidation
    EXPORTING
         IV_CALL_STEP = lv_iv_call_step
         IV_ID = lv_iv_id
         IR_CONTAINER = lv_ir_container
         IV_CONTROL_NAME = lv_iv_control_name
         IS_MASTERDATA = lv_is_masterdata
         IV_PROFILE = lv_iv_profile
    IMPORTING
         EV_ID = lv_ev_id
         EV_DESCRIPTION = lv_ev_description
         ER_SALV_TABLE = lv_er_salv_table
         ET_MASTERDATA = lv_et_masterdata
. " FMCA_EVENT_1221_CONS




ABAP code using 7.40 inline data declarations to call FM FMCA_EVENT_1221_CONS

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_iv_profile) = 'ACC'.
 


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!