Skip to Content
0
Jan 23, 2009 at 12:29 PM

IC Web: new column in view IHistResult

24 Views

Hi Gurus.

I want to add new column to search result in IHistResult. Here are steps, that I've already done:

1. added attribute myfield using wizard to Context node BTORDER. As a result get&set methods were created and classes: CL_CRM_IC_IHISTRESULT_IMPL, *CTXT, *CN00 were changed with Z classes

2. added myfield to ltype_tabline in local variables for class ZL_CRM_IC_IHISTRESULT_CN00

3. added atrribute ZITERATOR Type ref ZCL_CRM_IC_IHISTRESULT_IT. ZCL_CRM_IC_IHISTRESULT_IT is copy with superclass CL_CRM_IC_IHISTRESULT_IT.

4. modified method IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START

5. in IHistResult.htm changed iterator to ziterator and new added column myfield

I have a problem with step number 4. I don't know how to get value for myfield. I've tried method GET_PROPERTY_AS_STRING but it returns and error in IC Web. Any Ideas how method IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START should be implemented? Any sample code? Let me know if I'm doing something wrong.

Regards

Piotr