cancel
Showing results for 
Search instead for 
Did you mean: 

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

cedietan
Explorer

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

 

 

 

 

 

 

davidchin
Explorer
0 Kudos
Did you find a solution for this? I am getting similar error and only in our DEV environment. Sandbox system works fine.

Accepted Solutions (0)

Answers (3)

Answers (3)

satyaki
Discoverer
0 Kudos

Hello

Did you implement the read method first?

Without read method implemented, read syntax gives handler issue.

see this example here

https://discoveringabap.com/2022/06/11/abap-restful-application-programming-model-6-unmanaged-scenar...

satyaki_0-1714444011136.png

 

satyaki_1-1714444029616.png

 

thomas_mller13
Participant
0 Kudos

I think you have to register your class in table: ENHBDEX

cedietan
Explorer
0 Kudos
But is there a specific activity that requires to explicit add something in that table? Looking at the steps for BO Dynamic behavior there is none.
thomas_mller13
Participant
0 Kudos

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

cedietan
Explorer
0 Kudos

<delete>

cedietan
Explorer
0 Kudos

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.