cancel
Showing results for 
Search instead for 
Did you mean: 

MDG BP Custom Field Search Criteria Addition

Former Member
0 Kudos

Good day,

We created a extension on BP model both on BUT000 and LFA1, updated SMT mapping etc. The final requirement that the business has is to search on the newly created fields.

The fields are available in the Available Result List Criteria but NOT in the Available Search Criteria

We implemented a enhancement on BAdi -> MDG_SEARCH_BP but its not getting triggered. We added the fields to the UI Modelling without any luck.

Second option we tried was to enhance class CL_MDG_BS_BP_HANDLER but the issue we are experiencing is that the ZCLMDG_SEARCH_BP is not getting calling correctly.

Can you please assist with document, I think the BAdi should be the easiest option?

Thank you

Otto

Accepted Solutions (1)

Accepted Solutions (1)

varun_jain3
Active Participant
0 Kudos

Hi Otto,

Write post exit at CL_USMD_SEARCH_DATA_DB method GET_DUP_CHECK_ATTR

ls_search_attributes-fieldname = "your zfield as data model "

APPEND ls_search_attributes TO et_search_attributes.

you will start getting at search criteria .

Regards,

Varun

Former Member
0 Kudos

Hi Varun, Mrityunjai,

We got the issue resolved. Challenge we had was that the query is hard coded in QUERY_BP_BY_GENERAL.

We enhanced the query to cater for the new custom fields and its working.

Regards

Otto

Answers (1)

Answers (1)

former_member219747
Participant

Hi Otto,

Go to the feeder class for BP search -> method CREATE_STRUCT_RTTI

Add all custom fields.

After this the fields will be available in UI configuration.

Add the custom attributes to the search criteria.

This configuration will be entity specific.

Regards,

Mrityunjai