SAP OIO_MT_PRELOAD Function Module for Preload docflow data









OIO_MT_PRELOAD is a standard oio mt preload SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Preload docflow data 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 oio mt preload FM, simply by entering the name OIO_MT_PRELOAD into the relevant SAP transaction such as SE37 or SE38.

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



Function OIO_MT_PRELOAD 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 'OIO_MT_PRELOAD'"Preload docflow data
EXPORTING
I_MTPROF_ID = "Material tracking profile id
IT_START_OBJECT = "Initial document flow objects
* IS_VARIANT = "ALV display variant parameters
* I_REPID = 'SAPLOIO_MT' "ABAP program, current main program
* I_DYNNR = '0200' "ABAP program, number of current screen

EXCEPTIONS
INVALID_TRACKING_PROFILE = 1 INVALID_FLOW_PROFILE = 2
.



IMPORTING Parameters details for OIO_MT_PRELOAD

I_MTPROF_ID - Material tracking profile id

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

IT_START_OBJECT - Initial document flow objects

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

IS_VARIANT - ALV display variant parameters

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

I_REPID - ABAP program, current main program

Data type: SYREPID
Default: 'SAPLOIO_MT'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DYNNR - ABAP program, number of current screen

Data type: SYDYNNR
Default: '0200'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

INVALID_TRACKING_PROFILE -

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

INVALID_FLOW_PROFILE -

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

Copy and paste ABAP code example for OIO_MT_PRELOAD 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_i_mtprof_id  TYPE OIO_MTPROF_ID, "   
lv_invalid_tracking_profile  TYPE OIO_MTPROF_ID, "   
lv_it_start_object  TYPE ROIO_T_OBJECT, "   
lv_invalid_flow_profile  TYPE ROIO_T_OBJECT, "   
lv_is_variant  TYPE DISVARIANT, "   
lv_i_repid  TYPE SYREPID, "   'SAPLOIO_MT'
lv_i_dynnr  TYPE SYDYNNR. "   '0200'

  CALL FUNCTION 'OIO_MT_PRELOAD'  "Preload docflow data
    EXPORTING
         I_MTPROF_ID = lv_i_mtprof_id
         IT_START_OBJECT = lv_it_start_object
         IS_VARIANT = lv_is_variant
         I_REPID = lv_i_repid
         I_DYNNR = lv_i_dynnr
    EXCEPTIONS
        INVALID_TRACKING_PROFILE = 1
        INVALID_FLOW_PROFILE = 2
. " OIO_MT_PRELOAD




ABAP code using 7.40 inline data declarations to call FM OIO_MT_PRELOAD

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.

 
 
 
 
 
DATA(ld_i_repid) = 'SAPLOIO_MT'.
 
DATA(ld_i_dynnr) = '0200'.
 


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!