SAP Function RS_RENAME_PROGRAM - Rename Program With All Dependent Objects

Parameter Reference Type Length Default Optional Text
CORRNUMBER E071-TRKORR C 20 ' ' X Correction Number if SUPPRESS_POPUP is Mandatory
DEVCLASS TDEVC-DEVCLASS C 30 ' ' X Development Class if SUPPRESS_POPUP is Mandatory
PROGRAM SYST-REPID C 40 ' ' X Target Program
SKIP_PROGRESS_IND SYST-INPUT C 1 ' ' X Suppress Progress Indicator
SOURCE_PROGRAM SYST-REPID C 40 Source Program (30 Bytes)
SUPPRESS_POPUP SYST-INPUT C 1 ' ' X Suppress Dialog

Parameter Reference Type Length Text
CORRNUMBER E071-TRKORR C 20 Correction Number if SUPPRESS_POPUP is Mandatory
DEVCLASS TDEVC-DEVCLASS C 30 Development Class if SUPPRESS_POPUP is Mandatory
PROGRAM SYST-REPID C 40 Target Program

Exception Text
ENQUEUE_LOCK Deletion Aborted Since SAP Lock Exists
OBJECT_NOT_FOUND Object_not_found
PERMISSION_FAILURE Deletion unsuccessful
REJECT_COPY Copy Canceled
REJECT_DELETION Delete Source Program with Objects Canceled


Use RS_RENAME_PROGRAM to rename main programs and include programs.
For main programs, you can choose which subobjects (such as screens,menus, and so on) to delete as well. The source program will be deletedwith all subobjects and standard includes not referred to in otherprograms.
If you want to use RS_RENAME_PROGRAM internally, use the parameterSUPPRESS_POPUP. All screens will be suppressed. In that case, you needto initialize the parameter DEVCLASS. If DEVCLASS is not equal to $xxxor Txxx, you need to initialize the parameter CORRNMUBER as well.
If you want to use suppress_popup (suppress all screens) you have toqualify the devclass parameter and corrnumber parameter (if thedevelopment class does not start with $ or T. To get a correctionnumber, use RS_CORR_INSERT.
If you use the parameter suppress_popup (suppress all screens) you mustqualify the parameter devclass. If devclass is not $TMP or the firstletter of devclass is not 'T', you must qualify the correction numberas well.

Description
Target program name. Only first 30 bytes allowed for external use .
If you want to use suppress_popup (suppress all screens) you have toqualify the devclass parameter and corrnumber parameter (if thedevelopment class does not start with $ or T. To get a correctionnumber, use RS_CORR_INSERT.
If you use the parameter suppress_popup (suppress all screens) you mustqualify the parameter devclass. If devclass is not $TMP or the firstletter of devclass is not 'T', you must qualify the correction numberas well.

Description
Target program name. Only first 30 bytes allowed for external use .

Description
Source program name. Only first 30 bytes allowed for external use .
This function is used to rename a program internally. No screen will beexecuted but you need to move a correct program name to the PARAMETERPROGRAM and you need to move a DEVELOPMENT CLASS. If the DEVELOPMENTCLASS is not equal to $xxx or Txxx, you need a CORRECTION NUMBER aswell. Use RS_CORR_INSERT to get a correction number.