SAP RSS_TEMPLATE_CHECK Function Module for
RSS_TEMPLATE_CHECK is a standard rss template check SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 rss template check FM, simply by entering the name RSS_TEMPLATE_CHECK into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSSG
Program Name: SAPLRSSG
Main Program: SAPLRSSG
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function RSS_TEMPLATE_CHECK 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 'RSS_TEMPLATE_CHECK'".
EXPORTING
* I_PROGRAM_CLASS = "BW generation tool: Program class for generated programs
I_TEMPLATE = "Template
I_META_OBJECT = "
* I_DEBUG_LEVEL = 0 "
IMPORTING
E_ERROR_LINE = "Line number of syntax error
E_ERROR_MESSAGE = "Error message
E_T_MODEL_CODE = "Obsolete
E_T_GENERATOR_CODE = "Obsolete
E_T_VARCODE = "
E_UCCHECK = "Flag, if unicode check was performed
EXCEPTIONS
TEMPLATE_NOT_FOUND = 1 TEMPLATE_SYNTAX_ERROR = 2 INTERNAL_ERROR = 3
IMPORTING Parameters details for RSS_TEMPLATE_CHECK
I_PROGRAM_CLASS - BW generation tool: Program class for generated programs
Data type: RSSG_PROGCLASSOptional: Yes
Call by Reference: Yes
I_TEMPLATE - Template
Data type: TRDIR-NAMEOptional: No
Call by Reference: No ( called with pass by value option)
I_META_OBJECT -
Data type:Optional: No
Call by Reference: Yes
I_DEBUG_LEVEL -
Data type: IOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RSS_TEMPLATE_CHECK
E_ERROR_LINE - Line number of syntax error
Data type: SY-TABIXOptional: No
Call by Reference: Yes
E_ERROR_MESSAGE - Error message
Data type: RSSG_MESSAGEOptional: No
Call by Reference: Yes
E_T_MODEL_CODE - Obsolete
Data type: RSSG_T_MODEL_SOURCEOptional: No
Call by Reference: Yes
E_T_GENERATOR_CODE - Obsolete
Data type: RSSG_T_CODELINEOptional: No
Call by Reference: Yes
E_T_VARCODE -
Data type: RSSG_T_VARLINEOptional: No
Call by Reference: Yes
E_UCCHECK - Flag, if unicode check was performed
Data type: UCCHECKOptional: No
Call by Reference: Yes
EXCEPTIONS details
TEMPLATE_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TEMPLATE_SYNTAX_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_ERROR - Internal Error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RSS_TEMPLATE_CHECK 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_error_line | TYPE SY-TABIX, " | |||
lv_i_program_class | TYPE RSSG_PROGCLASS, " | |||
lv_template_not_found | TYPE RSSG_PROGCLASS, " | |||
lv_i_template | TYPE TRDIR-NAME, " | |||
lv_e_error_message | TYPE RSSG_MESSAGE, " | |||
lv_template_syntax_error | TYPE RSSG_MESSAGE, " | |||
lv_i_meta_object | TYPE RSSG_MESSAGE, " | |||
lv_e_t_model_code | TYPE RSSG_T_MODEL_SOURCE, " | |||
lv_internal_error | TYPE RSSG_T_MODEL_SOURCE, " | |||
lv_i_debug_level | TYPE I, " 0 | |||
lv_e_t_generator_code | TYPE RSSG_T_CODELINE, " | |||
lv_e_t_varcode | TYPE RSSG_T_VARLINE, " | |||
lv_e_uccheck | TYPE UCCHECK. " |
  CALL FUNCTION 'RSS_TEMPLATE_CHECK' " |
EXPORTING | ||
I_PROGRAM_CLASS | = lv_i_program_class | |
I_TEMPLATE | = lv_i_template | |
I_META_OBJECT | = lv_i_meta_object | |
I_DEBUG_LEVEL | = lv_i_debug_level | |
IMPORTING | ||
E_ERROR_LINE | = lv_e_error_line | |
E_ERROR_MESSAGE | = lv_e_error_message | |
E_T_MODEL_CODE | = lv_e_t_model_code | |
E_T_GENERATOR_CODE | = lv_e_t_generator_code | |
E_T_VARCODE | = lv_e_t_varcode | |
E_UCCHECK | = lv_e_uccheck | |
EXCEPTIONS | ||
TEMPLATE_NOT_FOUND = 1 | ||
TEMPLATE_SYNTAX_ERROR = 2 | ||
INTERNAL_ERROR = 3 | ||
. " RSS_TEMPLATE_CHECK |
ABAP code using 7.40 inline data declarations to call FM RSS_TEMPLATE_CHECK
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 TABIX FROM SY INTO @DATA(ld_e_error_line). | ||||
"SELECT single NAME FROM TRDIR INTO @DATA(ld_i_template). | ||||
Search for further information about these or an SAP related objects