cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Label

04-17-2018 3:39 PM
500 views 1 comments
0 Likes
SAP Managed Tags
Subscribe

Hi,

I am writing xsjs program for download in excel format, So I wanted to get label from resultset metadata but I'm not getting it.

Actuality, have taken a reference of the given url, in that instead of table I'm using model even I tried with table also but no luck:

https://help.sap.com/http.svc/rc/3de842783af24336b6305a3c0223a369/2.0.01/en-US/$.hdb.ColumnMetadata....

getting output as below:

  Label:        MATNR
  Name:         MATNR

In the above example, My expectation is that, Label must come as "Material Number" but it's coming as Name.

Would you please help me if I'm missing anything.

Thanks,

Shambhu Nath

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Likes

Perhaps label was the wrong thing to call this part of the return metadata. I looked in the source code of that return and it actually fetches the Column Display Name not the Comment column that people would more generally refer to the label or short text of a column.

The comments column is not part of the columns metadata collection. If you need it, you would have to read it separately from TABLE_COLUMNS/VIEW_COLUMNS.