SAP FM_INPUT_CHECK Function Module for









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

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



Function FM_INPUT_CHECK 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_INPUT_CHECK'"
EXPORTING
I_COBL = "
* I_FLG_STATUS_NEW = "New Status of Transferred Document
* I_LEDGER = "
* I_F_ACCIT = "Accounting Interface: Item Information
* I_FLG_REPLACE_ONLY = ' ' "
* I_FLG_USE_CO_ASSIGNMENTS = 'X' "
* I_FLG_MESSAGES = 'X' "
* I_FLG_EXTRA_MESSAGES = 'X' "Checkbox
* I_FLG_CHECK_YEAR_SOFT = 'X' "Checkbox
* I_FLG_GET_ALWAYS = "Checkbox
* I_FLG_REVERSAL_DOC = ' ' "Checkbox
* I_COBL_AD = "

IMPORTING
E_COBL = "
E_F_FMCI = "

CHANGING
* C_SUBRC = "Return Value, Return Value after ABAP Statements
.




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_SAPLFMWR_001 User Exit for Filling the OBJNRZ Field
EXIT_SAPLFMWR_002 Overriding of Mandatory Derivation (FM Account Assignment/Acct/CO Object)
EXIT_SAPLFMWR_003 FM Authorization Check with Posting

IMPORTING Parameters details for FM_INPUT_CHECK

I_COBL -

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

I_FLG_STATUS_NEW - New Status of Transferred Document

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

I_LEDGER -

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

I_F_ACCIT - Accounting Interface: Item Information

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

I_FLG_REPLACE_ONLY -

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

I_FLG_USE_CO_ASSIGNMENTS -

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

I_FLG_MESSAGES -

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

I_FLG_EXTRA_MESSAGES - Checkbox

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

I_FLG_CHECK_YEAR_SOFT - Checkbox

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

I_FLG_GET_ALWAYS - Checkbox

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

I_FLG_REVERSAL_DOC - Checkbox

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

I_COBL_AD -

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

EXPORTING Parameters details for FM_INPUT_CHECK

E_COBL -

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

E_F_FMCI -

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

CHANGING Parameters details for FM_INPUT_CHECK

C_SUBRC - Return Value, Return Value after ABAP Statements

Data type: SY-SUBRC
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for FM_INPUT_CHECK 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_cobl  TYPE COBL, "   
lv_i_cobl  TYPE COBL, "   
lv_c_subrc  TYPE SY-SUBRC, "   
lv_i_flg_status_new  TYPE ACCHD-STATUS_NEW, "   
lv_i_ledger  TYPE RLDNR, "   
lv_i_f_accit  TYPE ACCIT, "   
lv_e_f_fmci  TYPE FMCI, "   
lv_i_flg_replace_only  TYPE FMDY-XFELD, "   SPACE
lv_i_flg_use_co_assignments  TYPE FMDY-XFELD, "   'X'
lv_i_flg_messages  TYPE FMDY-XFELD, "   'X'
lv_i_flg_extra_messages  TYPE FMDY-XFELD, "   'X'
lv_i_flg_check_year_soft  TYPE FMDY-XFELD, "   'X'
lv_i_flg_get_always  TYPE FMDY-XFELD, "   
lv_i_flg_reversal_doc  TYPE FMDY-XFELD, "   SPACE
lv_i_cobl_ad  TYPE COBL_AD. "   

  CALL FUNCTION 'FM_INPUT_CHECK'  "
    EXPORTING
         I_COBL = lv_i_cobl
         I_FLG_STATUS_NEW = lv_i_flg_status_new
         I_LEDGER = lv_i_ledger
         I_F_ACCIT = lv_i_f_accit
         I_FLG_REPLACE_ONLY = lv_i_flg_replace_only
         I_FLG_USE_CO_ASSIGNMENTS = lv_i_flg_use_co_assignments
         I_FLG_MESSAGES = lv_i_flg_messages
         I_FLG_EXTRA_MESSAGES = lv_i_flg_extra_messages
         I_FLG_CHECK_YEAR_SOFT = lv_i_flg_check_year_soft
         I_FLG_GET_ALWAYS = lv_i_flg_get_always
         I_FLG_REVERSAL_DOC = lv_i_flg_reversal_doc
         I_COBL_AD = lv_i_cobl_ad
    IMPORTING
         E_COBL = lv_e_cobl
         E_F_FMCI = lv_e_f_fmci
    CHANGING
         C_SUBRC = lv_c_subrc
. " FM_INPUT_CHECK




ABAP code using 7.40 inline data declarations to call FM FM_INPUT_CHECK

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_c_subrc).
 
"SELECT single STATUS_NEW FROM ACCHD INTO @DATA(ld_i_flg_status_new).
 
 
 
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_replace_only).
DATA(ld_i_flg_replace_only) = ' '.
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_use_co_assignments).
DATA(ld_i_flg_use_co_assignments) = 'X'.
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_messages).
DATA(ld_i_flg_messages) = 'X'.
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_extra_messages).
DATA(ld_i_flg_extra_messages) = 'X'.
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_check_year_soft).
DATA(ld_i_flg_check_year_soft) = 'X'.
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_get_always).
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_reversal_doc).
DATA(ld_i_flg_reversal_doc) = ' '.
 
 


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!