SAP MC_OIW_READ_SORTED Function Module for NOTRANSL: EXCEL-LIS-Connect









MC_OIW_READ_SORTED is a standard mc oiw read sorted SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: EXCEL-LIS-Connect 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 mc oiw read sorted FM, simply by entering the name MC_OIW_READ_SORTED into the relevant SAP transaction such as SE37 or SE38.

Function Group: MCOW
Program Name: SAPLMCOW
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function MC_OIW_READ_SORTED 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 'MC_OIW_READ_SORTED'"NOTRANSL: EXCEL-LIS-Connect
EXPORTING
* ID_METHOD = "

IMPORTING
TEXT_METHOD = "
DATE_OF_SELECT = "

TABLES
SELTAB = "
VIEW = "
DATA = "
FIELDS = "
SORTFIELDS = "

EXCEPTIONS
INPUT_ERROR = 1 NODATA = 2 UNEXPECTED_READ_ERROR = 3 SORTFIELD_NOT_FOUND = 4
.



IMPORTING Parameters details for MC_OIW_READ_SORTED

ID_METHOD -

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

EXPORTING Parameters details for MC_OIW_READ_SORTED

TEXT_METHOD -

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

DATE_OF_SELECT -

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

TABLES Parameters details for MC_OIW_READ_SORTED

SELTAB -

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

VIEW -

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

DATA -

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

FIELDS -

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

SORTFIELDS -

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

EXCEPTIONS details

INPUT_ERROR -

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

NODATA -

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

UNEXPECTED_READ_ERROR -

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

SORTFIELD_NOT_FOUND -

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

Copy and paste ABAP code example for MC_OIW_READ_SORTED 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_seltab  TYPE STANDARD TABLE OF MCSELTAB, "   
lv_id_method  TYPE TMCM-METHODID, "   
lv_input_error  TYPE TMCM, "   
lv_text_method  TYPE MCRSVT-SETXT, "   
lt_view  TYPE STANDARD TABLE OF INOVIEW, "   
lv_nodata  TYPE INOVIEW, "   
lv_date_of_select  TYPE SY-DATUM, "   
lt_data  TYPE STANDARD TABLE OF MCDATA, "   
lv_unexpected_read_error  TYPE MCDATA, "   
lt_fields  TYPE STANDARD TABLE OF MCFIELDS, "   
lv_sortfield_not_found  TYPE MCFIELDS, "   
lt_sortfields  TYPE STANDARD TABLE OF INOVIEW. "   

  CALL FUNCTION 'MC_OIW_READ_SORTED'  "NOTRANSL: EXCEL-LIS-Connect
    EXPORTING
         ID_METHOD = lv_id_method
    IMPORTING
         TEXT_METHOD = lv_text_method
         DATE_OF_SELECT = lv_date_of_select
    TABLES
         SELTAB = lt_seltab
         VIEW = lt_view
         DATA = lt_data
         FIELDS = lt_fields
         SORTFIELDS = lt_sortfields
    EXCEPTIONS
        INPUT_ERROR = 1
        NODATA = 2
        UNEXPECTED_READ_ERROR = 3
        SORTFIELD_NOT_FOUND = 4
. " MC_OIW_READ_SORTED




ABAP code using 7.40 inline data declarations to call FM MC_OIW_READ_SORTED

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 METHODID FROM TMCM INTO @DATA(ld_id_method).
 
 
"SELECT single SETXT FROM MCRSVT INTO @DATA(ld_text_method).
 
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_date_of_select).
 
 
 
 
 
 


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!