SAP RSTS_OPEN_RL Function Module for









RSTS_OPEN_RL is a standard rsts open rl 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 rsts open rl FM, simply by entering the name RSTS_OPEN_RL into the relevant SAP transaction such as SE37 or SE38.

Function Group: STMS
Program Name: SAPLSTMS
Main Program: SAPLSTMS
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RSTS_OPEN_RL 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_RL'"
EXPORTING
* ALLINE = ' ' "
* ENQLOCK = 'N' "
* AUTHORITY = ' ' "
* CHARCO = '*' "
* CLIENT = SY-MANDT "
NAME = "
* OWN_FBHANDLE = ' ' "
* PROM = 'E' "
* RECTYP = '*' "
* OBJTYPE = 'TEXT' "

IMPORTING
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
.



IMPORTING Parameters details for RSTS_OPEN_RL

ALLINE -

Data type: RSTSTYPE-ALLINE
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

ENQLOCK -

Data type: RSTSTYPE-PROM
Default: 'N'
Optional: Yes
Call by Reference: No ( called with pass by value option)

AUTHORITY -

Data type: RSTSTYPE-AUTHCHECKD
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

CHARCO -

Data type: RSTSTYPE-CHARCO
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

CLIENT -

Data type: RSTSTYPE-CLIENT
Default: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)

NAME -

Data type: RSTSTYPE-NAME
Optional: No
Call by Reference: No ( called with pass by value option)

OWN_FBHANDLE -

Data type: RSTSTYPE-WFBHANDLE
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

PROM -

Data type: RSTSTYPE-PROM
Default: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)

RECTYP -

Data type: RSTSTYPE-RECTYP
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJTYPE -

Data type: RSTSTYPE-TYPE
Default: 'TEXT'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for RSTS_OPEN_RL

FBHANDLE -

Data type: RSTSTYPE-FBHANDLE
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

FB_CALL_HANDLE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

FB_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

FB_RSTS_NOCONV -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

FB_RSTS_OTHER -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_OBJECT -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_PERMISSION -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ENQ_FOREIGN_LOCK -

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_RL 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_alline  TYPE RSTSTYPE-ALLINE, "   ' '
lv_fbhandle  TYPE RSTSTYPE-FBHANDLE, "   
lv_fb_call_handle  TYPE RSTSTYPE, "   
lv_enqlock  TYPE RSTSTYPE-PROM, "   'N'
lv_fb_error  TYPE RSTSTYPE, "   
lv_authority  TYPE RSTSTYPE-AUTHCHECKD, "   ' '
lv_charco  TYPE RSTSTYPE-CHARCO, "   '*'
lv_fb_rsts_noconv  TYPE RSTSTYPE, "   
lv_client  TYPE RSTSTYPE-CLIENT, "   SY-MANDT
lv_fb_rsts_other  TYPE RSTSTYPE, "   
lv_name  TYPE RSTSTYPE-NAME, "   
lv_no_object  TYPE RSTSTYPE, "   
lv_own_fbhandle  TYPE RSTSTYPE-WFBHANDLE, "   ' '
lv_no_permission  TYPE RSTSTYPE, "   
lv_prom  TYPE RSTSTYPE-PROM, "   'E'
lv_enq_foreign_lock  TYPE RSTSTYPE, "   
lv_rectyp  TYPE RSTSTYPE-RECTYP, "   '*'
lv_enq_sys_fail  TYPE RSTSTYPE, "   
lv_objtype  TYPE RSTSTYPE-TYPE, "   'TEXT'
lv_enq_other  TYPE RSTSTYPE. "   

  CALL FUNCTION 'RSTS_OPEN_RL'  "
    EXPORTING
         ALLINE = lv_alline
         ENQLOCK = lv_enqlock
         AUTHORITY = lv_authority
         CHARCO = lv_charco
         CLIENT = lv_client
         NAME = lv_name
         OWN_FBHANDLE = lv_own_fbhandle
         PROM = lv_prom
         RECTYP = lv_rectyp
         OBJTYPE = lv_objtype
    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_RL




ABAP code using 7.40 inline data declarations to call FM RSTS_OPEN_RL

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 ALLINE FROM RSTSTYPE INTO @DATA(ld_alline).
DATA(ld_alline) = ' '.
 
"SELECT single FBHANDLE FROM RSTSTYPE INTO @DATA(ld_fbhandle).
 
 
"SELECT single PROM FROM RSTSTYPE INTO @DATA(ld_enqlock).
DATA(ld_enqlock) = 'N'.
 
 
"SELECT single AUTHCHECKD FROM RSTSTYPE INTO @DATA(ld_authority).
DATA(ld_authority) = ' '.
 
"SELECT single CHARCO FROM RSTSTYPE INTO @DATA(ld_charco).
DATA(ld_charco) = '*'.
 
 
"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 RECTYP FROM RSTSTYPE INTO @DATA(ld_rectyp).
DATA(ld_rectyp) = '*'.
 
 
"SELECT single TYPE FROM RSTSTYPE INTO @DATA(ld_objtype).
DATA(ld_objtype) = 'TEXT'.
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!