SAP Function Modules

RDM_BBY_WA_UPD_STATE_GET SAP Function module - Bonus Buy: Determine Work Area Update Status







RDM_BBY_WA_UPD_STATE_GET is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name RDM_BBY_WA_UPD_STATE_GET into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: RDM_BBY_SERVICES
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM RDM_BBY_WA_UPD_STATE_GET - RDM BBY WA UPD STATE GET





CALL FUNCTION 'RDM_BBY_WA_UPD_STATE_GET' "Bonus Buy: Determine Work Area Update Status
  EXPORTING
*   is_wa_header_old =          " rdm_s_bby_wa_header  Bonus Buy: Work-Area Header
*   it_wa_buy_old =             " rdm_t_bby_wa_buy  Bonus Buy: "Buy" Side (Table Type)
*   it_wa_get_old =             " rdm_t_bby_wa_get  Bonus Buy: "Get" Side (Table Type)
*   it_wa_reward_old =          " rdm_t_bby_wa_reward  Bonus Buy: Reward (Table Type)
*   it_wa_scales_old =          " rdm_t_bby_wa_scales  Bonus Buy: Scales (Table Type)
*   it_wa_matgrp_old =          " rdm_t_bby_wa_matgrp  Bonus Buy: Table with Material Groupings
*   it_wa_orgitems_old =        " rdm_t_bby_wa_orgitems  Bonus Buy: Table with Organization Items
*   it_wa_orgsites_old =        " rdm_t_bby_wa_orgsites  Bonus Buy: Sites of Site Groups (Table Type)
    is_wa_header_new =          " rdm_s_bby_wa_header  Bonus Buy: Work-Area Header
*   it_wa_buy_new =             " rdm_t_bby_wa_buy  Bonus Buy: "Buy" Side (Table Type)
    it_wa_get_new =             " rdm_t_bby_wa_get  Bonus Buy: "Get" Side (Table Type)
    it_wa_reward_new =          " rdm_t_bby_wa_reward  Bonus Buy: Reward (Table Type)
*   it_wa_scales_new =          " rdm_t_bby_wa_scales  Bonus Buy: Scales (Table Type)
    it_wa_matgrp_new =          " rdm_t_bby_wa_matgrp  Bonus Buy: Table with Material Groupings
    it_wa_orgitems_new =        " rdm_t_bby_wa_orgitems  Bonus Buy: Table with Organization Items
*   it_wa_orgsites_new =        " rdm_t_bby_wa_orgsites  Bonus Buy: Sites of Site Groups (Table Type)
*   i_bw_logic =                " xfeld         Use logic for BW extraction
  IMPORTING
    es_wa_header_upd =          " rdm_s_bby_wa_header_upd  Bonus Buy: Structure with RDM_S_BBY_WA_HEADER and Update Ind
    et_wa_buy_upd =             " rdm_t_bby_wa_buy_upd  Bonus Buy: Table with RDM_S_BBY_WA_BUY and Update Ind.
    et_wa_get_upd =             " rdm_t_bby_wa_get_upd  Bonus Buy: Table with RDM_S_BBY_WA_GET and Update Ind.
    et_wa_reward_upd =          " rdm_t_bby_wa_reward_upd  Bonus Buy: Table with RDM_S_BBY_WA_REWARD and Update Ind
    et_wa_scales_upd =          " rdm_t_bby_wa_scales_upd  Bonus Buy: Table with RDM_S_BBY_WA_SCALES and Update Ind.
    et_wa_matgrp_upd =          " rdm_t_bby_wa_matgrp_upd  Bonus Buy: Table with RDM_S_BBY_WA_MATGRP and Update Ind.
    et_wa_orgitems_upd =        " rdm_t_bby_wa_orgitems_upd  Bonus Buy: Table with RDM_S_BBY_WA_ORGITEMS and Update Ind.
    et_wa_orgsites_upd =        " rdm_t_bby_wa_orgsites_upd  Bonus Buy: Table with RDM_S_BBY_WA_ORGSITES and Update Ind.
    .  "  RDM_BBY_WA_UPD_STATE_GET

ABAP code example for Function Module RDM_BBY_WA_UPD_STATE_GET





The ABAP code below is a full code listing to execute function module RDM_BBY_WA_UPD_STATE_GET including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_es_wa_header_upd  TYPE RDM_S_BBY_WA_HEADER_UPD ,
ld_et_wa_buy_upd  TYPE RDM_T_BBY_WA_BUY_UPD ,
ld_et_wa_get_upd  TYPE RDM_T_BBY_WA_GET_UPD ,
ld_et_wa_reward_upd  TYPE RDM_T_BBY_WA_REWARD_UPD ,
ld_et_wa_scales_upd  TYPE RDM_T_BBY_WA_SCALES_UPD ,
ld_et_wa_matgrp_upd  TYPE RDM_T_BBY_WA_MATGRP_UPD ,
ld_et_wa_orgitems_upd  TYPE RDM_T_BBY_WA_ORGITEMS_UPD ,
ld_et_wa_orgsites_upd  TYPE RDM_T_BBY_WA_ORGSITES_UPD .

