SAP RS_CORR_INSERT Function Module for









RS_CORR_INSERT is a standard rs corr insert 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 rs corr insert FM, simply by entering the name RS_CORR_INSERT into the relevant SAP transaction such as SE37 or SE38.

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



Function RS_CORR_INSERT 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 'RS_CORR_INSERT'"
EXPORTING
OBJECT = "Object name
* GENFLAG = ' ' "
* PROGRAM = ' ' "Main program (only for class ABAP)
* OBJECT_CLASS_SUPPORTS_MA = ' ' "
* EXTEND = ' ' "
* SUPPRESS_DIALOG = ' ' "
* MOD_LANGU = ' ' "
* ACTIVATION_CALL = ' ' "
OBJECT_CLASS = "Object class (ABAP,SCUA,SCRP,DICT,FUNC.)
* MODE = ' ' "I(nsert), if object new
* GLOBAL_LOCK = ' ' "' ': small block (LIMU); 'x': g. bl. (R3TR)
* DEVCLASS = ' ' "Package
* KORRNUM = ' ' "Correction number
* USE_KORRNUM_IMMEDIATEDLY = ' ' "
* AUTHOR = ' ' "
* MASTER_LANGUAGE = ' ' "

IMPORTING
DEVCLASS = "Package
KORRNUM = "Correction number
ORDERNUM = "Request number
NEW_CORR_ENTRY = "New object incorporated in correction
AUTHOR = "
TRANSPORT_KEY = "Transport Key
NEW_EXTEND = "

EXCEPTIONS
CANCELLED = 1 PERMISSION_FAILURE = 2 UNKNOWN_OBJECTCLASS = 3
.



IMPORTING Parameters details for RS_CORR_INSERT

OBJECT - Object name

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

GENFLAG -

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

PROGRAM - Main program (only for class ABAP)

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

OBJECT_CLASS_SUPPORTS_MA -

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

EXTEND -

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

SUPPRESS_DIALOG -

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

MOD_LANGU -

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

ACTIVATION_CALL -

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

OBJECT_CLASS - Object class (ABAP,SCUA,SCRP,DICT,FUNC.)

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

MODE - I(nsert), if object new

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

GLOBAL_LOCK - SPACE: small block (LIMU); 'x': g. bl. (R3TR)

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

DEVCLASS - Package

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

KORRNUM - Correction number

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

USE_KORRNUM_IMMEDIATEDLY -

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

AUTHOR -

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

MASTER_LANGUAGE -

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

EXPORTING Parameters details for RS_CORR_INSERT

DEVCLASS - Package

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

KORRNUM - Correction number

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

ORDERNUM - Request number

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

NEW_CORR_ENTRY - New object incorporated in correction

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

AUTHOR -

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

TRANSPORT_KEY - Transport Key

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

NEW_EXTEND -

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

EXCEPTIONS details

CANCELLED - Processing cancelled

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

PERMISSION_FAILURE - No correction entry possible

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

UNKNOWN_OBJECTCLASS - Object class not recognised

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

