Skip to Content

The Comments Technical Component allows users to create and view comments in Lumira documents/applications. Comments can be shared across all applications within a Lumira document. Note that comments are supported on SAP Lumira Documents Mode (.lumx file) and Legacy Mode (.biapp file within a .zip file) but not on Lumira Discovery.

To avail of this functionality, you must add the Comments technical component to the Outline view of the design tool. When the Comments technical component is added to the design tool, the scripting methods associated with the comments functionality will be available in the script editor.

There is a very helpful template available by default in SAP Lumira Designer which contains a very comprehensive comments dialog. Just create a new document in SAP Lumira Documents Mode and select Samples – Feature Samples.


Comments Context Types

Comments can be created with an associated context (CommentContextType):

  1. NONE. The comment has no context. This is default when creating a comment with no context specified. This value is useful if you want to get all the comments without a specific context type.
  2. CONTEXT. This allows the user to specify a custom context to which the comment can be associated. The context can be anything, it’s like an ad-hoc type.
    A very common use of this context type is to apply it in the current filters of a data source.
  3. DATA. Comment applies to a data cell. This is default when creating a comment with a context. The comment icon will be visible depending on the navigation state.
  4. DIMENSION. Comment applies to a dimension. The comment icon will be visible as far as the dimension is visible.
  5. MEMBER. Comment applies to a member. The comment icon will be visible as far as the member is visible.

DATA, DIMENSION and MEMBER comments are the only ones which can be seen in a crosstab. In order for a comment to be visible in a crosstab datacell the navigation state is important. This is better explained in the section ‘Create Comments on a Crosstab’.

Also note that in an SAP Document, the lumx file may contain comments from all the composites. Composites don’t have self-contained comments, they’re all part of the same lumx document.

A composite in one lumx document can be used across many applications in other lumx documents. So a composite can be used in applications from different lumx documents but the “owner” of the comment is the document where the application is in.

Create Comments

Create a basic comment for the dashboard:

var commentId = COMMENTS.create("See my comment here");

Create a comment with the application name as context for the application:

COMMENTS.create(“See my comment here”),
             "contextType": CommentContextType.CONTEXT, 
             "context": "{appname: " + APPLICATION.getInfo().name + "}"

Application comment with other properties:

