SAP RST_TOBJ_DERIVABLE Function Module for Checks Whether Times Can Be Derived









RST_TOBJ_DERIVABLE is a standard rst tobj derivable SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Checks Whether Times Can Be Derived 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 derivable FM, simply by entering the name RST_TOBJ_DERIVABLE 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_DERIVABLE 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_DERIVABLE'"Checks Whether Times Can Be Derived
EXPORTING
I_TIMNM_FROM = "
* I_TIMNM_FROM_P = "Partial Time (0FISCYEAR,0FISCPER ->=FISCPER)
I_TIMNM_TO = "
* I_WEEK = "Take Account of Weeks

IMPORTING
E_SUBRC = "
E_FISCVARNT = "If the fiscal year variant is required, it is fixed
.



IMPORTING Parameters details for RST_TOBJ_DERIVABLE

I_TIMNM_FROM -

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

I_TIMNM_FROM_P - Partial Time (0FISCYEAR,0FISCPER ->=FISCPER)

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

I_TIMNM_TO -

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

I_WEEK - Take Account of Weeks

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

EXPORTING Parameters details for RST_TOBJ_DERIVABLE

E_SUBRC -

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

E_FISCVARNT - If the fiscal year variant is required, it is fixed

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

Copy and paste ABAP code example for RST_TOBJ_DERIVABLE 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_subrc  TYPE SY-SUBRC, "   
lv_i_timnm_from  TYPE RSDIOBJ-IOBJNM, "   
lv_e_fiscvarnt  TYPE RRFISC, "   
lv_i_timnm_from_p  TYPE RSDIOBJ-IOBJNM, "   
lv_i_timnm_to  TYPE RSDIOBJ-IOBJNM, "   
lv_i_week  TYPE RS_BOOL. "   

  CALL FUNCTION 'RST_TOBJ_DERIVABLE'  "Checks Whether Times Can Be Derived
    EXPORTING
         I_TIMNM_FROM = lv_i_timnm_from
         I_TIMNM_FROM_P = lv_i_timnm_from_p
         I_TIMNM_TO = lv_i_timnm_to
         I_WEEK = lv_i_week
    IMPORTING
         E_SUBRC = lv_e_subrc
         E_FISCVARNT = lv_e_fiscvarnt
. " RST_TOBJ_DERIVABLE




ABAP code using 7.40 inline data declarations to call FM RST_TOBJ_DERIVABLE

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 SUBRC FROM SY INTO @DATA(ld_e_subrc).
 
"SELECT single IOBJNM FROM RSDIOBJ INTO @DATA(ld_i_timnm_from).
 
 
"SELECT single IOBJNM FROM RSDIOBJ INTO @DATA(ld_i_timnm_from_p).
 
"SELECT single IOBJNM FROM RSDIOBJ INTO @DATA(ld_i_timnm_to).
 
 


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!