SAP SBCS_RESTORE Function Module for









SBCS_RESTORE is a standard sbcs restore 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 sbcs restore FM, simply by entering the name SBCS_RESTORE into the relevant SAP transaction such as SE37 or SE38.

Function Group: SBCOMRE
Program Name: SAPLSBCOMRE
Main Program: SAPLSBCOMRE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function SBCS_RESTORE 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 'SBCS_RESTORE'"
EXPORTING
* IS_OWNER_ADDR = "
* IS_SOFFLOIO = "
* IS_SOFM = "
* IS_SOFD = "
* IS_SOOD = "
* IS_SOID = "
* IS_BCST_NOTE = "
* IV_TESTMODE = "
* IV_TARGET = "
* IV_DEEP_CHECK = "

IMPORTING
EV_TRANS = "

TABLES
* T_OBJHEAD = "
* T_SOFA = "
* T_SORD = "
* T_BCST_SR = "
* T_SRGBTBREL = "
* T_SRRELROLES = "
* T_SRGBINREL = "
* T_SRBCSBREL = "
* T_CAM_RECS = "
* T_BOR_RECS = "
* T_BCST_RE = "
* T_OBJCONT = "
* T_CAM_SENDER = "
* T_SENDER_ADDR = "
* T_SODM = "
* T_SOFFPHF = "
* T_SOFFPHIO = "
* T_OBJPARA = "
* T_OBJPARB = "
* T_SOOS = "
* T_SOES = "
* T_SOES_ADDR = "
* T_SOST = "
* T_OBJHEX = "

EXCEPTIONS
PARENT_NOT_EXISTING = 1 X_ERROR = 2 NO_AUTHORIZATION = 3 PARAMETER_ERROR = 4
.



IMPORTING Parameters details for SBCS_RESTORE

IS_OWNER_ADDR -

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

IS_SOFFLOIO -

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

IS_SOFM -

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

IS_SOFD -

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

IS_SOOD -

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

IS_SOID -

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

IS_BCST_NOTE -

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

IV_TESTMODE -

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

IV_TARGET -

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

IV_DEEP_CHECK -

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

EXPORTING Parameters details for SBCS_RESTORE

EV_TRANS -

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

TABLES Parameters details for SBCS_RESTORE

T_OBJHEAD -

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

T_SOFA -

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

T_SORD -

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

T_BCST_SR -

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

T_SRGBTBREL -

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

T_SRRELROLES -

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

T_SRGBINREL -

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

T_SRBCSBREL -

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

T_CAM_RECS -

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

T_BOR_RECS -

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

T_BCST_RE -

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

T_OBJCONT -

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

T_CAM_SENDER -

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

T_SENDER_ADDR -

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

T_SODM -

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

T_SOFFPHF -

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

T_SOFFPHIO -

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

T_OBJPARA -

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

T_OBJPARB -

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

T_SOOS -

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

T_SOES -

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

T_SOES_ADDR -

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

T_SOST -

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

T_OBJHEX -

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

EXCEPTIONS details

PARENT_NOT_EXISTING -

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

X_ERROR -

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

NO_AUTHORIZATION -

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

PARAMETER_ERROR -

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

