Data model extension for Attribute in BP Reuse

 

Different Scenarios for Extension:


                                


Current Scenario:

We are going to add a new attribute into the entity BP_CENTRL of BP data model.



Implementation Steps for Each Scenario:

                      

Extend Field in Business Partner Level only

Implementation of Adding Field in BP only Consist following Steps:

Extension of Standard Tables and API Structure

·       As we are extending field in BUT000 table.

·       We need to add our field in the structure ‘CI_EEW_BUT000’ and ‘CI_EEW_BUT000_X’.

Extension of MDG Data Model

MDGIMG -> General Setting -> Data Modelling -> Edit Data Model -> BP -> BP_CENTRL.

Generate Data Model-Specific Structures

MDGIMG -> General Setting -> Data Modelling -> Generate Data Model-Specific Structures -> BP -> Structure -> BP_CENTRL.

 

Adjust Staging Area of Linked Change Requests

Or

Execute Program ‘USMD_ADJUST_STAGING’ with Parameter ‘BP’.

 

Define SMT Mapping

·       MDGIMG -> General Setting -> Data Modelling -> Generate Data Model-Specific Structures -> BP -> Mapping -> BP_CENTRL

·       MDGIMG -> General Setting -> Data Modelling -> Create and Edit Mappings -> Extend Mappings -> Extend Mappings.

·       Open the 2STA Mapping -> Select Mapping Step -> Details.

·       Edit -> Transformation tab -> Add new Transformation -> Select that Transformation -> Map field from Source Structure to Target Structure -> Save.

 

·       Open 2API Mapping -> Open Mapping Step -> Details.

·       Details -> Edit -> Transformation Tab -> Add New Transformation -> Select added Transformation -> Down Map Source field with Target field as below.

·       Go back to the Mapping Step page -> Select mapping step for X structure -> Details -> Edit -> Add new Transformation -> Map Source Field with Target Field.

 

Add field to UI

·       Open any Customer or Supplier on MDG UI -> Right Click -> Technical Help

·       Application Configuration

·       Open ‘BS_CU_OVP’

·       Customer Details Configuration

·       Open Configuration for BS_BP_DETAILS

·       Other Function from TAB -> Create Customization (Edit if already exist) -> Drag field from Repositories and Drop to the Preview Section.

·       Save the customization and Test Creation of Customer or Vendor.

Extend Field in Customer/Vendor Level Only

Extension of Standard Tables and API Structures

·       We need to add field in LFA1 table.

·       There is one Standard Include structure in LFA1 table as shown below.

·       We have added append structure into this structure and added our field.

·       For checking the API Structures for BP_VENGEN, we need to check the SMT Mapping

·       Open this mapping in SMT Interface.

·       As, this is from Active mapping the source structure will be API Structure.

·       Open the Source structure in SE11 t-code. Here the same Include structure is present inside this so we no need to add again.

·       Append X Structure.

·       In API mapping, we can get the X structure

·       Open structure in SE11 -> Search for the Standard Include if there or else create append structure and append the field into this.

 

Extension of MDG Data Model

·       MDGIMG -> General Setting -> Data Model -> Edit Data Model -> BP -> Entity -> BP_VENGEN -> Attributes -> Add new attribute -> Save -> Activate.

 

Generate Data Model-Specific Structures

·       MDGIMG -> General Setting -> Data Model -> Generate Data Model-Specific Structures -> BP -> BP_VENGEN -> Generate Selected Structures.

Define SMT Mapping

·       MDGIMG -> General Setting -> Data Model -> Extend Mappings -> Extend Mappings.

·       Select the mapping step and go to Details -> Transformation tab -> Add new Transformation

·       Select newly created transformation -> map the field as below.

·       Map the same for 2PP mappings for both main structure and X structure.

Add field to UI

·       Open any Supplier in display mode or Create any new CR.

·       Go into the ERP Vendor Section and open the details.

·       In Control Data UIBB -> Right Click on Screen -> Technical Help


                                                                                                                                  

·       Click on Web Dynpro Component

 

·       Create Enhancement or Customizing for this WD Component -> Add the Custom field into the Screen -> Save.


 

Extend Field in BP and Customer/Vendor Both

·       It is the combination of other 2 Extensions Scenario

·       We need to add one step that’s it.

CVI Mapping BADI Implementation

·       SE18 -> Enhancement Spot ‘CVI_CUSTOM_MAPPER’ -> BADI Definition ‘CVI_CUSTOM_MAPPER’ -> Create new Enhancement Implementation.

 

·       Create new BADI Definition -> We need to implement 2 methods as we are doing for Supplier.

·       Create Implementation for Methods ‘MAP_BP_TO_VENDOR’ and ‘MAP_VENDOR_TO_BP’.

·       ‘MAP_BP_TO_VENDOR’

·       ‘MAP_VENDOR_TO_BP’

 


Comments

Popular posts from this blog

SAP MDG Process Modelling

MDG Derivation (BADI)

MDG Validation (Using BADI)