Start of Content Area

Object documentationManipulating Cell Contents Locate the document in its SAP Library structure

Definition

Functional components of the table interface.

Use

You can use a set of methods to manipulate cell contents. Only implement the methods for the cell types that you want to manipulate. Standard contents will be used for all other cell types.

Recommendation

Standard contents may change between releases/support packages. If you want to change the contents of a cell, we recommend that you overwrite the contents of, for example, C_CELL_CONTENT completely and do not process the field with REPLACE or a similar operation.

Features

You can use the following methods to manipulate cell contents:

     CAPTION_CELL: Headers

     SCALING_FACTOR_CELL: Scaling Factors

     CHARACTERISTIC_CELL: Characteristic Values

     ATTRIBUTE_CELL: Attribute Values

     STRUCTURE_CELL: Structural Components

     DATA_CELL: Data Cells

     ERROR_CELL: Error Cells

     NAV_BLOCK_LABEL: Label Area of Navigation Block

     NAV_BLOCK_VALUE: Filter of Navigation Block

All methods for manipulation of cell contents include Importing and Changing Parameters. The importing parameters provide cell-specific information such as content, style, coordinates, characteristic, key figure, value, etc. The importing parameters depend on cell type. You can use the changing parameters, which provide the standard values, to change the ID of the cell, the cell content, the style of the cell and the extension of the TD tag. As these parameters are method independent, they are listed only once here.

Changing Parameter

Description

C_CELL_ID

Cell ID

If you leave this parameter empty, the cell has no ID. The ID is used to process the cell contents with JavaScript.

C_CELL_CONTENT

Cell Contents

The cell contents themselves can be very simple (for example, a number) or very complex (for example, for hierarchy nodes: icons with expanded/collapsed URL and text).

C_CELL_STYLE

Style of Cell

The style defines the color, font, font size, spacing, and so on of the cell. The styles are defined in the cascading stylesheet. The cascading stylesheet is assigned to the Web template.

C_CELL_TD_EXTEND

Extension of TD tag

Here you can set the properties such as the width, height, alignment or color of the cell. This parameter is not normally set because many of the properties are already defined when the style is defined.

 

Using the Changing Parameter

The cell contents (C_CELL_CONTENT) corresponds to the inside part of the TD tag. The extension of the TD tag (C_CELL_TD_EXTEND) and the style of the cell (C_CELL_STYLE) are inserted into the opening TD tag. If the ID of the cell (C_CELL_ID) is filled, id=“C_CELL_ID“  is also written to the opening TD tag.

The HTML tags <td> and </td> are automatically generated by the Web Application Framework and do not have to be specified in C_CELL_CONTENT.

..._CELL

          <td C_CELL_TD_EXTEND class=”C_CELL_STYLE” id=”C_CELL_ID”>

                C_CELL_CONTENT

          </td>

Example

Hiding Columns

You can hide columns very simply by entering the style display:none into the extension of the TD tag (C_CELL_TD_EXTEND).

c_cell_td_extend = 'style="display:none"'.

Inserting Columns

The opening TD tag <td> is automatically generated by the Web Application Framework. To insert a new column, the parameter C_CELL_CONTENT must first include a closing TD tag </td> and then an opening TD tag <td>.

concatenate c_cell_content '</td><td>’ content_cell_new_column into c_cell_content.

The changing parameters can be changed depending on the importing parameters. If the information from the importing parameters is not sufficient, additional information can be found using the attributes or the service method GET_CELL_INFO (see Information for a Specific Cell).

Detailed information about the individual importing parameters can be found in the description of the methods for the individual cell types. For more information, see the links under “Features”.

Insertion of MIME objects (graphics, symbols, logos and so on)

You can easily insert MIME objects (images, symbols, logos, etc.) into the contents of the cells. To do this, enter the relative path as a URL, that is, the path information is provided without naming the Web protocol, the host name and the port number. The path should begin with /sap/bw/Mime. This corresponds to the path for service of the SAP Web Application Server (see the transaction maintenance of the service, SICF). Extend the path with the path information for the MIME object in the MIME Repository (transaction SE80) below the /SAP/BW level.

Example

Path in the MIME Repository: /SAP/BW/BEx/Icons/pixel.gif

Relative path : /asp/bw/Mime/BEx/Icons/pixel.gif

For more information on the use of SAP MIME objects, as well as your own MIME objects, see Storing Stylesheets and Symbols.

 

 

End of Content Area