SAP RSDG_ROUTINES_PROGRAM_GET Function Module for Determine name of utility program of an InfoObject
RSDG_ROUTINES_PROGRAM_GET is a standard rsdg routines program get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Determine name of utility program of an InfoObject 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 rsdg routines program get FM, simply by entering the name RSDG_ROUTINES_PROGRAM_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSDGUTILITIES
Program Name: SAPLRSDGUTILITIES
Main Program: SAPLRSDGUTILITIES
Appliation area: B
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RSDG_ROUTINES_PROGRAM_GET 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 'RSDG_ROUTINES_PROGRAM_GET'"Determine name of utility program of an InfoObject.
EXPORTING
I_CHABASNM = "Reference characteristic
* I_DBROUTID = "ID for database routines for basic char.
* I_TH_TLOGO = "BW Repository: List (Hash) of TLOGO Object and Type
* I_FORCE_GENERATION = "
* I_PERCENTAGE = "
* I_DEBUG_LEVEL = "
* I_SHOW_PROGRAM = "
* I_SECONDS_TO_WAIT = 300 "Maximum Wait Time Until FOREIGN_LOCK Exception Condition Is Triggered
IMPORTING
E_DBROUTID = "UUID in compressed form
E_PROGRAM_NAME = "
EXCEPTIONS
UNKNOWN_IOBJ = 1 FOREIGN_LOCK = 10 SYSTEM_FAILURE = 11 INTERNAL_ERROR = 12 GET_PROGRAM_ERROR = 2 NO_DBROUTID_FOUND = 3 NAME_UNKNOWN = 4 INVALID_PROGRAM_CLASS = 5 INVALID_UNIQUE_ID = 6 TEMPLATE_NOT_FOUND = 7 TEMPLATE_SYNTAX_ERROR = 8 PROGRAM_SYNTAX_ERROR = 9
IMPORTING Parameters details for RSDG_ROUTINES_PROGRAM_GET
I_CHABASNM - Reference characteristic
Data type: RSCHABASNMOptional: No
Call by Reference: Yes
I_DBROUTID - ID for database routines for basic char.
Data type: RSDBROUTIDOptional: Yes
Call by Reference: Yes
I_TH_TLOGO - BW Repository: List (Hash) of TLOGO Object and Type
Data type: RSO_TH_TLOGOOptional: Yes
Call by Reference: Yes
I_FORCE_GENERATION -
Data type: RS_BOOLOptional: Yes
Call by Reference: Yes
I_PERCENTAGE -
Data type: IOptional: Yes
Call by Reference: Yes
I_DEBUG_LEVEL -
Data type: IOptional: Yes
Call by Reference: Yes
I_SHOW_PROGRAM -
Data type: RS_BOOLOptional: Yes
Call by Reference: Yes
I_SECONDS_TO_WAIT - Maximum Wait Time Until FOREIGN_LOCK Exception Condition Is Triggered
Data type: IDefault: 300
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RSDG_ROUTINES_PROGRAM_GET
E_DBROUTID - UUID in compressed form
Data type: RSDBROUTIDOptional: No
Call by Reference: Yes
E_PROGRAM_NAME -
Data type: SY-REPIDOptional: No
Call by Reference: Yes
EXCEPTIONS details
UNKNOWN_IOBJ -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FOREIGN_LOCK -
Data type:Optional: No
Call by Reference: Yes
SYSTEM_FAILURE -
Data type:Optional: No
Call by Reference: Yes
INTERNAL_ERROR -
Data type:Optional: No
Call by Reference: Yes
GET_PROGRAM_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_DBROUTID_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NAME_UNKNOWN -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_PROGRAM_CLASS -
Data type:Optional: No
Call by Reference: Yes
INVALID_UNIQUE_ID -
Data type:Optional: No
Call by Reference: Yes
TEMPLATE_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
TEMPLATE_SYNTAX_ERROR -
Data type:Optional: No
Call by Reference: Yes
PROGRAM_SYNTAX_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RSDG_ROUTINES_PROGRAM_GET 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_e_dbroutid | TYPE RSDBROUTID, " | |||
| lv_i_chabasnm | TYPE RSCHABASNM, " | |||
| lv_unknown_iobj | TYPE RSCHABASNM, " | |||
| lv_foreign_lock | TYPE RSCHABASNM, " | |||
| lv_system_failure | TYPE RSCHABASNM, " | |||
| lv_internal_error | TYPE RSCHABASNM, " | |||
| lv_i_dbroutid | TYPE RSDBROUTID, " | |||
| lv_e_program_name | TYPE SY-REPID, " | |||
| lv_get_program_error | TYPE SY, " | |||
| lv_i_th_tlogo | TYPE RSO_TH_TLOGO, " | |||
| lv_no_dbroutid_found | TYPE RSO_TH_TLOGO, " | |||
| lv_name_unknown | TYPE RSO_TH_TLOGO, " | |||
| lv_i_force_generation | TYPE RS_BOOL, " | |||
| lv_i_percentage | TYPE I, " | |||
| lv_invalid_program_class | TYPE I, " | |||
| lv_i_debug_level | TYPE I, " | |||
| lv_invalid_unique_id | TYPE I, " | |||
| lv_i_show_program | TYPE RS_BOOL, " | |||
| lv_template_not_found | TYPE RS_BOOL, " | |||
| lv_i_seconds_to_wait | TYPE I, " 300 | |||
| lv_template_syntax_error | TYPE I, " | |||
| lv_program_syntax_error | TYPE I. " |
|   CALL FUNCTION 'RSDG_ROUTINES_PROGRAM_GET' "Determine name of utility program of an InfoObject |
| EXPORTING | ||
| I_CHABASNM | = lv_i_chabasnm | |
| I_DBROUTID | = lv_i_dbroutid | |
| I_TH_TLOGO | = lv_i_th_tlogo | |
| I_FORCE_GENERATION | = lv_i_force_generation | |
| I_PERCENTAGE | = lv_i_percentage | |
| I_DEBUG_LEVEL | = lv_i_debug_level | |
| I_SHOW_PROGRAM | = lv_i_show_program | |
| I_SECONDS_TO_WAIT | = lv_i_seconds_to_wait | |
| IMPORTING | ||
| E_DBROUTID | = lv_e_dbroutid | |
| E_PROGRAM_NAME | = lv_e_program_name | |
| EXCEPTIONS | ||
| UNKNOWN_IOBJ = 1 | ||
| FOREIGN_LOCK = 10 | ||
| SYSTEM_FAILURE = 11 | ||
| INTERNAL_ERROR = 12 | ||
| GET_PROGRAM_ERROR = 2 | ||
| NO_DBROUTID_FOUND = 3 | ||
| NAME_UNKNOWN = 4 | ||
| INVALID_PROGRAM_CLASS = 5 | ||
| INVALID_UNIQUE_ID = 6 | ||
| TEMPLATE_NOT_FOUND = 7 | ||
| TEMPLATE_SYNTAX_ERROR = 8 | ||
| PROGRAM_SYNTAX_ERROR = 9 | ||
| . " RSDG_ROUTINES_PROGRAM_GET | ||
ABAP code using 7.40 inline data declarations to call FM RSDG_ROUTINES_PROGRAM_GET
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_e_program_name). | ||||
| DATA(ld_i_seconds_to_wait) | = 300. | |||
Search for further information about these or an SAP related objects