on ‎2016 Aug 18 12:51 PM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
| User | Count |
|---|---|
| 9 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.