Hello, experts
I have a problem.
I have a management application with some associations. I tried to add behavior for the field which I want to set read-only if other field in this entity is being set to true/false (simple check box) if check box is true then field unrestricted else read-only such a simple requirement.
Behavior for entity you can find below
I implemented corresponding method in behavior pool, every object were activated class and behavior. When I ran application via testing environment, I mean I didn't deploy application just use testing in eclipse I had a short dump that "Handler not implemented; Method: INSTANCE_FEATURE, Involved Entities: ZC_PO_PLANNED_OFFER_PROD_CTP". Short dump is raised once I open entity where I added instance features for the field.
System is S4HANA on Premise version of ABAP platform 2022 SP02
Could somebody explain what I have been doing wrong?
Thank you in advance for the response
Request clarification before answering.
Hi @Kostiantyn_K !
You need to implement the get_instance_features method in your behavior implementation class. Declare it following the example in the screenshot below.
After that, add the implementation for this method.
I hope this helps you.
BR,
Oleg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could you please paste the code here behavior class so we can check?
If comment out the logic in a method, will the error remain? Will the debugger work?
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 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.