SAP RS_RENAME_PROGRAM_INCLUDE Function Module for Rename Include Progam Without Any Other Objects









RS_RENAME_PROGRAM_INCLUDE is a standard rs rename program include SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Rename Include Progam Without Any Other Objects 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 rs rename program include FM, simply by entering the name RS_RENAME_PROGRAM_INCLUDE into the relevant SAP transaction such as SE37 or SE38.

Function Group: SEU2
Program Name: SAPLSEU2
Main Program: SAPLSEU2
Appliation area: S
Release date: 27-May-1999
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RS_RENAME_PROGRAM_INCLUDE 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_RENAME_PROGRAM_INCLUDE'"Rename Include Progam Without Any Other Objects
EXPORTING
* CORRNUMBER = ' ' "Correction Number
* DEVCLASS = ' ' "Development Class
PROGRAM = "
SOURCE_PROGRAM = "Source Include Program
* SUPPRESS_CHECKS = ' ' "Suppress Checks ->RS_ACCESS_PERMISSION
* SUPPRESS_COMMIT = ' ' "
* SUPPRESS_POPUP = ' ' "Suppress Dialog
* SUPPRESS_SCREEN = ' ' "Suppress Input Screen for Program Name
* SKIP_PROGRESS_IND = ' ' "Suppress Progress Indicator

IMPORTING
PROGRAM = "

EXCEPTIONS
ENQUEUE_LOCK = 1 PERMISSION_FAILURE = 2 REJECT_COPY = 3 REJECT_DELETION = 4
.



IMPORTING Parameters details for RS_RENAME_PROGRAM_INCLUDE

CORRNUMBER - Correction Number

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

DEVCLASS - Development Class

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

PROGRAM -

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

SOURCE_PROGRAM - Source Include Program

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

SUPPRESS_CHECKS - Suppress Checks ->RS_ACCESS_PERMISSION

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

SUPPRESS_COMMIT -

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

SUPPRESS_POPUP - Suppress Dialog

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

SUPPRESS_SCREEN - Suppress Input Screen for Program Name

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

SKIP_PROGRESS_IND - Suppress Progress Indicator

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

EXPORTING Parameters details for RS_RENAME_PROGRAM_INCLUDE

PROGRAM -

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

EXCEPTIONS details

ENQUEUE_LOCK - Enqueue Locked

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

PERMISSION_FAILURE - Not Possible to Insert or Delete

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

REJECT_COPY - Reject Copy by User

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

REJECT_DELETION - Reject Deletion By User

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

Copy and paste ABAP code example for RS_RENAME_PROGRAM_INCLUDE 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_program  TYPE SY-REPID, "   
lv_corrnumber  TYPE E071-TRKORR, "   ' '
lv_enqueue_lock  TYPE E071, "   
lv_devclass  TYPE TDEVC-DEVCLASS, "   ' '
lv_permission_failure  TYPE TDEVC, "   
lv_program  TYPE SY-REPID, "   
lv_reject_copy  TYPE SY, "   
lv_source_program  TYPE SY-REPID, "   
lv_reject_deletion  TYPE SY, "   
lv_suppress_checks  TYPE SY-INPUT, "   ' '
lv_suppress_commit  TYPE SY-INPUT, "   ' '
lv_suppress_popup  TYPE SY-INPUT, "   ' '
lv_suppress_screen  TYPE SY-INPUT, "   ' '
lv_skip_progress_ind  TYPE SY-INPUT. "   ' '

  CALL FUNCTION 'RS_RENAME_PROGRAM_INCLUDE'  "Rename Include Progam Without Any Other Objects
    EXPORTING
         CORRNUMBER = lv_corrnumber
         DEVCLASS = lv_devclass
         PROGRAM = lv_program
         SOURCE_PROGRAM = lv_source_program
         SUPPRESS_CHECKS = lv_suppress_checks
         SUPPRESS_COMMIT = lv_suppress_commit
         SUPPRESS_POPUP = lv_suppress_popup
         SUPPRESS_SCREEN = lv_suppress_screen
         SKIP_PROGRESS_IND = lv_skip_progress_ind
    IMPORTING
         PROGRAM = lv_program
    EXCEPTIONS
        ENQUEUE_LOCK = 1
        PERMISSION_FAILURE = 2
        REJECT_COPY = 3
        REJECT_DELETION = 4
. " RS_RENAME_PROGRAM_INCLUDE




ABAP code using 7.40 inline data declarations to call FM RS_RENAME_PROGRAM_INCLUDE

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 REPID FROM SY INTO @DATA(ld_program).
 
"SELECT single TRKORR FROM E071 INTO @DATA(ld_corrnumber).
DATA(ld_corrnumber) = ' '.
 
 
"SELECT single DEVCLASS FROM TDEVC INTO @DATA(ld_devclass).
DATA(ld_devclass) = ' '.
 
 
"SELECT single REPID FROM SY INTO @DATA(ld_program).
 
 
"SELECT single REPID FROM SY INTO @DATA(ld_source_program).
 
 
"SELECT single INPUT FROM SY INTO @DATA(ld_suppress_checks).
DATA(ld_suppress_checks) = ' '.
 
"SELECT single INPUT FROM SY INTO @DATA(ld_suppress_commit).
DATA(ld_suppress_commit) = ' '.
 
"SELECT single INPUT FROM SY INTO @DATA(ld_suppress_popup).
DATA(ld_suppress_popup) = ' '.
 
"SELECT single INPUT FROM SY INTO @DATA(ld_suppress_screen).
DATA(ld_suppress_screen) = ' '.
 
"SELECT single INPUT FROM SY INTO @DATA(ld_skip_progress_ind).
DATA(ld_skip_progress_ind) = ' '.
 


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!