SAP FMCB_COMPLETE_ITEM Function Module for









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

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



Function FMCB_COMPLETE_ITEM 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 'FMCB_COMPLETE_ITEM'"
EXPORTING
I_BUKRS = "
* I_FIKRS = ' ' "
I_FIPOS = "
* I_FLG_BUFFER_ALL = ' ' "
I_SAKTO = "

IMPORTING
E_FIVOR = "
E_KNZAEPO = "
E_OBJNR = "
E_POSIT = "
E_FISTL_DEFAULT = "
.



IMPORTING Parameters details for FMCB_COMPLETE_ITEM

I_BUKRS -

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

I_FIKRS -

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

I_FIPOS -

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

I_FLG_BUFFER_ALL -

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

I_SAKTO -

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

EXPORTING Parameters details for FMCB_COMPLETE_ITEM

E_FIVOR -

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

E_KNZAEPO -

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

E_OBJNR -

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

E_POSIT -

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

E_FISTL_DEFAULT -

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

Copy and paste ABAP code example for FMCB_COMPLETE_ITEM 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_e_fivor  TYPE FMBP-FIVOR, "   
lv_i_bukrs  TYPE EKBP-BUKRS, "   
lv_i_fikrs  TYPE FMBP-FIKRS, "   SPACE
lv_e_knzaepo  TYPE FMBP-KNZAEPO, "   
lv_e_objnr  TYPE FMBP-OBJNR, "   
lv_i_fipos  TYPE FMBP-FIPOS, "   
lv_e_posit  TYPE FMBP-POSIT, "   
lv_i_flg_buffer_all  TYPE FMDY-XFELD, "   SPACE
lv_i_sakto  TYPE EKBP-SAKTO, "   
lv_e_fistl_default  TYPE FMFPO-FICTR. "   

  CALL FUNCTION 'FMCB_COMPLETE_ITEM'  "
    EXPORTING
         I_BUKRS = lv_i_bukrs
         I_FIKRS = lv_i_fikrs
         I_FIPOS = lv_i_fipos
         I_FLG_BUFFER_ALL = lv_i_flg_buffer_all
         I_SAKTO = lv_i_sakto
    IMPORTING
         E_FIVOR = lv_e_fivor
         E_KNZAEPO = lv_e_knzaepo
         E_OBJNR = lv_e_objnr
         E_POSIT = lv_e_posit
         E_FISTL_DEFAULT = lv_e_fistl_default
. " FMCB_COMPLETE_ITEM




ABAP code using 7.40 inline data declarations to call FM FMCB_COMPLETE_ITEM

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 FIVOR FROM FMBP INTO @DATA(ld_e_fivor).
 
"SELECT single BUKRS FROM EKBP INTO @DATA(ld_i_bukrs).
 
"SELECT single FIKRS FROM FMBP INTO @DATA(ld_i_fikrs).
DATA(ld_i_fikrs) = ' '.
 
"SELECT single KNZAEPO FROM FMBP INTO @DATA(ld_e_knzaepo).
 
"SELECT single OBJNR FROM FMBP INTO @DATA(ld_e_objnr).
 
"SELECT single FIPOS FROM FMBP INTO @DATA(ld_i_fipos).
 
"SELECT single POSIT FROM FMBP INTO @DATA(ld_e_posit).
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_buffer_all).
DATA(ld_i_flg_buffer_all) = ' '.
 
"SELECT single SAKTO FROM EKBP INTO @DATA(ld_i_sakto).
 
"SELECT single FICTR FROM FMFPO INTO @DATA(ld_e_fistl_default).
 


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!