cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP RAP: Unspecified provider error occurred. See Error Context and Call Stack on Edit Button

Former Member
3,491

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

Accepted Solutions (0)

Answers (3)

Answers (3)

aldimitrov14
Explorer

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.

aldimitrov14_0-1726726367550.png

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.

aldimitrov14_4-1726726609119.png

 

 

 

Atmananda
Discoverer
0 Kudos
Thanks for the class, had a similar issue with V4 and the class CL_DSP_PROCESS_ENGINE helped me to trace back to READ method in Behavior Implementation. Code in Read method was commented by mistake, hence the same error.
JaimeRodriguez
Participant

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:

JaimeRodriguez_0-1711389644886.png

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

JaimeRodriguez_1-1711389053965.png

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:

JaimeRodriguez_2-1711389171676.png

So I changed the variable viewer to HEX and I finally found the problem:

Value from <t_dad_buffer>:

JaimeRodriguez_3-1711389271259.png

Value from <s_dad_buffer_line>:

JaimeRodriguez_4-1711389304918.png

Et voilà! Finally!

So changing my code to use the fields instead of %tky I could make it work:

JaimeRodriguez_1-1711389684639.png

 

 

iamnaveen
Participant
0 Kudos

Hi JaimeRodriguez,

In which class did you enter the mentioned code?

I have the "key" values in the lock method of the cl_abap_behavior_saver class. After the saver class, I'm facing the Dump error " Unspecified provider error occurred. See Error Context and Call Stack."

How to fix the issue?

iamnaveen_0-1711542878245.pngiamnaveen_1-1711542934354.png

 

JaimeRodriguez
Participant
0 Kudos
I made in the class for projection BDEF. Check in all methods how you fill the keys and specify them field by field.
srmuc69
Product and Topic Expert
Product and Topic Expert
0 Kudos

Have you every found what the error was? I get a similar Gateway error but it doesn't say what failed.

Thanks

Stefan