SAP RST_TOBJ_TO_DERIVED_TOBJ Function Module for Value of Time Characteristic => Value of Derived Time Characteristic









RST_TOBJ_TO_DERIVED_TOBJ is a standard rst tobj to derived tobj SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Value of Time Characteristic => Value of Derived 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 to derived tobj FM, simply by entering the name RST_TOBJ_TO_DERIVED_TOBJ 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_TO_DERIVED_TOBJ 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_TO_DERIVED_TOBJ'"Value of Time Characteristic => Value of Derived Time Characteristic
EXPORTING
I_TIMNM_FROM = "Name of Time Reference Characteristic
I_TIMNM_TO = "Name of Derived Time Characteristic
* I_TIMNM_FROM_P = "InfoObject
I_TIMVL = "Property of Time Reference Characteristic
* I_TIMVL_P = "
* I_FISCVARNT = "Fiscal Year Variant
* I_BUFFER = RS_C_FALSE "Enable Buffering
* I_PL_CHECK = RS_C_FALSE "Check Plausibility

IMPORTING
E_TIMVL = "Property of Derived Time Reference Characteristic
E_TIMSID = "Master Data ID

EXCEPTIONS
INCOMPATIBLE_TOBJS = 1 NO_INPUT_VALUE = 2 FISCVARNT_MISSING = 3 INPUT_NOT_NUMERIC = 4 WRONG_DATE = 5 WRONG_FISCPER = 6 X_MESSAGE = 7 INPUT_NOT_VALID = 8
.



IMPORTING Parameters details for RST_TOBJ_TO_DERIVED_TOBJ

I_TIMNM_FROM - Name of Time Reference Characteristic

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

I_TIMNM_TO - Name of Derived Time Characteristic

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

I_TIMNM_FROM_P - InfoObject

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

I_TIMVL - Property of Time Reference Characteristic

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

I_TIMVL_P -

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

I_FISCVARNT - Fiscal Year Variant

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

I_BUFFER - Enable Buffering

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

I_PL_CHECK - Check Plausibility

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

EXPORTING Parameters details for RST_TOBJ_TO_DERIVED_TOBJ

E_TIMVL - Property of Derived Time Reference Characteristic

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

E_TIMSID - Master Data ID

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

EXCEPTIONS details

INCOMPATIBLE_TOBJS - Reference and Derived Time Characteristic Are Incompatible

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

NO_INPUT_VALUE - Property of Time Reference Characteristic Is Missing

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

FISCVARNT_MISSING -

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

INPUT_NOT_NUMERIC -

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

WRONG_DATE -

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

WRONG_FISCPER -

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)

INPUT_NOT_VALID -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RST_TOBJ_TO_DERIVED_TOBJ 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_timvl  TYPE RSD_CHAVL, "   
lv_i_timnm_from  TYPE RSDIOBJ-IOBJNM, "   
lv_incompatible_tobjs  TYPE RSDIOBJ, "   
lv_e_timsid  TYPE RSSID, "   
lv_i_timnm_to  TYPE RSDIOBJ-IOBJNM, "   
lv_no_input_value  TYPE RSDIOBJ, "   
lv_i_timnm_from_p  TYPE RSDIOBJ-IOBJNM, "   
lv_fiscvarnt_missing  TYPE RSDIOBJ, "   
lv_i_timvl  TYPE RSD_CHAVL, "   
lv_input_not_numeric  TYPE RSD_CHAVL, "   
lv_i_timvl_p  TYPE RSD_CHAVL, "   
lv_wrong_date  TYPE RSD_CHAVL, "   
lv_i_fiscvarnt  TYPE T009B-PERIV, "   
lv_wrong_fiscper  TYPE T009B, "   
lv_i_buffer  TYPE RS_BOOL, "   RS_C_FALSE
lv_x_message  TYPE RS_BOOL, "   
lv_i_pl_check  TYPE RS_BOOL, "   RS_C_FALSE
lv_input_not_valid  TYPE RS_BOOL. "   

  CALL FUNCTION 'RST_TOBJ_TO_DERIVED_TOBJ'  "Value of Time Characteristic => Value of Derived Time Characteristic
    EXPORTING
         I_TIMNM_FROM = lv_i_timnm_from
         I_TIMNM_TO = lv_i_timnm_to
         I_TIMNM_FROM_P = lv_i_timnm_from_p
         I_TIMVL = lv_i_timvl
         I_TIMVL_P = lv_i_timvl_p
         I_FISCVARNT = lv_i_fiscvarnt
         I_BUFFER = lv_i_buffer
         I_PL_CHECK = lv_i_pl_check
    IMPORTING
         E_TIMVL = lv_e_timvl
         E_TIMSID = lv_e_timsid
    EXCEPTIONS
        INCOMPATIBLE_TOBJS = 1
        NO_INPUT_VALUE = 2
        FISCVARNT_MISSING = 3
        INPUT_NOT_NUMERIC = 4
        WRONG_DATE = 5
        WRONG_FISCPER = 6
        X_MESSAGE = 7
        INPUT_NOT_VALID = 8
. " RST_TOBJ_TO_DERIVED_TOBJ




ABAP code using 7.40 inline data declarations to call FM RST_TOBJ_TO_DERIVED_TOBJ

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_from).
 
 
 
"SELECT single IOBJNM FROM RSDIOBJ INTO @DATA(ld_i_timnm_to).
 
 
"SELECT single IOBJNM FROM RSDIOBJ INTO @DATA(ld_i_timnm_from_p).
 
 
 
 
 
 
"SELECT single PERIV FROM T009B INTO @DATA(ld_i_fiscvarnt).
 
 
DATA(ld_i_buffer) = RS_C_FALSE.
 
 
DATA(ld_i_pl_check) = RS_C_FALSE.
 
 


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!