SAP RSTS_OPEN_RLC Function Module for Open TemSe Object To Read Line By Line With Conversion









RSTS_OPEN_RLC is a standard rsts open rlc 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 To Read Line By Line With Conversion 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 rlc FM, simply by entering the name RSTS_OPEN_RLC 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_RLC 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_RLC'"Open TemSe Object To Read Line By Line With Conversion
EXPORTING
* ALLINE = ' ' "All Lines (or Only Normal Ones)
* ENQLOCK = 'N' "Without ('N'), With ('E'), Shared ('S') Enqueue Lock
* AUTHORITY = ' ' "Who Carried Out Authorization Check
* CHARCO = '*' "Character Set (or System Character Set)
* CLIENT = SY-MANDT "Client (or Own)
NAME = "Name of Temse Object
* OWN_FBHANDLE = ' ' "'FBHANDLE' is Used
* PROM = 'E' "Processing Mode
* RECTYP = '*' "Record Type
* OBJTYPE = 'TEXT' "Data Type

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_RLC

ALLINE - All Lines (or Only Normal Ones)

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

ENQLOCK - Without ('N'), With ('E'), Shared ('S') Enqueue Lock

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

AUTHORITY - Who Carried Out Authorization Check

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

CHARCO - Character Set (or System Character Set)

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

CLIENT - Client (or Own)

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

NAME - Name of Temse Object

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

OWN_FBHANDLE - 'FBHANDLE' is Used

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

PROM - Processing Mode

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

RECTYP - Record Type

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

OBJTYPE - Data Type

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

EXPORTING Parameters details for RSTS_OPEN_RLC

FBHANDLE - Handle for Open Object

Data type: RSTSTYPE-FBHANDLE
Optional: 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_RLC 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_RLC'  "Open TemSe Object To Read Line By Line With Conversion
    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_RLC




ABAP code using 7.40 inline data declarations to call FM RSTS_OPEN_RLC

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!