SAP CO_BT_RESB_DELETE Function Module for NOTRANSL: Loschen von Satzen aus der RESB_BT
CO_BT_RESB_DELETE is a standard co bt resb delete SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Loschen von Satzen aus der RESB_BT 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 co bt resb delete FM, simply by entering the name CO_BT_RESB_DELETE into the relevant SAP transaction such as SE37 or SE38.
Function Group: COBC
Program Name: SAPLCOBC
Main Program: SAPLCOBC
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CO_BT_RESB_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 'CO_BT_RESB_DELETE'"NOTRANSL: Loschen von Satzen aus der RESB_BT.
EXPORTING
* FLG_DEL = ' ' "Physically delete indicator in any case
INDEX = "Index of component in document table
* DEL_ALL = ' ' "Selection Indicator
* DONT_DEL_LOWER_TREE = ' ' "Selection Indicator
* VBKZ_IMP = "Update Indicator
* DEL_COMP_OF_PHAN = YX "
IMPORTING
FLG_LOG = "Indicator component was logically deleted
EXCEPTIONS
COMP_NOT_FOUND = 1
IMPORTING Parameters details for CO_BT_RESB_DELETE
FLG_DEL - Physically delete indicator in any case
Data type: RC27X-FLG_SELDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
INDEX - Index of component in document table
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
DEL_ALL - Selection Indicator
Data type: RC27X-FLG_SELDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DONT_DEL_LOWER_TREE - Selection Indicator
Data type: RC27X-FLG_SELDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
VBKZ_IMP - Update Indicator
Data type: RESBB-VBKZOptional: Yes
Call by Reference: No ( called with pass by value option)
DEL_COMP_OF_PHAN -
Data type: CDefault: YX
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CO_BT_RESB_DELETE
FLG_LOG - Indicator component was logically deleted
Data type: RC27X-FLG_SELOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
COMP_NOT_FOUND - Internal error: Document table structure incorrect
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CO_BT_RESB_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_flg_del | TYPE RC27X-FLG_SEL, " SPACE | |||
| lv_flg_log | TYPE RC27X-FLG_SEL, " | |||
| lv_comp_not_found | TYPE RC27X, " | |||
| lv_index | TYPE SY-TABIX, " | |||
| lv_del_all | TYPE RC27X-FLG_SEL, " SPACE | |||
| lv_dont_del_lower_tree | TYPE RC27X-FLG_SEL, " SPACE | |||
| lv_vbkz_imp | TYPE RESBB-VBKZ, " | |||
| lv_del_comp_of_phan | TYPE C. " YX |
|   CALL FUNCTION 'CO_BT_RESB_DELETE' "NOTRANSL: Loschen von Satzen aus der RESB_BT |
| EXPORTING | ||
| FLG_DEL | = lv_flg_del | |
| INDEX | = lv_index | |
| DEL_ALL | = lv_del_all | |
| DONT_DEL_LOWER_TREE | = lv_dont_del_lower_tree | |
| VBKZ_IMP | = lv_vbkz_imp | |
| DEL_COMP_OF_PHAN | = lv_del_comp_of_phan | |
| IMPORTING | ||
| FLG_LOG | = lv_flg_log | |
| EXCEPTIONS | ||
| COMP_NOT_FOUND = 1 | ||
| . " CO_BT_RESB_DELETE | ||
ABAP code using 7.40 inline data declarations to call FM CO_BT_RESB_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.| "SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_del). | ||||
| DATA(ld_flg_del) | = ' '. | |||
| "SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_log). | ||||
| "SELECT single TABIX FROM SY INTO @DATA(ld_index). | ||||
| "SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_del_all). | ||||
| DATA(ld_del_all) | = ' '. | |||
| "SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_dont_del_lower_tree). | ||||
| DATA(ld_dont_del_lower_tree) | = ' '. | |||
| "SELECT single VBKZ FROM RESBB INTO @DATA(ld_vbkz_imp). | ||||
| DATA(ld_del_comp_of_phan) | = YX. | |||
Search for further information about these or an SAP related objects