SAP RST_TOBJ_LENG_SID Function Module for Incrementing/Decrementing of the SID for a Time Characteristic









RST_TOBJ_LENG_SID is a standard rst tobj leng sid SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Incrementing/Decrementing of the SID for a Time Characteristic 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 rst tobj leng sid FM, simply by entering the name RST_TOBJ_LENG_SID into the relevant SAP transaction such as SE37 or SE38.

Function Group: RSTIME
Program Name: SAPLRSTIME
Main Program: SAPLRSTIME
Appliation area: B
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RST_TOBJ_LENG_SID 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 'RST_TOBJ_LENG_SID'"Incrementing/Decrementing of the SID for a Time Characteristic
EXPORTING
I_TIMNM = "Name of Time Characteristic
I_SIDLOW = "Value of Time Characteristic
I_SIDHIGH = "Shift (Pos. or Neg.)
* I_INFOCUBE = "
* I_FISCVARNT = "Fiscal Year Variant

IMPORTING
E_LENG = "Length of the Interval in Units

EXCEPTIONS
OUT_OF_RANGE = 1 NOT_NUMERIC = 2 INVALID_FORMAT = 3 X_MESSAGE = 4
.



IMPORTING Parameters details for RST_TOBJ_LENG_SID

I_TIMNM - Name of Time Characteristic

Data type: RSDIOBJ-IOBJNM
Optional: No
Call by Reference: Yes

I_SIDLOW - Value of Time Characteristic

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

I_SIDHIGH - Shift (Pos. or Neg.)

Data type: RSSID
Optional: No
Call by Reference: Yes

I_INFOCUBE -

Data type: RSD_INFOCUBE
Optional: Yes
Call by Reference: Yes

I_FISCVARNT - Fiscal Year Variant

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

EXPORTING Parameters details for RST_TOBJ_LENG_SID

E_LENG - Length of the Interval in Units

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

EXCEPTIONS details

OUT_OF_RANGE -

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

NOT_NUMERIC -

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

INVALID_FORMAT -

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

X_MESSAGE -

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

Copy and paste ABAP code example for RST_TOBJ_LENG_SID 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_e_leng  TYPE I, "   
lv_i_timnm  TYPE RSDIOBJ-IOBJNM, "   
lv_out_of_range  TYPE RSDIOBJ, "   
lv_i_sidlow  TYPE RSSID, "   
lv_not_numeric  TYPE RSSID, "   
lv_i_sidhigh  TYPE RSSID, "   
lv_invalid_format  TYPE RSSID, "   
lv_x_message  TYPE RSSID, "   
lv_i_infocube  TYPE RSD_INFOCUBE, "   
lv_i_fiscvarnt  TYPE T009B-PERIV. "   

  CALL FUNCTION 'RST_TOBJ_LENG_SID'  "Incrementing/Decrementing of the SID for a Time Characteristic
    EXPORTING
         I_TIMNM = lv_i_timnm
         I_SIDLOW = lv_i_sidlow
         I_SIDHIGH = lv_i_sidhigh
         I_INFOCUBE = lv_i_infocube
         I_FISCVARNT = lv_i_fiscvarnt
    IMPORTING
         E_LENG = lv_e_leng
    EXCEPTIONS
        OUT_OF_RANGE = 1
        NOT_NUMERIC = 2
        INVALID_FORMAT = 3
        X_MESSAGE = 4
. " RST_TOBJ_LENG_SID




ABAP code using 7.40 inline data declarations to call FM RST_TOBJ_LENG_SID

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 IOBJNM FROM RSDIOBJ INTO @DATA(ld_i_timnm).
 
 
 
 
 
 
 
 
"SELECT single PERIV FROM T009B INTO @DATA(ld_i_fiscvarnt).
 


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!