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

ABAP RAP error " Handler not implemented; Method: INSTANCE_FEATURE "

cedietan
Explorer
8,494

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: 

Screenshot 2024-04-06 090503 3.png

Looking further here is the Dump 

Screenshot 2023-07-17 133724 2.png

 

 

However I seem to have implemented the code properly as here is my Behavior Definition

Screenshot 2024-04-06 090737.png

And even have the handler as the Dump claims is not yet created. 

Screenshot 2024-04-06 090902.png

But on debugging it doesn't even reach this part of the code.

Screenshot 2024-04-06 090951.png

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)

Screenshot 2024-04-06 091429.png

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.

Screenshot 2024-04-06 091514.png

I checked the Behavior Definition (D010BEHV) table and this record exists:

Screenshot 2024-04-06 091857.png

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.

Screenshot 2024-04-06 092409.png

If anyone has an idea what is wrong here, I would greatly appreciate some assistance.

Thanks everyone in advanced

 

 

 

 

 

 

View Entire Topic
thomas_mller13
Participant
0 Likes

D010BEHV is a system table. Where did you register your class?

cedietan
Explorer
0 Likes

<delete>

cedietan
Explorer
0 Likes

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.