SAP SCPR_ACTIVATE_BCSETS_REMOTE Function Module for









SCPR_ACTIVATE_BCSETS_REMOTE is a standard scpr activate bcsets remote 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 activate bcsets remote FM, simply by entering the name SCPR_ACTIVATE_BCSETS_REMOTE into the relevant SAP transaction such as SE37 or SE38.

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



Function SCPR_ACTIVATE_BCSETS_REMOTE 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_ACTIVATE_BCSETS_REMOTE'"
EXPORTING
* ACTIVATION_TYPE = 1 "
* WRITE_STATUS = ' ' "
* ACTLINKS = ' ' "
* NO_STANDARD = ' ' "
* TRANSPORT_OFF = 'N' "
* SAFETY = 'N' "
* SYSEDIT_OFF = 'N' "
* CALL_FROM = ' ' "
* TASKNAME = 'ACTIV' "
* BATCH_MODE = 'N' "
* BATCH_IMMEDIATELY = 'N' "
* RFCDEST = ' ' "
* BATCH_DATE = '00000000' "
* BATCH_TIME = '000000' "
* VARIABLES_OFF = 'N' "
* AFTER_IMP = 'Y' "
* LANGU_ONLY = 'N' "
* CATEGORY = ' ' "
* SYSTEM = ' ' "Name of SAP R/3 System
* MANDANT = ' ' "Client
* TASK_NUMBER_SYST = ' ' "
* TASK_NUMBER_CUST = ' ' "
* SIMULATION_ON = ' ' "
* REMOTE_TYPE = 'S' "
* COMPLETE_ONLY = 1 "

IMPORTING
PROTO_HANDLE = "
RC_ACTIV = "
TASK_SYST_EXP = "
TASK_CUST_EXP = "
AFT_IMP_DATA = "

CHANGING
* VARIABLES_NEW = "BC Sets: Table of Variables with Language Information

TABLES
BCSET_IDS = "
* VARIABLES = "

EXCEPTIONS
NO_AUTHORITY = 1 NO_BCSET = 2 WRONG_PARAMETERS = 3 NO_RFC_AUTHORITY = 4 RFC_FAILURE = 5 INTERNAL_ERROR = 6 BATCHJOB_ERROR = 7
.



IMPORTING Parameters details for SCPR_ACTIVATE_BCSETS_REMOTE

ACTIVATION_TYPE -

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

WRITE_STATUS -

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

ACTLINKS -

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

NO_STANDARD -

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

TRANSPORT_OFF -

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

SAFETY -

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

SYSEDIT_OFF -

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

CALL_FROM -

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

TASKNAME -

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

BATCH_MODE -

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

BATCH_IMMEDIATELY -

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

RFCDEST -

Data type: RFCDES-RFCDEST
Default: ' '
Optional: No
Call by Reference: No ( called with pass by value option)

BATCH_DATE -

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

BATCH_TIME -

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

VARIABLES_OFF -

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

AFTER_IMP -

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

LANGU_ONLY -

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

CATEGORY -

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

SYSTEM - Name of SAP R/3 System

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

MANDANT - Client

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

TASK_NUMBER_SYST -

Data type: E070-TRKORR
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

TASK_NUMBER_CUST -

Data type: E070-TRKORR
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

SIMULATION_ON -

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

REMOTE_TYPE -

Data type: CHAR1
Default: 'S'
Optional: No
Call by Reference: No ( called with pass by value option)

COMPLETE_ONLY -

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

EXPORTING Parameters details for SCPR_ACTIVATE_BCSETS_REMOTE

PROTO_HANDLE -

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

RC_ACTIV -

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

TASK_SYST_EXP -

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

TASK_CUST_EXP -

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

AFT_IMP_DATA -

Data type: SCPRAFTIMPTAB
Optional: No
Call by Reference: Yes

CHANGING Parameters details for SCPR_ACTIVATE_BCSETS_REMOTE

VARIABLES_NEW - BC Sets: Table of Variables with Language Information

Data type: SCPRVART
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for SCPR_ACTIVATE_BCSETS_REMOTE

BCSET_IDS -

Data type: SCPR_PARNT
Optional: No
Call by Reference: Yes

VARIABLES -

Data type: SCPRVARI
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

NO_AUTHORITY - No BC Set activation authorization

Data type:
Optional: No
Call by Reference: Yes

NO_BCSET -

Data type:
Optional: No
Call by Reference: Yes

WRONG_PARAMETERS -

Data type:
Optional: No
Call by Reference: Yes

NO_RFC_AUTHORITY -

Data type:
Optional: No
Call by Reference: Yes

RFC_FAILURE -

Data type:
Optional: No
Call by Reference: Yes

INTERNAL_ERROR - Internal Error

Data type:
Optional: No
Call by Reference: Yes