var commentId = COMMENTS.create("See my comment here and properties", {
    "context": {"sales":"2017"},
    "contextType": CommentContextType.CONTEXT,
    "isPublic": true,
    "dataSource": DS_1

We can even add a context menu in order to create comments on the data cell of a crosstab:

When creating a new comment the output of the API method is the comment’s ID. If we want to extract the comment’s properties we can get the comment as a whole object by doing the following:

Comments created on Local Mode will be stored in the Commentary Technical Component folder of Lumira within the configuration folder:


Comments created on BIP will be stored directly on the database.

See that we can see the properties of the commentary BIP application on CMC (Central Management Console):
Applications – BI Commentary Application – Properties

If we change the database we point to, a series of services need to be restarted for the changes to apply (APS, ConnectionServers, LumiraServer). If the restarting is not performed, we might get an Analysis Application error when launching our Lumira report with the Comments component.

We should also be able to see the Commentary Service in the APS when selecting Edit Common Services.

Create Comments on a Crosstab

This is the most common use case for comments in Lumira: creating comments on a crosstab (datacell, dimension or member).

When creating comments on a crosstab we need to remember that dimension and member comments should stay visible as far as those dimensions and members are visible in the crosstab.

Bear in mind that background filters are only important when saving comments on data cells so the comment will show or not depending on the navigation state.

This means that if we create a comment on a datacell and then we apply a background filter through the Filter Members option, the previous comment won’t be shown on the cell since it’s considered as a different context. If we remove the filter, then the comment will show again.

Here we can see the scripting used to create DATA, DIMENSION or MEMBER comments on a crosstab, taking into account the background filters:

var selType = CONTEXT_MENU.getSelectionType() + "";  
// This will assign the type of context we selected: DATA, DIMENSION or MEMBER and convert it into a string
var sel = CONTEXT_MENU.getSelection();
if (selType == "DATA") 
{	//add in the background filters
	sel = DS_1.getBackgroundFilters(sel);	
COMMENTS.create(selType + “Text of the comment”),
		"context": sel,
		"contextType": selType

Sometimes the datasource might have a background filter applied that we are not aware of. For this reason, it’s recommended to add the background filters every time we save a comment on a datacell. If not, our comment might be saved but not appear on the crosstab, which would result in confusion.

Update Comments

We can update an existing comment by using the API method setContent and providing its comment ID.

See an example here:

var commentId = COMMENTS_FEEDLIST_1.getSelectedItem().id;
COMMENTS.setContent(commentId,"Comment updated");

Show Comments

The most common method to display comments is through the Feed List component:

var FEEDLIST_1.setItems(COMMENTS.getComments());

If we want to show the content of a selected item on the feedlist:

var commentId = COMMENTS_FEEDLIST_1.getSelectedItem().id;
var commentObject = COMMENTS.getComment(commentId);

For a filtered list of comments:

var comments = COMMENTS.getComments
“context”: g_Context,
“contextType”: g_ContextType,
“dataSource”: DS_1,
“isPublic”: true,
“sortBy: CommentSortBy, CREATED_ON,
“order”: SortOrder.DESCENDING

Or if we want some more specific content and handling, see the following:

var comments = COMMENTS.getComments();

comments.forEach(function(element, index) 
  "icon": element.icon,
  "authorId": element.authorId,
  "lastModifiedTime": element.lastModifiedTime,
  "text": element.text

Crosstabs can display a red arrow icon if a comment is available for a data cell, a member or a dimension. You can enable the comment display within the crosstab via property ‘Comments Visible = true’.

On top of that, comments can be included in the output of the Export PDF if we select ‘Comments Visible = true’ in the PDF Technical Component.

Delete Comments

We can delete an existing comment by using the API method delete and providing its comment ID.

See an example here:

var commentId = COMMENTS_FEEDLIST_1.getSelectedItem().id;

If we want to delete all the comments at once we can do:

var comments = COMMENTS.getComments();
comments.forEach(function(comment, index) 

Public and Private Lumira Comments

All Lumira comments can be created as:

  • Public: everyone can view it. It may also be called Global.
  • Private: only the creator of the comment can view it. It may also be called Personal.
var publicCommentId = COMMENTS.create("Every Lumira user can see this comment", 
    "isPublic": true
var privateCommentId = COMMENTS.create("Only the user that creates the comment can see it", 
    "isPublic": false

This property is not linked to any rights on the platform since Public and Private comments are a ‘Lumira only’ concept.

If the Lumira user has the correct BIP rights, the user can add/edit/delete any comment on BIP via the BIP Commentary Service.

Don’t leave without knowing

The commenting feature on Lumira is available from Lumira 2.1 onwards.

Comments are not supported on BIP 4.1 or lower. This is also the case for comments on Webi, Analysis Office, etc.

Also note that on BIP 4.2 SP0 – 4.2 SP4 the performance when saving/retrieving/deleting comments on Lumira is very slow whereas when using BIP 4.2 SP5 or higher the performance is very similar to the one we can experience in Local Mode.
See SAP Note 2566001 – Creating or listing Lumira 2.1 Comments on the BI Platform is taking longer than expected.

To report this post you need to login first.


You must be Logged on to comment or reply to a post.

  1. Sebastian Deeg

    Hi Laura,

    great article – thanks!

    We’ve implemented a Designer Lumira application (with the comments functionality) and in local mode everything works as expected. But if we create comments within our BIP 4.2 SP3 we will get the following error message:

    MissingResource for class, key: ZEN_COMMENT_MSG_NO_PLATFORM_SUPPORT, locale: de



    We are using our existing Audit database for commentary.

    Any ideas how to solve the problem?


    Best regards



    1. Laura Piris Post author

      Hi Sebastian,

      Thanks for your comment. Let’s follow up with a ticket instead since it might need some investigation. Once the query is resolved I can post the solution here.


  2. Bryn Evans


    Hi Laura,

    Great Blog! We want to actually display the comments in the crosstab in its own column so users can see them without any additional clicks. Is this possible?



    1. Laura Piris Post author


      Hi Bryn,

      Thanks for the feedback. I am not fully sure what you mean by ‘displaying the comments in its own column’. Could you elaborate?

      Comments in a crosstab are associated to a particular cell so that’s why we need to select the cell in order to display its comments, usually via a feedlist component.

      An option that wouldn’t require any clicks is to display all the comments of the application, which is already possible. And then you can filter that list by context type DATA in order to get only comments from crosstab datacells. Now if you have more than one crosstab it will display them all together on the feedlist.

      I hope this solves your query.


  3. Patrick Zeiser

    Hi Laura Piris ,

    thanks for this very good introduction to the commentary feature.

    I added the feature samples and after that I inserted the “Comments Dialog” composite in a blank applicatin. But it shows me nothing (Screenshot 1). Warning messages: No metadata is available for … SAP COM etc. How can I fix this?

    After that I tried it with the “Comments Panel”. Run it in Local Mode, everything is fine and works. But in the BI Platform mode I got the error message: Error during the procedure of the script (Screenshot2).

    I didn’t make changes to the Comments Panel. Are there any settings on the CMC required or is there a possibility to get more information about the error. Currently the error is very thin.

    Best regards





  4. Christof Hoffmann

    Hi Laura

    Using The The New comments fct. we like to share comments btw. different Applications

    E.g. Comments will be added in an data process application and be showed in corresponding dashboard applications. Normally this applications will be in different documents. When comments only can be shared within the same document what is the way to go?

    Copy the documents with dB fct. Or is there a more elegant way to proceed?

    Thanks in advance


  5. Jan-Frederik Marx

    Hi Laura Piris,

    thank you for this overview.

    You’ve mentioned show up-behavior of comments regarding visibility of their context (dimension/members and navigation). How are comments with context DATA treated when a data refresh is being executed and figures change? Will the comment still be shown as long as dimension values exist (e.g. Neighborhood, Age Group and Total Population with the according values) even though the data value changed from a negative to a positive one (and thus the comment would lead to confusion)?

    Thanks for your help!

    Best regards,


  6. Ramesh Jothimani

    Hi Laura,

    Really awesome blog. thanks for the information.

    I have a doubt that while checking Audit DB we can see a table called [COMMENTARY_MASTER] which stores the comments that entered via report. Now could you help me to understand that how we can specify value to the fields in those tables. like OptionKey1, OptionKey2…..because I want to filter the value to be displayed to different reports based on the module like retail, finance and so…




    Ramesh J


Leave a Reply