I'm using BSP and creating a class iterator.
I'm tryin to add a column that does not exists in the table.
GET_COLUMN_DEFINITIONS:
method IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS .
DATA : LW_COL LIKE LINE OF P_COLUMN_DEFINITIONS.
SELECT COLUMN
LW_COL-COLUMNNAME = 'SELECT'.
"this column does not exists in itab
APPEND LW_COL TO P_COLUMN_DEFINITIONS .
NAME
LW_COL-COLUMNNAME = 'NAME'.
APPEND LW_COL TO P_COLUMN_DEFINITIONS .
endmethod.
RENDER_CELL_START:
method IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START .
FIELD-SYMBOLS <FS_BP> TYPE BAPIVENDOR_04.
DATA : LO_IMG TYPE REF TO CL_HTMLB_IMAGE.
IF P_COLUMN_KEY = 'SELECT'.
ASSIGN P_ROW_DATA_REF->* TO <FS_BP> .
DATA : L_ID TYPE STRING.
CREATE OBJECT LO_IMG.
MOVE <FS_BP>-VENDOR TO LO_IMG->ID .
LO_IMG->SRC =
CL_BSP_MIMES=>SAP_ICON( id = 'ICON_SELECT_DETAIL' ) .
LO_IMG->ONCLICK = 'VENDOR'.
P_REPLACEMENT_BEE = LO_IMG.
ENDIF.
endmethod.
And the following error message.
My bsp page does contain any ref to the SELECT but do have the following erro message
Business Server Page (BSP) Error
BSP exception: Structure component with name "SELECT" does not exist