cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP RAP - underlying mechanism(code)at the time of update

guru_ayarekar
Participant
0 Kudos
605

Hello Experts,

I am studying ABAP RAP framework.From reading blog post etc I know that CDS views are not capable of modifying records(as they are just views).I also know that we have to define behaviour for modifications(CRUD).

I am eager to know that as cds views has no capacity to modify records then at the time of modification does cds gets aside and who will came into picture ? Can we trace underlying mechanism ? Can we see underlying generated code,sql queries(this will be helpful us for debugging)

Thanks in advance.

View Entire Topic
Jelena_Perfiljeva
Active Contributor

I'm not a RAP expert by any means but when it comes to updates, we are dealing with Business Object framework. We create behavior definition, behavior projection, use that weird EML language, and all that. You can debug the business logic that is written in classes, of course, but I'm confused why you'd need to debug the framework itself... In ABAP, we don't debug SELECT commands, they just work. We can use SQL Trace, for example, to see what's going on at the DB level but that doesn't qualify as "debugging".

Sorry, I'm just super confused by the question, to be honest. This was covered in Week 3 of openSAP course, might want to take a look: https://open.sap.com/courses/cp13/items/298pQnmqbosWdXaSRAtuS9

guru_ayarekar
Participant
0 Kudos

Thanks for reply.Cleared some doubts with your reply.

As I am in learning phase, I am also lots of confusion what to ask exactly.But motiv for asking this question is as follows - Previously I was web developer in php. At that time when learning frameworks I observed that if we have through knowledge about framework then we can handle any complex situations.Means if we have handy of underlying code of libraries then its easy to debug.

By the way - for both SAP & ABAP RAP I am in learning phase and as cleared some doubts with your reply so now I am in mood to accept your answer and close this question.

Jelena_Perfiljeva
Active Contributor

gurudevendranath Ah, OK, non-SAP person. 🙂 Well, this is "we don't do that here" type of situation. While it is definitely possible to debug at least some frameworks in SAP (unsure about RAP stuff specifically) but it's like falling down the rabbit hole and should not be necessary. You need to know how to use the framework effectively, so I'd suggest to focus on that and not worry much about the inner workings at this stage. RAP is honestly not that clear even for some ABAP developers (like me), so be prepared for a steep learning curve. Important to remember that ABAP is not php. 🙂