DATA(ld_is_wa_header_old) = 'Check type of data required'.
DATA(ld_it_wa_buy_old) = 'Check type of data required'.
DATA(ld_it_wa_get_old) = 'Check type of data required'.
DATA(ld_it_wa_reward_old) = 'Check type of data required'.
DATA(ld_it_wa_scales_old) = 'Check type of data required'.
DATA(ld_it_wa_matgrp_old) = 'Check type of data required'.
DATA(ld_it_wa_orgitems_old) = 'Check type of data required'.
DATA(ld_it_wa_orgsites_old) = 'Check type of data required'.
DATA(ld_is_wa_header_new) = 'Check type of data required'.
DATA(ld_it_wa_buy_new) = 'Check type of data required'.
DATA(ld_it_wa_get_new) = 'Check type of data required'.
DATA(ld_it_wa_reward_new) = 'Check type of data required'.
DATA(ld_it_wa_scales_new) = 'Check type of data required'.
DATA(ld_it_wa_matgrp_new) = 'Check type of data required'.
DATA(ld_it_wa_orgitems_new) = 'Check type of data required'.
DATA(ld_it_wa_orgsites_new) = 'Check type of data required'.
DATA(ld_i_bw_logic) = 'Check type of data required'. . CALL FUNCTION 'RDM_BBY_WA_UPD_STATE_GET' EXPORTING * is_wa_header_old = ld_is_wa_header_old * it_wa_buy_old = ld_it_wa_buy_old * it_wa_get_old = ld_it_wa_get_old * it_wa_reward_old = ld_it_wa_reward_old * it_wa_scales_old = ld_it_wa_scales_old * it_wa_matgrp_old = ld_it_wa_matgrp_old * it_wa_orgitems_old = ld_it_wa_orgitems_old * it_wa_orgsites_old = ld_it_wa_orgsites_old is_wa_header_new = ld_is_wa_header_new * it_wa_buy_new = ld_it_wa_buy_new it_wa_get_new = ld_it_wa_get_new it_wa_reward_new = ld_it_wa_reward_new * it_wa_scales_new = ld_it_wa_scales_new it_wa_matgrp_new = ld_it_wa_matgrp_new it_wa_orgitems_new = ld_it_wa_orgitems_new * it_wa_orgsites_new = ld_it_wa_orgsites_new * i_bw_logic = ld_i_bw_logic IMPORTING es_wa_header_upd = ld_es_wa_header_upd et_wa_buy_upd = ld_et_wa_buy_upd et_wa_get_upd = ld_et_wa_get_upd et_wa_reward_upd = ld_et_wa_reward_upd et_wa_scales_upd = ld_et_wa_scales_upd et_wa_matgrp_upd = ld_et_wa_matgrp_upd et_wa_orgitems_upd = ld_et_wa_orgitems_upd et_wa_orgsites_upd = ld_et_wa_orgsites_upd . " RDM_BBY_WA_UPD_STATE_GET
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_es_wa_header_upd  TYPE RDM_S_BBY_WA_HEADER_UPD ,
ld_is_wa_header_old  TYPE RDM_S_BBY_WA_HEADER ,
ld_et_wa_buy_upd  TYPE RDM_T_BBY_WA_BUY_UPD ,
ld_it_wa_buy_old  TYPE RDM_T_BBY_WA_BUY ,
ld_et_wa_get_upd  TYPE RDM_T_BBY_WA_GET_UPD ,
ld_it_wa_get_old  TYPE RDM_T_BBY_WA_GET ,
ld_et_wa_reward_upd  TYPE RDM_T_BBY_WA_REWARD_UPD ,
ld_it_wa_reward_old  TYPE RDM_T_BBY_WA_REWARD ,
ld_it_wa_scales_old  TYPE RDM_T_BBY_WA_SCALES ,
ld_et_wa_scales_upd  TYPE RDM_T_BBY_WA_SCALES_UPD ,
ld_et_wa_matgrp_upd  TYPE RDM_T_BBY_WA_MATGRP_UPD ,
ld_it_wa_matgrp_old  TYPE RDM_T_BBY_WA_MATGRP ,
ld_et_wa_orgitems_upd  TYPE RDM_T_BBY_WA_ORGITEMS_UPD ,
ld_it_wa_orgitems_old  TYPE RDM_T_BBY_WA_ORGITEMS ,
ld_et_wa_orgsites_upd  TYPE RDM_T_BBY_WA_ORGSITES_UPD ,
ld_it_wa_orgsites_old  TYPE RDM_T_BBY_WA_ORGSITES ,
ld_is_wa_header_new  TYPE RDM_S_BBY_WA_HEADER ,
ld_it_wa_buy_new  TYPE RDM_T_BBY_WA_BUY ,
ld_it_wa_get_new  TYPE RDM_T_BBY_WA_GET ,
ld_it_wa_reward_new  TYPE RDM_T_BBY_WA_REWARD ,
ld_it_wa_scales_new  TYPE RDM_T_BBY_WA_SCALES ,
ld_it_wa_matgrp_new  TYPE RDM_T_BBY_WA_MATGRP ,
ld_it_wa_orgitems_new  TYPE RDM_T_BBY_WA_ORGITEMS ,
ld_it_wa_orgsites_new  TYPE RDM_T_BBY_WA_ORGSITES ,
ld_i_bw_logic  TYPE XFELD .

ld_is_wa_header_old = 'Check type of data required'.
ld_it_wa_buy_old = 'Check type of data required'.
ld_it_wa_get_old = 'Check type of data required'.
ld_it_wa_reward_old = 'Check type of data required'.
ld_it_wa_scales_old = 'Check type of data required'.
ld_it_wa_matgrp_old = 'Check type of data required'.
ld_it_wa_orgitems_old = 'Check type of data required'.
ld_it_wa_orgsites_old = 'Check type of data required'.
ld_is_wa_header_new = 'Check type of data required'.
ld_it_wa_buy_new = 'Check type of data required'.
ld_it_wa_get_new = 'Check type of data required'.
ld_it_wa_reward_new = 'Check type of data required'.
ld_it_wa_scales_new = 'Check type of data required'.
ld_it_wa_matgrp_new = 'Check type of data required'.
ld_it_wa_orgitems_new = 'Check type of data required'.
ld_it_wa_orgsites_new = 'Check type of data required'.
ld_i_bw_logic = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name RDM_BBY_WA_UPD_STATE_GET or its description.