RSDRO_GENERATE_PROGRAMS is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name RSDRO_GENERATE_PROGRAMS into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
RSDRO
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'RSDRO_GENERATE_PROGRAMS' "Regenerate Program from Template (Debugging)
EXPORTING
i_odsobject = " rsdodsobject ODS Object
* i_update = RS_C_TRUE " rs_bool Update Program
* i_activate = RS_C_TRUE " rs_bool Activation Program
* i_extract = RS_C_TRUE " rs_bool Extraction Program
* i_isource = " rsau_s_updinfo-isource Generate Only for Specific InfoSource Update Program
* i_force_generation = RS_C_TRUE " rs_bool Force Regeneration
* i_debug_template = RS_C_FALSE " rs_bool Boolean
CHANGING
c_t_idocstate = " rsarr_t_idocstate
EXCEPTIONS
X_MESSAGE = 1 " Further Processing Not Possible
. " RSDRO_GENERATE_PROGRAMS
The ABAP code below is a full code listing to execute function module RSDRO_GENERATE_PROGRAMS including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
DATA(ld_c_t_idocstate) = 'Check type of data required'.
DATA(ld_i_odsobject) = 'Check type of data required'.
DATA(ld_i_update) = 'Check type of data required'.
DATA(ld_i_activate) = 'Check type of data required'.
DATA(ld_i_extract) = 'Check type of data required'.
DATA(ld_i_isource) = some text here
DATA(ld_i_force_generation) = 'Check type of data required'.
DATA(ld_i_debug_template) = 'Check type of data required'. . CALL FUNCTION 'RSDRO_GENERATE_PROGRAMS' EXPORTING i_odsobject = ld_i_odsobject * i_update = ld_i_update * i_activate = ld_i_activate * i_extract = ld_i_extract * i_isource = ld_i_isource * i_force_generation = ld_i_force_generation * i_debug_template = ld_i_debug_template CHANGING c_t_idocstate = ld_c_t_idocstate EXCEPTIONS X_MESSAGE = 1 . " RSDRO_GENERATE_PROGRAMS
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_c_t_idocstate | TYPE RSARR_T_IDOCSTATE , |
| ld_i_odsobject | TYPE RSDODSOBJECT , |
| ld_i_update | TYPE RS_BOOL , |
| ld_i_activate | TYPE RS_BOOL , |
| ld_i_extract | TYPE RS_BOOL , |
| ld_i_isource | TYPE RSAU_S_UPDINFO-ISOURCE , |
| ld_i_force_generation | TYPE RS_BOOL , |
| ld_i_debug_template | TYPE RS_BOOL . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name RSDRO_GENERATE_PROGRAMS or its description.
RSDRO_GENERATE_PROGRAMS - Regenerate Program from Template (Debugging) RSDRO_EXTRACT_ODS - Extract Data from ODS RSDRO_DEL_UPD_REPORT - Deleting the Update Report RSDRO_DEL_EXT_REPORT - Deleting the Report for Activation and Extraction RSDRO_DEL_ACT_EXT_REPORT - Deleting the Report for Activation and Extraction RSDRO_CHECK_ODS_CONSISTENCY - Exist to all 'nav. characteristics' also entries in master data tables