Custom Model Search
We have implementing a custom Equipment Data Model and are now trying to develop a search screen similar to standard Material/ Customer search.
We are using DB search mode and have followed the Custom Object development guide provided by SAP for MDG 8.0.
We have the USMD_SEARCH UI application configured but aren't able to search Equipments from the ECC tables or MDG staging.
I understand that we'll have to write some code before being able to query anything, but we're not sure which methods need to be implemented.
Can someone please guide us as to what steps need to be followed in order to fetch the search results? Some document that we can refer maybe?
Benjamin Allsopp replied
Have you tried implementing the Search of Entities BADI?
MDGIMG -> General settings -> Data Quality and Search -> Business Add Ins -> Search of Entities
I had much success creating a standard search screen by creating an implementation of this BADI with Custom Data Model as the filter.
You can disable the standard buttons/ add you're on buttons using the Initialize method.
And code your own actions per button in the process event method.
To get to this screen it's just Web Dynpro Application USMD_ENTITY_SEARCH with your custom model as a USMD_MODEL parameter.