The common problem as a beginner that we face while working on web UI is to check data in debug mode. It is even more painful if you do not have hands on object oriented ABAP. I was just lost when I saw number of classes in debugger and I was really struggling on how to see data in debug mode.
I heard most of the people saying that you can not see data in debug mode and you will have to code if you want to see data in debug mode. But guys I came to know later on that we can see object instance data in ABAP debugger. And here are the steps:
We will take an example of BP search, component name is: BP_CONT_SEARCH
Activate break point from component workbench
- Put a break point in your code where data is coming from BOL.
For doing this, display component BP_CONT_SEARCH in component workbench (Transaction code: BSP_WD_CMPWB).
Open Search view (BP_CONT_SEARCH/Search) in Component Structure Browser as shown below.
Go to event EH_ONSEARCH and put a external break point on statement.
Now open Web UI using transaction CRM_UI.
From home page, select Account Management-Contacts.
Select Search option.
And you will be in debug mode.
Now press F6 to move on next step. Double click on result, get the variable in display panel.
Now double click on Result and select ENTITY_LIST. This is the table that contains all the instances for business partner.
Now double click on ENTITY_LIST and navigate to any one record in table.
Double click on the entry and select attribute CONTAINER_PROXY.
Double click on DATA_REF attributes.
This is the structure in which you can see your object instance data.
So enjoy :). I will keep you posting anything new that I find.