RSAR_PROGRAM_GENERATE_ODS 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 RSAR_PROGRAM_GENERATE_ODS into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
RSAI
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'RSAR_PROGRAM_GENERATE_ODS' "Generates programs for reading and writing for the ODS
EXPORTING
i_odsname_act = " rsa_odsdbname Name of current ODS table
i_odsname_new = " rsa_odsdbname Name the latest ODS table
* i_reportname = " rsa_progname Name of an existing report
* i_partitioned = RS_C_FALSE " rs_bool Boolean
* i_only_temp = RS_C_FALSE " rs_bool Only temporarily for different Structure
* i_debug_level = 0 " i Debug level for the generation
* i_db_commit = RS_C_FALSE " rs_bool Boolean
IMPORTING
e_reportname = " rsa_progname Name of generated report
EXCEPTIONS
PROG_TEMPLATE_ERROR = 1 " Error when generating the program
REPORT_CREATION_ERROR = 2 " Error creating new reports
TEMPLATE_ERROR = 3 " Failed to generate the temp. program
. " RSAR_PROGRAM_GENERATE_ODS
The ABAP code below is a full code listing to execute function module RSAR_PROGRAM_GENERATE_ODS 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).
| ld_e_reportname | TYPE RSA_PROGNAME . |
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_e_reportname | TYPE RSA_PROGNAME , |
| ld_i_odsname_act | TYPE RSA_ODSDBNAME , |
| ld_i_odsname_new | TYPE RSA_ODSDBNAME , |
| ld_i_reportname | TYPE RSA_PROGNAME , |
| ld_i_partitioned | TYPE RS_BOOL , |
| ld_i_only_temp | TYPE RS_BOOL , |
| ld_i_debug_level | TYPE I , |
| ld_i_db_commit | 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 RSAR_PROGRAM_GENERATE_ODS or its description.
RSAR_PROGRAM_GENERATE_ODS - Generates programs for reading and writing for the ODS RSAR_PROGRAM_GENERATE_HIER_NEW - Generates program to load hierarchies from 3.0 (TRFC, PSA) RSAR_PROGRAM_GENERATE_HIER - Generates programs for conversion of IDOCs (Hierarchies) RSAR_PROGRAM_GENERATE - Generates programs for the conversion of IDOCs (trans.and master data) RSAR_PROGRAM_GENCHECK - Is checking whether a regeneration is required (IDOC - transactional d RSAR_POPUP_WITH_TBL_CONTROL - Popup Table Control