SAP RSPLW_SELECTION_EDIT Function Module for Edit General Selection









RSPLW_SELECTION_EDIT is a standard rsplw selection edit SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Edit General Selection 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 rsplw selection edit FM, simply by entering the name RSPLW_SELECTION_EDIT into the relevant SAP transaction such as SE37 or SE38.

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



Function RSPLW_SELECTION_EDIT 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 'RSPLW_SELECTION_EDIT'"Edit General Selection
EXPORTING
I_IOBJNM = "InfoObject
* I_THJT_ALLOWED = RS_C_TRUE "Maintenance of Hierarchy Join possible
* I_INTERVALS = RS_C_FALSE "Ranges of values allowed
* I_DISPLAY = RS_C_FALSE "Boolean
* I_S_VAR_ID = "ID of a variable
I_INFOPROV = "InfoProvider
* I_PARAM_TYPE = '3' "Parameter Type 1: Elementary Selection '3' - General
* I_VAR_ALLOWED = RS_C_TRUE "Using Variables Is Permitted
* I_NODES_ONLY = RS_C_FALSE "Only hierarchy node
* I_HIENM_ONLY = RS_C_FALSE "Only hierarchy names (for variable values)
* I_SELECTIONS_ONLY = RS_C_FALSE "Selections without hierarchy nodes
* I_MORE_SINGLE_VALUES = RS_C_FALSE "Single values allowed for basic selections
* I_ONE_SINGLE_VALUE_ONLY = RS_C_FALSE "Only one single value allowed

CHANGING
C_T_RANGE_DT = "Range Table for Design Time
.



IMPORTING Parameters details for RSPLW_SELECTION_EDIT

I_IOBJNM - InfoObject

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

I_THJT_ALLOWED - Maintenance of Hierarchy Join possible

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

I_INTERVALS - Ranges of values allowed

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

I_DISPLAY - Boolean

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

I_S_VAR_ID - ID of a variable

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

I_INFOPROV - InfoProvider

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

I_PARAM_TYPE - Parameter Type 1: Elementary Selection '3' - General

Data type: RSPLF_PARAM_TYPE
Default: '3'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_VAR_ALLOWED - Using Variables Is Permitted

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

I_NODES_ONLY - Only hierarchy node

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

I_HIENM_ONLY - Only hierarchy names (for variable values)

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

I_SELECTIONS_ONLY - Selections without hierarchy nodes

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

I_MORE_SINGLE_VALUES - Single values allowed for basic selections

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

I_ONE_SINGLE_VALUE_ONLY - Only one single value allowed

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

CHANGING Parameters details for RSPLW_SELECTION_EDIT

C_T_RANGE_DT - Range Table for Design Time

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

Copy and paste ABAP code example for RSPLW_SELECTION_EDIT 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_iobjnm  TYPE RSIOBJNM, "   
lv_c_t_range_dt  TYPE RSPLFU_T_RANGE_DT, "   
lv_i_thjt_allowed  TYPE RS_BOOL, "   RS_C_TRUE
lv_i_intervals  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_display  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_s_var_id  TYPE RSR_S_VAR_ID, "   
lv_i_infoprov  TYPE RSINFOPROV, "   
lv_i_param_type  TYPE RSPLF_PARAM_TYPE, "   '3'
lv_i_var_allowed  TYPE RSPLF_VAR_ALLOWED, "   RS_C_TRUE
lv_i_nodes_only  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_hienm_only  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_selections_only  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_more_single_values  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_one_single_value_only  TYPE RS_BOOL. "   RS_C_FALSE

  CALL FUNCTION 'RSPLW_SELECTION_EDIT'  "Edit General Selection
    EXPORTING
         I_IOBJNM = lv_i_iobjnm
         I_THJT_ALLOWED = lv_i_thjt_allowed
         I_INTERVALS = lv_i_intervals
         I_DISPLAY = lv_i_display
         I_S_VAR_ID = lv_i_s_var_id
         I_INFOPROV = lv_i_infoprov
         I_PARAM_TYPE = lv_i_param_type
         I_VAR_ALLOWED = lv_i_var_allowed
         I_NODES_ONLY = lv_i_nodes_only
         I_HIENM_ONLY = lv_i_hienm_only
         I_SELECTIONS_ONLY = lv_i_selections_only
         I_MORE_SINGLE_VALUES = lv_i_more_single_values
         I_ONE_SINGLE_VALUE_ONLY = lv_i_one_single_value_only
    CHANGING
         C_T_RANGE_DT = lv_c_t_range_dt
. " RSPLW_SELECTION_EDIT




ABAP code using 7.40 inline data declarations to call FM RSPLW_SELECTION_EDIT

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.

 
 
DATA(ld_i_thjt_allowed) = RS_C_TRUE.
 
DATA(ld_i_intervals) = RS_C_FALSE.
 
DATA(ld_i_display) = RS_C_FALSE.
 
 
 
DATA(ld_i_param_type) = '3'.
 
DATA(ld_i_var_allowed) = RS_C_TRUE.
 
DATA(ld_i_nodes_only) = RS_C_FALSE.
 
DATA(ld_i_hienm_only) = RS_C_FALSE.
 
DATA(ld_i_selections_only) = RS_C_FALSE.
 
DATA(ld_i_more_single_values) = RS_C_FALSE.
 
DATA(ld_i_one_single_value_only) = 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!