SAP RSTS_GET_ATTRIBUTES Function Module for









RSTS_GET_ATTRIBUTES is a standard rsts get attributes 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 get attributes FM, simply by entering the name RSTS_GET_ATTRIBUTES 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): Remote-Enabled
Update:



Function RSTS_GET_ATTRIBUTES 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_GET_ATTRIBUTES'"
EXPORTING
* AUTHORITY = ' ' "Who Carried Out Authorization Check
* CLIENT = SY-MANDT "Client (or Own)
NAME = "Name of Temse Object
* PART = 0 "

IMPORTING
CHARCO = "Character Set
SIZE = "Total Size
STOTYP = "Storage Type
TYPE = "
OBJTYPE = "
LOCAT = "
LANG = "
CREATER = "
CREDATE = "Creation Date
DELDATE = "Expiry Date
MAX_CREDATE = "
MAX_DELDATE = "
NON_UNIQ = "
NOOF_PARTS = "
RECTYP = "Record Type

EXCEPTIONS
FB_ERROR = 1 FB_RSTS_OTHER = 2 NO_OBJECT = 3 NO_PERMISSION = 4
.



IMPORTING Parameters details for RSTS_GET_ATTRIBUTES

AUTHORITY - Who Carried Out Authorization Check

Data type: RSTSTYPE-AUTHCHECKD
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)

PART -

Data type: TST01-DPART
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for RSTS_GET_ATTRIBUTES

CHARCO - Character Set

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

SIZE - Total Size

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

STOTYP - Storage Type

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

TYPE -

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

OBJTYPE -

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

LOCAT -

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

LANG -

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

CREATER -

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

CREDATE - Creation Date

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

DELDATE - Expiry Date

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

MAX_CREDATE -

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

MAX_DELDATE -

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

NON_UNIQ -

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

NOOF_PARTS -

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

RECTYP - Record Type

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

EXCEPTIONS details

FB_ERROR - Function Module Errors

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 -

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)

Copy and paste ABAP code example for RSTS_GET_ATTRIBUTES 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_charco  TYPE RSTSTYPE-CHARCO, "   
lv_fb_error  TYPE RSTSTYPE, "   
lv_authority  TYPE RSTSTYPE-AUTHCHECKD, "   ' '
lv_size  TYPE TST01-DSIZE, "   
lv_stotyp  TYPE TST01-DSTOTYP, "   
lv_type  TYPE RSTSTYPE-TYPE, "   
lv_objtype  TYPE RSTSTYPE-TYPE, "   
lv_locat  TYPE TST01-DLOCAT, "   
lv_lang  TYPE TST01-DLANG, "   
lv_client  TYPE RSTSTYPE-CLIENT, "   SY-MANDT
lv_creater  TYPE RSTSTYPE-CREATER, "   
lv_fb_rsts_other  TYPE RSTSTYPE, "   
lv_name  TYPE RSTSTYPE-NAME, "   
lv_credate  TYPE RSTSTYPE-CREDATE, "   
lv_no_object  TYPE RSTSTYPE, "   
lv_part  TYPE TST01-DPART, "   0
lv_deldate  TYPE RSTSTYPE-DELDATE, "   
lv_no_permission  TYPE RSTSTYPE, "   
lv_max_credate  TYPE RSTSTYPE-CREDATE, "   
lv_max_deldate  TYPE RSTSTYPE-DELDATE, "   
lv_non_uniq  TYPE RSTSTYPE-SEL_OK, "   
lv_noof_parts  TYPE TST01-DNOPARTS, "   
lv_rectyp  TYPE RSTSTYPE-RECTYP. "   

  CALL FUNCTION 'RSTS_GET_ATTRIBUTES'  "
    EXPORTING
         AUTHORITY = lv_authority
         CLIENT = lv_client
         NAME = lv_name
         PART = lv_part
    IMPORTING
         CHARCO = lv_charco
         SIZE = lv_size
         STOTYP = lv_stotyp
         TYPE = lv_type
         OBJTYPE = lv_objtype
         LOCAT = lv_locat
         LANG = lv_lang
         CREATER = lv_creater
         CREDATE = lv_credate
         DELDATE = lv_deldate
         MAX_CREDATE = lv_max_credate
         MAX_DELDATE = lv_max_deldate
         NON_UNIQ = lv_non_uniq
         NOOF_PARTS = lv_noof_parts
         RECTYP = lv_rectyp
    EXCEPTIONS
        FB_ERROR = 1
        FB_RSTS_OTHER = 2
        NO_OBJECT = 3
        NO_PERMISSION = 4
. " RSTS_GET_ATTRIBUTES




ABAP code using 7.40 inline data declarations to call FM RSTS_GET_ATTRIBUTES

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 CHARCO FROM RSTSTYPE INTO @DATA(ld_charco).
 
 
"SELECT single AUTHCHECKD FROM RSTSTYPE INTO @DATA(ld_authority).
DATA(ld_authority) = ' '.
 
"SELECT single DSIZE FROM TST01 INTO @DATA(ld_size).
 
"SELECT single DSTOTYP FROM TST01 INTO @DATA(ld_stotyp).
 
"SELECT single TYPE FROM RSTSTYPE INTO @DATA(ld_type).
 
"SELECT single TYPE FROM RSTSTYPE INTO @DATA(ld_objtype).
 
"SELECT single DLOCAT FROM TST01 INTO @DATA(ld_locat).
 
"SELECT single DLANG FROM TST01 INTO @DATA(ld_lang).
 
"SELECT single CLIENT FROM RSTSTYPE INTO @DATA(ld_client).
DATA(ld_client) = SY-MANDT.
 
"SELECT single CREATER FROM RSTSTYPE INTO @DATA(ld_creater).
 
 
"SELECT single NAME FROM RSTSTYPE INTO @DATA(ld_name).
 
"SELECT single CREDATE FROM RSTSTYPE INTO @DATA(ld_credate).
 
 
"SELECT single DPART FROM TST01 INTO @DATA(ld_part).
 
"SELECT single DELDATE FROM RSTSTYPE INTO @DATA(ld_deldate).
 
 
"SELECT single CREDATE FROM RSTSTYPE INTO @DATA(ld_max_credate).
 
"SELECT single DELDATE FROM RSTSTYPE INTO @DATA(ld_max_deldate).
 
"SELECT single SEL_OK FROM RSTSTYPE INTO @DATA(ld_non_uniq).
 
"SELECT single DNOPARTS FROM TST01 INTO @DATA(ld_noof_parts).
 
"SELECT single RECTYP FROM RSTSTYPE INTO @DATA(ld_rectyp).
 


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!