Copy and paste ABAP code example for RS_CORR_INSERT 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_object  TYPE STRING, "   
lv_devclass  TYPE TADIR-DEVCLASS, "   
lv_cancelled  TYPE TADIR, "   
lv_genflag  TYPE TADIR-GENFLAG, "   SPACE
lv_program  TYPE SY-REPID, "   SPACE
lv_object_class_supports_ma  TYPE C, "   SPACE
lv_extend  TYPE C, "   SPACE
lv_suppress_dialog  TYPE C, "   SPACE
lv_mod_langu  TYPE SY-LANGU, "   SPACE
lv_activation_call  TYPE C, "   SPACE
lv_korrnum  TYPE E070-TRKORR, "   
lv_object_class  TYPE E070, "   
lv_permission_failure  TYPE E070, "   
lv_mode  TYPE E070, "   SPACE
lv_ordernum  TYPE E070-TRKORR, "   
lv_unknown_objectclass  TYPE E070, "   
lv_global_lock  TYPE E070, "   SPACE
lv_new_corr_entry  TYPE E070, "   
lv_author  TYPE SY-UNAME, "   
lv_devclass  TYPE TADIR-DEVCLASS, "   SPACE
lv_korrnum  TYPE E070-TRKORR, "   SPACE
lv_transport_key  TYPE TRKEY, "   
lv_new_extend  TYPE C, "   
lv_use_korrnum_immediatedly  TYPE C, "   SPACE
lv_author  TYPE SY-UNAME, "   SPACE
lv_master_language  TYPE SY-LANGU. "   SPACE

  CALL FUNCTION 'RS_CORR_INSERT'  "
    EXPORTING
         OBJECT = lv_object
         GENFLAG = lv_genflag
         PROGRAM = lv_program
         OBJECT_CLASS_SUPPORTS_MA = lv_object_class_supports_ma
         EXTEND = lv_extend
         SUPPRESS_DIALOG = lv_suppress_dialog
         MOD_LANGU = lv_mod_langu
         ACTIVATION_CALL = lv_activation_call
         OBJECT_CLASS = lv_object_class
         MODE = lv_mode
         GLOBAL_LOCK = lv_global_lock
         DEVCLASS = lv_devclass
         KORRNUM = lv_korrnum
         USE_KORRNUM_IMMEDIATEDLY = lv_use_korrnum_immediatedly
         AUTHOR = lv_author
         MASTER_LANGUAGE = lv_master_language
    IMPORTING
         DEVCLASS = lv_devclass
         KORRNUM = lv_korrnum
         ORDERNUM = lv_ordernum
         NEW_CORR_ENTRY = lv_new_corr_entry
         AUTHOR = lv_author
         TRANSPORT_KEY = lv_transport_key
         NEW_EXTEND = lv_new_extend
    EXCEPTIONS
        CANCELLED = 1
        PERMISSION_FAILURE = 2
        UNKNOWN_OBJECTCLASS = 3
. " RS_CORR_INSERT




ABAP code using 7.40 inline data declarations to call FM RS_CORR_INSERT

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 DEVCLASS FROM TADIR INTO @DATA(ld_devclass).
 
 
"SELECT single GENFLAG FROM TADIR INTO @DATA(ld_genflag).
DATA(ld_genflag) = ' '.
 
"SELECT single REPID FROM SY INTO @DATA(ld_program).
DATA(ld_program) = ' '.
 
DATA(ld_object_class_supports_ma) = ' '.
 
DATA(ld_extend) = ' '.
 
DATA(ld_suppress_dialog) = ' '.
 
"SELECT single LANGU FROM SY INTO @DATA(ld_mod_langu).
DATA(ld_mod_langu) = ' '.
 
DATA(ld_activation_call) = ' '.
 
"SELECT single TRKORR FROM E070 INTO @DATA(ld_korrnum).
 
 
 
DATA(ld_mode) = ' '.
 
"SELECT single TRKORR FROM E070 INTO @DATA(ld_ordernum).
 
 
DATA(ld_global_lock) = ' '.
 
 
"SELECT single UNAME FROM SY INTO @DATA(ld_author).
 
"SELECT single DEVCLASS FROM TADIR INTO @DATA(ld_devclass).
DATA(ld_devclass) = ' '.
 
"SELECT single TRKORR FROM E070 INTO @DATA(ld_korrnum).
DATA(ld_korrnum) = ' '.
 
 
 
DATA(ld_use_korrnum_immediatedly) = ' '.
 
"SELECT single UNAME FROM SY INTO @DATA(ld_author).
DATA(ld_author) = ' '.
 
"SELECT single LANGU FROM SY INTO @DATA(ld_master_language).
DATA(ld_master_language) = ' '.
 


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!