SAP Reports / Programs | Logistics - General | Logistics Basic Data | Retail Demand Management(LO-MD-RDM) SAP LO

RDM_BBY_COPY SAP ABAP Report - Bonus Buy: Copy Bonus Buys







RDM_BBY_COPY is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter RDM_BBY_COPY into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

RDMBBYCOPY - Copy Bonus Buy


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT RDM_BBY_COPY. "Basic submit
SUBMIT RDM_BBY_COPY AND RETURN. "Return to original report after report execution complete
SUBMIT RDM_BBY_COPY VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: PA_AAB_N = Promotion Valid From
Selection Text: PA_AAB_R = Promotion Valid From
Selection Text: PA_ABI_N = Promotion Valid To
Selection Text: PA_ABI_R = Promotion Valid To
Selection Text: PA_AKT_N = D .
Selection Text: PA_AKT_R = D .
Selection Text: PA_BBY_N = D .
Selection Text: PA_BBY_R = D .
Selection Text: PA_DAB_N = D .
Selection Text: PA_DAB_R = D .
Selection Text: PA_DBI_N = D .
Selection Text: PA_DBI_R = D .
Title: Bonus Buy: Copy Bonus Buys
Text Symbol: 001 = Template


INCLUDES used within this REPORT RDM_BBY_COPY

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

RDMC_BBY_UI_SINGLE_READ CALL FUNCTION 'RDMC_BBY_UI_SINGLE_READ' IMPORTING es_rdmc_bby_ui = gs_rdmc_bby_ui EXCEPTIONS entry_not_found = 1 OTHERS = 2.

RDM_BBY_KNUMH_NUMBER_GET CALL FUNCTION 'RDM_BBY_KNUMH_NUMBER_GET' EXPORTING i_temporary_number_get = c_no IMPORTING e_knumh = l_knumh.

RDM_BBY_DB_KOTAB_REF_GET CALL FUNCTION 'RDM_BBY_DB_KOTAB_REF_GET' EXPORTING i_kvewe = c_kvewe_n i_kotabnr = -kotabnr IMPORTING ers_db_kotab = lrs_db_kotab EXCEPTIONS OTHERS = 99.

RDM_BBY_DB_READ CALL FUNCTION 'RDM_BBY_DB_READ' EXPORTING i_bbynr = i_bbynr IMPORTING es_db_konbbyh = es_db_konbbyh et_db_konbbyt = et_db_konbbyt et_db_konbbyprq = et_db_konbbyprq et_db_kondn = et_db_kondn et_db_kondns = et_db_kondns et_db_kotab_ref = et_db_kotab_ref EXCEPTIONS db_header_not_found = 1 other_error = 2 OTHERS = 3.

RDM_BBY_DB_KOTAB_REF_GET CALL FUNCTION 'RDM_BBY_DB_KOTAB_REF_GET' EXPORTING i_kvewe = c_kvewe_n i_kotabnr = -kotabnr IMPORTING ers_db_kotab = lrs_db_kotab EXCEPTIONS OTHERS = 99.

RDM_BBY_DB_UPD_STATE_GET CALL FUNCTION 'RDM_BBY_DB_UPD_STATE_GET' EXPORTING is_db_konbbyh_new = is_db_konbbyh it_db_konbbyt_new = it_db_konbbyt it_db_konbbyprq_new = it_db_konbbyprq it_db_kondn_new = it_db_kondn it_db_kondns_new = it_db_kondns it_db_kotab_ref_new = it_db_kotab_ref IMPORTING es_db_konbbyh_upd = ls_db_konbbyh_upd et_db_konbbyt_upd = lt_db_konbbyt_upd et_db_konbbyprq_upd = lt_db_konbbyprq_upd et_db_kondn_upd = lt_db_kondn_upd et_db_kondns_upd = lt_db_kondns_upd et_db_vake_upd = lt_db_vake_upd EXCEPTIONS OTHERS = 99.

RDM_BBY_DB_POSTE CALL FUNCTION 'RDM_BBY_DB_POSTE' IN UPDATE TASK EXPORTING it_db_konbbyh_upd = lt_db_konbbyh_upd it_db_konbbyt_upd = lt_db_konbbyt_upd it_db_konbbyprq_upd = lt_db_konbbyprq_upd it_db_kondn_upd = lt_db_kondn_upd it_db_kondns_upd = lt_db_kondns_upd it_db_vake_upd = lt_db_vake_upd.

RDM_BBY_DB_TO_WA_MAP CALL FUNCTION 'RDM_BBY_DB_TO_WA_MAP' EXPORTING is_db_konbbyh = is_db_konbbyh it_db_konbbyt = it_db_konbbyt it_db_konbbyprq = it_db_konbbyprq it_db_kondn = it_db_kondn it_db_kondns = it_db_kondns it_db_kotab_ref = it_db_kotab_ref IMPORTING es_wa_header = ls_wa_header et_wa_buy = lt_wa_buy et_wa_get = lt_wa_get et_wa_reward = lt_wa_reward et_wa_scales = lt_wa_scales et_wa_matgrp = lt_wa_matgrp et_wa_orgitems = lt_wa_orgitems et_wa_orgsites = lt_wa_orgsites EXCEPTIONS OTHERS = 99.

SD_CONDITION_KOMG_FILL CALL FUNCTION 'SD_CONDITION_KOMG_FILL' EXPORTING p_kvewe = i_kvewe p_kotabnr = i_kotabnr p_vakey = i_vakey IMPORTING p_komg = es_komg.

SD_CONDITION_VAKEY_FILL CALL FUNCTION 'SD_CONDITION_VAKEY_FILL' EXPORTING p_kvewe = i_kvewe p_kotabnr = i_kotabnr p_komg = is_komg IMPORTING p_vakey = e_vakey.

ENQUEUE_E_BONUSBUY CALL FUNCTION 'ENQUEUE_E_BONUSBUY' EXPORTING mode_konbbyh = c_enqueue_write mode_konbbyprq = c_enqueue_write mode_konbbyt = c_enqueue_write mandt = sy-mandt bbynr = i_bbynr * prqnr = * matposnr = * spras = x_bbynr = 'X' x_prqnr = ' ' x_matposnr = ' ' x_spras = ' ' _scope = '3' * _WAIT = ' ' * _COLLECT = ' ' * EXCEPTIONS * FOREIGN_LOCK = 1 * SYSTEM_FAILURE = 2 * OTHERS = 3 .

DEQUEUE_E_BONUSBUY CALL FUNCTION 'DEQUEUE_E_BONUSBUY' EXPORTING mode_konbbyh = c_enqueue_write mode_konbbyprq = c_enqueue_write mode_konbbyt = c_enqueue_write mandt = sy-mandt bbynr = i_bbynr * prqnr = * matposnr = * spras = x_bbynr = 'X' x_prqnr = ' ' x_matposnr = ' ' x_spras = ' ' _scope = '3' * _synchron = ' ' * _collect = ' ' .



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name RDM_BBY_COPY or its description.