SAP FM_FMCJ_DOC_CLEARING Function Module for









FM_FMCJ_DOC_CLEARING is a standard fm fmcj doc clearing 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 fm fmcj doc clearing FM, simply by entering the name FM_FMCJ_DOC_CLEARING into the relevant SAP transaction such as SE37 or SE38.

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



Function FM_FMCJ_DOC_CLEARING 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_FMCJ_DOC_CLEARING'"
EXPORTING
I_F_FMCJ = "
I_F_FMPY = "

IMPORTING
E_SUBRC = "
E_MSGID = "
E_MSGNO = "
E_MSGTY = "
E_MSGV1 = "
E_MSGV2 = "
E_MSGV3 = "
E_MSGV4 = "
E_STATUS = "

TABLES
* T_BLNTAB = "
* T_FTCLEAR = "
.



IMPORTING Parameters details for FM_FMCJ_DOC_CLEARING

I_F_FMCJ -

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

I_F_FMPY -

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

EXPORTING Parameters details for FM_FMCJ_DOC_CLEARING

E_SUBRC -

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

E_MSGID -

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

E_MSGNO -

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

E_MSGTY -

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

E_MSGV1 -

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

E_MSGV2 -

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

E_MSGV3 -

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

E_MSGV4 -

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

E_STATUS -

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

TABLES Parameters details for FM_FMCJ_DOC_CLEARING

T_BLNTAB -

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

T_FTCLEAR -

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

Copy and paste ABAP code example for FM_FMCJ_DOC_CLEARING 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_subrc  TYPE SY-SUBRC, "   
lv_i_f_fmcj  TYPE FMCJ, "   
lt_t_blntab  TYPE STANDARD TABLE OF BLNTAB, "   
lv_e_msgid  TYPE SY-MSGID, "   
lv_i_f_fmpy  TYPE FMPY, "   
lt_t_ftclear  TYPE STANDARD TABLE OF FTCLEAR, "   
lv_e_msgno  TYPE SY-MSGNO, "   
lv_e_msgty  TYPE SY-MSGTY, "   
lv_e_msgv1  TYPE SY-MSGV1, "   
lv_e_msgv2  TYPE SY-MSGV2, "   
lv_e_msgv3  TYPE SY-MSGV3, "   
lv_e_msgv4  TYPE SY-MSGV4, "   
lv_e_status  TYPE FMCJ-BELST. "   

  CALL FUNCTION 'FM_FMCJ_DOC_CLEARING'  "
    EXPORTING
         I_F_FMCJ = lv_i_f_fmcj
         I_F_FMPY = lv_i_f_fmpy
    IMPORTING
         E_SUBRC = lv_e_subrc
         E_MSGID = lv_e_msgid
         E_MSGNO = lv_e_msgno
         E_MSGTY = lv_e_msgty
         E_MSGV1 = lv_e_msgv1
         E_MSGV2 = lv_e_msgv2
         E_MSGV3 = lv_e_msgv3
         E_MSGV4 = lv_e_msgv4
         E_STATUS = lv_e_status
    TABLES
         T_BLNTAB = lt_t_blntab
         T_FTCLEAR = lt_t_ftclear
. " FM_FMCJ_DOC_CLEARING




ABAP code using 7.40 inline data declarations to call FM FM_FMCJ_DOC_CLEARING

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 SUBRC FROM SY INTO @DATA(ld_e_subrc).
 
 
 
"SELECT single MSGID FROM SY INTO @DATA(ld_e_msgid).
 
 
 
"SELECT single MSGNO FROM SY INTO @DATA(ld_e_msgno).
 
"SELECT single MSGTY FROM SY INTO @DATA(ld_e_msgty).
 
"SELECT single MSGV1 FROM SY INTO @DATA(ld_e_msgv1).
 
"SELECT single MSGV2 FROM SY INTO @DATA(ld_e_msgv2).
 
"SELECT single MSGV3 FROM SY INTO @DATA(ld_e_msgv3).
 
"SELECT single MSGV4 FROM SY INTO @DATA(ld_e_msgv4).
 
"SELECT single BELST FROM FMCJ INTO @DATA(ld_e_status).
 


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!