SAP ISM_INPUTFILE_DATA_CHECK Function Module for IS-M: Check Input Files for Order Migration









ISM_INPUTFILE_DATA_CHECK is a standard ism inputfile data check SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-M: Check Input Files for Order Migration processing and below is the pattern details for this FM, 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 ism inputfile data check FM, simply by entering the name ISM_INPUTFILE_DATA_CHECK into the relevant SAP transaction such as SE37 or SE38.

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



Function ISM_INPUTFILE_DATA_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 'ISM_INPUTFILE_DATA_CHECK'"IS-M: Check Input Files for Order Migration
EXPORTING
PV_LOG_FILENAME = "Logical File Name
* PV_CNT_BEL = "IS-M: Number of documents to be processed
PV_AVM_HRKNFT = "IS-M: Order Origin
PV_POS_ART = "IS-M: Order-Publishing-Media - Item Type
* PV_XLISTOUTPUT = 'X' "Program running in background

IMPORTING
PT_MSG = "IS-M: Table of Error Messages

EXCEPTIONS
WRONG_ORIGIN_OF_ORDER = 1 WRONG_ITEM_TYPE = 2
.



IMPORTING Parameters details for ISM_INPUTFILE_DATA_CHECK

PV_LOG_FILENAME - Logical File Name

Data type: RJHADU-LOG_FILE
Optional: No
Call by Reference: Yes

PV_CNT_BEL - IS-M: Number of documents to be processed

Data type: RJHAVMREP-CNT_BEL
Optional: Yes
Call by Reference: Yes

PV_AVM_HRKNFT - IS-M: Order Origin

Data type: JHAK-AVM_HRKNFT
Optional: No
Call by Reference: Yes

PV_POS_ART - IS-M: Order-Publishing-Media - Item Type

Data type: JHAP-POS_ART
Optional: No
Call by Reference: Yes

PV_XLISTOUTPUT - Program running in background

Data type: SY-BATCH
Default: 'X'
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for ISM_INPUTFILE_DATA_CHECK

PT_MSG - IS-M: Table of Error Messages

Data type: JY_MSEG
Optional: No
Call by Reference: Yes

EXCEPTIONS details

WRONG_ORIGIN_OF_ORDER -

Data type:
Optional: No
Call by Reference: Yes

WRONG_ITEM_TYPE -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ISM_INPUTFILE_DATA_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_pt_msg  TYPE JY_MSEG, "   
lv_pv_log_filename  TYPE RJHADU-LOG_FILE, "   
lv_wrong_origin_of_order  TYPE RJHADU, "   
lv_pv_cnt_bel  TYPE RJHAVMREP-CNT_BEL, "   
lv_wrong_item_type  TYPE RJHAVMREP, "   
lv_pv_avm_hrknft  TYPE JHAK-AVM_HRKNFT, "   
lv_pv_pos_art  TYPE JHAP-POS_ART, "   
lv_pv_xlistoutput  TYPE SY-BATCH. "   'X'

  CALL FUNCTION 'ISM_INPUTFILE_DATA_CHECK'  "IS-M: Check Input Files for Order Migration
    EXPORTING
         PV_LOG_FILENAME = lv_pv_log_filename
         PV_CNT_BEL = lv_pv_cnt_bel
         PV_AVM_HRKNFT = lv_pv_avm_hrknft
         PV_POS_ART = lv_pv_pos_art
         PV_XLISTOUTPUT = lv_pv_xlistoutput
    IMPORTING
         PT_MSG = lv_pt_msg
    EXCEPTIONS
        WRONG_ORIGIN_OF_ORDER = 1
        WRONG_ITEM_TYPE = 2
. " ISM_INPUTFILE_DATA_CHECK




ABAP code using 7.40 inline data declarations to call FM ISM_INPUTFILE_DATA_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 LOG_FILE FROM RJHADU INTO @DATA(ld_pv_log_filename).
 
 
"SELECT single CNT_BEL FROM RJHAVMREP INTO @DATA(ld_pv_cnt_bel).
 
 
"SELECT single AVM_HRKNFT FROM JHAK INTO @DATA(ld_pv_avm_hrknft).
 
"SELECT single POS_ART FROM JHAP INTO @DATA(ld_pv_pos_art).
 
"SELECT single BATCH FROM SY INTO @DATA(ld_pv_xlistoutput).
DATA(ld_pv_xlistoutput) = 'X'.
 


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!