Lets start data model extension with Custom field in BP central data.
Currently its not having any custom field in UI. Lets check in NWBC.
Select existing CR type and check.
Lets add a field called Founder name of the Customer.
Lets create a domain and data element first.
Lets name of data element as ZFOUNDER.
Lets use same name name for domain as well.
Activate the domain.
Activate the data element.
Go to table BUT000 and find custom include structure provided by SAP.
Create CI_EEW_BUT000 if it doesn't exist in system.
Add field in the structure.
Assign enhancement category as Can be enhacement category same as the BUT000 table.
Create CI_EEW_BUT000_X structure as its not existing in the system.
Add component type as BAPI_UPDATE as its always true or false values, it should be X or space.
Add enhancement category as same as parent structure and activate.
Go to data model in MDGIMG, add new attribute in entity BP_CENTRL.
Custom attributes will have name space starting with ZZ.
Save and activate data model.
Go to Generate data model specific structures.
select BP data model, choose BP_CENTRL and activate their structures.
All structures will be reactivated.
Inside data model, adjust reuse active area.
Extend mappings, SMT mappings can be found from generate data model specific structures.
Open mappings corresponding to entity BP_CENTRL.
Enhance both the mapping _2API and _2STA.
Dont forget to extend in X structures in _2API.
Go to UI configuration from right click in NWBC and add new field in Component customizing.
Create component customizing if it doesn't exist.
Drag and drop new custom field and maintain label.
Save the changes.
Start testing with sample change request.
Data should get saved in active area.
Thank you
Негізгі бет Data model extension in SAP MDG Business partner
Пікірлер: 15