SAP INT_SMIM_ADD Function Module for









INT_SMIM_ADD is a standard int smim add 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 int smim add FM, simply by entering the name INT_SMIM_ADD into the relevant SAP transaction such as SE37 or SE38.

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



Function INT_SMIM_ADD 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 'INT_SMIM_ADD'"
EXPORTING
TRANSPORT_KEY = "
MIME_OBJECT = "
* ORDERNR = "
* LANGUAGE = SY-LANGU "
* CHECK_MODE = ' ' "
* USE_UNIQUE_ID = 'X' "

TABLES
* MISSING_PARENTS = "

EXCEPTIONS
INVALID_PARAMETER = 1 TYPE_NOT_SUPPORTED = 2 INCONSISTENT_OBJECT_DATA = 3 ALREADY_EXISTS = 4 ERROR_OCCURED = 5 MISSING_PARENT_FOLDER = 6
.



IMPORTING Parameters details for INT_SMIM_ADD

TRANSPORT_KEY -

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

MIME_OBJECT -

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

ORDERNR -

Data type: E070-TRKORR
Optional: Yes
Call by Reference: Yes

LANGUAGE -

Data type: SY-LANGU
Default: SY-LANGU
Optional: Yes
Call by Reference: Yes

CHECK_MODE -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

USE_UNIQUE_ID -

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for INT_SMIM_ADD

MISSING_PARENTS -

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

EXCEPTIONS details

INVALID_PARAMETER - Invalid parameter

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

TYPE_NOT_SUPPORTED -

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

INCONSISTENT_OBJECT_DATA - Object Data Inconsistent

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

ALREADY_EXISTS -

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

ERROR_OCCURED - Errors

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

MISSING_PARENT_FOLDER -

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

Copy and paste ABAP code example for INT_SMIM_ADD 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_transport_key  TYPE TRKEY, "   
lt_missing_parents  TYPE STANDARD TABLE OF SKWF_DSPN, "   
lv_invalid_parameter  TYPE SKWF_DSPN, "   
lv_mime_object  TYPE SVRS2_XSMIM, "   
lv_type_not_supported  TYPE SVRS2_XSMIM, "   
lv_ordernr  TYPE E070-TRKORR, "   
lv_inconsistent_object_data  TYPE E070, "   
lv_language  TYPE SY-LANGU, "   SY-LANGU
lv_already_exists  TYPE SY, "   
lv_check_mode  TYPE C, "   SPACE
lv_error_occured  TYPE C, "   
lv_use_unique_id  TYPE C, "   'X'
lv_missing_parent_folder  TYPE C. "   

  CALL FUNCTION 'INT_SMIM_ADD'  "
    EXPORTING
         TRANSPORT_KEY = lv_transport_key
         MIME_OBJECT = lv_mime_object
         ORDERNR = lv_ordernr
         LANGUAGE = lv_language
         CHECK_MODE = lv_check_mode
         USE_UNIQUE_ID = lv_use_unique_id
    TABLES
         MISSING_PARENTS = lt_missing_parents
    EXCEPTIONS
        INVALID_PARAMETER = 1
        TYPE_NOT_SUPPORTED = 2
        INCONSISTENT_OBJECT_DATA = 3
        ALREADY_EXISTS = 4
        ERROR_OCCURED = 5
        MISSING_PARENT_FOLDER = 6
. " INT_SMIM_ADD




ABAP code using 7.40 inline data declarations to call FM INT_SMIM_ADD

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 TRKORR FROM E070 INTO @DATA(ld_ordernr).
 
 
"SELECT single LANGU FROM SY INTO @DATA(ld_language).
DATA(ld_language) = SY-LANGU.
 
 
DATA(ld_check_mode) = ' '.
 
 
DATA(ld_use_unique_id) = '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!