SAP RDM_BBY_DB_LOAD Function Module for Bonus Buy: Load Data









RDM_BBY_DB_LOAD is a standard rdm bby db load 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: Load Data 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 load FM, simply by entering the name RDM_BBY_DB_LOAD 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_LOAD 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_LOAD'"Bonus Buy: Load Data
EXPORTING
I_BBYNR = "Bonus Buy
* I_TRTYP = 'A' "Transaction type
* I_BUFFER_REFRESH = ' ' "Flag: Refresh buffer
* I_BUFFER_READ = ' ' "Flag: Read data from buffer
* I_BUFFER_STORE = ' ' "Flag_Store data read into buffer
* I_BYPASSING_BUFFER_FOR_KOTAB = ' ' "Flag: Bypassing buffer when reading condition data from the data base
* I_CHECK_AUTHORITY = ' ' "Flag: Check authority

IMPORTING
ES_WA_HEADER = "Bonus Buy: Work-Area Header
E_MATGRP_ADJUSTED = "Indicator: Material Groupings have been adjusted
E_ORGSITES_ADJUSTED = "Indicator: Sites of Site Groups have been adjusted
ET_WA_MQTY_DIS = "Bonus Buy: Sorted table of RDM_S_BBY_WA_MQTY_DIS
ET_WA_BUY = "Bonus Buy: 'Buy' Side (Table Type)
ET_WA_GET = "Bonus Buy: 'Get' Side (Table Type)
ET_WA_REWARD = "Bonus Buy: Reward (Table Type)
ET_WA_SCALES = "Bonus Buy: Scales (Table Type)
ET_WA_MATGRP = "Bonus Buy: General Material Grouping (Table Type)
ET_WA_ORGITEMS = "Bonus Buy: Table with Organization Items
ET_WA_ORGSITES = "Bonus Buy: Sites of Site Groups (Table Type)
ET_WA_TEXTS = "Bonus Buy: Table with Texts

EXCEPTIONS
DB_HEADER_NOT_FOUND = 1 OTHER_ERROR = 2
.



IMPORTING Parameters details for RDM_BBY_DB_LOAD

I_BBYNR - Bonus Buy

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

I_TRTYP - Transaction type

Data type: TRTYP
Default: 'A'
Optional: Yes
Call by Reference: Yes

I_BUFFER_REFRESH - Flag: Refresh buffer

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

I_BUFFER_READ - Flag: Read data from buffer

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

I_BUFFER_STORE - Flag_Store data read into buffer

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

I_BYPASSING_BUFFER_FOR_KOTAB - Flag: Bypassing buffer when reading condition data from the data base

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

I_CHECK_AUTHORITY - Flag: Check authority

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

EXPORTING Parameters details for RDM_BBY_DB_LOAD

ES_WA_HEADER - Bonus Buy: Work-Area Header

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

E_MATGRP_ADJUSTED - Indicator: Material Groupings have been adjusted

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

E_ORGSITES_ADJUSTED - Indicator: Sites of Site Groups have been adjusted

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

ET_WA_MQTY_DIS - Bonus Buy: Sorted table of RDM_S_BBY_WA_MQTY_DIS

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

ET_WA_BUY - Bonus Buy: 'Buy' Side (Table Type)

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

ET_WA_GET - Bonus Buy: 'Get' Side (Table Type)

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

ET_WA_REWARD - Bonus Buy: Reward (Table Type)

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

ET_WA_SCALES - Bonus Buy: Scales (Table Type)

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

ET_WA_MATGRP - Bonus Buy: General Material Grouping (Table Type)

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

ET_WA_ORGITEMS - Bonus Buy: Table with Organization Items

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

ET_WA_ORGSITES - Bonus Buy: Sites of Site Groups (Table Type)

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

ET_WA_TEXTS - Bonus Buy: Table with Texts

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

EXCEPTIONS details

DB_HEADER_NOT_FOUND - Bonuskauf-Kopf nicht vorhanden

