SAP RSPLSSOB_SELOBJ_ROLLBACK Function Module for Reject Changes to Selection Object
RSPLSSOB_SELOBJ_ROLLBACK is a standard rsplssob selobj rollback SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Reject Changes to Selection Object 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 rsplssob selobj rollback FM, simply by entering the name RSPLSSOB_SELOBJ_ROLLBACK into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSPLSSOB
Program Name: SAPLRSPLSSOB
Main Program: SAPLRSPLSSOB
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled + BasXML supported
Update:

Function RSPLSSOB_SELOBJ_ROLLBACK 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 'RSPLSSOB_SELOBJ_ROLLBACK'"Reject Changes to Selection Object.
EXPORTING
I_SELOBJ = "Name (ID) of a Reporting Component
IMPORTING
E_COMPUID = "UUID in Compressed Form
E_T_SELSTATE = "Table Type for RSPLS_S_SELOBJ_X_RANGE
E_T_VAR = "Table Type for RSPLS_S_SELOBJ_X_VAR
E_T_ELTPROP = "Transfer Structure for Element Properties
E_SUBRC = "Return Value, Return Value After ABAP Statements
E_S_HEADER = "Header Information on Selection Object for Planning
E_T_RETURN = "Messages in Structure of BAPIRET2
E_T_ELTDIR = "Table Type for RSPLS_S_SELOBJ_X_ELTDIR
E_T_COMPDIR = "Table Type for RSPLS_S_SELOBJ_X_COMPDIR
E_T_COMPIC = "Table Type for RSPLS_S_SELOBJ_X_COMPIC
E_T_ELTXREF = "Table Type for RSPLS_S_SELOBJ_X_ELTXREF
E_T_SELECT = "Table Type for RSPLS_S_SELOBJ_X_SELECT
E_T_SEL' ' = "Table Type for RSPLS_S_SELOBJ_X_RANGE
IMPORTING Parameters details for RSPLSSOB_SELOBJ_ROLLBACK
I_SELOBJ - Name (ID) of a Reporting Component
Data type: RSZCOMPIDOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RSPLSSOB_SELOBJ_ROLLBACK
E_COMPUID - UUID in Compressed Form
Data type: SYSUUID_25Optional: No
Call by Reference: No ( called with pass by value option)
E_T_SELSTATE - Table Type for RSPLS_S_SELOBJ_X_RANGE
Data type: RSPLS_T_SELOBJ_X_RANGEOptional: No
Call by Reference: No ( called with pass by value option)
E_T_VAR - Table Type for RSPLS_S_SELOBJ_X_VAR
Data type: RSPLS_T_SELOBJ_X_VAROptional: No
Call by Reference: No ( called with pass by value option)
E_T_ELTPROP - Transfer Structure for Element Properties
Data type: RSPLS_T_SELOBJ_X_ELTPROPOptional: No
Call by Reference: No ( called with pass by value option)
E_SUBRC - Return Value, Return Value After ABAP Statements
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
E_S_HEADER - Header Information on Selection Object for Planning
Data type: RSPLS_S_SELOBJ_HEADEROptional: No
Call by Reference: No ( called with pass by value option)
E_T_RETURN - Messages in Structure of BAPIRET2
Data type: RSPLS_T_BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
E_T_ELTDIR - Table Type for RSPLS_S_SELOBJ_X_ELTDIR
Data type: RSPLS_T_SELOBJ_X_ELTDIROptional: No
Call by Reference: No ( called with pass by value option)
E_T_COMPDIR - Table Type for RSPLS_S_SELOBJ_X_COMPDIR
Data type: RSPLS_T_SELOBJ_X_COMPDIROptional: No
Call by Reference: No ( called with pass by value option)
E_T_COMPIC - Table Type for RSPLS_S_SELOBJ_X_COMPIC
Data type: RSPLS_T_SELOBJ_X_COMPICOptional: No
Call by Reference: No ( called with pass by value option)
E_T_ELTXREF - Table Type for RSPLS_S_SELOBJ_X_ELTXREF
Data type: RSPLS_T_SELOBJ_X_ELTXREFOptional: No
Call by Reference: No ( called with pass by value option)
E_T_SELECT - Table Type for RSPLS_S_SELOBJ_X_SELECT
Data type: RSPLS_T_SELOBJ_X_SELECTOptional: No
Call by Reference: No ( called with pass by value option)
E_T_SELSPACE - Table Type for RSPLS_S_SELOBJ_X_RANGE
Data type: RSPLS_T_SELOBJ_X_RANGEOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RSPLSSOB_SELOBJ_ROLLBACK 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_selobj | TYPE RSZCOMPID, " | |||
| lv_e_compuid | TYPE SYSUUID_25, " | |||
| lv_e_t_selstate | TYPE RSPLS_T_SELOBJ_X_RANGE, " | |||
| lv_e_t_var | TYPE RSPLS_T_SELOBJ_X_VAR, " | |||
| lv_e_t_eltprop | TYPE RSPLS_T_SELOBJ_X_ELTPROP, " | |||
| lv_e_subrc | TYPE SY-SUBRC, " | |||
| lv_e_s_header | TYPE RSPLS_S_SELOBJ_HEADER, " | |||
| lv_e_t_return | TYPE RSPLS_T_BAPIRET2, " | |||
| lv_e_t_eltdir | TYPE RSPLS_T_SELOBJ_X_ELTDIR, " | |||
| lv_e_t_compdir | TYPE RSPLS_T_SELOBJ_X_COMPDIR, " | |||
| lv_e_t_compic | TYPE RSPLS_T_SELOBJ_X_COMPIC, " | |||
| lv_e_t_eltxref | TYPE RSPLS_T_SELOBJ_X_ELTXREF, " | |||
| lv_e_t_select | TYPE RSPLS_T_SELOBJ_X_SELECT, " | |||
| lv_e_t_selspace | TYPE RSPLS_T_SELOBJ_X_RANGE. " |
|   CALL FUNCTION 'RSPLSSOB_SELOBJ_ROLLBACK' "Reject Changes to Selection Object |
| EXPORTING | ||
| I_SELOBJ | = lv_i_selobj | |
| IMPORTING | ||
| E_COMPUID | = lv_e_compuid | |
| E_T_SELSTATE | = lv_e_t_selstate | |
| E_T_VAR | = lv_e_t_var | |
| E_T_ELTPROP | = lv_e_t_eltprop | |
| E_SUBRC | = lv_e_subrc | |
| E_S_HEADER | = lv_e_s_header | |
| E_T_RETURN | = lv_e_t_return | |
| E_T_ELTDIR | = lv_e_t_eltdir | |
| E_T_COMPDIR | = lv_e_t_compdir | |
| E_T_COMPIC | = lv_e_t_compic | |
| E_T_ELTXREF | = lv_e_t_eltxref | |
| E_T_SELECT | = lv_e_t_select | |
| E_T_SELSPACE | = lv_e_t_selspace | |
| . " RSPLSSOB_SELOBJ_ROLLBACK | ||
ABAP code using 7.40 inline data declarations to call FM RSPLSSOB_SELOBJ_ROLLBACK
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). | ||||
Search for further information about these or an SAP related objects