cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

MDG Flex Mode - Handler class for Custom Objects

Former Member
0 Likes
3,762

Hi SCN,

I have created a custom Data Model (Flex Mode) and did the complete set-up of the UI and process.

In the GET_DATA method of a feeder class behind one of my UIBB I'm clearing the value of an inputfield based on certain conditions.

When leaving the GET_DATA method the value of the inputfield is cleared which is good, however in the MDG table the old value from before the clear has been saved.

When a value is not correctly saved to the database in MDG BP you can take a look in the handler class mappings 2API, however I can't seem to find a handler class for Cusom Objects.

Is there something similar to a handler class for custom objects where I can investiate why the data is not correctly persisted?

Thank you in advance for your response.

Kind regards,

Niels De Greef

View Entire Topic
former_member219747
Participant
0 Likes

Hi Niels,

You need to create your's own handler class for this.

Cutom handler class must implement the interface-IF_MDG_BS_BP_ACCESS_HANDLER.

You can refer/inherit from the abstract handler class CL_MDG_BS_FND_HANDLER.

After creating the custom handler class, go to maintenance view(SM30), V_MDG_BS_BP_HDL and create a new entry with data model BP and your class.

Hope this helps you?

Regards,

Mrityunjai

Former Member
0 Likes

Hi Mrityunjai,

Thank you for your reply.

This is the process for creating a handler for the BP data model I assume?

However in my case we are working with a custom Data Model, so is there a similar maintenance view to register the handler for a custom Data Model?

Kind regards,

Niels De Greef

former_member219747
Participant
0 Likes

https://help.sap.com/erp_mdg_addon70/helpdata/en/16/a5115454744a18e10000000a423f68/content.htm

Yes Niels, you are correct.

Basically we create this handler class, when we are customizing/extending data model BP.

Please help me to understand your issue in detail.

You have created a custom data model (flex mode), so what is the namespace that you have used here?

If you create a data model with the correct namespace, you don't need a handler class.

When you create a data model in SAP namespace, you need to create a custom handler class and for this I will request you to check the link here-

Regards,

Mrityunjai