SAP RST_TOBJ_SHIFT_SID Function Module for Incrementing/Decrementing of the SID for a Time Characteristic
RST_TOBJ_SHIFT_SID is a standard rst tobj shift 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 shift sid FM, simply by entering the name RST_TOBJ_SHIFT_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_SHIFT_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_SHIFT_SID'"Incrementing/Decrementing of the SID for a Time Characteristic.
EXPORTING
I_TIMNM = "Name of Time Characteristic
I_TIMSID = "Value of Time Characteristic
I_SHIFT = "Shift (Pos. or Neg.)
* I_EXTRA_PERIOD = RS_C_FALSE "Boolean
* I_INFOCUBE = "
* I_FISCVARNT = "Fiscal Year Variant
IMPORTING
E_TIMSID = "Value After Shift
EXCEPTIONS
OUT_OF_RANGE = 1 NOT_NUMERIC = 2 WRONG_CLIENT = 3 INVALID_FORMAT = 4 INVALID_FISCVARNT = 5 X_MESSAGE = 6
IMPORTING Parameters details for RST_TOBJ_SHIFT_SID
I_TIMNM - Name of Time Characteristic
Data type: RSDIOBJ-IOBJNMOptional: No
Call by Reference: Yes
I_TIMSID - Value of Time Characteristic
Data type: RSD_SIDOptional: No
Call by Reference: Yes
I_SHIFT - Shift (Pos. or Neg.)
Data type: IOptional: No
Call by Reference: Yes
I_EXTRA_PERIOD - Boolean
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_INFOCUBE -
Data type: RSD_INFOCUBEOptional: Yes
Call by Reference: Yes
I_FISCVARNT - Fiscal Year Variant
Data type: T009B-PERIVOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RST_TOBJ_SHIFT_SID
E_TIMSID - Value After Shift
Data type: RSD_SIDOptional: 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)
WRONG_CLIENT -
Data type:Optional: No
Call by Reference: Yes
INVALID_FORMAT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_FISCVARNT -
Data type:Optional: No
Call by Reference: Yes
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_SHIFT_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_i_timnm | TYPE RSDIOBJ-IOBJNM, " | |||
| lv_e_timsid | TYPE RSD_SID, " | |||
| lv_out_of_range | TYPE RSD_SID, " | |||
| lv_i_timsid | TYPE RSD_SID, " | |||
| lv_not_numeric | TYPE RSD_SID, " | |||
| lv_i_shift | TYPE I, " | |||
| lv_wrong_client | TYPE I, " | |||
| lv_invalid_format | TYPE I, " | |||
| lv_i_extra_period | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_i_infocube | TYPE RSD_INFOCUBE, " | |||
| lv_invalid_fiscvarnt | TYPE RSD_INFOCUBE, " | |||
| lv_x_message | TYPE RSD_INFOCUBE, " | |||
| lv_i_fiscvarnt | TYPE T009B-PERIV. " |
|   CALL FUNCTION 'RST_TOBJ_SHIFT_SID' "Incrementing/Decrementing of the SID for a Time Characteristic |
| EXPORTING | ||
| I_TIMNM | = lv_i_timnm | |
| I_TIMSID | = lv_i_timsid | |
| I_SHIFT | = lv_i_shift | |
| I_EXTRA_PERIOD | = lv_i_extra_period | |
| I_INFOCUBE | = lv_i_infocube | |
| I_FISCVARNT | = lv_i_fiscvarnt | |
| IMPORTING | ||
| E_TIMSID | = lv_e_timsid | |
| EXCEPTIONS | ||
| OUT_OF_RANGE = 1 | ||
| NOT_NUMERIC = 2 | ||
| WRONG_CLIENT = 3 | ||
| INVALID_FORMAT = 4 | ||
| INVALID_FISCVARNT = 5 | ||
| X_MESSAGE = 6 | ||
| . " RST_TOBJ_SHIFT_SID | ||
ABAP code using 7.40 inline data declarations to call FM RST_TOBJ_SHIFT_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). | ||||
| DATA(ld_i_extra_period) | = RS_C_FALSE. | |||
| "SELECT single PERIV FROM T009B INTO @DATA(ld_i_fiscvarnt). | ||||
Search for further information about these or an SAP related objects