Data type:
Optional: No
Call by Reference: Yes

OTHER_ERROR - Other Error

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

Copy and paste ABAP code example for RDM_BBY_DB_LOAD 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_es_wa_header  TYPE RDM_S_BBY_WA_HEADER, "   
lv_db_header_not_found  TYPE RDM_S_BBY_WA_HEADER, "   
lv_e_matgrp_adjusted  TYPE XFELD, "   
lv_e_orgsites_adjusted  TYPE XFELD, "   
lv_et_wa_mqty_dis  TYPE RDM_T_BBY_WA_MQTY_DIS, "   
lv_i_trtyp  TYPE TRTYP, "   'A'
lv_et_wa_buy  TYPE RDM_T_BBY_WA_BUY, "   
lv_other_error  TYPE RDM_T_BBY_WA_BUY, "   
lv_et_wa_get  TYPE RDM_T_BBY_WA_GET, "   
lv_i_buffer_refresh  TYPE XFELD, "   SPACE
lv_et_wa_reward  TYPE RDM_T_BBY_WA_REWARD, "   
lv_i_buffer_read  TYPE XFELD, "   SPACE
lv_et_wa_scales  TYPE RDM_T_BBY_WA_SCALES, "   
lv_i_buffer_store  TYPE XFELD, "   SPACE
lv_et_wa_matgrp  TYPE RDM_T_BBY_WA_MATGRP, "   
lv_i_bypassing_buffer_for_kotab  TYPE XFELD, "   SPACE
lv_et_wa_orgitems  TYPE RDM_T_BBY_WA_ORGITEMS, "   
lv_i_check_authority  TYPE XFELD, "   SPACE
lv_et_wa_orgsites  TYPE RDM_T_BBY_WA_ORGSITES, "   
lv_et_wa_texts  TYPE RDM_T_BBY_WA_TEXTS. "   

  CALL FUNCTION 'RDM_BBY_DB_LOAD'  "Bonus Buy: Load Data
    EXPORTING
         I_BBYNR = lv_i_bbynr
         I_TRTYP = lv_i_trtyp
         I_BUFFER_REFRESH = lv_i_buffer_refresh
         I_BUFFER_READ = lv_i_buffer_read
         I_BUFFER_STORE = lv_i_buffer_store
         I_BYPASSING_BUFFER_FOR_KOTAB = lv_i_bypassing_buffer_for_kotab
         I_CHECK_AUTHORITY = lv_i_check_authority
    IMPORTING
         ES_WA_HEADER = lv_es_wa_header
         E_MATGRP_ADJUSTED = lv_e_matgrp_adjusted
         E_ORGSITES_ADJUSTED = lv_e_orgsites_adjusted
         ET_WA_MQTY_DIS = lv_et_wa_mqty_dis
         ET_WA_BUY = lv_et_wa_buy
         ET_WA_GET = lv_et_wa_get
         ET_WA_REWARD = lv_et_wa_reward
         ET_WA_SCALES = lv_et_wa_scales
         ET_WA_MATGRP = lv_et_wa_matgrp
         ET_WA_ORGITEMS = lv_et_wa_orgitems
         ET_WA_ORGSITES = lv_et_wa_orgsites
         ET_WA_TEXTS = lv_et_wa_texts
    EXCEPTIONS
        DB_HEADER_NOT_FOUND = 1
        OTHER_ERROR = 2
. " RDM_BBY_DB_LOAD




ABAP code using 7.40 inline data declarations to call FM RDM_BBY_DB_LOAD

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_trtyp) = 'A'.
 
 
 
 
DATA(ld_i_buffer_refresh) = ' '.
 
 
DATA(ld_i_buffer_read) = ' '.
 
 
DATA(ld_i_buffer_store) = ' '.
 
 
DATA(ld_i_bypassing_buffer_for_kotab) = ' '.
 
 
DATA(ld_i_check_authority) = ' '.
 
 
 


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!