How to See Data in Debugger in CRM

8
How to see data in Debugger in CRM Hello Everybody, 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.

Transcript of How to See Data in Debugger in CRM

Page 1: How to See Data in Debugger in CRM

How to see data in Debugger in CRM

Hello Everybody,

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.

Page 2: How to See Data in Debugger in CRM

"

 

Go to event EH_ONSEARCH  and put a external break point on statement.

"

Now open Web UI using transaction CRM_UI.

Page 3: How to See Data in Debugger in CRM

From home page, select Account Management-Contacts.

Select Search option.

 

And you will be in debug mode.

Page 4: How to See Data in Debugger in CRM

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.

Page 5: How to See Data in Debugger in CRM

"

Now double click on ENTITY_LIST and navigate to any one record in table.

Double click on the entry and select attribute CONTAINER_PROXY.

Page 6: How to See Data in Debugger in CRM

Double click on DATA_REF attributes.

Select ATTRIBUTE_REF.

Page 7: How to See Data in Debugger in CRM

 

This is the structure in which you can see your object instance data.

Page 8: How to See Data in Debugger in CRM