SAP FMCA_UPDATE_FI Function Module for









FMCA_UPDATE_FI is a standard fmca update fi SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 update fi FM, simply by entering the name FMCA_UPDATE_FI into the relevant SAP transaction such as SE37 or SE38.

Function Group: FMFA
Program Name: SAPLFMFA
Main Program: SAPLFMFA
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update: 1



Function FMCA_UPDATE_FI 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_UPDATE_FI'"
EXPORTING
* I_FLG_DELETE = ' ' "Are records to be deleted
* I_FLG_UPDATE = ' ' "Is update to be attempted
* I_FLG_TOTALS = 'X' "
* I_FLG_ONCOMMIT = 'X' "Checkbox
* I_FLG_CALL_CCF_REBUILD = 'X' "
* I_FLG_CF = ' ' "Checkbox
* I_FLG_REBUILD = ' ' "
* I_DONT_SENT_IDOC = ' ' "Checkbox
* I_CALL_FROM_IDOC = ' ' "Checkbox

TABLES
* T_FMIFIIT = "New line items
* T_FMIFIHD = "New headers
* T_FMIFIHD_CHG = "
* T_FMIFIIT_CHG = "
* T_FMIFIIT_DEL = "Old line items
* T_FMIFIIT_OLD = "If update, old records for the totals

EXCEPTIONS
ERR_UPDATE_FMIFIIT = 1
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLFMFA_001 Set the Statistics Indicator
EXIT_SAPLFMFA_004 FM update panel display
EXIT_SAPLFMFA_005 Controls the call up of availability control in batch

IMPORTING Parameters details for FMCA_UPDATE_FI

I_FLG_DELETE - Are records to be deleted

Data type: FMDY-XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_UPDATE - Is update to be attempted

Data type: FMDY-XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_TOTALS -

Data type: FMDY-XFELD
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_ONCOMMIT - Checkbox

Data type: FMDY-XFELD
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_CALL_CCF_REBUILD -

Data type: FMDY-XFELD
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_CF - Checkbox

Data type: FMDY-XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_REBUILD -

Data type: FMDY-XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DONT_SENT_IDOC - Checkbox

Data type: FMDY-XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CALL_FROM_IDOC - Checkbox

Data type: FMDY-XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for FMCA_UPDATE_FI

T_FMIFIIT - New line items

Data type: FMIFIIT
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_FMIFIHD - New headers

Data type: FMIFIHD
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_FMIFIHD_CHG -

Data type: FMIFIHD
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_FMIFIIT_CHG -

Data type: FMIFIIT
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_FMIFIIT_DEL - Old line items

Data type: FMIFIIT
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_FMIFIIT_OLD - If update, old records for the totals

Data type: FMIFIIT
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

ERR_UPDATE_FMIFIIT -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for FMCA_UPDATE_FI 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:
lt_t_fmifiit  TYPE STANDARD TABLE OF FMIFIIT, "   
lv_i_flg_delete  TYPE FMDY-XFELD, "   SPACE
lv_err_update_fmifiit  TYPE FMDY, "   
lt_t_fmifihd  TYPE STANDARD TABLE OF FMIFIHD, "   
lv_i_flg_update  TYPE FMDY-XFELD, "   SPACE
lv_i_flg_totals  TYPE FMDY-XFELD, "   'X'
lt_t_fmifihd_chg  TYPE STANDARD TABLE OF FMIFIHD, "   
lt_t_fmifiit_chg  TYPE STANDARD TABLE OF FMIFIIT, "   
lv_i_flg_oncommit  TYPE FMDY-XFELD, "   'X'
lt_t_fmifiit_del  TYPE STANDARD TABLE OF FMIFIIT, "   
lv_i_flg_call_ccf_rebuild  TYPE FMDY-XFELD, "   'X'
lv_i_flg_cf  TYPE FMDY-XFELD, "   SPACE
lt_t_fmifiit_old  TYPE STANDARD TABLE OF FMIFIIT, "   
lv_i_flg_rebuild  TYPE FMDY-XFELD, "   SPACE
lv_i_dont_sent_idoc  TYPE FMDY-XFELD, "   SPACE
lv_i_call_from_idoc  TYPE FMDY-XFELD. "   SPACE

  CALL FUNCTION 'FMCA_UPDATE_FI'  "
    EXPORTING
         I_FLG_DELETE = lv_i_flg_delete
         I_FLG_UPDATE = lv_i_flg_update
         I_FLG_TOTALS = lv_i_flg_totals
         I_FLG_ONCOMMIT = lv_i_flg_oncommit
         I_FLG_CALL_CCF_REBUILD = lv_i_flg_call_ccf_rebuild
         I_FLG_CF = lv_i_flg_cf
         I_FLG_REBUILD = lv_i_flg_rebuild
         I_DONT_SENT_IDOC = lv_i_dont_sent_idoc
         I_CALL_FROM_IDOC = lv_i_call_from_idoc
    TABLES
         T_FMIFIIT = lt_t_fmifiit
         T_FMIFIHD = lt_t_fmifihd
         T_FMIFIHD_CHG = lt_t_fmifihd_chg
         T_FMIFIIT_CHG = lt_t_fmifiit_chg
         T_FMIFIIT_DEL = lt_t_fmifiit_del
         T_FMIFIIT_OLD = lt_t_fmifiit_old
    EXCEPTIONS
        ERR_UPDATE_FMIFIIT = 1
. " FMCA_UPDATE_FI




ABAP code using 7.40 inline data declarations to call FM FMCA_UPDATE_FI

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.

 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_delete).
DATA(ld_i_flg_delete) = ' '.
 
 
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_update).
DATA(ld_i_flg_update) = ' '.
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_totals).
DATA(ld_i_flg_totals) = 'X'.
 
 
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_oncommit).
DATA(ld_i_flg_oncommit) = 'X'.
 
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_call_ccf_rebuild).
DATA(ld_i_flg_call_ccf_rebuild) = 'X'.
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_cf).
DATA(ld_i_flg_cf) = ' '.
 
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_rebuild).
DATA(ld_i_flg_rebuild) = ' '.
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_dont_sent_idoc).
DATA(ld_i_dont_sent_idoc) = ' '.
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_call_from_idoc).
DATA(ld_i_call_from_idoc) = ' '.
 


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!