SAP MDG · CONSOLIDATION

How do I implement the MDG_BS_CUST_SUPP_CR_SI BAdI for supplier/customer staging in a Change Request?

Implement BAdI `MDG_BS_CUST_SUPP_CR_SI` in `SE19`, create the enhancement implementation, and delegate the logic from your custom class to `CL_MDG_BS_CUST_CR_SI_ERP_IMPL`. The key methods shown in the source are `MAP_BP_TO_STAGING_WO_CR` and `set_supplier_data_2_sta`.

Implement BAdI `MDG_BS_CUST_SUPP_CR_SI` in `SE19`, create the enhancement implementation, and delegate the logic from your custom class to `CL_MDG_BS_CUST_CR_SI_ERP_IMPL`. The key methods shown in the source are `MAP_BP_TO_STAGING_WO_CR` and `set_supplier_data_2_sta`.

Implement the supplier/customer staging BAdI by creating the enhancement in `SE19` for `MDG_BS_CUST_SUPP_CR_SI` and then coding the required interface methods in your custom class. The source example `ZCL_BI_CUST_CR_SI_ERP` shows a delegate pattern: it creates `CL_MDG_BS_CUST_CR_SI_ERP_IMPL` in the constructor and forwards the interface calls to `MAP_BP_TO_STAGING_WO_CR` and `set_supplier_data_2_sta`.

Process flow

  1. Open transaction SE19.
  2. Create a new BAdI implementation for definition MDG_BS_CUST_SUPP_CR_SI.
  3. Use enhancement spot MDG_BS_CUST_SUPP_CR_SI.
  4. Create the implementation class.
  5. Implement IF_MDG_BS_CUST_SUPP_CR_SI.
  6. Instantiate CL_MDG_BS_CUST_CR_SI_ERP_IMPL in the constructor.
  7. Forward MAP_BP_TO_STAGING_WO_CR and set_supplier_data_2_sta to the helper object.
  8. Activate the implementation and test the staging flow.

Referenced tables

ObjectPurpose
No table is defined in the retrieved source for this BAdI implementation.The source focuses on class-based delegation and does not name a staging configuration table.

ILLUSTRATIVE ABAP SAMPLE

Source ABAP example

Exact relevant implementation excerpt from the knowledge document.

1class ZCL_BI_CUST_CR_SI_ERP definition 2 public 3 final 4 create public . 5 6public section. 7 8 interfaces IF_BADI_INTERFACE . 9 interfaces IF_MDG_BS_CUST_SUPP_CR_SI . 10 11 methods CONSTRUCTOR . 12protected section. 13 14 data MO_CUSTOMER type ref to CL_MDG_BS_CUST_CR_SI_ERP_IMPL . 15private section. 16ENDCLASS. 17 18 19 20CLASS ZCL_BI_CUST_CR_SI_ERP IMPLEMENTATION. 21 22 23 METHOD constructor. 24 CREATE OBJECT mo_customer. 25 ENDMETHOD. 26 27 28 method IF_MDG_BS_CUST_SUPP_CR_SI~MAP_BP_TO_STAGING_WO_CR. 29 mo_customer->if_mdg_bs_cust_supp_cr_si~map_bp_to_staging_wo_cr( 30 EXPORTING 31 is_bp_api = is_bp_api 32 iv_temp_sta_bp_id = iv_temp_sta_bp_id 33 CHANGING 34 ct_bp_staging = ct_bp_staging 35 ct_messages = ct_messages ). 36 endmethod. 37 38 39 METHOD if_mdg_bs_cust_supp_cr_si~set_supplier_data_2_sta. 40 41 mo_customer->if_mdg_bs_cust_supp_cr_si~set_supplier_data_2_sta( 42 EXPORTING 43 is_bp_api = is_bp_api 44 ir_cr_api = ir_cr_api 45 ir_gov_api = ir_gov_api 46 iv_crequest_id = iv_crequest_id 47 iv_temp_sta_bp_id = iv_temp_sta_bp_id 48 CHANGING 49 ct_return_messages = ct_return_messages ). 50 ENDMETHOD. 51ENDCLASS.

The remaining configuration, implementation details, and testing guidance continue from this answer more…

Related questions and keywords

Alternative questions

  • Which BAdI is used for supplier Change Request staging?
  • How do I create the enhancement implementation for MDG_BS_CUST_SUPP_CR_SI?
  • Which methods must be implemented for custom supplier staging in MDG?

Possible questions

  • How do I map BP data to staging without a Change Request?
  • How do I pass supplier data from consolidation upload into a Change Request?
  • How do I create the BAdI implementation in SE19 for MDG_BS_CUST_SUPP_CR_SI?
  • What are the required methods in IF_MDG_BS_CUST_SUPP_CR_SI?
  • How do I write the staging data to the governance API?

Keywords

MDG_BS_CUST_SUPP_CR_SISE19Enhancement SpotIF_MDG_BS_CUST_SUPP_CR_SIMAP_BP_TO_STAGING_WO_CRset_supplier_data_2_staZCL_BI_CUST_CR_SI_ERPCL_MDG_BS_CUST_CR_SI_ERP_IMPLgovernance APIstaging