SAP RSWR_DB_BITEMPLATE_GET Function Module for load a template for BW Java Web runtime
RSWR_DB_BITEMPLATE_GET is a standard rswr db bitemplate 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 load a template for BW Java Web runtime 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 rswr db bitemplate get FM, simply by entering the name RSWR_DB_BITEMPLATE_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSWRTEMPLATE
Program Name: SAPLRSWRTEMPLATE
Main Program: SAPLRSWRTEMPLATE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function RSWR_DB_BITEMPLATE_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 'RSWR_DB_BITEMPLATE_GET'"load a template for BW Java Web runtime.
EXPORTING
I_TMPLID = "Technical name of template
* I_WITH_EXTERNAL_TEXTS = ' ' "Texts
* I_CHECK_AUTH_ONLY = ' ' "Authorization check only
* I_CACHE_TIMESTMP = "UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
IMPORTING
E_SUBRC = "Return Value, Return Value after ABAP Statements
E_TEXTS = "Texts (XML)
E_BITEMPLATE = "Template content (BI-Template)
E_S_TEMPLATE = "Administration Information for a Web Template
E_MAX_MESSAGE_TYPE = "Message Type
E_TIMESTMP = "UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
E_CACHE_UP_TO_DATE = "Indicator
TABLES
E_T_TMPLTEXTS = "Template specific text
* I_T_STATISTIC_INFO = "OLAP Statistics: Mass Insert of Event Data
* E_T_MESSAGE = "Message Texts
EXCEPTIONS
X_MESSAGE = 1
IMPORTING Parameters details for RSWR_DB_BITEMPLATE_GET
I_TMPLID - Technical name of template
Data type: RSZWOBJIDOptional: No
Call by Reference: No ( called with pass by value option)
I_WITH_EXTERNAL_TEXTS - Texts
Data type: RSZWOBJIDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CHECK_AUTH_ONLY - Authorization check only
Data type: RSBOOLDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CACHE_TIMESTMP - UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
Data type: RSTIMESTMPOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RSWR_DB_BITEMPLATE_GET
E_SUBRC - Return Value, Return Value after ABAP Statements
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
E_TEXTS - Texts (XML)
Data type: STRINGOptional: No
Call by Reference: No ( called with pass by value option)
E_BITEMPLATE - Template content (BI-Template)
Data type: STRINGOptional: No
Call by Reference: No ( called with pass by value option)
E_S_TEMPLATE - Administration Information for a Web Template
Data type: RSZW_TEMPLATEOptional: No
Call by Reference: No ( called with pass by value option)
E_MAX_MESSAGE_TYPE - Message Type
Data type: SYMSGTYOptional: No
Call by Reference: No ( called with pass by value option)
E_TIMESTMP - UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
Data type: RSTIMESTMPOptional: No
Call by Reference: No ( called with pass by value option)
E_CACHE_UP_TO_DATE - Indicator
Data type: FLAG_XOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RSWR_DB_BITEMPLATE_GET
E_T_TMPLTEXTS - Template specific text
Data type: RSZW_X_TEMPLATETEXTOptional: No
Call by Reference: No ( called with pass by value option)
I_T_STATISTIC_INFO - OLAP Statistics: Mass Insert of Event Data
Data type: RSSTA_S_EVENTINPUTOptional: Yes
Call by Reference: Yes
E_T_MESSAGE - Message Texts
Data type: BICS_PROV_T_MESSAGEOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
X_MESSAGE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RSWR_DB_BITEMPLATE_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_subrc | TYPE SY-SUBRC, " | |||
| lv_i_tmplid | TYPE RSZWOBJID, " | |||
| lv_x_message | TYPE RSZWOBJID, " | |||
| lt_e_t_tmpltexts | TYPE STANDARD TABLE OF RSZW_X_TEMPLATETEXT, " | |||
| lv_e_texts | TYPE STRING, " | |||
| lt_i_t_statistic_info | TYPE STANDARD TABLE OF RSSTA_S_EVENTINPUT, " | |||
| lv_i_with_external_texts | TYPE RSZWOBJID, " SPACE | |||
| lt_e_t_message | TYPE STANDARD TABLE OF BICS_PROV_T_MESSAGE, " | |||
| lv_e_bitemplate | TYPE STRING, " | |||
| lv_i_check_auth_only | TYPE RSBOOL, " SPACE | |||
| lv_e_s_template | TYPE RSZW_TEMPLATE, " | |||
| lv_i_cache_timestmp | TYPE RSTIMESTMP, " | |||
| lv_e_max_message_type | TYPE SYMSGTY, " | |||
| lv_e_timestmp | TYPE RSTIMESTMP, " | |||
| lv_e_cache_up_to_date | TYPE FLAG_X. " |
|   CALL FUNCTION 'RSWR_DB_BITEMPLATE_GET' "load a template for BW Java Web runtime |
| EXPORTING | ||
| I_TMPLID | = lv_i_tmplid | |
| I_WITH_EXTERNAL_TEXTS | = lv_i_with_external_texts | |
| I_CHECK_AUTH_ONLY | = lv_i_check_auth_only | |
| I_CACHE_TIMESTMP | = lv_i_cache_timestmp | |
| IMPORTING | ||
| E_SUBRC | = lv_e_subrc | |
| E_TEXTS | = lv_e_texts | |
| E_BITEMPLATE | = lv_e_bitemplate | |
| E_S_TEMPLATE | = lv_e_s_template | |
| E_MAX_MESSAGE_TYPE | = lv_e_max_message_type | |
| E_TIMESTMP | = lv_e_timestmp | |
| E_CACHE_UP_TO_DATE | = lv_e_cache_up_to_date | |
| TABLES | ||
| E_T_TMPLTEXTS | = lt_e_t_tmpltexts | |
| I_T_STATISTIC_INFO | = lt_i_t_statistic_info | |
| E_T_MESSAGE | = lt_e_t_message | |
| EXCEPTIONS | ||
| X_MESSAGE = 1 | ||
| . " RSWR_DB_BITEMPLATE_GET | ||
ABAP code using 7.40 inline data declarations to call FM RSWR_DB_BITEMPLATE_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 SUBRC FROM SY INTO @DATA(ld_e_subrc). | ||||
| DATA(ld_i_with_external_texts) | = ' '. | |||
| DATA(ld_i_check_auth_only) | = ' '. | |||
Search for further information about these or an SAP related objects