SAP SWB_START_CONDITION_DELETE Function Module for









SWB_START_CONDITION_DELETE is a standard swb start condition delete 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 swb start condition delete FM, simply by entering the name SWB_START_CONDITION_DELETE into the relevant SAP transaction such as SE37 or SE38.

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



Function SWB_START_CONDITION_DELETE 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 'SWB_START_CONDITION_DELETE'"
EXPORTING
* CLIENT = SY-MANDT "
* DELETE_COUPLING = ' ' "
* RESTORE_SAP_DEFAULT = ' ' "
* NO_CHECK = ' ' "
* LINKAGE_OBJECT = "
RECEIVER = "
* VERSION = "
* CATID = "Object Category
OBJECTTYPE = "
EVENT = "
* RULENAME = "
* CLIENT_INDEPENDENT = ' ' "
* DEACTIVATE_COUPLING = 'X' "

IMPORTING
USED_LINKAGE_OBJECT = "

EXCEPTIONS
ERROR_DELETING_RULE = 1 ERROR_UPDATING_COUPLING = 2 ERROR_DELETING_COUPLING = 3 ERROR_ASSIGNING_TRANSPORT = 4
.



IMPORTING Parameters details for SWB_START_CONDITION_DELETE

CLIENT -

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

DELETE_COUPLING -

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

RESTORE_SAP_DEFAULT -

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

NO_CHECK -

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

LINKAGE_OBJECT -

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

RECEIVER -

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

VERSION -

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

CATID - Object Category

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

OBJECTTYPE -

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

EVENT -

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

RULENAME -

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

CLIENT_INDEPENDENT -

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

DEACTIVATE_COUPLING -

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

EXPORTING Parameters details for SWB_START_CONDITION_DELETE

USED_LINKAGE_OBJECT -

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

EXCEPTIONS details

ERROR_DELETING_RULE -

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

ERROR_UPDATING_COUPLING -

Data type:
Optional: No
Call by Reference: Yes

ERROR_DELETING_COUPLING -

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

ERROR_ASSIGNING_TRANSPORT -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SWB_START_CONDITION_DELETE 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_client  TYPE MANDT, "   SY-MANDT
lv_error_deleting_rule  TYPE MANDT, "   
lv_used_linkage_object  TYPE IF_SWF_EVT_TYPE_LINKAGE, "   
lv_delete_coupling  TYPE XFELD, "   ' '
lv_restore_sap_default  TYPE XFELD, "   SPACE
lv_no_check  TYPE XFELD, "   ' '
lv_linkage_object  TYPE IF_SWF_EVT_TYPE_LINKAGE, "   
lv_receiver  TYPE SWE_RECTYP, "   
lv_error_updating_coupling  TYPE SWE_RECTYP, "   
lv_version  TYPE SWD_VERSIO, "   
lv_error_deleting_coupling  TYPE SWD_VERSIO, "   
lv_catid  TYPE SIBFCATID, "   
lv_error_assigning_transport  TYPE SIBFCATID, "   
lv_objecttype  TYPE C, "   
lv_event  TYPE SWO_EVENT, "   
lv_rulename  TYPE SWB_CONAME, "   
lv_client_independent  TYPE XFELD, "   SPACE
lv_deactivate_coupling  TYPE XFELD. "   'X'

  CALL FUNCTION 'SWB_START_CONDITION_DELETE'  "
    EXPORTING
         CLIENT = lv_client
         DELETE_COUPLING = lv_delete_coupling
         RESTORE_SAP_DEFAULT = lv_restore_sap_default
         NO_CHECK = lv_no_check
         LINKAGE_OBJECT = lv_linkage_object
         RECEIVER = lv_receiver
         VERSION = lv_version
         CATID = lv_catid
         OBJECTTYPE = lv_objecttype
         EVENT = lv_event
         RULENAME = lv_rulename
         CLIENT_INDEPENDENT = lv_client_independent
         DEACTIVATE_COUPLING = lv_deactivate_coupling
    IMPORTING
         USED_LINKAGE_OBJECT = lv_used_linkage_object
    EXCEPTIONS
        ERROR_DELETING_RULE = 1
        ERROR_UPDATING_COUPLING = 2
        ERROR_DELETING_COUPLING = 3
        ERROR_ASSIGNING_TRANSPORT = 4
. " SWB_START_CONDITION_DELETE




ABAP code using 7.40 inline data declarations to call FM SWB_START_CONDITION_DELETE

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_client) = SY-MANDT.
 
 
 
DATA(ld_delete_coupling) = ' '.
 
DATA(ld_restore_sap_default) = ' '.
 
DATA(ld_no_check) = ' '.
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_client_independent) = ' '.
 
DATA(ld_deactivate_coupling) = 'X'.
 


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!