SAP FMCO_UPDATE Function Module for









FMCO_UPDATE is a standard fmco update 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 fmco update FM, simply by entering the name FMCO_UPDATE into the relevant SAP transaction such as SE37 or SE38.

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



Function FMCO_UPDATE 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 'FMCO_UPDATE'"
EXPORTING
* I_FLG_BUFFER_ITEMS = ' ' "
* I_FLG_BUFFER_TOTALS = ' ' "
* I_FLG_NO_INS = ' ' "
* I_FLG_DELETE_ITEMS = ' ' "
* I_FLG_UPD_ITEMS = ' ' "
* I_FLG_SUM_ONLY = ' ' "
* I_FLG_WRITE_RPSCO = 'X' "
* I_FLG_NO_DEL_COBK = ' ' "

TABLES
* T_COFP = "
* T_COBK = "
* T_COFP_DEL = "
.



IMPORTING Parameters details for FMCO_UPDATE

I_FLG_BUFFER_ITEMS -

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

I_FLG_BUFFER_TOTALS -

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

I_FLG_NO_INS -

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

I_FLG_DELETE_ITEMS -

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

I_FLG_UPD_ITEMS -

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

I_FLG_SUM_ONLY -

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

I_FLG_WRITE_RPSCO -

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

I_FLG_NO_DEL_COBK -

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

TABLES Parameters details for FMCO_UPDATE

T_COFP -

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

T_COBK -

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

T_COFP_DEL -

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

Copy and paste ABAP code example for FMCO_UPDATE 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_cofp  TYPE STANDARD TABLE OF COFP, "   
lv_i_flg_buffer_items  TYPE FMDY-XFELD, "   SPACE
lt_t_cobk  TYPE STANDARD TABLE OF COBK, "   
lv_i_flg_buffer_totals  TYPE FMDY-XFELD, "   SPACE
lt_t_cofp_del  TYPE STANDARD TABLE OF COFP, "   
lv_i_flg_no_ins  TYPE FMDY-XFELD, "   SPACE
lv_i_flg_delete_items  TYPE FMDY-XFELD, "   SPACE
lv_i_flg_upd_items  TYPE FMDY-XFELD, "   SPACE
lv_i_flg_sum_only  TYPE FMDY-XFELD, "   SPACE
lv_i_flg_write_rpsco  TYPE FMDY-XFELD, "   'X'
lv_i_flg_no_del_cobk  TYPE FMDY-XFELD. "   SPACE

  CALL FUNCTION 'FMCO_UPDATE'  "
    EXPORTING
         I_FLG_BUFFER_ITEMS = lv_i_flg_buffer_items
         I_FLG_BUFFER_TOTALS = lv_i_flg_buffer_totals
         I_FLG_NO_INS = lv_i_flg_no_ins
         I_FLG_DELETE_ITEMS = lv_i_flg_delete_items
         I_FLG_UPD_ITEMS = lv_i_flg_upd_items
         I_FLG_SUM_ONLY = lv_i_flg_sum_only
         I_FLG_WRITE_RPSCO = lv_i_flg_write_rpsco
         I_FLG_NO_DEL_COBK = lv_i_flg_no_del_cobk
    TABLES
         T_COFP = lt_t_cofp
         T_COBK = lt_t_cobk
         T_COFP_DEL = lt_t_cofp_del
. " FMCO_UPDATE




ABAP code using 7.40 inline data declarations to call FM FMCO_UPDATE

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_buffer_items).
DATA(ld_i_flg_buffer_items) = ' '.
 
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_buffer_totals).
DATA(ld_i_flg_buffer_totals) = ' '.
 
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_no_ins).
DATA(ld_i_flg_no_ins) = ' '.
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_delete_items).
DATA(ld_i_flg_delete_items) = ' '.
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_upd_items).
DATA(ld_i_flg_upd_items) = ' '.
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_sum_only).
DATA(ld_i_flg_sum_only) = ' '.
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_write_rpsco).
DATA(ld_i_flg_write_rpsco) = 'X'.
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_no_del_cobk).
DATA(ld_i_flg_no_del_cobk) = ' '.
 


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!