CRM and CX Blogs by SAP
Stay up-to-date on the latest developments and product news about intelligent customer experience and CRM technologies through blog posts from SAP experts.
Showing results for 
Search instead for 
Did you mean: 
0 Kudos

In both CRM and C4C it is allowed to adapt table column width by end user. This blog explains how the personalization works under the hood.

How Table column resize works in CRM

Click personalize button in table toolbar:

Specify the percentage of each column width and save the change.

Then check the personalization persistence table BSPC_DL_PERSSTOR, query with my user and changed_at = today:

One entry found, the personalization of each column width is stored as xml:

When next time the table is to be rendered, this personalization setting is read again from persistence table and used for rendering:

How Table column resize works in Cloud for Customer

In C4C it is very convenient to finish table column size adaptation by simple drag and drop:

Once this is done, you can observe a HTTP request sent to backend:

It is impossible to directly review what exactly has been sent in the network tab of Chrome development tool as the content displayed there has been gzipped.

In fact the new column width is sent to ABAP backend via this HTTP request.

Instead, set a breakpoint in file FunctionModule.js:

Inspect the content in variable sRequestString, and the detail content sent is contained in field CONTENT, which is encoded by BASE64:


You can paste the encoded string into website
and get decoded string there:

<?xml version='1.0'?><ChangeTransaction xmlns:base=''  xmlns:uxc='' xmlns:uxv='' xmlns='' id='cb4771f861b659802045975b29c1b66d' xrepPath='/SAP_BYD_UI_FLEX/CHANGE_TRANSACTIONS/EndUser/ChangeColumnWidth/cb4771f861b659802045975b29c1b66d.uichange' type='ChangeColumnWidth' user='K9123Z2A0AV' clientType='html5' userType='EndUser' embeddingContext=''><UsedAnchor type='ListAnchor' xrepPath='/SAP_BYD_UI_FLEX/STABLE_ANCHORS/47e2475b8c1a4c8ebb103d66212a4eea.uianchor'><TargetFile xrepPath='/SAP_BYD_APPLICATION_UI/BCTools/WorkCentre/Overview_OWL.OWL.uicomponent'/><ChangeColumnWidth newLength="267px" columnModelId="w4HFX05fkagi1Swq3tdmTW"/></UsedAnchor></ChangeTransaction>

From this xml we can know that the adaptation of table column width is persisted to ABAP backend via change transaction.

When next time the UI page contains this table is rendered,

the UI source code returned by ABAP backend has already been merged with the content of width adaptation change transaction, which means the new column width is available there:

Then TableRender.js uses this new width to render table column:

And after rendering the new width takes effect now.