on 2024 Apr 06 8:25 AM
Hello Fellow Experts,
I am currently implementing a custom development using ABAP RESTful Application Programming Model on our client's SAP On-Premise environment and building a Fiori App.
I am trying to implement a Dynamic Feature Control using Behavior Definition but doing so results in this error when accessing the Fiori App:
Looking further here is the Dump
However I seem to have implemented the code properly as here is my Behavior Definition
And even have the handler as the Dump claims is not yet created.
But on debugging it doesn't even reach this part of the code.
I tried this development in our internal SAP Sandbox environment and it worked. I debugged both systems and the difference I noticed is when calling the class
CL_ABAP_BEHV_FJOB->GET_BEHAVIOR the method CL_ABAP_BEHV_CTRL=>GET_IMPLEMENTATIONS_KRN is being called to get the appropriate Behaviors (BDI_OPS)
BDI_OPS doesn't return a record with OPERATION = I ( for Instance) only Operation S. Our Sandbox environment picks up both records at this point.
I checked the Behavior Definition (D010BEHV) table and this record exists:
I even added the entry in debugger and I was able to get to the Handler Method and it was working fine. So, for some reason, at this point of the program this particular record isn't getting picked up. I am not sure why as everything was working in our other Sandbox SAP system.
Unfortunately this is as far as I can go the method CL_ABAP_BEHV_CTRL=>GET_IMPLEMENTATIONS_KRN is a Kernel Module so I can check any closer.
If anyone has an idea what is wrong here, I would greatly appreciate some assistance.
Thanks everyone in advanced
Hello
Did you implement the read method first?
Without read method implemented, read syntax gives handler issue.
see this example here
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you have to register your class in table: ENHBDEX
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
D010BEHV is a system table. Where did you register your class?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am just following these steps https://github.com/SAP-samples/abap-platform-rap100/tree/main/exercises/ex07 but from what I see in this table is that it is being updated once I activate the handler class. So it does not seem to require an additional step to update this table. If I create the method for the Instance Feature it updates automatically.
User | Count |
---|---|
67 | |
8 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.