Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Getting attributes in web design api method

Hello gurus,

is it true that in the method "start" of a web table class it is not possible to get the value of an attribute of a characteristic? i.e.

LOOP AT n_r_data_set->N_SX_VERSION_20A_1-AXIS_DATA INTO axis_data.

LOOP AT axis_data-SET INTO set.


  • here attrs caption is always empty




but later in the characteristic_cell method there i find the correct values in c_cell_content!

and a second question: what would be the correct way to get the number of columns of the table? currently i do it like this:

LOOP AT n_r_data_set->N_SX_VERSION_20A_1-AXIS_INFO INTO axis_info.

IF axis_info-axis = 0.

columnCount = axis_info-ncoords.

columnCount2 = columnCount + axis_info-NCHARS.



but although columnCount is the correct number of data columns, columnCount2 is not the correct number of all columns including the characteristics. only if these columns do not display key+text or any attributes this number is correct. so what would be the correct way to get the number all columns of the web table in the method "start"?

thanks in advance for your help

Former Member
Not what you were looking for? View more on this topic or Ask a question