Copy and paste ABAP code example for SBCS_RESTORE 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_ev_trans  TYPE SX_BOOLEAN, "   
lt_t_objhead  TYPE STANDARD TABLE OF SOLI, "   
lv_is_owner_addr  TYPE SOXDA, "   
lv_parent_not_existing  TYPE SOXDA, "   
lt_t_sofa  TYPE STANDARD TABLE OF SOFA, "   
lv_is_soffloio  TYPE SOFFLOIO, "   
lt_t_sord  TYPE STANDARD TABLE OF SORD, "   
lt_t_bcst_sr  TYPE STANDARD TABLE OF BCST_SR, "   
lt_t_srgbtbrel  TYPE STANDARD TABLE OF SRGBTBREL, "   
lt_t_srrelroles  TYPE STANDARD TABLE OF SRRELROLES, "   
lt_t_srgbinrel  TYPE STANDARD TABLE OF SRGBINREL, "   
lt_t_srbcsbrel  TYPE STANDARD TABLE OF SRBCSBREL, "   
lt_t_cam_recs  TYPE STANDARD TABLE OF BCST_CAM, "   
lt_t_bor_recs  TYPE STANDARD TABLE OF BCST_BOR, "   
lt_t_bcst_re  TYPE STANDARD TABLE OF BCST_RE, "   
lv_is_sofm  TYPE SOFM, "   
lv_x_error  TYPE SOFM, "   
lt_t_objcont  TYPE STANDARD TABLE OF SOLI, "   
lt_t_cam_sender  TYPE STANDARD TABLE OF BCST_CAM, "   
lt_t_sender_addr  TYPE STANDARD TABLE OF SOXDA, "   
lt_t_sodm  TYPE STANDARD TABLE OF SODM, "   
lt_t_soffphf  TYPE STANDARD TABLE OF SOFFPHF, "   
lt_t_soffphio  TYPE STANDARD TABLE OF SOFFPHIO, "   
lv_is_sofd  TYPE SOFD, "   
lt_t_objpara  TYPE STANDARD TABLE OF SELC, "   
lv_no_authorization  TYPE SELC, "   
lv_is_sood  TYPE SOOD, "   
lt_t_objparb  TYPE STANDARD TABLE OF SOOP1, "   
lv_parameter_error  TYPE SOOP1, "   
lt_t_soos  TYPE STANDARD TABLE OF SOOS, "   
lv_is_soid  TYPE SOID, "   
lt_t_soes  TYPE STANDARD TABLE OF SOES, "   
lv_is_bcst_note  TYPE BCST_NOTE, "   
lv_iv_testmode  TYPE OS_BOOLEAN, "   
lt_t_soes_addr  TYPE STANDARD TABLE OF SOXDA, "   
lt_t_sost  TYPE STANDARD TABLE OF SOST, "   
lv_iv_target  TYPE SOFD-OBJNAM, "   
lt_t_objhex  TYPE STANDARD TABLE OF SOLIX, "   
lv_iv_deep_check  TYPE OS_BOOLEAN. "   

  CALL FUNCTION 'SBCS_RESTORE'  "
    EXPORTING
         IS_OWNER_ADDR = lv_is_owner_addr
         IS_SOFFLOIO = lv_is_soffloio
         IS_SOFM = lv_is_sofm
         IS_SOFD = lv_is_sofd
         IS_SOOD = lv_is_sood
         IS_SOID = lv_is_soid
         IS_BCST_NOTE = lv_is_bcst_note
         IV_TESTMODE = lv_iv_testmode
         IV_TARGET = lv_iv_target
         IV_DEEP_CHECK = lv_iv_deep_check
    IMPORTING
         EV_TRANS = lv_ev_trans
    TABLES
         T_OBJHEAD = lt_t_objhead
         T_SOFA = lt_t_sofa
         T_SORD = lt_t_sord
         T_BCST_SR = lt_t_bcst_sr
         T_SRGBTBREL = lt_t_srgbtbrel
         T_SRRELROLES = lt_t_srrelroles
         T_SRGBINREL = lt_t_srgbinrel
         T_SRBCSBREL = lt_t_srbcsbrel
         T_CAM_RECS = lt_t_cam_recs
         T_BOR_RECS = lt_t_bor_recs
         T_BCST_RE = lt_t_bcst_re
         T_OBJCONT = lt_t_objcont
         T_CAM_SENDER = lt_t_cam_sender
         T_SENDER_ADDR = lt_t_sender_addr
         T_SODM = lt_t_sodm
         T_SOFFPHF = lt_t_soffphf
         T_SOFFPHIO = lt_t_soffphio
         T_OBJPARA = lt_t_objpara
         T_OBJPARB = lt_t_objparb
         T_SOOS = lt_t_soos
         T_SOES = lt_t_soes
         T_SOES_ADDR = lt_t_soes_addr
         T_SOST = lt_t_sost
         T_OBJHEX = lt_t_objhex
    EXCEPTIONS
        PARENT_NOT_EXISTING = 1
        X_ERROR = 2
        NO_AUTHORIZATION = 3
        PARAMETER_ERROR = 4
. " SBCS_RESTORE




ABAP code using 7.40 inline data declarations to call FM SBCS_RESTORE

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 OBJNAM FROM SOFD INTO @DATA(ld_iv_target).
 
 
 


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!