SAP SCPR_REVERT_SBCSETS Function Module for
SCPR_REVERT_SBCSETS is a standard scpr revert sbcsets SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 scpr revert sbcsets FM, simply by entering the name SCPR_REVERT_SBCSETS into the relevant SAP transaction such as SE37 or SE38.
Function Group: SCPR
Program Name: SAPLSCPR
Main Program: SAPLSCPR
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SCPR_REVERT_SBCSETS 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 'SCPR_REVERT_SBCSETS'".
EXPORTING
* ACT_CASCADING = 'C' "
* ACT_REFCUST = 'R' "
* ACT_CLIINDEP = 'X' "
* ACT_CLIENTS = "
* ACT_PROT = 'X' "
* CALLER_ID = ' ' "
* PROT_INFO = "
* IV_TRKORR = ' ' "
IMPORTING
ACT_ID = "
BCSETS_STATI = "
CHANGING
BCSETS = "
IMPORTING Parameters details for SCPR_REVERT_SBCSETS
ACT_CASCADING -
Data type: SCPRACCASCADDefault: 'C'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ACT_REFCUST -
Data type: SCPRACREFCUSTDefault: 'R'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ACT_CLIINDEP -
Data type: SCPR_XDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ACT_CLIENTS -
Data type: SCPRCLITABOptional: Yes
Call by Reference: Yes
ACT_PROT -
Data type: TRFILEDefault: 'X'
Optional: Yes
Call by Reference: Yes
CALLER_ID -
Data type: SCPRCALLERDefault: ' '
Optional: Yes
Call by Reference: Yes
PROT_INFO -
Data type: CHAR30Optional: Yes
Call by Reference: Yes
IV_TRKORR -
Data type: TRKORRDefault: ' '
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for SCPR_REVERT_SBCSETS
ACT_ID -
Data type: SCPRGUID32Optional: No
Call by Reference: Yes
BCSETS_STATI -
Data type: SCPRBCCLITABOptional: No
Call by Reference: Yes
CHANGING Parameters details for SCPR_REVERT_SBCSETS
BCSETS -
Data type: SCPROPROFTABOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for SCPR_REVERT_SBCSETS 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_act_id | TYPE SCPRGUID32, " | |||
| lv_bcsets | TYPE SCPROPROFTAB, " | |||
| lv_act_cascading | TYPE SCPRACCASCAD, " 'C' | |||
| lv_act_refcust | TYPE SCPRACREFCUST, " 'R' | |||
| lv_bcsets_stati | TYPE SCPRBCCLITAB, " | |||
| lv_act_cliindep | TYPE SCPR_X, " 'X' | |||
| lv_act_clients | TYPE SCPRCLITAB, " | |||
| lv_act_prot | TYPE TRFILE, " 'X' | |||
| lv_caller_id | TYPE SCPRCALLER, " ' ' | |||
| lv_prot_info | TYPE CHAR30, " | |||
| lv_iv_trkorr | TYPE TRKORR. " ' ' |
|   CALL FUNCTION 'SCPR_REVERT_SBCSETS' " |
| EXPORTING | ||
| ACT_CASCADING | = lv_act_cascading | |
| ACT_REFCUST | = lv_act_refcust | |
| ACT_CLIINDEP | = lv_act_cliindep | |
| ACT_CLIENTS | = lv_act_clients | |
| ACT_PROT | = lv_act_prot | |
| CALLER_ID | = lv_caller_id | |
| PROT_INFO | = lv_prot_info | |
| IV_TRKORR | = lv_iv_trkorr | |
| IMPORTING | ||
| ACT_ID | = lv_act_id | |
| BCSETS_STATI | = lv_bcsets_stati | |
| CHANGING | ||
| BCSETS | = lv_bcsets | |
| . " SCPR_REVERT_SBCSETS | ||
ABAP code using 7.40 inline data declarations to call FM SCPR_REVERT_SBCSETS
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_act_cascading) | = 'C'. | |||
| DATA(ld_act_refcust) | = 'R'. | |||
| DATA(ld_act_cliindep) | = 'X'. | |||
| DATA(ld_act_prot) | = 'X'. | |||
| DATA(ld_caller_id) | = ' '. | |||
| DATA(ld_iv_trkorr) | = ' '. | |||
Search for further information about these or an SAP related objects