SAP RSTS_OPEN_RB Function Module for Open TemSe Object in Order to Read in Blocks
RSTS_OPEN_RB is a standard rsts open rb SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Open TemSe Object in Order to Read in Blocks 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 rsts open rb FM, simply by entering the name RSTS_OPEN_RB into the relevant SAP transaction such as SE37 or SE38.
Function Group: STMS
Program Name: SAPLSTMS
Main Program: SAPLSTMS
Appliation area: S
Release date: 10-Mar-1998
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RSTS_OPEN_RB 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 'RSTS_OPEN_RB'"Open TemSe Object in Order to Read in Blocks.
EXPORTING
* AUTHORITY = ' ' "Who Carried Out Authorization Check
* CLIENT = SY-MANDT "Client (or Own)
NAME = "Name of Temse Object
* OWN_FBHANDLE = ' ' "'FBHANDLE' is Used
* PROM = 'E' "Processing Mode
* OBJTYPE = 'TEXT' "Data Type
* ENQLOCK = 'N' "Without ('N'), With ('E'), Shared ('S) Enqueue Lock
IMPORTING
FBHANDLE = "Handle for Open Object
EXCEPTIONS
FB_CALL_HANDLE = 1 FB_ERROR = 2 FB_RSTS_NOCONV = 3 FB_RSTS_OTHER = 4 NO_OBJECT = 5 NO_PERMISSION = 6 ENQ_FOREIGN_LOCK = 7 ENQ_SYS_FAIL = 8 ENQ_OTHER = 9
IMPORTING Parameters details for RSTS_OPEN_RB
AUTHORITY - Who Carried Out Authorization Check
Data type: RSTSTYPE-AUTHCHECKDDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
CLIENT - Client (or Own)
Data type: RSTSTYPE-CLIENTDefault: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)
NAME - Name of Temse Object
Data type: RSTSTYPE-NAMEOptional: No
Call by Reference: No ( called with pass by value option)
OWN_FBHANDLE - 'FBHANDLE' is Used
Data type: RSTSTYPE-WFBHANDLEDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
PROM - Processing Mode
Data type: RSTSTYPE-PROMDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
OBJTYPE - Data Type
Data type: RSTSTYPE-TYPEDefault: 'TEXT'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ENQLOCK - Without ('N'), With ('E'), Shared ('S) Enqueue Lock
Data type: RSTSTYPE-PROMDefault: 'N'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RSTS_OPEN_RB
FBHANDLE - Handle for Open Object
Data type: RSTSTYPE-FBHANDLEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
FB_CALL_HANDLE - Error with Handles at CALL Interface
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FB_ERROR - Function Module Error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FB_RSTS_NOCONV - Required Conversion Not Possible
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FB_RSTS_OTHER - Other Errors Reported by TemSe C System
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_OBJECT - Required TemSe Object Does Not Exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_PERMISSION - No Authorization for This Operation
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ENQ_FOREIGN_LOCK - Object Locked by Another User
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ENQ_SYS_FAIL -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ENQ_OTHER -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RSTS_OPEN_RB 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_fbhandle | TYPE RSTSTYPE-FBHANDLE, " | |||
| lv_authority | TYPE RSTSTYPE-AUTHCHECKD, " ' ' | |||
| lv_fb_call_handle | TYPE RSTSTYPE, " | |||
| lv_client | TYPE RSTSTYPE-CLIENT, " SY-MANDT | |||
| lv_fb_error | TYPE RSTSTYPE, " | |||
| lv_name | TYPE RSTSTYPE-NAME, " | |||
| lv_fb_rsts_noconv | TYPE RSTSTYPE, " | |||
| lv_own_fbhandle | TYPE RSTSTYPE-WFBHANDLE, " ' ' | |||
| lv_fb_rsts_other | TYPE RSTSTYPE, " | |||
| lv_prom | TYPE RSTSTYPE-PROM, " 'E' | |||
| lv_no_object | TYPE RSTSTYPE, " | |||
| lv_objtype | TYPE RSTSTYPE-TYPE, " 'TEXT' | |||
| lv_no_permission | TYPE RSTSTYPE, " | |||
| lv_enqlock | TYPE RSTSTYPE-PROM, " 'N' | |||
| lv_enq_foreign_lock | TYPE RSTSTYPE, " | |||
| lv_enq_sys_fail | TYPE RSTSTYPE, " | |||
| lv_enq_other | TYPE RSTSTYPE. " |
|   CALL FUNCTION 'RSTS_OPEN_RB' "Open TemSe Object in Order to Read in Blocks |
| EXPORTING | ||
| AUTHORITY | = lv_authority | |
| CLIENT | = lv_client | |
| NAME | = lv_name | |
| OWN_FBHANDLE | = lv_own_fbhandle | |
| PROM | = lv_prom | |
| OBJTYPE | = lv_objtype | |
| ENQLOCK | = lv_enqlock | |
| IMPORTING | ||
| FBHANDLE | = lv_fbhandle | |
| EXCEPTIONS | ||
| FB_CALL_HANDLE = 1 | ||
| FB_ERROR = 2 | ||
| FB_RSTS_NOCONV = 3 | ||
| FB_RSTS_OTHER = 4 | ||
| NO_OBJECT = 5 | ||
| NO_PERMISSION = 6 | ||
| ENQ_FOREIGN_LOCK = 7 | ||
| ENQ_SYS_FAIL = 8 | ||
| ENQ_OTHER = 9 | ||
| . " RSTS_OPEN_RB | ||
ABAP code using 7.40 inline data declarations to call FM RSTS_OPEN_RB
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 FBHANDLE FROM RSTSTYPE INTO @DATA(ld_fbhandle). | ||||
| "SELECT single AUTHCHECKD FROM RSTSTYPE INTO @DATA(ld_authority). | ||||
| DATA(ld_authority) | = ' '. | |||
| "SELECT single CLIENT FROM RSTSTYPE INTO @DATA(ld_client). | ||||
| DATA(ld_client) | = SY-MANDT. | |||
| "SELECT single NAME FROM RSTSTYPE INTO @DATA(ld_name). | ||||
| "SELECT single WFBHANDLE FROM RSTSTYPE INTO @DATA(ld_own_fbhandle). | ||||
| DATA(ld_own_fbhandle) | = ' '. | |||
| "SELECT single PROM FROM RSTSTYPE INTO @DATA(ld_prom). | ||||
| DATA(ld_prom) | = 'E'. | |||
| "SELECT single TYPE FROM RSTSTYPE INTO @DATA(ld_objtype). | ||||
| DATA(ld_objtype) | = 'TEXT'. | |||
| "SELECT single PROM FROM RSTSTYPE INTO @DATA(ld_enqlock). | ||||
| DATA(ld_enqlock) | = 'N'. | |||
Search for further information about these or an SAP related objects