SAP RDM_BBY_DB_DELETE Function Module for Bonus Buy: Deletion of Bonus Buys









RDM_BBY_DB_DELETE is a standard rdm bby db 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 Bonus Buy: Deletion of Bonus Buys 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 rdm bby db delete FM, simply by entering the name RDM_BBY_DB_DELETE into the relevant SAP transaction such as SE37 or SE38.

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



Function RDM_BBY_DB_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 'RDM_BBY_DB_DELETE'"Bonus Buy: Deletion of Bonus Buys
EXPORTING
I_BBYNR = "Bonus Buy
* IS_WA_HEADER = "Bonus Buy: Work-Area Header
* I_LOCK_TYPE = '0' "Bonus Buy: Lock handling type
* I_CHECK_AUTHORITY = ' ' "Check authority
* I_TESTRUN = ' ' "Switch to Simulation Session for Write BAPIs

EXCEPTIONS
DB_HEADER_NOT_FOUND = 1 NO_LOCK_POSSIBLE = 2 NO_AUTHORITY = 3 DELETION_NOT_POSSIBLE = 4 OTHER_ERROR = 5
.



IMPORTING Parameters details for RDM_BBY_DB_DELETE

I_BBYNR - Bonus Buy

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

IS_WA_HEADER - Bonus Buy: Work-Area Header

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

I_LOCK_TYPE - Bonus Buy: Lock handling type

Data type: RDM_BBY_LOCK_TYPE
Default: '0'
Optional: Yes
Call by Reference: Yes

I_CHECK_AUTHORITY - Check authority

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_TESTRUN - Switch to Simulation Session for Write BAPIs

Data type: TESTRUN
Default: SPACE
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

DB_HEADER_NOT_FOUND - Bonuskauf-Kopf nicht vorhanden

Data type:
Optional: No
Call by Reference: Yes

NO_LOCK_POSSIBLE - No lock possible

Data type:
Optional: No
Call by Reference: Yes

NO_AUTHORITY - No authority

Data type:
Optional: No
Call by Reference: Yes

DELETION_NOT_POSSIBLE - Deletion of bonus buy not possible

Data type:
Optional: No
Call by Reference: Yes

OTHER_ERROR - Other error

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RDM_BBY_DB_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_i_bbynr  TYPE BBYNR, "   
lv_db_header_not_found  TYPE BBYNR, "   
lv_is_wa_header  TYPE RDM_S_BBY_WA_HEADER, "   
lv_no_lock_possible  TYPE RDM_S_BBY_WA_HEADER, "   
lv_i_lock_type  TYPE RDM_BBY_LOCK_TYPE, "   '0'
lv_no_authority  TYPE RDM_BBY_LOCK_TYPE, "   
lv_i_check_authority  TYPE XFELD, "   SPACE
lv_deletion_not_possible  TYPE XFELD, "   
lv_i_testrun  TYPE TESTRUN, "   SPACE
lv_other_error  TYPE TESTRUN. "   

  CALL FUNCTION 'RDM_BBY_DB_DELETE'  "Bonus Buy: Deletion of Bonus Buys
    EXPORTING
         I_BBYNR = lv_i_bbynr
         IS_WA_HEADER = lv_is_wa_header
         I_LOCK_TYPE = lv_i_lock_type
         I_CHECK_AUTHORITY = lv_i_check_authority
         I_TESTRUN = lv_i_testrun
    EXCEPTIONS
        DB_HEADER_NOT_FOUND = 1
        NO_LOCK_POSSIBLE = 2
        NO_AUTHORITY = 3
        DELETION_NOT_POSSIBLE = 4
        OTHER_ERROR = 5
. " RDM_BBY_DB_DELETE




ABAP code using 7.40 inline data declarations to call FM RDM_BBY_DB_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_i_lock_type) = '0'.
 
 
DATA(ld_i_check_authority) = ' '.
 
 
DATA(ld_i_testrun) = ' '.
 
 


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!