on 2023 Nov 17 7:29 AM
Hi Experts/Folks,
I'm getting an error "Unspecified provider error occurred. See Error Context and Call Stack" in ABAP RAP BO Unmanaged Scenario with draft V4 version on clicking on standard Edit button.
so i tried debugging and see where it fails, here is the below screenshot it's failing in Locking
even though i've given etag and total etag
Below is the Interface view screenshot:
Anyone knows what could be reason and how to rectify it?
andre.fischer jelena.perfiljeva
Thanks & Regards,
Bhaskar Nagula
Request clarification before answering.
Hi guys, I am a little bit late but it might be helpful is somebody else stumbles upon the issue here. This issue can be caused by multiple causes, not only the %tky misusage as one of the previous comments mentions. I had a similar case with draft enabled unmanaged RAP Object. I used the class CL_DSP_DAD_BUFFER to put a break point inside the _READ method and determine from the call stack where the issue was coming from.
Surprisingly the issue was not inside the CL_DSP_DAD_BUFFER but in the class CL_DSP_PROCESS_ENGINE. The CL_DSP_PROCESS_ENGINE class takes care of all Draft operations when calling
the Edit draft function. In summary the class does 6 activities to prepare the draft for creation. One of the steps is to compare the total Etag field so it does not create draft on wrong data/instance.
Here is where I did it wrong - the RAP Framework uses the 'READ' method from your RAP BO ( behv. Implementation ) to determine the etag value, however I forgot to implement the 'READ' method at all.
So in my case I got the same 'Unspecific provider error occurred', even though the error could be pretty much stated from SAP. To fix the issue you need to do the read implementation and it should return the field which is tagged as total etag with a value from either a EML Statement or a database call.
My advise if you face a similar issue on calling the edit button is to put a breakpoint in the class CL_DSP_PROCESS_ENGINE. In the lt_process_plan you can see all the steps and the method call lo_process->execute_activity executes the step, going inside you can see if you get any issues with any of the steps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I had the same problem after some time debugging and without understanding anything, I could find the problem: it is related to the use of %tky
In the projection I have implemented an update augment for association fields that I have in the root entity, my code was this:
I always had the same error.
After a lot of time, I found the location of the problem in the class CL_DSP_DSD_BUFFER
At that point, it is searching in <t_dad_buffer> with the ENTITY key from <s_dad_buffer_line>, which appears to be the same value, and I almost lost my mind:
So I changed the variable viewer to HEX and I finally found the problem:
Value from <t_dad_buffer>:
Value from <s_dad_buffer_line>:
Et voilà! Finally!
So changing my code to use the fields instead of %tky I could make it work:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you every found what the error was? I get a similar Gateway error but it doesn't say what failed.
Thanks
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
30 | |
10 | |
8 | |
8 | |
7 | |
7 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.