SAP RSTS_OPEN_WL Function Module for Open TemSe Object To Write Line By Line









RSTS_OPEN_WL is a standard rsts open wl 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 Write Line By Line 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 wl FM, simply by entering the name RSTS_OPEN_WL 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_WL 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_WL'"Open TemSe Object To Write Line By Line
EXPORTING
* ALLINE = ' ' "All Lines (or Only Normal Ones)
* RECTYP = '*' "Record Type
* OBJTYPE = 'TEXT' "Object Type (for example 'TEXT')
* ENQLOCK = 'N' "Without ('N'), With ('E') Enqueue Lock
* AUTHORITY = ' ' "Who Carried Out Authorization Check
* CHARCO = '*' "Character Set (or System Character Set)
* LIFEHOURS = 192 "Life Cycle of the Object (in Hours)
NAME = "Name of Temse Object
* NO_ROLLBACK = ' ' "No Data Loss for ROLLBACK
* OWN_FBHANDLE = ' ' "'FBHANDLE' is Used
* PATH = 'db' "Path Name (for example, 'DB', '&G' and so on)
* PROM = 'E' "Processing Mode

IMPORTING
FBHANDLE = "Handle for Open Object
REALNAME = "

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_WL

ALLINE - All Lines (or Only Normal Ones)

Data type: RSTSTYPE-ALLINE
Default: ' '
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 - Object Type (for example 'TEXT')

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

ENQLOCK - Without ('N'), With ('E') 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)

LIFEHOURS - Life Cycle of the Object (in Hours)

Data type:
Default: 192
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)

NO_ROLLBACK - No Data Loss for ROLLBACK

Data type: RSTSTYPE-MOD_NOROLB
Default: ' '
Optional: Yes
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)

PATH - Path Name (for example, 'DB', '&G' and so on)

Data type: RSTSTYPE-PATH
Default: 'db'
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)

EXPORTING Parameters details for RSTS_OPEN_WL

FBHANDLE - Handle for Open Object

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

REALNAME -

Data type: RSTSTYPE-NAME
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 - Enqueue Error 'SYSTEM_FAILURE'

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

ENQ_OTHER - Enqueue Error 'Others'

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

Copy and paste ABAP code example for RSTS_OPEN_WL 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_rectyp  TYPE RSTSTYPE-RECTYP, "   '*'
lv_objtype  TYPE RSTSTYPE-TYPE, "   'TEXT'
lv_enqlock  TYPE RSTSTYPE-PROM, "   'N'
lv_fb_error  TYPE RSTSTYPE, "   
lv_realname  TYPE RSTSTYPE-NAME, "   
lv_authority  TYPE RSTSTYPE-AUTHCHECKD, "   ' '
lv_charco  TYPE RSTSTYPE-CHARCO, "   '*'
lv_fb_rsts_noconv  TYPE RSTSTYPE, "   
lv_lifehours  TYPE RSTSTYPE, "   192
lv_fb_rsts_other  TYPE RSTSTYPE, "   
lv_name  TYPE RSTSTYPE-NAME, "   
lv_no_object  TYPE RSTSTYPE, "   
lv_no_rollback  TYPE RSTSTYPE-MOD_NOROLB, "   ' '
lv_no_permission  TYPE RSTSTYPE, "   
lv_own_fbhandle  TYPE RSTSTYPE-WFBHANDLE, "   ' '
lv_enq_foreign_lock  TYPE RSTSTYPE, "   
lv_path  TYPE RSTSTYPE-PATH, "   'db'
lv_enq_sys_fail  TYPE RSTSTYPE, "   
lv_prom  TYPE RSTSTYPE-PROM, "   'E'
lv_enq_other  TYPE RSTSTYPE. "   

  CALL FUNCTION 'RSTS_OPEN_WL'  "Open TemSe Object To Write Line By Line
    EXPORTING
         ALLINE = lv_alline
         RECTYP = lv_rectyp
         OBJTYPE = lv_objtype
         ENQLOCK = lv_enqlock
         AUTHORITY = lv_authority
         CHARCO = lv_charco
         LIFEHOURS = lv_lifehours
         NAME = lv_name
         NO_ROLLBACK = lv_no_rollback
         OWN_FBHANDLE = lv_own_fbhandle
         PATH = lv_path
         PROM = lv_prom
    IMPORTING
         FBHANDLE = lv_fbhandle
         REALNAME = lv_realname
    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_WL




ABAP code using 7.40 inline data declarations to call FM RSTS_OPEN_WL

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 RECTYP FROM RSTSTYPE INTO @DATA(ld_rectyp).
DATA(ld_rectyp) = '*'.
 
"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'.
 
 
"SELECT single NAME FROM RSTSTYPE INTO @DATA(ld_realname).
 
"SELECT single AUTHCHECKD FROM RSTSTYPE INTO @DATA(ld_authority).
DATA(ld_authority) = ' '.
 
"SELECT single CHARCO FROM RSTSTYPE INTO @DATA(ld_charco).
DATA(ld_charco) = '*'.
 
 
DATA(ld_lifehours) = 192.
 
 
"SELECT single NAME FROM RSTSTYPE INTO @DATA(ld_name).
 
 
"SELECT single MOD_NOROLB FROM RSTSTYPE INTO @DATA(ld_no_rollback).
DATA(ld_no_rollback) = ' '.
 
 
"SELECT single WFBHANDLE FROM RSTSTYPE INTO @DATA(ld_own_fbhandle).
DATA(ld_own_fbhandle) = ' '.
 
 
"SELECT single PATH FROM RSTSTYPE INTO @DATA(ld_path).
DATA(ld_path) = 'db'.
 
 
"SELECT single PROM FROM RSTSTYPE INTO @DATA(ld_prom).
DATA(ld_prom) = 'E'.
 
 


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!