BATCHJOB_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SCPR_ACTIVATE_BCSETS_REMOTE 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:
lt_bcset_ids  TYPE STANDARD TABLE OF SCPR_PARNT, "   
lv_no_authority  TYPE SCPR_PARNT, "   
lv_proto_handle  TYPE SCPR_HANDL, "   
lv_variables_new  TYPE SCPRVART, "   
lv_activation_type  TYPE I, "   1
lv_write_status  TYPE CHAR1, "   ' '
lv_actlinks  TYPE CHAR1, "   ' '
lv_no_standard  TYPE CHAR1, "   ' '
lv_transport_off  TYPE CHAR1, "   'N'
lv_safety  TYPE CHAR1, "   'N'
lv_sysedit_off  TYPE CHAR1, "   'N'
lv_call_from  TYPE CHAR1, "   ' '
lv_taskname  TYPE SCPRTASK, "   'ACTIV'
lv_batch_mode  TYPE SCPRBATCH, "   'N'
lv_batch_immediately  TYPE CHAR1, "   'N'
lv_rfcdest  TYPE RFCDES-RFCDEST, "   ' '
lv_no_bcset  TYPE RFCDES, "   
lv_rc_activ  TYPE SCPRACST, "   
lt_variables  TYPE STANDARD TABLE OF SCPRVARI, "   
lv_batch_date  TYPE BTCSDATE, "   '00000000'
lv_batch_time  TYPE BTCSTIME, "   '000000'
lv_variables_off  TYPE CHAR1, "   'N'
lv_after_imp  TYPE CHAR1, "   'Y'
lv_langu_only  TYPE CHAR1, "   'N'
lv_category  TYPE SCPR_CTGRY, "   ' '
lv_system  TYPE SYSYSID, "   ' '
lv_task_syst_exp  TYPE TRKORR, "   
lv_wrong_parameters  TYPE TRKORR, "   
lv_mandant  TYPE MANDT, "   ' '
lv_task_cust_exp  TYPE TRKORR, "   
lv_no_rfc_authority  TYPE TRKORR, "   
lv_rfc_failure  TYPE TRKORR, "   
lv_aft_imp_data  TYPE SCPRAFTIMPTAB, "   
lv_task_number_syst  TYPE E070-TRKORR, "   ' '
lv_internal_error  TYPE E070, "   
lv_task_number_cust  TYPE E070-TRKORR, "   ' '
lv_simulation_on  TYPE CHAR1, "   ' '
lv_batchjob_error  TYPE CHAR1, "   
lv_remote_type  TYPE CHAR1, "   'S'
lv_complete_only  TYPE I. "   1

  CALL FUNCTION 'SCPR_ACTIVATE_BCSETS_REMOTE'  "
    EXPORTING
         ACTIVATION_TYPE = lv_activation_type
         WRITE_STATUS = lv_write_status
         ACTLINKS = lv_actlinks
         NO_STANDARD = lv_no_standard
         TRANSPORT_OFF = lv_transport_off
         SAFETY = lv_safety
         SYSEDIT_OFF = lv_sysedit_off
         CALL_FROM = lv_call_from
         TASKNAME = lv_taskname
         BATCH_MODE = lv_batch_mode
         BATCH_IMMEDIATELY = lv_batch_immediately
         RFCDEST = lv_rfcdest
         BATCH_DATE = lv_batch_date
         BATCH_TIME = lv_batch_time
         VARIABLES_OFF = lv_variables_off
         AFTER_IMP = lv_after_imp
         LANGU_ONLY = lv_langu_only
         CATEGORY = lv_category
         SYSTEM = lv_system
         MANDANT = lv_mandant
         TASK_NUMBER_SYST = lv_task_number_syst
         TASK_NUMBER_CUST = lv_task_number_cust
         SIMULATION_ON = lv_simulation_on
         REMOTE_TYPE = lv_remote_type
         COMPLETE_ONLY = lv_complete_only
    IMPORTING
         PROTO_HANDLE = lv_proto_handle
         RC_ACTIV = lv_rc_activ
         TASK_SYST_EXP = lv_task_syst_exp
         TASK_CUST_EXP = lv_task_cust_exp
         AFT_IMP_DATA = lv_aft_imp_data
    CHANGING
         VARIABLES_NEW = lv_variables_new
    TABLES
         BCSET_IDS = lt_bcset_ids
         VARIABLES = lt_variables
    EXCEPTIONS
        NO_AUTHORITY = 1
        NO_BCSET = 2
        WRONG_PARAMETERS = 3
        NO_RFC_AUTHORITY = 4
        RFC_FAILURE = 5
        INTERNAL_ERROR = 6
        BATCHJOB_ERROR = 7
. " SCPR_ACTIVATE_BCSETS_REMOTE




ABAP code using 7.40 inline data declarations to call FM SCPR_ACTIVATE_BCSETS_REMOTE

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_activation_type) = 1.
 
DATA(ld_write_status) = ' '.
 
DATA(ld_actlinks) = ' '.
 
DATA(ld_no_standard) = ' '.
 
DATA(ld_transport_off) = 'N'.
 
DATA(ld_safety) = 'N'.
 
DATA(ld_sysedit_off) = 'N'.
 
DATA(ld_call_from) = ' '.
 
DATA(ld_taskname) = 'ACTIV'.
 
DATA(ld_batch_mode) = 'N'.
 
DATA(ld_batch_immediately) = 'N'.
 
"SELECT single RFCDEST FROM RFCDES INTO @DATA(ld_rfcdest).
DATA(ld_rfcdest) = ' '.
 
 
 
 
DATA(ld_batch_date) = '00000000'.
 
DATA(ld_batch_time) = '000000'.
 
DATA(ld_variables_off) = 'N'.
 
DATA(ld_after_imp) = 'Y'.
 
DATA(ld_langu_only) = 'N'.
 
DATA(ld_category) = ' '.
 
DATA(ld_system) = ' '.
 
 
 
DATA(ld_mandant) = ' '.
 
 
 
 
 
"SELECT single TRKORR FROM E070 INTO @DATA(ld_task_number_syst).
DATA(ld_task_number_syst) = ' '.
 
 
"SELECT single TRKORR FROM E070 INTO @DATA(ld_task_number_cust).
DATA(ld_task_number_cust) = ' '.
 
DATA(ld_simulation_on) = ' '.
 
 
DATA(ld_remote_type) = 'S'.
 
DATA(ld_complete_only) = 1.
 


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!